Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
Seanaye/fix/quick access channel gql (#5872)
Sean Aye485e8838297e
diff --git a/apps/web/src/lib/core/context/quickAccess/QuickAccessProvider.tsx b/apps/web/src/lib/core/context/quickAccess/QuickAccessProvider.tsxindex ee5787999d..829acc8048 100644--- a/apps/web/src/lib/core/context/quickAccess/QuickAccessProvider.tsx+++ b/apps/web/src/lib/core/context/quickAccess/QuickAccessProvider.tsx@@ -1,4 +1,4 @@-import { createMemo, type FlowComponent } from 'solid-js';+import { createMemo, type FlowComponent, Suspense } from 'solid-js';import { QuickAccessContextProvider } from './context';import { createQuickAccessValue } from './QuickAccessSource';import type {@@ -8,7 +8,7 @@ import type {QuickAccessListOptions,} from './types';-export const QuickAccessProvider: FlowComponent = (props) => {+const QuickAccessProviderValue: FlowComponent = (props) => {const source = createQuickAccessValue();const useList = ((@@ -47,3 +47,9 @@ export const QuickAccessProvider: FlowComponent = (props) => {</QuickAccessContextProvider>);};++export const QuickAccessProvider: FlowComponent = (props) => (+ <Suspense>+ <QuickAccessProviderValue>{props.children}</QuickAccessProviderValue>+ </Suspense>+);diff --git a/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.tsx b/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.tsxindex b2a71f9422..0f6fffcdf2 100644--- a/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.tsx+++ b/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.tsx@@ -15,6 +15,11 @@ import type {SkillEntity,SnippetEntity,} from '@entity';+import { useCachedGraphqlChannelsQuery } from '@queries/channel/channels';+import {+ type CachedGraphqlChannel,+ materializeCachedGraphqlChannels,+} from '@queries/channel/graphql';import { queryReadyGate } from '@queries/gate';import { materializeCachedGraphqlHistoryItems } from '@queries/history/graphql';import { type HistoryItem, useHistoryQuery } from '@queries/history/history';@@ -113,18 +118,34 @@ function historyItemToEntity(item: HistoryItem): QuickAccessEntity {}}-function channelToEntity(channel: ApiChannelWithLatest): ChannelEntity {+function apiChannelToQuickAccessChannel(+ channel: ApiChannelWithLatest+): CachedGraphqlChannel {return {- type: 'channel',id: channel.id,name: channel.name ?? '',ownerId: channel.owner_id ?? '',channelType: channel.channel_type ?? 'public',- participantIds: channel.participants?.map((p) => p.user_id),+ participantIds: channel.participants?.map((p) => p.user_id) ?? [],createdAt: channel.created_at,updatedAt: channel.updated_at,- viewedAt: channel.viewed_at,- interactedAt: channel.interacted_at,+ viewedAt: channel.viewed_at ?? undefined,+ interactedAt: channel.interacted_at ?? undefined,+ };+}++function channelToEntity(channel: CachedGraphqlChannel): ChannelEntity {+ return {+ type: 'channel',+ id: channel.id,+ name: channel.name,+ ownerId: channel.ownerId,+ channelType: channel.channelType,+ participantIds: channel.participantIds,+ createdAt: channel.createdAt,+ updatedAt: channel.updatedAt,+ viewedAt: channel.viewedAt,+ interactedAt: channel.interactedAt,};}@@ -164,6 +185,28 @@ function toTimestamp(value: DateValue | null | undefined): number {return toDate(value).getTime();}+function channelToQuickAccessItem(+ channel: CachedGraphqlChannel,+ sortTimestamp = toTimestamp(channel.viewedAt) ||+ toTimestamp(channel.updatedAt)+): QuickAccessItem {+ const bucket: Bucket =+ channel.channelType === 'direct_message' ? 'dm' : 'channel';+ return {+ kind: 'entity',+ id: channel.id,+ bucket,+ searchText: channel.name,+ sortTimestamp,+ timestamps: {+ viewedAt: channel.viewedAt,+ updatedAt: channel.updatedAt,+ createdAt: channel.createdAt,+ },+ data: channelToEntity(channel),+ };+}+function equalActivityMaps(previous: Map<string, DateValue>,next: Map<string, DateValue>@@ -181,10 +224,10 @@ function getHistoryItemVersion(item: HistoryItem, viewedAt?: string): string {}function getChannelVersion(- channel: ApiChannelWithLatest,+ channel: CachedGraphqlChannel,viewedAt?: string): string {- return `${channel.name}|${channel.updated_at}|${viewedAt}`;+ return `${channel.name}|${channel.updatedAt}|${viewedAt}`;}function getUserVersion(@@ -270,10 +313,13 @@ export function createQuickAccessValue(): QuickAccessContextValue {equals: equalActivityMaps,});const isConnectedSecondaryInbox = useIsConnectedSecondaryInbox();- const cacheHost = getGraphqlSoupCacheHost();+ const graphqlCacheHost = getGraphqlSoupCacheHost();+ const cacheHost = graphqlCacheHost?.disabled ? undefined : graphqlCacheHost;const [cacheRevision, setCacheRevision] = createSignal(0);+ const cachedChannelsQuery = useCachedGraphqlChannelsQuery(cacheHost);const unsubscribeCacheChanges = cacheHost?.onCacheChanged(() => {setCacheRevision((revision) => revision + 1);+ void cachedChannelsQuery.refetch();});onCleanup(() => unsubscribeCacheChanges?.());const instructionsIdQuery = useInstructionsMdIdQuery();@@ -382,42 +428,27 @@ export function createQuickAccessValue(): QuickAccessContextValue {const viewedAtMap = soupViewedAtMap();const allEntries: IndexEntry[] = [];- // Process channels- const channelData = channels();- for (const channel of channelData) {- const viewedAt =- viewedAtMap.get(channel.id) ?? channel.viewed_at ?? undefined;-+ // The GraphQL cache is authoritative while enabled. Otherwise preserve the+ // existing channel-list source unchanged.+ const channelData = cacheHost+ ? (cachedChannelsQuery.data ?? [])+ : channels().map(apiChannelToQuickAccessChannel);+ for (const sourceChannel of channelData) {+ const viewedAt = cacheHost+ ? sourceChannel.viewedAt+ : (viewedAtMap.get(sourceChannel.id) ?? sourceChannel.viewedAt);+ const channel = { ...sourceChannel, viewedAt };const version = getChannelVersion(channel, viewedAt);const cached = itemCache.get(channel.id);if (!cached || cached.version !== version) {- const isDm = channel.channel_type === 'direct_message';- const bucket: Bucket = isDm ? 'dm' : 'channel';- const entity = {- ...channelToEntity(channel),- viewedAt,- };- const viewedAtMs = toTimestamp(viewedAt);- const updatedAtMs = toTimestamp(channel.updated_at);- const sortTimestamp = viewedAtMs || updatedAtMs;-- const quickAccessItem: QuickAccessItem = {- kind: 'entity',- id: channel.id,- bucket,- searchText: channel.name ?? '',- sortTimestamp,- timestamps: {- viewedAt,- updatedAt: channel.updated_at,- createdAt: channel.created_at,- },- data: entity,- };-+ const quickAccessItem = channelToQuickAccessItem(channel);itemCache.set(channel.id, { item: quickAccessItem, version });- allEntries.push({ id: channel.id, bucket, sortTimestamp });+ allEntries.push({+ id: channel.id,+ bucket: quickAccessItem.bucket,+ sortTimestamp: quickAccessItem.sortTimestamp,+ });} else {allEntries.push({id: channel.id,@@ -835,7 +866,7 @@ export function createQuickAccessValue(): QuickAccessContextValue {profile: 'quick-access-v1',buckets,query,- limit: 500,+ limit: query.trim() ? 500 : 50,});const missingDocuments = page.documents.filter(({ recordKey }) => {const separator = recordKey.indexOf(':');@@ -843,14 +874,17 @@ export function createQuickAccessValue(): QuickAccessContextValue {separator < 0 ? recordKey : recordKey.slice(separator + 1);return !itemCache.has(id);});- const historyItems = await materializeCachedGraphqlHistoryItems(- cacheHost,- missingDocuments- );+ const [historyItems, cachedChannelItems] = await Promise.all([+ materializeCachedGraphqlHistoryItems(cacheHost, missingDocuments),+ materializeCachedGraphqlChannels(cacheHost, missingDocuments),+ ]);if (currentGeneration !== generation) return;const materializedHistoryItems = new Map(historyItems.map((item) => [item.id, item] as const));+ const materializedChannelItems = new Map(+ cachedChannelItems.map((item) => [item.id, item] as const)+ );const recordKeys: string[] = [];const materialized = new Map<string, QuickAccessItem>();const seen = new Set<string>();@@ -867,20 +901,29 @@ export function createQuickAccessValue(): QuickAccessContextValue {continue;}const historyItem = materializedHistoryItems.get(id);- if (!historyItem) continue;- const entity = historyItemToEntity(historyItem);- const item: QuickAccessItem = {- kind: 'entity',- id,- bucket: getBucketForHistoryItem(historyItem),- searchText: getEntitySearchText(entity),- sortTimestamp: document.timestampMs,- timestamps: {- updatedAt: historyItem.updatedAt,- createdAt: historyItem.createdAt,- },- data: entity,- };+ const cachedChannel = materializedChannelItems.get(id);+ let item: QuickAccessItem | undefined;+ if (historyItem) {+ const entity = historyItemToEntity(historyItem);+ item = {+ kind: 'entity',+ id,+ bucket: getBucketForHistoryItem(historyItem),+ searchText: getEntitySearchText(entity),+ sortTimestamp: document.timestampMs,+ timestamps: {+ updatedAt: historyItem.updatedAt,+ createdAt: historyItem.createdAt,+ },+ data: entity,+ };+ } else if (cachedChannel) {+ item = channelToQuickAccessItem(+ cachedChannel,+ document.timestampMs+ );+ }+ if (!item) continue;seen.add(id);recordKeys.push(document.recordKey);materialized.set(id, item);@@ -926,9 +969,15 @@ export function createQuickAccessValue(): QuickAccessContextValue {// CRM companies are additive — they fold into the list when their query// resolves rather than gating quick access on a slower/failing CRM fetch.- const isLoading = () => historyQuery.isLoading || channelsLoading();+ const isLoading = () =>+ historyQuery.isLoading ||+ (cacheHost ? cachedChannelsQuery.isLoading : channelsLoading());const refresh = () => {+ if (cacheHost) {+ setCacheRevision((revision) => revision + 1);+ void cachedChannelsQuery.refetch();+ }historyQuery.refetch();crmCompaniesQuery.refetch();snippetsQuery.refetch();diff --git a/apps/web/src/lib/queries/channel/channels.ts b/apps/web/src/lib/queries/channel/channels.tsindex f1bf076e22..69b1bebcaf 100644--- a/apps/web/src/lib/queries/channel/channels.ts+++ b/apps/web/src/lib/queries/channel/channels.ts@@ -1,6 +1,7 @@import { analytics } from '@app/lib/analytics';import { toast } from '@core/component/Toast/Toast';import { throwOnErr } from '@core/util/result';+import type { CacheHost } from '@graphql-cache/index';import { queryClient } from '@queries/client';import { type MutationCallbacks, withCallbacks } from '@queries/utils';import type { ApiChannelWithLatest } from '@service-storage/channel-list-types';@@ -14,6 +15,10 @@ import type { CreateChannelResponse } from '@service-storage/generated/schemas/cimport type { PatchChannelRequest } from '@service-storage/generated/schemas/patchChannelRequest';import { useMutation, useQuery } from '@tanstack/solid-query';import { invalidateChannelParticipants } from './channel-participants';+import {+ type CachedGraphqlChannel,+ readCachedGraphqlChannels,+} from './graphql';import { channelKeys } from './keys';const CHANNEL_LIST_PAGE_SIZE = 100;@@ -46,6 +51,24 @@ export function useListChannelsQuery() {}));}+/** Reads the recent Quick Access channel list from the normalized GraphQL cache. */+export function useCachedGraphqlChannelsQuery(cacheHost?: CacheHost) {+ return useQuery(() => {+ const enabledCacheHost = cacheHost?.disabled ? undefined : cacheHost;+ return {+ queryKey: channelKeys.quickAccessGraphql(+ enabledCacheHost?.clientId ?? 'disabled'+ ).queryKey,+ queryFn: async (): Promise<CachedGraphqlChannel[]> => {+ if (!enabledCacheHost) return [];+ return await readCachedGraphqlChannels(enabledCacheHost);+ },+ enabled: enabledCacheHost !== undefined,+ staleTime: Infinity,+ };+ });+}+export function invalidateListChannels() {return queryClient.invalidateQueries({queryKey: channelKeys.listChannels.queryKey,diff --git a/apps/web/src/lib/queries/channel/graphql.ts b/apps/web/src/lib/queries/channel/graphql.tsnew file mode 100644index 0000000000..b6b65e78b6--- /dev/null+++ b/apps/web/src/lib/queries/channel/graphql.ts@@ -0,0 +1,88 @@+import {+ type CacheHost,+ readRecordsByKeys,+ type SearchDocumentWire,+ selectRecords,+} from '@graphql-cache/index';+import {+ type GraphqlChannelQuickAccessFieldsFragment,+ GraphqlChannelQuickAccessFieldsFragmentDoc,+} from '@service-storage/graphql/generated/graphql';+import { match } from 'ts-pattern';++/** Minimal cached GraphQL channel fields used by Quick Access. */+export type CachedGraphqlChannel = {+ id: string;+ name: string;+ ownerId: string;+ channelType: 'direct_message' | 'private' | 'public' | 'team';+ participantIds: string[];+ createdAt: string;+ updatedAt: string;+ viewedAt?: string;+ interactedAt?: string;+};++function normalizeChannelType(+ channelType: string+): CachedGraphqlChannel['channelType'] {+ return match<string, CachedGraphqlChannel['channelType']>(+ channelType.toLowerCase()+ )+ .with('direct_message', () => 'direct_message')+ .with('private', () => 'private')+ .with('team', () => 'team')+ .otherwise(() => 'public');+}++/** Materializes supplied cached GraphQL channel search hits. */+export async function materializeCachedGraphqlChannels(+ cacheHost: Pick<CacheHost, 'readRecordsByKeys'>,+ documents: SearchDocumentWire[]+): Promise<CachedGraphqlChannel[]> {+ const channelDocuments = documents.filter((document) =>+ document.recordKey.startsWith('GraphqlSoupChannel:')+ );+ if (channelDocuments.length === 0) return [];++ const records = await readRecordsByKeys(+ cacheHost,+ selectRecords(GraphqlChannelQuickAccessFieldsFragmentDoc),+ channelDocuments.map((document) => document.recordKey)+ );++ return records.flatMap(({ recordKey, record }) => {+ const channel = record as GraphqlChannelQuickAccessFieldsFragment;+ if (channel.__typename !== 'GraphqlSoupChannel') return [];+ const separator = recordKey.indexOf(':');+ if (separator < 0) return [];++ return [+ {+ id: recordKey.slice(separator + 1),+ name: channel.name ?? '',+ ownerId: channel.ownerId,+ channelType: normalizeChannelType(channel.channelType),+ participantIds: channel.participants.map(({ userId }) => userId),+ createdAt: channel.createdAt,+ updatedAt: channel.updatedAt,+ viewedAt: channel.viewedAt ?? undefined,+ interactedAt: channel.interactedAt ?? undefined,+ },+ ];+ });+}++/** Reads the bounded recent channel list used for empty Quick Access menus. */+export async function readCachedGraphqlChannels(+ cacheHost: Pick<CacheHost, 'search' | 'readRecordsByKeys'>,+ limit = 50+): Promise<CachedGraphqlChannel[]> {+ const page = await cacheHost.search({+ profile: 'quick-access-v1',+ buckets: ['channel', 'dm'],+ query: '',+ limit,+ });+ return materializeCachedGraphqlChannels(cacheHost, page.documents);+}diff --git a/apps/web/src/lib/queries/channel/keys.ts b/apps/web/src/lib/queries/channel/keys.tsindex bf8e568782..a0e4bd10c2 100644--- a/apps/web/src/lib/queries/channel/keys.ts+++ b/apps/web/src/lib/queries/channel/keys.ts@@ -30,6 +30,9 @@ export const channelKeys = createQueryKeys('channel', {}),activity: null,listChannels: null,+ quickAccessGraphql: (cacheClientId: string) => ({+ queryKey: [cacheClientId],+ }),});export const ChannelNonceKeys = {diff --git a/apps/web/src/lib/queries/channel/tests/graphql.test.ts b/apps/web/src/lib/queries/channel/tests/graphql.test.tsnew file mode 100644index 0000000000..23fbf893d3--- /dev/null+++ b/apps/web/src/lib/queries/channel/tests/graphql.test.ts@@ -0,0 +1,100 @@+import type {+ CacheHost,+ ReadRecordsByKeysArgs,+ SearchCacheArgs,+ SearchCachePage,+} from '@graphql-cache/index';+import { expect, it, vi } from 'vitest';+import { readCachedGraphqlChannels } from '../graphql';++function cacheHost(+ search: (args: SearchCacheArgs) => Promise<SearchCachePage>,+ readRecordsByKeys: (+ args: ReadRecordsByKeysArgs+ ) => Promise<Array<{ recordKey: string; record: unknown }>>+): Pick<CacheHost, 'search' | 'readRecordsByKeys'> {+ return { search, readRecordsByKeys };+}++it('reads recent channels and DMs from the cache projection', async () => {+ const search = vi.fn(+ async (): Promise<SearchCachePage> => ({+ documents: [+ {+ profile: 'quick-access-v1',+ recordKey: 'GraphqlSoupChannel:channel-1',+ bucket: 'channel',+ searchText: 'general',+ timestampMs: 2,+ sourceHash: 'channel-hash',+ },+ {+ profile: 'quick-access-v1',+ recordKey: 'GraphqlSoupChannel:dm-1',+ bucket: 'dm',+ searchText: 'direct message',+ timestampMs: 1,+ sourceHash: 'dm-hash',+ },+ ],+ nextCursor: null,+ })+ );+ const readRecordsByKeys = vi.fn(async (args: ReadRecordsByKeysArgs) =>+ args.keys.map((recordKey) => ({+ recordKey,+ record: {+ __typename: 'GraphqlSoupChannel',+ name: recordKey.endsWith('dm-1') ? null : 'General',+ channelType: recordKey.endsWith('dm-1') ? 'direct_message' : 'public',+ ownerId: 'owner-1',+ createdAt: '2025-01-01T00:00:00.000Z',+ updatedAt: '2025-01-02T00:00:00.000Z',+ viewedAt: '2025-01-03T00:00:00.000Z',+ interactedAt: null,+ participants: [{ userId: 'user-1' }, { userId: 'user-2' }],+ },+ }))+ );++ const result = await readCachedGraphqlChannels(+ cacheHost(search, readRecordsByKeys)+ );++ expect(search).toHaveBeenCalledWith({+ profile: 'quick-access-v1',+ buckets: ['channel', 'dm'],+ query: '',+ limit: 50,+ });+ expect(readRecordsByKeys).toHaveBeenCalledWith(+ expect.objectContaining({+ fragmentName: 'GraphqlChannelQuickAccessFields',+ keys: ['GraphqlSoupChannel:channel-1', 'GraphqlSoupChannel:dm-1'],+ })+ );+ expect(result).toEqual([+ {+ id: 'channel-1',+ name: 'General',+ ownerId: 'owner-1',+ channelType: 'public',+ participantIds: ['user-1', 'user-2'],+ createdAt: '2025-01-01T00:00:00.000Z',+ updatedAt: '2025-01-02T00:00:00.000Z',+ viewedAt: '2025-01-03T00:00:00.000Z',+ interactedAt: undefined,+ },+ {+ id: 'dm-1',+ name: '',+ ownerId: 'owner-1',+ channelType: 'direct_message',+ participantIds: ['user-1', 'user-2'],+ createdAt: '2025-01-01T00:00:00.000Z',+ updatedAt: '2025-01-02T00:00:00.000Z',+ viewedAt: '2025-01-03T00:00:00.000Z',+ interactedAt: undefined,+ },+ ]);+});diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts b/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.tsindex a4891c75a3..944b62a6cc 100644--- a/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts+++ b/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts@@ -5532,6 +5532,8 @@ export type GraphqlChatQuickAccessNameFragment = { __typename: 'GraphqlSoupChat'export type GraphqlProjectQuickAccessNameFragment = { __typename: 'GraphqlSoupProject', name: string, ownerId: string, createdAt: string };+export type GraphqlChannelQuickAccessFieldsFragment = { __typename: 'GraphqlSoupChannel', name: string | null, channelType: string, ownerId: string, createdAt: string, updatedAt: string, viewedAt: string | null, interactedAt: string | null, participants: Array<{ userId: string }> };+export type NotificationUpdatesSubscriptionVariables = Exact<{ [key: string]: never; }>;@@ -8312,6 +8314,7 @@ export const GraphqlProjectHistoryFieldsFragmentDoc = {"kind":"Document","definiexport const GraphqlDocumentQuickAccessNameFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlDocumentQuickAccessName"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}}]}}]} as unknown as DocumentNode<GraphqlDocumentQuickAccessNameFragment, unknown>;export const GraphqlChatQuickAccessNameFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlChatQuickAccessName"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]} as unknown as DocumentNode<GraphqlChatQuickAccessNameFragment, unknown>;export const GraphqlProjectQuickAccessNameFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlProjectQuickAccessName"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]} as unknown as DocumentNode<GraphqlProjectQuickAccessNameFragment, unknown>;+export const GraphqlChannelQuickAccessFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlChannelQuickAccessFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}}]}}]} as unknown as DocumentNode<GraphqlChannelQuickAccessFieldsFragment, unknown>;export const SoupNotificationsEntityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationsEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"done"}},{"kind":"Field","name":{"kind":"Name","value":"seen"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}}]} as unknown as DocumentNode<SoupNotificationsEntityFieldsFragment, unknown>;export const MyActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyActivity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ActivityFeedInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"activity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityEventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nextCursor"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actorId"}},{"kind":"Field","name":{"kind":"Name","value":"subjectId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"occurredAt"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityPropertyChanged"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantAdded"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityCallStarted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityUnknownAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tag"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]}}]} as unknown as DocumentNode<MyActivityQuery, MyActivityQueryVariables>;export const MyActivityOverviewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyActivityOverview"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ActivityOverviewInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"activityOverview"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"total"}},{"kind":"Field","name":{"kind":"Name","value":"days"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}},{"kind":"Field","name":{"kind":"Name","value":"topEntities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}}]}}]}}]}}]} as unknown as DocumentNode<MyActivityOverviewQuery, MyActivityOverviewQueryVariables>;diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/history.graphql b/apps/web/src/lib/service-clients/service-storage/graphql/history.graphqlindex 78d7427e6f..64c4bab149 100644--- a/apps/web/src/lib/service-clients/service-storage/graphql/history.graphql+++ b/apps/web/src/lib/service-clients/service-storage/graphql/history.graphql@@ -65,3 +65,17 @@ fragment GraphqlProjectQuickAccessName on GraphqlSoupProject {ownerIdcreatedAt}++fragment GraphqlChannelQuickAccessFields on GraphqlSoupChannel {+ __typename+ name+ channelType+ ownerId+ createdAt+ updatedAt+ viewedAt+ interactedAt+ participants {+ userId+ }+}