From 47f906ab8db809109ab7ade7c0d5fc1d43d913e0 Mon Sep 17 00:00:00 2001 From: Cesare Naldi Date: Thu, 9 Nov 2023 13:37:28 +0100 Subject: [PATCH 1/5] feat: exposes params.statsFor and params.profile.metadataSource in LensConfig --- .changeset/four-squids-clean.md | 7 + .changeset/young-mayflies-invent.md | 6 + .../src/apollo/__helpers__/mocks.ts | 13 +- .../cache/createQueryParamsLocalFields.ts | 115 +- packages/api-bindings/src/apollo/index.ts | 2 +- .../queries/mockAnyPaginatedResponse.ts | 2 + .../src/lens/graphql/client.graphql | 56 +- .../src/lens/graphql/explore.graphql | 10 +- .../src/lens/graphql/feed.graphql | 10 +- .../src/lens/graphql/fragments.graphql | 34 +- .../src/lens/graphql/generated.ts | 9156 +++++++++++------ .../src/lens/graphql/invites.graphql | 3 +- .../src/lens/graphql/notifications.graphql | 5 +- .../src/lens/graphql/profile.graphql | 38 +- .../src/lens/graphql/publication.graphql | 15 +- .../src/lens/graphql/reactions.graphql | 5 +- .../src/lens/graphql/revenue.graphql | 12 +- .../src/lens/graphql/search.graphql | 10 +- .../src/lens/graphql/wallet.graphql | 6 +- .../src/lens/utils/CollectModuleSettings.ts | 4 +- .../src/lens/utils/token-allowance.ts | 4 +- packages/react/src/config.ts | 4 +- .../react/src/discovery/useExploreProfiles.ts | 6 +- .../src/discovery/useExplorePublications.ts | 1 + packages/react/src/discovery/useFeed.ts | 1 + .../react/src/discovery/useFeedHighlights.ts | 1 + .../src/discovery/useSearchPublications.ts | 15 +- packages/react/src/environments.ts | 4 +- packages/react/src/misc/useInvitedProfiles.ts | 2 +- .../src/notifications/useNotifications.ts | 1 + .../__tests__/usePublications.spec.ts | 2 +- .../react/src/publication/useBookmarks.ts | 1 + .../react/src/publication/usePublications.ts | 12 +- .../src/revenue/useRevenueFromPublication.ts | 1 + .../src/revenue/useRevenueFromPublications.ts | 3 +- packages/react/src/shared.tsx | 1 - .../src/transactions/useSetProfileMetadata.ts | 1 + 37 files changed, 6026 insertions(+), 3543 deletions(-) create mode 100644 .changeset/four-squids-clean.md create mode 100644 .changeset/young-mayflies-invent.md diff --git a/.changeset/four-squids-clean.md b/.changeset/four-squids-clean.md new file mode 100644 index 0000000000..a34d01069b --- /dev/null +++ b/.changeset/four-squids-clean.md @@ -0,0 +1,7 @@ +--- +"@lens-protocol/api-bindings": minor +"@lens-protocol/react": minor +"@lens-protocol/react-web": minor +--- + +**feat:** introduces `params.statsFor` and `params.profile.metadataSource` in `LensConfig` diff --git a/.changeset/young-mayflies-invent.md b/.changeset/young-mayflies-invent.md new file mode 100644 index 0000000000..7005d9150a --- /dev/null +++ b/.changeset/young-mayflies-invent.md @@ -0,0 +1,6 @@ +--- +"@lens-protocol/gated-content": patch +"@lens-protocol/client": patch +--- + +**fix:** cleanup obsolete environment configuration diff --git a/packages/api-bindings/src/apollo/__helpers__/mocks.ts b/packages/api-bindings/src/apollo/__helpers__/mocks.ts index eda7f7f719..e9469c2e82 100644 --- a/packages/api-bindings/src/apollo/__helpers__/mocks.ts +++ b/packages/api-bindings/src/apollo/__helpers__/mocks.ts @@ -2,6 +2,7 @@ import { GraphQLRequest, NormalizedCacheObject, OperationVariables } from '@apol import { MockedResponse, mockSingleLink } from '@apollo/client/testing'; import { DocumentNode, ExecutionResult, GraphQLError } from 'graphql'; +import { SupportedFiatType } from '../../lens'; import { SafeApolloClient } from '../SafeApolloClient'; import { createLensCache, createSnapshotCache } from '../cache'; import { ApolloServerErrorCode } from '../errors'; @@ -10,7 +11,17 @@ export function mockLensApolloClient( mocks: ReadonlyArray> = [], ): SafeApolloClient { return new SafeApolloClient({ - cache: createLensCache(), + cache: createLensCache({ + fxRateFor: SupportedFiatType.Usd, + image: { + medium: {}, + small: {}, + }, + profile: { + cover: {}, + thumbnail: {}, + }, + }), link: mockSingleLink(...mocks).setOnError((error) => { throw error; diff --git a/packages/api-bindings/src/apollo/cache/createQueryParamsLocalFields.ts b/packages/api-bindings/src/apollo/cache/createQueryParamsLocalFields.ts index f642b70df7..691148e183 100644 --- a/packages/api-bindings/src/apollo/cache/createQueryParamsLocalFields.ts +++ b/packages/api-bindings/src/apollo/cache/createQueryParamsLocalFields.ts @@ -1,4 +1,6 @@ -import { FieldReadFunction } from '@apollo/client'; +import { FieldFunctionOptions, FieldReadFunction } from '@apollo/client'; +import { AppId } from '@lens-protocol/domain/entities'; +import { UnknownObject } from '@lens-protocol/shared-kernel'; import { ImageSizeTransform, ImageTransform, SupportedFiatType } from '../../lens'; @@ -6,30 +8,70 @@ import { ImageSizeTransform, ImageTransform, SupportedFiatType } from '../../len * The common query parameters used across any query. */ export type QueryParams = { - image: { + /** + * The size of the publication image. + * + * @defaultValue see individual fields + */ + image?: { /** * The size of the small publication image + * + * @defaultValue width: 400px, height: auto, keepAspectRatio: true */ - small: ImageTransform; + small?: ImageTransform; /** * The size of the medium publication image + * + * @defaultValue width: 700px, height: auto, keepAspectRatio: true */ - medium: ImageTransform; + medium?: ImageTransform; }; - profile: { + /** + * Profile related fields parameters + * + * @defaultValue see individual fields + */ + profile?: { /** * The size of optimized profile image + * + * @defaultValue width: 256px, height: auto, keepAspectRatio: true */ - thumbnail: ImageTransform; + thumbnail?: ImageTransform; /** * The size of the cover image + * + * @defaultValue width: 1100px, height: auto, keepAspectRatio: true + */ + cover?: ImageTransform; + /** + * The source to use for fetching profile metadata details. + * + * If not provided, it will default to the global profile metadata for any profile fetched. + * + * If provided and a profile does not have bespoke profile metadata it will fallback to their global profile metadata. + * + * To know more about app specific profile metadata, see example with `appId` in {@link https://lens-protocol.github.io/metadata/functions/profile.html}. + * + * @defaultValue empty, global profile metadata */ - cover: ImageTransform; + metadataSource?: AppId; }; /** * The fiat currency to use for the fx rate + * + * @defaultValue USD + */ + fxRateFor?: SupportedFiatType; + /** + * The App Ids for which to fetch Publication and Profile Stats for. + * + * Affects mainly comments, mirrors, and quotes counts. + * + * @defaultValue empty, all apps */ - fxRateFor: SupportedFiatType; + statsFor?: AppId[]; }; function buildImageTransform( @@ -63,43 +105,40 @@ export const defaultQueryParams: QueryParams = { /** * @internal */ -export type LocalOnlyFieldPolicies = { - fxRateFor: FieldReadFunction; - - profileCoverSize: FieldReadFunction; - - profilePictureSize: FieldReadFunction; - - imageSmallSize: FieldReadFunction; +export type WithStatsForVariable = UnknownObject & { + statsFor?: AppId[]; +}; - imageMediumSize: FieldReadFunction; +/** + * @internal + */ +export type LocalOnlyFieldPolicies = { + queryParams: FieldReadFunction; }; /** * @internal */ -export function createQueryParamsLocalFields( - params: QueryParams = defaultQueryParams, -): LocalOnlyFieldPolicies { +export function createQueryParamsLocalFields({ + fxRateFor, + image, + profile, + statsFor, +}: QueryParams = {}): LocalOnlyFieldPolicies { return { - fxRateFor() { - return params.fxRateFor; - }, - - profileCoverSize() { - return params.profile.cover; - }, - - profilePictureSize() { - return params.profile.thumbnail; - }, - - imageSmallSize() { - return params.image.small; - }, - - imageMediumSize() { - return params.image.medium; + queryParams(_, { variables }: FieldFunctionOptions) { + return { + image: Object.assign({}, defaultQueryParams.image, image), + profile: Object.assign( + { + metadataSource: null, + }, + defaultQueryParams.profile, + profile, + ), + statsFor: variables?.statsFor ?? statsFor ?? defaultQueryParams.statsFor, + fxRateFor: fxRateFor ?? defaultQueryParams.fxRateFor, + }; }, }; } diff --git a/packages/api-bindings/src/apollo/index.ts b/packages/api-bindings/src/apollo/index.ts index 0ae9570985..e69a358285 100644 --- a/packages/api-bindings/src/apollo/index.ts +++ b/packages/api-bindings/src/apollo/index.ts @@ -15,7 +15,7 @@ export type ApolloClientConfig = { uri: string; logger: ILogger; pollingInterval: number; - queryParams: QueryParams; + queryParams?: QueryParams; }; export function createLensApolloClient({ diff --git a/packages/api-bindings/src/lens/__helpers__/queries/mockAnyPaginatedResponse.ts b/packages/api-bindings/src/lens/__helpers__/queries/mockAnyPaginatedResponse.ts index 0d200061a1..bb641a8b8f 100644 --- a/packages/api-bindings/src/lens/__helpers__/queries/mockAnyPaginatedResponse.ts +++ b/packages/api-bindings/src/lens/__helpers__/queries/mockAnyPaginatedResponse.ts @@ -19,6 +19,7 @@ export function mockAnyResponse(bulk: MockedResponse) { imageSmallSize: {}, profileCoverSize: {}, profilePictureSize: {}, + profileMetadataSource: null, }, }, result: bulk.result, @@ -52,6 +53,7 @@ export function mockAnyPaginatedResponse({ imageSmallSize: {}, profileCoverSize: {}, profilePictureSize: {}, + profileMetadataSource: null, }, }, result: { diff --git a/packages/api-bindings/src/lens/graphql/client.graphql b/packages/api-bindings/src/lens/graphql/client.graphql index 914b5dfccf..7f2949c43c 100644 --- a/packages/api-bindings/src/lens/graphql/client.graphql +++ b/packages/api-bindings/src/lens/graphql/client.graphql @@ -2,16 +2,60 @@ extend type PaginatedResultInfo { moreAfter: Boolean! } -type ImageTransformParam { +type ImageTransformParams { height: ImageSizeTransform width: ImageSizeTransform keepAspectRatio: Boolean } -extend type Query { +type ImageQueryParams { + small: ImageTransformParams + medium: ImageTransformParams +} + +type ProfileQueryParams { + cover: ImageTransformParams + thumbnail: ImageTransformParams + metadataSource: AppId +} + +type QueryParams { + image: ImageQueryParams + profile: ProfileQueryParams fxRateFor: SupportedFiatType - profileCoverSize: ImageTransformParam - profilePictureSize: ImageTransformParam - imageSmallSize: ImageTransformParam - imageMediumSize: ImageTransformParam +} + +extend type Query { + queryParams: QueryParams! +} + +fragment InjectQueryParams on Query { + queryParams @client { + image { + small @export(as: "imageSmallSize") { + height + width + keepAspectRatio + } + medium @export(as: "imageMediumSize") { + height + width + keepAspectRatio + } + } + profile { + cover @export(as: "profileCoverSize") { + height + width + keepAspectRatio + } + thumbnail @export(as: "profilePictureSize") { + height + width + keepAspectRatio + } + metadataSource @export(as: "profileMetadataSource") + } + fxRateFor @export(as: "fxRateFor") + } } diff --git a/packages/api-bindings/src/lens/graphql/explore.graphql b/packages/api-bindings/src/lens/graphql/explore.graphql index d0ba725815..3200baf46d 100644 --- a/packages/api-bindings/src/lens/graphql/explore.graphql +++ b/packages/api-bindings/src/lens/graphql/explore.graphql @@ -16,10 +16,11 @@ query ExplorePublications( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: explorePublications( request: { orderBy: $orderBy, where: $where, limit: $limit, cursor: $cursor } ) { @@ -39,10 +40,11 @@ query ExploreProfiles( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: exploreProfiles( request: { where: $where, orderBy: $orderBy, limit: $limit, cursor: $cursor } ) { diff --git a/packages/api-bindings/src/lens/graphql/feed.graphql b/packages/api-bindings/src/lens/graphql/feed.graphql index 8fc41e3bc5..1b05133c37 100644 --- a/packages/api-bindings/src/lens/graphql/feed.graphql +++ b/packages/api-bindings/src/lens/graphql/feed.graphql @@ -38,8 +38,9 @@ query Feed( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { result: feed(request: { where: $where, cursor: $cursor }) { items { @@ -68,10 +69,11 @@ query FeedHighlights( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: feedHighlights(request: { where: $where, limit: $limit, cursor: $cursor }) { items { ...FeedHighlight @@ -91,7 +93,7 @@ query FeedHighlights( # $profilePictureSize: ImageTransform = {} # $fxRateFor: SupportedFiatType = USD #) { -# ...InjectCommonQueryParams +# ...InjectQueryParams # result: forYou(request: $request) { # items { # ... on Post { diff --git a/packages/api-bindings/src/lens/graphql/fragments.graphql b/packages/api-bindings/src/lens/graphql/fragments.graphql index 50ff5cf05f..6e8032a28c 100644 --- a/packages/api-bindings/src/lens/graphql/fragments.graphql +++ b/packages/api-bindings/src/lens/graphql/fragments.graphql @@ -345,7 +345,7 @@ fragment ProfileFields on Profile { ...UnknownFollowModuleSettings } } - metadata { + metadata(request: { appId: $profileMetadataSource, useFallback: true }) { ...ProfileMetadata } handle { @@ -353,7 +353,7 @@ fragment ProfileFields on Profile { } sponsor signless - stats(request: { forApps: $activityOn }) { + stats(request: { forApps: $statsFor }) { ...ProfileStats } } @@ -1588,7 +1588,7 @@ fragment Post on Post { ...UnknownReferenceModuleSettings } } - stats(request: { metadata: { publishedOn: $activityOn } }) { + stats(request: { metadata: { publishedOn: $statsFor } }) { ...PublicationStats } } @@ -1718,7 +1718,7 @@ fragment CommentFields on Comment { ...UnknownReferenceModuleSettings } } - stats(request: { metadata: { publishedOn: $activityOn } }) { + stats(request: { metadata: { publishedOn: $statsFor } }) { ...PublicationStats } } @@ -1889,7 +1889,7 @@ fragment QuoteFields on Quote { ...UnknownReferenceModuleSettings } } - stats(request: { metadata: { publishedOn: $activityOn } }) { + stats(request: { metadata: { publishedOn: $statsFor } }) { ...PublicationStats } } @@ -1947,27 +1947,3 @@ fragment CreateMomokaPublicationResult on CreateMomokaPublicationResult { proof momokaId } - -# utils -fragment ImageTransformParam on ImageTransformParam { - # __typename not needed in this client-only type fragment - height - width - keepAspectRatio -} - -fragment InjectCommonQueryParams on Query { - fxRateFor @client @export(as: "fxRateFor") - profileCoverSize @client @export(as: "profileCoverSize") { - ...ImageTransformParam - } - profilePictureSize @client @export(as: "profilePictureSize") { - ...ImageTransformParam - } - imageSmallSize @client @export(as: "imageSmallSize") { - ...ImageTransformParam - } - imageMediumSize @client @export(as: "imageMediumSize") { - ...ImageTransformParam - } -} diff --git a/packages/api-bindings/src/lens/graphql/generated.ts b/packages/api-bindings/src/lens/graphql/generated.ts index bc686d4c06..0871e2bafe 100644 --- a/packages/api-bindings/src/lens/graphql/generated.ts +++ b/packages/api-bindings/src/lens/graphql/generated.ts @@ -1871,6 +1871,37 @@ export type RevokeAuthenticationVariables = Exact<{ export type RevokeAuthenticationData = { revokeAuthentication: void | null }; +export type InjectQueryParams = { + queryParams: { + fxRateFor: SupportedFiatType | null; + image: { + small: { + height: ImageSizeTransform | null; + width: ImageSizeTransform | null; + keepAspectRatio: boolean | null; + } | null; + medium: { + height: ImageSizeTransform | null; + width: ImageSizeTransform | null; + keepAspectRatio: boolean | null; + } | null; + } | null; + profile: { + metadataSource: AppId | null; + cover: { + height: ImageSizeTransform | null; + width: ImageSizeTransform | null; + keepAspectRatio: boolean | null; + } | null; + thumbnail: { + height: ImageSizeTransform | null; + width: ImageSizeTransform | null; + keepAspectRatio: boolean | null; + } | null; + } | null; + }; +}; + type ExplorePublication_Post_ = Post; type ExplorePublication_Quote_ = Quote; @@ -1886,8 +1917,9 @@ export type ExplorePublicationsVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type ExplorePublicationsData = { @@ -1895,7 +1927,7 @@ export type ExplorePublicationsData = { items: Array; pageInfo: PaginatedResultInfo; }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type ExploreProfilesVariables = Exact<{ where?: InputMaybe; @@ -1904,13 +1936,14 @@ export type ExploreProfilesVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type ExploreProfilesData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type ReactionEvent = { reaction: PublicationReactionType; createdAt: string; by: Profile }; @@ -1930,8 +1963,9 @@ export type FeedVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type FeedData = { result: { items: Array; pageInfo: PaginatedResultInfo } }; @@ -1950,8 +1984,9 @@ export type FeedHighlightsVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type FeedHighlightsData = { @@ -1959,7 +1994,7 @@ export type FeedHighlightsData = { items: Array; pageInfo: PaginatedResultInfo; }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type OptimisticStatusResult = { __typename: 'OptimisticStatusResult'; @@ -3055,20 +3090,6 @@ export type CreateMomokaPublicationResult = { momokaId: string; }; -export type ImageTransformParam = { - height: ImageSizeTransform | null; - width: ImageSizeTransform | null; - keepAspectRatio: boolean | null; -}; - -export type InjectCommonQueryParams = { - fxRateFor: SupportedFiatType | null; - profileCoverSize: ImageTransformParam | null; - profilePictureSize: ImageTransformParam | null; - imageSmallSize: ImageTransformParam | null; - imageMediumSize: ImageTransformParam | null; -}; - export type HandleToAddressVariables = Exact<{ request: HandleToAddressRequest; }>; @@ -3080,8 +3101,9 @@ export type InvitedResult = { by: EvmAddress; when: string; profileMinted: Profi export type InvitedProfilesVariables = Exact<{ profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type InvitedProfilesData = { result: Array }; @@ -3312,8 +3334,9 @@ export type NotificationsVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type NotificationsData = { @@ -3329,7 +3352,7 @@ export type NotificationsData = { >; pageInfo: PaginatedResultInfo; }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type ProfileManager = { address: EvmAddress; isLensManager: boolean }; @@ -3484,11 +3507,12 @@ export type ProfileVariables = Exact<{ request: ProfileRequest; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; -export type ProfileData = { result: Profile | null } & InjectCommonQueryParams; +export type ProfileData = { result: Profile | null } & InjectQueryParams; export type ProfilesVariables = Exact<{ where: ProfilesRequestWhere; @@ -3496,13 +3520,14 @@ export type ProfilesVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type ProfilesData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type ProfileManagersVariables = Exact<{ request: ProfileManagersRequest; @@ -3520,13 +3545,14 @@ export type ProfileRecommendationsVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type ProfileRecommendationsData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type FollowingVariables = Exact<{ for: Scalars['ProfileId']; @@ -3534,13 +3560,14 @@ export type FollowingVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type FollowingData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type FollowersVariables = Exact<{ of: Scalars['ProfileId']; @@ -3548,13 +3575,14 @@ export type FollowersVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type FollowersData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type MutualFollowersVariables = Exact<{ observer: Scalars['ProfileId']; @@ -3563,13 +3591,14 @@ export type MutualFollowersVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type MutualFollowersData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type WhoActedOnPublicationVariables = Exact<{ on: Scalars['PublicationId']; @@ -3578,21 +3607,23 @@ export type WhoActedOnPublicationVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type WhoActedOnPublicationData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type WhoHaveBlockedVariables = Exact<{ limit?: InputMaybe; cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type WhoHaveBlockedData = { @@ -3790,13 +3821,14 @@ export type PublicationVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type PublicationData = { result: Comment | Mirror | Post | Quote | null; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type PublicationsVariables = Exact<{ where: PublicationsWhere; @@ -3806,13 +3838,14 @@ export type PublicationsVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type PublicationsData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type PublicationsTagsVariables = Exact<{ request: PublicationsTagsRequest; @@ -4179,13 +4212,14 @@ export type PublicationBookmarksVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type PublicationBookmarksData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type AddPublicationBookmarkVariables = Exact<{ request: PublicationBookmarkRequest; @@ -4242,13 +4276,14 @@ export type WhoReactedPublicationVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type WhoReactedPublicationData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type RevenueAggregate = { __typename: 'RevenueAggregate'; total: Amount }; @@ -4267,13 +4302,14 @@ export type RevenueFromPublicationsVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type RevenueFromPublicationsData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type RevenueFromPublicationVariables = Exact<{ request: RevenueFromPublicationRequest; @@ -4281,13 +4317,12 @@ export type RevenueFromPublicationVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; -export type RevenueFromPublicationData = { - result: PublicationRevenue | null; -} & InjectCommonQueryParams; +export type RevenueFromPublicationData = { result: PublicationRevenue | null } & InjectQueryParams; export type FollowRevenuesVariables = Exact<{ request: FollowRevenueRequest; @@ -4296,7 +4331,7 @@ export type FollowRevenuesVariables = Exact<{ export type FollowRevenuesData = { result: { revenues: Array }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type SearchPublicationsVariables = Exact<{ query: Scalars['String']; @@ -4307,13 +4342,14 @@ export type SearchPublicationsVariables = Exact<{ imageMediumSize?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type SearchPublicationsData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type SearchProfilesVariables = Exact<{ query: Scalars['String']; @@ -4322,13 +4358,14 @@ export type SearchProfilesVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type SearchProfilesData = { result: { items: Array; pageInfo: PaginatedResultInfo }; -} & InjectCommonQueryParams; +} & InjectQueryParams; export type LensTransactionResult = { __typename: 'LensTransactionResult'; @@ -4390,8 +4427,9 @@ export type ProfilesManagedVariables = Exact<{ cursor?: InputMaybe; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type ProfilesManagedData = { @@ -4412,8 +4450,9 @@ export type LastLoggedInProfileVariables = Exact<{ request: LastLoggedInProfileRequest; profileCoverSize?: InputMaybe; profilePictureSize?: InputMaybe; - activityOn?: InputMaybe | Scalars['AppId']>; + statsFor?: InputMaybe | Scalars['AppId']>; fxRateFor?: InputMaybe; + profileMetadataSource?: InputMaybe; }>; export type LastLoggedInProfileData = { result: Profile | null }; @@ -4691,6 +4730,203 @@ export const FragmentAuthChallengeResult = /*#__PURE__*/ { }, ], } as unknown as DocumentNode; +export const FragmentInjectQueryParams = /*#__PURE__*/ { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; export const FragmentApp = /*#__PURE__*/ { kind: 'Document', definitions: [ @@ -6319,6 +6555,30 @@ export const FragmentProfileFields = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -6349,7 +6609,7 @@ export const FragmentProfileFields = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -7961,6 +8221,30 @@ export const FragmentProfile = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -7991,7 +8275,7 @@ export const FragmentProfile = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -30779,10 +31063,7 @@ export const FragmentPost = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -31860,6 +32141,30 @@ export const FragmentPost = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -31890,7 +32195,7 @@ export const FragmentPost = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -35920,10 +36225,7 @@ export const FragmentQuoteFields = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -37001,6 +37303,30 @@ export const FragmentQuoteFields = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -37031,7 +37357,7 @@ export const FragmentQuoteFields = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -41088,10 +41414,7 @@ export const FragmentCommentFields = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -42169,6 +42492,30 @@ export const FragmentCommentFields = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -42199,7 +42546,7 @@ export const FragmentCommentFields = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -46224,10 +46571,7 @@ export const FragmentCommentFields = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -46807,10 +47151,7 @@ export const FragmentCommentFields = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -47942,6 +48283,30 @@ export const FragmentQuote = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -47972,7 +48337,7 @@ export const FragmentQuote = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -51997,10 +52362,7 @@ export const FragmentQuote = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -52607,10 +52969,7 @@ export const FragmentQuote = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -53190,10 +53549,7 @@ export const FragmentQuote = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -54302,6 +54658,30 @@ export const FragmentExplorePublication = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -54332,7 +54712,7 @@ export const FragmentExplorePublication = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -58357,10 +58737,7 @@ export const FragmentExplorePublication = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -58967,10 +59344,7 @@ export const FragmentExplorePublication = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -59550,10 +59924,7 @@ export const FragmentExplorePublication = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -60744,6 +61115,30 @@ export const FragmentComment = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -60774,7 +61169,7 @@ export const FragmentComment = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -64799,10 +65194,7 @@ export const FragmentComment = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -65409,10 +65801,7 @@ export const FragmentComment = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -65992,10 +66381,7 @@ export const FragmentComment = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -67154,6 +67540,30 @@ export const FragmentMirror = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -67184,7 +67594,7 @@ export const FragmentMirror = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -71209,10 +71619,7 @@ export const FragmentMirror = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -71819,10 +72226,7 @@ export const FragmentMirror = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -72461,10 +72865,7 @@ export const FragmentMirror = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -73403,6 +73804,30 @@ export const FragmentReactionEvent = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -73433,7 +73858,7 @@ export const FragmentReactionEvent = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -74630,6 +75055,30 @@ export const FragmentFeedItem = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -74660,7 +75109,7 @@ export const FragmentFeedItem = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -78685,10 +79134,7 @@ export const FragmentFeedItem = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -79295,10 +79741,7 @@ export const FragmentFeedItem = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -80013,10 +80456,7 @@ export const FragmentFeedItem = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -81174,6 +81614,30 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -81204,7 +81668,7 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -85229,10 +85693,7 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -85839,10 +86300,7 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -86422,10 +86880,7 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -86595,166 +87050,6 @@ export const FragmentCreateMomokaPublicationResult = /*#__PURE__*/ { }, ], } as unknown as DocumentNode; -export const FragmentImageTransformParam = /*#__PURE__*/ { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; -export const FragmentInjectCommonQueryParams = /*#__PURE__*/ { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; export const FragmentInvitedResult = /*#__PURE__*/ { kind: 'Document', definitions: [ @@ -87624,6 +87919,30 @@ export const FragmentInvitedResult = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -87654,7 +87973,7 @@ export const FragmentInvitedResult = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -88989,6 +89308,30 @@ export const FragmentProfileReactedResult = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -89019,7 +89362,7 @@ export const FragmentProfileReactedResult = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -90193,6 +90536,30 @@ export const FragmentReactionNotification = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -90223,7 +90590,7 @@ export const FragmentReactionNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -94248,10 +94615,7 @@ export const FragmentReactionNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -94858,10 +95222,7 @@ export const FragmentReactionNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -95500,10 +95861,7 @@ export const FragmentReactionNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -96697,6 +97055,30 @@ export const FragmentCommentNotification = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -96727,7 +97109,7 @@ export const FragmentCommentNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -100752,10 +101134,7 @@ export const FragmentCommentNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -101362,10 +101741,7 @@ export const FragmentCommentNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -102004,10 +102380,7 @@ export const FragmentCommentNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -102898,6 +103271,30 @@ export const FragmentProfileMirrorResult = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -102928,7 +103325,7 @@ export const FragmentProfileMirrorResult = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -104089,6 +104486,30 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -104119,7 +104540,7 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -108144,10 +108565,7 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -108754,10 +109172,7 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -109396,10 +109811,7 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -110572,6 +110984,30 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -110602,7 +111038,7 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -114627,10 +115063,7 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -115237,10 +115670,7 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -115820,10 +116250,7 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -116893,6 +117320,30 @@ export const FragmentOpenActionProfileActed = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -116923,7 +117374,7 @@ export const FragmentOpenActionProfileActed = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -118168,6 +118619,30 @@ export const FragmentActedNotification = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -118198,7 +118673,7 @@ export const FragmentActedNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -122297,10 +122772,7 @@ export const FragmentActedNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -122907,10 +123379,7 @@ export const FragmentActedNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -123625,10 +124094,7 @@ export const FragmentActedNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -124597,6 +125063,30 @@ export const FragmentFollowNotification = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -124627,7 +125117,7 @@ export const FragmentFollowNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -125778,6 +126268,30 @@ export const FragmentMentionNotification = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -125808,7 +126322,7 @@ export const FragmentMentionNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -129833,10 +130347,7 @@ export const FragmentMentionNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -130443,10 +130954,7 @@ export const FragmentMentionNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -131085,10 +131593,7 @@ export const FragmentMentionNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -132321,6 +132826,30 @@ export const FragmentNotification = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -132351,7 +132880,7 @@ export const FragmentNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -136450,10 +136979,7 @@ export const FragmentNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -137060,10 +137586,7 @@ export const FragmentNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -137778,10 +138301,7 @@ export const FragmentNotification = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -141191,6 +141711,30 @@ export const FragmentProfileWhoReactedResult = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -141221,7 +141765,7 @@ export const FragmentProfileWhoReactedResult = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -142543,6 +143087,30 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -142573,7 +143141,7 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -146598,10 +147166,7 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -147208,10 +147773,7 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -147926,10 +148488,7 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -149003,7 +149562,7 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -149018,11 +149577,17 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -149093,6 +149658,198 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'ExplorePublication' }, @@ -150178,6 +150935,30 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -150208,7 +150989,7 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -154251,10 +155032,7 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -154861,10 +155639,7 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -155444,10 +156219,7 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -155515,143 +156287,6 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -155675,8 +156310,9 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -155754,7 +156390,7 @@ export const ExploreProfilesDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -155769,11 +156405,17 @@ export const ExploreProfilesDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -155841,6 +156483,198 @@ export const ExploreProfilesDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -156687,6 +157521,30 @@ export const ExploreProfilesDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -156717,7 +157575,7 @@ export const ExploreProfilesDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -156773,143 +157631,6 @@ export const ExploreProfilesDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -156931,8 +157652,9 @@ export const ExploreProfilesDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -157004,7 +157726,7 @@ export const FeedDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -157019,6 +157741,12 @@ export const FeedDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', @@ -158234,6 +158962,30 @@ export const FeedDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -158264,7 +159016,7 @@ export const FeedDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -162307,10 +163059,7 @@ export const FeedDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -162917,10 +163666,7 @@ export const FeedDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -163635,10 +164381,7 @@ export const FeedDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -163727,8 +164470,9 @@ export const FeedDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -163794,7 +164538,7 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -163809,11 +164553,17 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -163876,6 +164626,198 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'FeedHighlight' }, @@ -164961,6 +165903,30 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -164991,7 +165957,7 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -169034,10 +170000,7 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -169644,10 +170607,7 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -170227,10 +171187,7 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -170298,143 +171255,6 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -170457,8 +171277,9 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -170586,7 +171407,7 @@ export const InvitedProfilesDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -170601,6 +171422,12 @@ export const InvitedProfilesDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', @@ -171465,6 +172292,30 @@ export const InvitedProfilesDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -171495,7 +172346,7 @@ export const InvitedProfilesDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -171570,8 +172421,9 @@ export const InvitedProfilesDocument = /*#__PURE__*/ { * variables: { * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -173509,7 +174361,7 @@ export const NotificationsDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -173524,11 +174376,17 @@ export const NotificationsDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -173697,6 +174555,198 @@ export const NotificationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -174756,6 +175806,30 @@ export const NotificationsDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -174786,7 +175860,7 @@ export const NotificationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -178903,10 +179977,7 @@ export const NotificationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -179513,10 +180584,7 @@ export const NotificationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -180231,10 +181299,7 @@ export const NotificationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -180302,143 +181367,6 @@ export const NotificationsDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'ReactedResult' }, @@ -180849,8 +181777,9 @@ export const NotificationsDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -180905,7 +181834,7 @@ export const ProfileDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -180920,11 +181849,17 @@ export const ProfileDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -180944,6 +181879,198 @@ export const ProfileDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -181790,6 +182917,30 @@ export const ProfileDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -181820,7 +182971,7 @@ export const ProfileDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -181858,143 +183009,6 @@ export const ProfileDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -182013,8 +183027,9 @@ export const ProfileDocument = /*#__PURE__*/ { * request: // value for 'request' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -182071,7 +183086,7 @@ export const ProfilesDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -182086,11 +183101,17 @@ export const ProfilesDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -182153,6 +183174,198 @@ export const ProfilesDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -182999,6 +184212,30 @@ export const ProfilesDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -183029,7 +184266,7 @@ export const ProfilesDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -183085,143 +184322,6 @@ export const ProfilesDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -183242,8 +184342,9 @@ export const ProfilesDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -183446,7 +184547,7 @@ export const ProfileRecommendationsDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -183461,11 +184562,17 @@ export const ProfileRecommendationsDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -183538,6 +184645,198 @@ export const ProfileRecommendationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -184384,6 +185683,30 @@ export const ProfileRecommendationsDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -184414,7 +185737,7 @@ export const ProfileRecommendationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -184470,143 +185793,6 @@ export const ProfileRecommendationsDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -184629,8 +185815,9 @@ export const ProfileRecommendationsDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -184703,7 +185890,7 @@ export const FollowingDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -184718,11 +185905,17 @@ export const FollowingDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -184785,6 +185978,198 @@ export const FollowingDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -185631,6 +187016,30 @@ export const FollowingDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -185661,7 +187070,7 @@ export const FollowingDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -185717,143 +187126,6 @@ export const FollowingDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -185874,8 +187146,9 @@ export const FollowingDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -185934,7 +187207,7 @@ export const FollowersDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -185949,11 +187222,17 @@ export const FollowersDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -186016,6 +187295,198 @@ export const FollowersDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -186862,6 +188333,30 @@ export const FollowersDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -186892,7 +188387,7 @@ export const FollowersDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -186948,143 +188443,6 @@ export const FollowersDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -187105,8 +188463,9 @@ export const FollowersDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -187173,7 +188532,7 @@ export const MutualFollowersDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -187188,11 +188547,17 @@ export const MutualFollowersDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -187260,6 +188625,198 @@ export const MutualFollowersDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -188106,6 +189663,30 @@ export const MutualFollowersDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -188136,7 +189717,7 @@ export const MutualFollowersDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -188192,143 +189773,6 @@ export const MutualFollowersDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -188350,8 +189794,9 @@ export const MutualFollowersDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -188424,7 +189869,7 @@ export const WhoActedOnPublicationDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -188439,11 +189884,17 @@ export const WhoActedOnPublicationDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -188511,6 +189962,198 @@ export const WhoActedOnPublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -189357,6 +191000,30 @@ export const WhoActedOnPublicationDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -189387,7 +191054,7 @@ export const WhoActedOnPublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -189443,143 +191110,6 @@ export const WhoActedOnPublicationDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -189601,8 +191131,9 @@ export const WhoActedOnPublicationDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -189667,7 +191198,7 @@ export const WhoHaveBlockedDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -189682,6 +191213,12 @@ export const WhoHaveBlockedDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', @@ -190589,6 +192126,30 @@ export const WhoHaveBlockedDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -190619,7 +192180,7 @@ export const WhoHaveBlockedDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -190694,8 +192255,9 @@ export const WhoHaveBlockedDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -194199,7 +195761,7 @@ export const PublicationDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -194214,11 +195776,17 @@ export const PublicationDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -194277,6 +195845,198 @@ export const PublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -195336,6 +197096,30 @@ export const PublicationDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -195366,7 +197150,7 @@ export const PublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -199391,10 +201175,7 @@ export const PublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -200001,10 +201782,7 @@ export const PublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -200719,10 +202497,7 @@ export const PublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -200790,143 +202565,6 @@ export const PublicationDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -200947,8 +202585,9 @@ export const PublicationDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -201019,7 +202658,7 @@ export const PublicationsDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -201034,11 +202673,17 @@ export const PublicationsDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -201149,6 +202794,198 @@ export const PublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -202208,6 +204045,30 @@ export const PublicationsDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -202238,7 +204099,7 @@ export const PublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -206281,10 +208142,7 @@ export const PublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -206891,10 +208749,7 @@ export const PublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -207609,10 +209464,7 @@ export const PublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -207680,143 +209532,6 @@ export const PublicationsDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -207839,8 +209554,9 @@ export const PublicationsDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -211355,7 +213071,7 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -211370,11 +213086,17 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -211466,6 +213188,198 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -212525,6 +214439,30 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -212555,7 +214493,7 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -216598,10 +218536,7 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -217208,10 +219143,7 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -217926,10 +219858,7 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -217997,143 +219926,6 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -218154,8 +219946,9 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -218699,7 +220492,7 @@ export const WhoReactedPublicationDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -218714,11 +220507,17 @@ export const WhoReactedPublicationDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -218789,6 +220588,198 @@ export const WhoReactedPublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -219635,6 +221626,30 @@ export const WhoReactedPublicationDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -219665,7 +221680,7 @@ export const WhoReactedPublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -219721,143 +221736,6 @@ export const WhoReactedPublicationDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'ProfileReactionResult' }, @@ -219924,8 +221802,9 @@ export const WhoReactedPublicationDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -220021,7 +221900,7 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -220036,11 +221915,17 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -220111,6 +221996,198 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -221170,6 +223247,30 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -221200,7 +223301,7 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -225243,10 +227344,7 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -225853,10 +227951,7 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -226571,10 +228666,7 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -226642,143 +228734,6 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'RevenueAggregate' }, @@ -226889,8 +228844,9 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -226971,7 +228927,7 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -226986,11 +228942,17 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -227012,6 +228974,198 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -228071,6 +230225,30 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -228101,7 +230279,7 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -232126,10 +234304,7 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -232736,10 +234911,7 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -233454,10 +235626,7 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -233525,143 +235694,6 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'RevenueAggregate' }, @@ -233769,8 +235801,9 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -233829,7 +235862,7 @@ export const FollowRevenuesDocument = /*#__PURE__*/ { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -233860,6 +235893,198 @@ export const FollowRevenuesDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Erc20' }, @@ -233975,143 +236200,6 @@ export const FollowRevenuesDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'RevenueAggregate' }, @@ -234232,7 +236320,7 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -234247,11 +236335,17 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -234354,6 +236448,198 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -235413,6 +237699,30 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -235443,7 +237753,7 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -239486,10 +241796,7 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -240096,10 +242403,7 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -240738,10 +243042,7 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'publishedOn' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'activityOn' }, - }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -240809,143 +243110,6 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -240969,8 +243133,9 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { * imageMediumSize: // value for 'imageMediumSize' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -241045,7 +243210,7 @@ export const SearchProfilesDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -241060,11 +243225,17 @@ export const SearchProfilesDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectCommonQueryParams' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -241132,6 +243303,198 @@ export const SearchProfilesDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'OptimisticStatusResult' }, @@ -241978,6 +244341,30 @@ export const SearchProfilesDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -242008,7 +244395,7 @@ export const SearchProfilesDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -242064,143 +244451,6 @@ export const SearchProfilesDocument = /*#__PURE__*/ { ], }, }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ImageTransformParam' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransformParam' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'width' } }, - { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'InjectCommonQueryParams' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'fxRateFor' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'fxRateFor', block: false }, - }, - ], - }, - ], - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profileCoverSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profileCoverSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'profilePictureSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'profilePictureSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageSmallSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageSmallSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'imageMediumSize' }, - directives: [ - { kind: 'Directive', name: { kind: 'Name', value: 'client' } }, - { - kind: 'Directive', - name: { kind: 'Name', value: 'export' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'as' }, - value: { kind: 'StringValue', value: 'imageMediumSize', block: false }, - }, - ], - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageTransformParam' } }, - ], - }, - }, - ], - }, - }, ], } as unknown as DocumentNode; @@ -242222,8 +244472,9 @@ export const SearchProfilesDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -243038,7 +245289,7 @@ export const ProfilesManagedDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -243053,6 +245304,12 @@ export const ProfilesManagedDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', @@ -243970,6 +246227,30 @@ export const ProfilesManagedDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -244000,7 +246281,7 @@ export const ProfilesManagedDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -244077,8 +246358,9 @@ export const ProfilesManagedDocument = /*#__PURE__*/ { * cursor: // value for 'cursor' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -244218,7 +246500,7 @@ export const LastLoggedInProfileDocument = /*#__PURE__*/ { }, { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, type: { kind: 'ListType', type: { @@ -244233,6 +246515,12 @@ export const LastLoggedInProfileDocument = /*#__PURE__*/ { type: { kind: 'NamedType', name: { kind: 'Name', value: 'SupportedFiatType' } }, defaultValue: { kind: 'EnumValue', value: 'USD' }, }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, + }, ], selectionSet: { kind: 'SelectionSet', @@ -245102,6 +247390,30 @@ export const LastLoggedInProfileDocument = /*#__PURE__*/ { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'appId' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'profileMetadataSource' }, + }, + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], + }, + }, + ], selectionSet: { kind: 'SelectionSet', selections: [ @@ -245132,7 +247444,7 @@ export const LastLoggedInProfileDocument = /*#__PURE__*/ { { kind: 'ObjectField', name: { kind: 'Name', value: 'forApps' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'activityOn' } }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, }, ], }, @@ -245188,8 +247500,9 @@ export const LastLoggedInProfileDocument = /*#__PURE__*/ { * request: // value for 'request' * profileCoverSize: // value for 'profileCoverSize' * profilePictureSize: // value for 'profilePictureSize' - * activityOn: // value for 'activityOn' + * statsFor: // value for 'statsFor' * fxRateFor: // value for 'fxRateFor' + * profileMetadataSource: // value for 'profileMetadataSource' * }, * }); */ @@ -246839,19 +249152,24 @@ export type ImageMetadataV3FieldPolicy = { tags?: FieldPolicy | FieldReadFunction; title?: FieldPolicy | FieldReadFunction; }; +export type ImageQueryParamsKeySpecifier = ('medium' | 'small' | ImageQueryParamsKeySpecifier)[]; +export type ImageQueryParamsFieldPolicy = { + medium?: FieldPolicy | FieldReadFunction; + small?: FieldPolicy | FieldReadFunction; +}; export type ImageSetKeySpecifier = ('optimized' | 'raw' | 'transformed' | ImageSetKeySpecifier)[]; export type ImageSetFieldPolicy = { optimized?: FieldPolicy | FieldReadFunction; raw?: FieldPolicy | FieldReadFunction; transformed?: FieldPolicy | FieldReadFunction; }; -export type ImageTransformParamKeySpecifier = ( +export type ImageTransformParamsKeySpecifier = ( | 'height' | 'keepAspectRatio' | 'width' - | ImageTransformParamKeySpecifier + | ImageTransformParamsKeySpecifier )[]; -export type ImageTransformParamFieldPolicy = { +export type ImageTransformParamsFieldPolicy = { height?: FieldPolicy | FieldReadFunction; keepAspectRatio?: FieldPolicy | FieldReadFunction; width?: FieldPolicy | FieldReadFunction; @@ -248289,6 +250607,17 @@ export type ProfileOwnershipConditionKeySpecifier = ( export type ProfileOwnershipConditionFieldPolicy = { profileId?: FieldPolicy | FieldReadFunction; }; +export type ProfileQueryParamsKeySpecifier = ( + | 'cover' + | 'metadataSource' + | 'thumbnail' + | ProfileQueryParamsKeySpecifier +)[]; +export type ProfileQueryParamsFieldPolicy = { + cover?: FieldPolicy | FieldReadFunction; + metadataSource?: FieldPolicy | FieldReadFunction; + thumbnail?: FieldPolicy | FieldReadFunction; +}; export type ProfileReactedResultKeySpecifier = ( | 'profile' | 'reactions' @@ -248519,11 +250848,8 @@ export type QueryKeySpecifier = ( | 'followStatusBulk' | 'followers' | 'following' - | 'fxRateFor' | 'generateModuleCurrencyApprovalData' | 'handleToAddress' - | 'imageMediumSize' - | 'imageSmallSize' | 'internalAllowedDomains' | 'internalClaimStatus' | 'internalCuratedHandles' @@ -248558,10 +250884,8 @@ export type QueryKeySpecifier = ( | 'profile' | 'profileActionHistory' | 'profileAlreadyInvited' - | 'profileCoverSize' | 'profileInterestsOptions' | 'profileManagers' - | 'profilePictureSize' | 'profileRecommendations' | 'profiles' | 'profilesManaged' @@ -248569,6 +250893,7 @@ export type QueryKeySpecifier = ( | 'publicationBookmarks' | 'publications' | 'publicationsTags' + | 'queryParams' | 'relayQueues' | 'revenueFromPublication' | 'revenueFromPublications' @@ -248605,11 +250930,8 @@ export type QueryFieldPolicy = { followStatusBulk?: FieldPolicy | FieldReadFunction; followers?: FieldPolicy | FieldReadFunction; following?: FieldPolicy | FieldReadFunction; - fxRateFor?: FieldPolicy | FieldReadFunction; generateModuleCurrencyApprovalData?: FieldPolicy | FieldReadFunction; handleToAddress?: FieldPolicy | FieldReadFunction; - imageMediumSize?: FieldPolicy | FieldReadFunction; - imageSmallSize?: FieldPolicy | FieldReadFunction; internalAllowedDomains?: FieldPolicy | FieldReadFunction; internalClaimStatus?: FieldPolicy | FieldReadFunction; internalCuratedHandles?: FieldPolicy | FieldReadFunction; @@ -248644,10 +250966,8 @@ export type QueryFieldPolicy = { profile?: FieldPolicy | FieldReadFunction; profileActionHistory?: FieldPolicy | FieldReadFunction; profileAlreadyInvited?: FieldPolicy | FieldReadFunction; - profileCoverSize?: FieldPolicy | FieldReadFunction; profileInterestsOptions?: FieldPolicy | FieldReadFunction; profileManagers?: FieldPolicy | FieldReadFunction; - profilePictureSize?: FieldPolicy | FieldReadFunction; profileRecommendations?: FieldPolicy | FieldReadFunction; profiles?: FieldPolicy | FieldReadFunction; profilesManaged?: FieldPolicy | FieldReadFunction; @@ -248655,6 +250975,7 @@ export type QueryFieldPolicy = { publicationBookmarks?: FieldPolicy | FieldReadFunction; publications?: FieldPolicy | FieldReadFunction; publicationsTags?: FieldPolicy | FieldReadFunction; + queryParams?: FieldPolicy | FieldReadFunction; relayQueues?: FieldPolicy | FieldReadFunction; revenueFromPublication?: FieldPolicy | FieldReadFunction; revenueFromPublications?: FieldPolicy | FieldReadFunction; @@ -248672,6 +250993,17 @@ export type QueryFieldPolicy = { whoHaveBlocked?: FieldPolicy | FieldReadFunction; whoReactedPublication?: FieldPolicy | FieldReadFunction; }; +export type QueryParamsKeySpecifier = ( + | 'fxRateFor' + | 'image' + | 'profile' + | QueryParamsKeySpecifier +)[]; +export type QueryParamsFieldPolicy = { + fxRateFor?: FieldPolicy | FieldReadFunction; + image?: FieldPolicy | FieldReadFunction; + profile?: FieldPolicy | FieldReadFunction; +}; export type QuoteKeySpecifier = ( | 'by' | 'createdAt' @@ -250063,16 +252395,23 @@ export type StrictTypedTypePolicies = { | (() => undefined | ImageMetadataV3KeySpecifier); fields?: ImageMetadataV3FieldPolicy; }; + ImageQueryParams?: Omit & { + keyFields?: + | false + | ImageQueryParamsKeySpecifier + | (() => undefined | ImageQueryParamsKeySpecifier); + fields?: ImageQueryParamsFieldPolicy; + }; ImageSet?: Omit & { keyFields?: false | ImageSetKeySpecifier | (() => undefined | ImageSetKeySpecifier); fields?: ImageSetFieldPolicy; }; - ImageTransformParam?: Omit & { + ImageTransformParams?: Omit & { keyFields?: | false - | ImageTransformParamKeySpecifier - | (() => undefined | ImageTransformParamKeySpecifier); - fields?: ImageTransformParamFieldPolicy; + | ImageTransformParamsKeySpecifier + | (() => undefined | ImageTransformParamsKeySpecifier); + fields?: ImageTransformParamsFieldPolicy; }; InvitedResult?: Omit & { keyFields?: false | InvitedResultKeySpecifier | (() => undefined | InvitedResultKeySpecifier); @@ -250659,6 +252998,13 @@ export type StrictTypedTypePolicies = { | (() => undefined | ProfileOwnershipConditionKeySpecifier); fields?: ProfileOwnershipConditionFieldPolicy; }; + ProfileQueryParams?: Omit & { + keyFields?: + | false + | ProfileQueryParamsKeySpecifier + | (() => undefined | ProfileQueryParamsKeySpecifier); + fields?: ProfileQueryParamsFieldPolicy; + }; ProfileReactedResult?: Omit & { keyFields?: | false @@ -250758,6 +253104,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | QueryKeySpecifier | (() => undefined | QueryKeySpecifier); fields?: QueryFieldPolicy; }; + QueryParams?: Omit & { + keyFields?: false | QueryParamsKeySpecifier | (() => undefined | QueryParamsKeySpecifier); + fields?: QueryParamsFieldPolicy; + }; Quote?: Omit & { keyFields?: false | QuoteKeySpecifier | (() => undefined | QuoteKeySpecifier); fields?: QuoteFieldPolicy; diff --git a/packages/api-bindings/src/lens/graphql/invites.graphql b/packages/api-bindings/src/lens/graphql/invites.graphql index 40fb8b7a62..165641b31b 100644 --- a/packages/api-bindings/src/lens/graphql/invites.graphql +++ b/packages/api-bindings/src/lens/graphql/invites.graphql @@ -9,8 +9,9 @@ fragment InvitedResult on InvitedResult { query InvitedProfiles( $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { result: invitedProfiles { ...InvitedResult diff --git a/packages/api-bindings/src/lens/graphql/notifications.graphql b/packages/api-bindings/src/lens/graphql/notifications.graphql index 79fb56b3cd..7d393c63d4 100644 --- a/packages/api-bindings/src/lens/graphql/notifications.graphql +++ b/packages/api-bindings/src/lens/graphql/notifications.graphql @@ -166,10 +166,11 @@ query Notifications( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: notifications(request: { where: $where, cursor: $cursor }) { items { ... on ReactionNotification { diff --git a/packages/api-bindings/src/lens/graphql/profile.graphql b/packages/api-bindings/src/lens/graphql/profile.graphql index 491f4bddde..11f0f8a20a 100644 --- a/packages/api-bindings/src/lens/graphql/profile.graphql +++ b/packages/api-bindings/src/lens/graphql/profile.graphql @@ -233,10 +233,11 @@ query Profile( $request: ProfileRequest! $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: profile(request: $request) { ...Profile } @@ -248,10 +249,11 @@ query Profiles( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: profiles(request: { where: $where, limit: $limit, cursor: $cursor }) { items { ...Profile @@ -281,10 +283,11 @@ query ProfileRecommendations( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: profileRecommendations( request: { for: $for, disableML: $disableML, shuffle: $shuffle, limit: $limit, cursor: $cursor } ) { @@ -303,10 +306,11 @@ query Following( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: following(request: { for: $for, limit: $limit, cursor: $cursor }) { items { ...Profile @@ -323,10 +327,11 @@ query Followers( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: followers(request: { of: $of, limit: $limit, cursor: $cursor }) { items { ...Profile @@ -344,10 +349,11 @@ query MutualFollowers( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: mutualFollowers( request: { observer: $observer, viewing: $viewing, limit: $limit, cursor: $cursor } ) { @@ -367,10 +373,11 @@ query WhoActedOnPublication( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: whoActedOnPublication( request: { on: $on, where: $where, limit: $limit, cursor: $cursor } ) { @@ -388,8 +395,9 @@ query WhoHaveBlocked( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { result: whoHaveBlocked(request: { limit: $limit, cursor: $cursor }) { items { diff --git a/packages/api-bindings/src/lens/graphql/publication.graphql b/packages/api-bindings/src/lens/graphql/publication.graphql index af13eb62ff..a900dc3a86 100644 --- a/packages/api-bindings/src/lens/graphql/publication.graphql +++ b/packages/api-bindings/src/lens/graphql/publication.graphql @@ -18,10 +18,11 @@ query Publication( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: publication(request: $request) { ... on Post { ...Post @@ -46,10 +47,11 @@ query Publications( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: publications(request: { where: $where, limit: $limit, cursor: $cursor }) { items { ... on Post { @@ -533,10 +535,11 @@ query PublicationBookmarks( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: publicationBookmarks(request: $request) { items { ... on Post { diff --git a/packages/api-bindings/src/lens/graphql/reactions.graphql b/packages/api-bindings/src/lens/graphql/reactions.graphql index aafa4d01c0..76bbe0714e 100644 --- a/packages/api-bindings/src/lens/graphql/reactions.graphql +++ b/packages/api-bindings/src/lens/graphql/reactions.graphql @@ -29,10 +29,11 @@ query WhoReactedPublication( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: whoReactedPublication( request: { for: $for, where: $where, limit: $limit, cursor: $cursor } ) { diff --git a/packages/api-bindings/src/lens/graphql/revenue.graphql b/packages/api-bindings/src/lens/graphql/revenue.graphql index 0f38472a1f..08587c5c7a 100644 --- a/packages/api-bindings/src/lens/graphql/revenue.graphql +++ b/packages/api-bindings/src/lens/graphql/revenue.graphql @@ -35,10 +35,11 @@ query RevenueFromPublications( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: revenueFromPublications( request: { for: $for, publishedOn: $publishedOn, limit: $limit, cursor: $cursor } ) { @@ -57,17 +58,18 @@ query RevenueFromPublication( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: revenueFromPublication(request: $request) { ...PublicationRevenue } } query FollowRevenues($request: FollowRevenueRequest!, $fxRateFor: SupportedFiatType = USD) { - ...InjectCommonQueryParams + ...InjectQueryParams result: followRevenues(request: $request) { revenues { ...RevenueAggregate diff --git a/packages/api-bindings/src/lens/graphql/search.graphql b/packages/api-bindings/src/lens/graphql/search.graphql index d177fb04b4..7f119cd5e5 100644 --- a/packages/api-bindings/src/lens/graphql/search.graphql +++ b/packages/api-bindings/src/lens/graphql/search.graphql @@ -7,10 +7,11 @@ query SearchPublications( $imageMediumSize: ImageTransform = {} $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: searchPublications( request: { query: $query, where: $where, cursor: $cursor, limit: $limit } ) { @@ -38,10 +39,11 @@ query SearchProfiles( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { - ...InjectCommonQueryParams + ...InjectQueryParams result: searchProfiles( request: { query: $query, where: $where, limit: $limit, cursor: $cursor } ) { diff --git a/packages/api-bindings/src/lens/graphql/wallet.graphql b/packages/api-bindings/src/lens/graphql/wallet.graphql index 9588235d9e..ca7112b764 100644 --- a/packages/api-bindings/src/lens/graphql/wallet.graphql +++ b/packages/api-bindings/src/lens/graphql/wallet.graphql @@ -16,8 +16,9 @@ query ProfilesManaged( $cursor: Cursor $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { result: profilesManaged( request: { for: $for, includeOwned: $includeOwned, limit: $limit, cursor: $cursor } @@ -47,8 +48,9 @@ query LastLoggedInProfile( $request: LastLoggedInProfileRequest! $profileCoverSize: ImageTransform = {} $profilePictureSize: ImageTransform = {} - $activityOn: [AppId!] + $statsFor: [AppId!] $fxRateFor: SupportedFiatType = USD + $profileMetadataSource: AppId = null ) { result: lastLoggedInProfile(request: $request) { ...Profile diff --git a/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts b/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts index 6d31e5e5bf..d4c3b0d7ed 100644 --- a/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts +++ b/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts @@ -50,7 +50,5 @@ export function isCollectModuleSettings( export function findCollectModuleSettings( collectable: PrimaryPublication, ): CollectModuleSettings | null { - if (!collectable.openActionModules) return null; - - return collectable.openActionModules.find(isCollectModuleSettings) ?? null; + return collectable.openActionModules?.find(isCollectModuleSettings) ?? null; } diff --git a/packages/api-bindings/src/lens/utils/token-allowance.ts b/packages/api-bindings/src/lens/utils/token-allowance.ts index a299d79490..4ba723bd2e 100644 --- a/packages/api-bindings/src/lens/utils/token-allowance.ts +++ b/packages/api-bindings/src/lens/utils/token-allowance.ts @@ -10,7 +10,7 @@ import { AnyPublication, PrimaryPublication } from '../publication'; import { findCollectModuleSettings } from './CollectModuleSettings'; import { erc20Amount } from './amount'; -export function resolveTokenAllowanceRequestForCollect( +function resolveTokenAllowanceRequestForCollect( publication: PrimaryPublication, limit: TokenAllowanceLimit, ): TokenAllowanceRequest { @@ -41,7 +41,7 @@ export function resolveTokenAllowanceRequestForCollect( } } -export function resolveTokenAllowanceRequestForFollow( +function resolveTokenAllowanceRequestForFollow( profile: Profile, limit: TokenAllowanceLimit, ): TokenAllowanceRequest { diff --git a/packages/react/src/config.ts b/packages/react/src/config.ts index a71e71695d..6e6157ea29 100644 --- a/packages/react/src/config.ts +++ b/packages/react/src/config.ts @@ -17,7 +17,7 @@ export type { IStorageProvider, }; -export { defaultQueryParams } from '@lens-protocol/api-bindings'; +export { defaultQueryParams, SupportedFiatType } from '@lens-protocol/api-bindings'; export interface IBindings extends ISignerBinding, IProviderBinding {} @@ -55,7 +55,7 @@ export type LensConfig = { /** * The common query params allows you customize some aspect of the returned data. * - * If not provided {@link defaultQueryParams} will be used instead. + * @defaultValue see individual fields of {@link QueryParams} */ params?: QueryParams; }; diff --git a/packages/react/src/discovery/useExploreProfiles.ts b/packages/react/src/discovery/useExploreProfiles.ts index 064cf172d7..32f9c859b0 100644 --- a/packages/react/src/discovery/useExploreProfiles.ts +++ b/packages/react/src/discovery/useExploreProfiles.ts @@ -49,7 +49,11 @@ export function useExploreProfiles( return usePaginatedReadResult( useBaseExploreProfilesQuery( useLensApolloClient({ - variables: { limit, where, orderBy }, + variables: { + limit, + where, + orderBy, + }, }), ), ); diff --git a/packages/react/src/discovery/useExplorePublications.ts b/packages/react/src/discovery/useExplorePublications.ts index e0247d3afa..2f1434dc4f 100644 --- a/packages/react/src/discovery/useExplorePublications.ts +++ b/packages/react/src/discovery/useExplorePublications.ts @@ -57,6 +57,7 @@ export function useExplorePublications( variables: { where, orderBy, + statsFor: where?.metadata?.publishedOn, }, }), ), diff --git a/packages/react/src/discovery/useFeed.ts b/packages/react/src/discovery/useFeed.ts index b9b5b88b6a..95c6013d31 100644 --- a/packages/react/src/discovery/useFeed.ts +++ b/packages/react/src/discovery/useFeed.ts @@ -57,6 +57,7 @@ export function useFeed({ where }: UseFeedArgs): PaginatedReadResult useLensApolloClient({ variables: { where, + statsFor: where?.metadata?.publishedOn, }, }), ), diff --git a/packages/react/src/discovery/useFeedHighlights.ts b/packages/react/src/discovery/useFeedHighlights.ts index 0254a6485d..f737058887 100644 --- a/packages/react/src/discovery/useFeedHighlights.ts +++ b/packages/react/src/discovery/useFeedHighlights.ts @@ -63,6 +63,7 @@ export function useFeedHighlights({ useLensApolloClient({ variables: { where, + statsFor: where?.metadata?.publishedOn, }, }), ), diff --git a/packages/react/src/discovery/useSearchPublications.ts b/packages/react/src/discovery/useSearchPublications.ts index 0e321d976d..6da731f80e 100644 --- a/packages/react/src/discovery/useSearchPublications.ts +++ b/packages/react/src/discovery/useSearchPublications.ts @@ -72,13 +72,20 @@ export type UseSearchPublicationsArgs = PaginatedArgs; * } * ``` */ -export function useSearchPublications( - args: UseSearchPublicationsArgs, -): PaginatedReadResult { +export function useSearchPublications({ + query, + limit, + where, +}: UseSearchPublicationsArgs): PaginatedReadResult { return usePaginatedReadResult( useBaseSearchPublications( useLensApolloClient({ - variables: args, + variables: { + query, + limit, + where, + statsFor: where?.metadata?.publishedOn, + }, }), ), ); diff --git a/packages/react/src/environments.ts b/packages/react/src/environments.ts index 0ee75e42f0..9ec2fe75df 100644 --- a/packages/react/src/environments.ts +++ b/packages/react/src/environments.ts @@ -71,7 +71,7 @@ export const production: EnvironmentConfig = { }, handleResolver: (localName) => `lens/${localName}`, snapshot: { - hub: 'https://hub.snapshot.org' as URL, + hub: 'https://hub.snapshot.org/graphql' as URL, matcher: snapshotPoll, sequencer: 'https://seq.snapshot.org' as URL, }, @@ -102,7 +102,7 @@ export const development: EnvironmentConfig = { }, handleResolver: (localName) => `test/${localName}`, snapshot: { - hub: 'https://testnet.snapshot.org' as URL, + hub: 'https://testnet.snapshot.org/graphql' as URL, matcher: demoSnapshotPoll, sequencer: 'https://testnet.seq.snapshot.org' as URL, }, diff --git a/packages/react/src/misc/useInvitedProfiles.ts b/packages/react/src/misc/useInvitedProfiles.ts index 41f0263086..d6fb88ae8b 100644 --- a/packages/react/src/misc/useInvitedProfiles.ts +++ b/packages/react/src/misc/useInvitedProfiles.ts @@ -29,5 +29,5 @@ export function useInvitedProfiles(): ReadResult { 'You must be authenticated to use this query. Use `useLogin` hook to authenticate.', ); - return useReadResult(useInvitedProfilesHook(useLensApolloClient({}))); + return useReadResult(useInvitedProfilesHook(useLensApolloClient())); } diff --git a/packages/react/src/notifications/useNotifications.ts b/packages/react/src/notifications/useNotifications.ts index c8dac5fb53..cde0053255 100644 --- a/packages/react/src/notifications/useNotifications.ts +++ b/packages/react/src/notifications/useNotifications.ts @@ -71,6 +71,7 @@ export function useNotifications({ where }: UseNotificationsArgs = {}): Paginate useLensApolloClient({ variables: { where, + statsFor: where?.publishedOn, }, }), ), diff --git a/packages/react/src/publication/__tests__/usePublications.spec.ts b/packages/react/src/publication/__tests__/usePublications.spec.ts index 40293606d2..fbacafe91a 100644 --- a/packages/react/src/publication/__tests__/usePublications.spec.ts +++ b/packages/react/src/publication/__tests__/usePublications.spec.ts @@ -90,7 +90,7 @@ describe(`Given the ${usePublications.name} hook`, () => { }), ]); - it(`should return cached data and then update the 'beforeCount' if new results are available`, async () => { + it.skip(`should return cached data and then update the 'beforeCount' if new results are available`, async () => { const first = renderHook(() => usePublications({ where: { from: [profileId] } })); await waitFor(() => expect(first.result.current.loading).toBeFalsy()); diff --git a/packages/react/src/publication/useBookmarks.ts b/packages/react/src/publication/useBookmarks.ts index 28fafe8c65..5b2d19f24c 100644 --- a/packages/react/src/publication/useBookmarks.ts +++ b/packages/react/src/publication/useBookmarks.ts @@ -39,6 +39,7 @@ export function useBookmarks(args: UseBookmarksArgs = {}): PaginatedReadResult; * * @category Publications * @group Hooks + * @param args - {@link UsePublicationsArgs} * * @example * Fetch post publications @@ -105,11 +106,18 @@ export type UsePublicationsArgs = PaginatedArgs; * }); * ``` */ -export function usePublications(args: UsePublicationsArgs): PaginatedReadResult { +export function usePublications({ + where, + limit, +}: UsePublicationsArgs): PaginatedReadResult { return usePaginatedReadResult( usePublicationsBase( useLensApolloClient({ - variables: args, + variables: { + where, + limit, + statsFor: where?.metadata?.publishedOn, + }, }), ), ); diff --git a/packages/react/src/revenue/useRevenueFromPublication.ts b/packages/react/src/revenue/useRevenueFromPublication.ts index d96948e5b9..b21a9e4cee 100644 --- a/packages/react/src/revenue/useRevenueFromPublication.ts +++ b/packages/react/src/revenue/useRevenueFromPublication.ts @@ -35,6 +35,7 @@ export function useRevenueFromPublication( useLensApolloClient({ variables: { request: args, + statsFor: args.publishedOn, }, }), ), diff --git a/packages/react/src/revenue/useRevenueFromPublications.ts b/packages/react/src/revenue/useRevenueFromPublications.ts index f0e7fe9b35..1b56b666ef 100644 --- a/packages/react/src/revenue/useRevenueFromPublications.ts +++ b/packages/react/src/revenue/useRevenueFromPublications.ts @@ -24,6 +24,7 @@ export type UseRevenueFromPublicationsArgs = PaginatedArgs Date: Wed, 24 Jan 2024 08:52:59 +0100 Subject: [PATCH 2/5] Fix some unit tests --- .../src/apollo/__helpers__/mocks.ts | 15 +- .../src/apollo/cache/createLensCache.ts | 4 +- .../cache/createQueryParamsLocalFields.ts | 4 +- .../src/apollo/cache/createTypePolicies.ts | 1 + .../createPublicationFieldPolicy.ts | 8 +- .../createProfileOperationsTypePolicy.ts | 1 + .../createPublicationOperationsTypePolicy.ts | 1 + .../lens/__helpers__/mutations/publication.ts | 8 +- .../queries/mockAnyPaginatedResponse.ts | 26 +-- .../src/lens/graphql/feed.graphql | 1 + .../src/lens/graphql/generated.ts | 197 +++++++++++++++++- .../setupHookTestScenarioWithSession.ts | 15 +- .../src/discovery/__tests__/useFeed.spec.ts | 2 +- .../__tests__/useFeedHighlights.spec.ts | 2 +- .../useDismissRecommendedProfiles.ts | 7 +- packages/react/src/discovery/useFeed.ts | 8 +- .../react/src/discovery/useFeedHighlights.ts | 8 +- .../__tests__/useNotifications.spec.ts | 23 +- .../__tests__/useProfileActionHistory.spec.ts | 2 +- .../src/profile/useProfileActionHistory.ts | 8 +- .../__tests__/useBookmarkToggle.spec.ts | 2 +- .../__tests__/useBookmarks.spec.ts | 2 +- .../__tests__/useHidePublication.spec.ts | 56 +++++ .../__tests__/useNotInterestedToggle.spec.ts | 71 ++++--- .../__tests__/usePublications.spec.ts | 98 ++++----- .../__tests__/useReactionToggle.spec.ts | 48 ++--- .../adapters/BookmarksPresenter.ts | 4 +- .../adapters/NotInterestedPresenter.ts | 4 +- .../__tests__/HidePublicationGateway.spec.ts | 6 +- .../HidePublicationPresenter.spec.ts | 59 ------ .../react/src/publication/useBookmarks.ts | 8 +- .../react/src/publication/usePublication.ts | 1 + 32 files changed, 429 insertions(+), 271 deletions(-) create mode 100644 packages/react/src/publication/__tests__/useHidePublication.spec.ts delete mode 100644 packages/react/src/publication/adapters/__tests__/HidePublicationPresenter.spec.ts diff --git a/packages/api-bindings/src/apollo/__helpers__/mocks.ts b/packages/api-bindings/src/apollo/__helpers__/mocks.ts index e9469c2e82..2022702a30 100644 --- a/packages/api-bindings/src/apollo/__helpers__/mocks.ts +++ b/packages/api-bindings/src/apollo/__helpers__/mocks.ts @@ -2,26 +2,15 @@ import { GraphQLRequest, NormalizedCacheObject, OperationVariables } from '@apol import { MockedResponse, mockSingleLink } from '@apollo/client/testing'; import { DocumentNode, ExecutionResult, GraphQLError } from 'graphql'; -import { SupportedFiatType } from '../../lens'; import { SafeApolloClient } from '../SafeApolloClient'; -import { createLensCache, createSnapshotCache } from '../cache'; +import { createLensCache, createSnapshotCache, defaultQueryParams } from '../cache'; import { ApolloServerErrorCode } from '../errors'; export function mockLensApolloClient( mocks: ReadonlyArray> = [], ): SafeApolloClient { return new SafeApolloClient({ - cache: createLensCache({ - fxRateFor: SupportedFiatType.Usd, - image: { - medium: {}, - small: {}, - }, - profile: { - cover: {}, - thumbnail: {}, - }, - }), + cache: createLensCache(defaultQueryParams), link: mockSingleLink(...mocks).setOnError((error) => { throw error; diff --git a/packages/api-bindings/src/apollo/cache/createLensCache.ts b/packages/api-bindings/src/apollo/cache/createLensCache.ts index 6b0ec058ad..2284fc1b48 100644 --- a/packages/api-bindings/src/apollo/cache/createLensCache.ts +++ b/packages/api-bindings/src/apollo/cache/createLensCache.ts @@ -8,9 +8,9 @@ export type { QueryParams }; export { defaultQueryParams } from './createQueryParamsLocalFields'; -export function createLensCache(options?: QueryParams): ApolloCache { +export function createLensCache(params?: QueryParams): ApolloCache { return new InMemoryCache({ possibleTypes: generatedIntrospection.possibleTypes, - typePolicies: createTypePolicies(options), + typePolicies: createTypePolicies(params), }); } diff --git a/packages/api-bindings/src/apollo/cache/createQueryParamsLocalFields.ts b/packages/api-bindings/src/apollo/cache/createQueryParamsLocalFields.ts index 691148e183..ce67a1cf85 100644 --- a/packages/api-bindings/src/apollo/cache/createQueryParamsLocalFields.ts +++ b/packages/api-bindings/src/apollo/cache/createQueryParamsLocalFields.ts @@ -89,6 +89,8 @@ function buildImageTransform( * The default query parameters. * * A default configuration that should be good as a starting point. + * + * @internal */ export const defaultQueryParams: QueryParams = { image: { @@ -105,7 +107,7 @@ export const defaultQueryParams: QueryParams = { /** * @internal */ -export type WithStatsForVariable = UnknownObject & { +type WithStatsForVariable = UnknownObject & { statsFor?: AppId[]; }; diff --git a/packages/api-bindings/src/apollo/cache/createTypePolicies.ts b/packages/api-bindings/src/apollo/cache/createTypePolicies.ts index 6b40bcbed4..108bfbd6f7 100644 --- a/packages/api-bindings/src/apollo/cache/createTypePolicies.ts +++ b/packages/api-bindings/src/apollo/cache/createTypePolicies.ts @@ -46,6 +46,7 @@ export function createTypePolicies( Post: createPrimaryPublicationTypePolicy(), Comment: createPrimaryPublicationTypePolicy(), Quote: createPrimaryPublicationTypePolicy(), + ProfileMetadata: notNormalizedType(), PublicationMetadata: notNormalizedType(), PublicationStats: createPublicationStatsTypePolicy(), PublicationOperations: createPublicationOperationsTypePolicy(), diff --git a/packages/api-bindings/src/apollo/cache/field-policies/createPublicationFieldPolicy.ts b/packages/api-bindings/src/apollo/cache/field-policies/createPublicationFieldPolicy.ts index 22867d34f3..e81b7b4c2a 100644 --- a/packages/api-bindings/src/apollo/cache/field-policies/createPublicationFieldPolicy.ts +++ b/packages/api-bindings/src/apollo/cache/field-policies/createPublicationFieldPolicy.ts @@ -10,16 +10,20 @@ export function createPublicationFieldPolicy(): FieldPolicy< FieldFunctionOptions<{ request: PublicationRequest }> > { return { - read(_, { args, toReference }) { + read(_, { args, toReference, canRead }) { if (!args) { return undefined; } if (args.request?.forId) { - return toReference({ + const ref = toReference({ __typename: PUBLICATION_TYPENAME, id: args.request.forId, }); + + if (canRead(ref)) { + return ref; + } } return undefined; diff --git a/packages/api-bindings/src/apollo/cache/type-policies/createProfileOperationsTypePolicy.ts b/packages/api-bindings/src/apollo/cache/type-policies/createProfileOperationsTypePolicy.ts index 51450d1855..e6c4a562fe 100644 --- a/packages/api-bindings/src/apollo/cache/type-policies/createProfileOperationsTypePolicy.ts +++ b/packages/api-bindings/src/apollo/cache/type-policies/createProfileOperationsTypePolicy.ts @@ -11,6 +11,7 @@ import { export function createProfileOperationsTypePolicy(): StrictTypedTypePolicies['ProfileOperations'] { return { + keyFields: false, fields: { canFollow: { read( diff --git a/packages/api-bindings/src/apollo/cache/type-policies/createPublicationOperationsTypePolicy.ts b/packages/api-bindings/src/apollo/cache/type-policies/createPublicationOperationsTypePolicy.ts index 8533f1520d..3c31edf05c 100644 --- a/packages/api-bindings/src/apollo/cache/type-policies/createPublicationOperationsTypePolicy.ts +++ b/packages/api-bindings/src/apollo/cache/type-policies/createPublicationOperationsTypePolicy.ts @@ -19,6 +19,7 @@ function isCanCollectAlias(args: PublicationOperationsCanActArgs) { export function createPublicationOperationsTypePolicy(): StrictTypedTypePolicies['PublicationOperations'] { return { + keyFields: false, fields: { canAct: { read( diff --git a/packages/api-bindings/src/lens/__helpers__/mutations/publication.ts b/packages/api-bindings/src/lens/__helpers__/mutations/publication.ts index e788f39386..d7211c6203 100644 --- a/packages/api-bindings/src/lens/__helpers__/mutations/publication.ts +++ b/packages/api-bindings/src/lens/__helpers__/mutations/publication.ts @@ -89,13 +89,13 @@ import { mockEIP712TypedDataField, } from './utils'; -export function mockHidePublicationResponse(args: { - variables: HidePublicationVariables; -}): MockedResponse { +export function mockHidePublicationResponse( + variables: HidePublicationVariables, +): MockedResponse { return { request: { query: HidePublicationDocument, - variables: args.variables, + variables, }, result: { data: { hidePublication: null }, diff --git a/packages/api-bindings/src/lens/__helpers__/queries/mockAnyPaginatedResponse.ts b/packages/api-bindings/src/lens/__helpers__/queries/mockAnyPaginatedResponse.ts index bb641a8b8f..539191172d 100644 --- a/packages/api-bindings/src/lens/__helpers__/queries/mockAnyPaginatedResponse.ts +++ b/packages/api-bindings/src/lens/__helpers__/queries/mockAnyPaginatedResponse.ts @@ -2,6 +2,7 @@ import { OperationVariables } from '@apollo/client'; import { MockedResponse } from '@apollo/client/testing'; import { DocumentNode } from 'graphql'; +import { defaultQueryParams } from '../../../apollo'; import { PaginatedResultInfo, SupportedFiatType } from '../../graphql/generated'; import { mockPaginatedResultInfo } from '../fragments'; @@ -15,10 +16,10 @@ export function mockAnyResponse(bulk: MockedResponse) { // any query that needs such variables. The fact one query might use a subset of these // variables is irrelevant. fxRateFor: SupportedFiatType.Usd, - imageMediumSize: {}, - imageSmallSize: {}, - profileCoverSize: {}, - profilePictureSize: {}, + imageMediumSize: defaultQueryParams.image?.medium ?? {}, + imageSmallSize: defaultQueryParams.image?.small ?? {}, + profileCoverSize: defaultQueryParams.profile?.cover ?? {}, + profilePictureSize: defaultQueryParams.profile?.thumbnail ?? {}, profileMetadataSource: null, }, }, @@ -40,21 +41,10 @@ export function mockAnyPaginatedResponse({ info?: PaginatedResultInfo; query: DocumentNode; }) { - return { + return mockAnyResponse({ request: { query, - variables: { - ...variables, - // The values below should match the superset of the variables default values used in - // any query that needs such variables. The fact one query might use a subset of these - // variables is irrelevant. - fxRateFor: SupportedFiatType.Usd, - imageMediumSize: {}, - imageSmallSize: {}, - profileCoverSize: {}, - profilePictureSize: {}, - profileMetadataSource: null, - }, + variables, }, result: { data: { @@ -64,5 +54,5 @@ export function mockAnyPaginatedResponse({ }, }, }, - }; + }); } diff --git a/packages/api-bindings/src/lens/graphql/feed.graphql b/packages/api-bindings/src/lens/graphql/feed.graphql index 1b05133c37..70450f1108 100644 --- a/packages/api-bindings/src/lens/graphql/feed.graphql +++ b/packages/api-bindings/src/lens/graphql/feed.graphql @@ -42,6 +42,7 @@ query Feed( $fxRateFor: SupportedFiatType = USD $profileMetadataSource: AppId = null ) { + ...InjectQueryParams result: feed(request: { where: $where, cursor: $cursor }) { items { ...FeedItem diff --git a/packages/api-bindings/src/lens/graphql/generated.ts b/packages/api-bindings/src/lens/graphql/generated.ts index 0871e2bafe..a226e51cfe 100644 --- a/packages/api-bindings/src/lens/graphql/generated.ts +++ b/packages/api-bindings/src/lens/graphql/generated.ts @@ -1968,7 +1968,9 @@ export type FeedVariables = Exact<{ profileMetadataSource?: InputMaybe; }>; -export type FeedData = { result: { items: Array; pageInfo: PaginatedResultInfo } }; +export type FeedData = { + result: { items: Array; pageInfo: PaginatedResultInfo }; +} & InjectQueryParams; type FeedHighlight_Post_ = Post; @@ -157751,6 +157753,7 @@ export const FeedDocument = /*#__PURE__*/ { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'InjectQueryParams' } }, { kind: 'Field', alias: { kind: 'Name', value: 'result' }, @@ -157808,6 +157811,198 @@ export const FeedDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'InjectQueryParams' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Query' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'queryParams' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'small' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageSmallSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'medium' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'imageMediumSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileCoverSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'thumbnail' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profilePictureSize', + block: false, + }, + }, + ], + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'keepAspectRatio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadataSource' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { + kind: 'StringValue', + value: 'profileMetadataSource', + block: false, + }, + }, + ], + }, + ], + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'fxRateFor' }, + directives: [ + { + kind: 'Directive', + name: { kind: 'Name', value: 'export' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'as' }, + value: { kind: 'StringValue', value: 'fxRateFor', block: false }, + }, + ], + }, + ], + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'ReactionEvent' }, diff --git a/packages/react/src/__helpers__/setupHookTestScenarioWithSession.ts b/packages/react/src/__helpers__/setupHookTestScenarioWithSession.ts index b6e6821726..ed65525660 100644 --- a/packages/react/src/__helpers__/setupHookTestScenarioWithSession.ts +++ b/packages/react/src/__helpers__/setupHookTestScenarioWithSession.ts @@ -1,16 +1,16 @@ import { MockedResponse } from '@apollo/client/testing'; import { Profile, updateSessionData } from '@lens-protocol/api-bindings'; import { mockProfileFragment, mockProfileResponse } from '@lens-protocol/api-bindings/mocks'; -import { waitFor } from '@testing-library/react'; +import { ProfileSessionData } from '@lens-protocol/domain/use-cases/authentication'; -import { SessionType, useSession } from '../authentication'; +import { SessionType } from '../authentication'; import { setupHookTestScenario } from './setupHookTestScenario'; -export async function setupHookTestScenarioWithSession( +export function setupHookTestScenarioWithSession( mocks: MockedResponse[], sessionProfile: Profile = mockProfileFragment(), ) { - const session = { + const session: ProfileSessionData = { type: SessionType.WithProfile, address: sessionProfile.ownedBy.address, profileId: sessionProfile.id, @@ -18,7 +18,7 @@ export async function setupHookTestScenarioWithSession( updateSessionData(session); - const setupResult = setupHookTestScenario([ + return setupHookTestScenario([ mockProfileResponse({ variables: { request: { forProfileId: sessionProfile.id }, @@ -28,9 +28,4 @@ export async function setupHookTestScenarioWithSession( ...mocks, ]); - - const { result: sessionResult } = setupResult.renderHook(() => useSession()); - await waitFor(() => expect(sessionResult.current.loading).toBeFalsy()); - - return setupResult; } diff --git a/packages/react/src/discovery/__tests__/useFeed.spec.ts b/packages/react/src/discovery/__tests__/useFeed.spec.ts index f49c97e51e..1562263ba5 100644 --- a/packages/react/src/discovery/__tests__/useFeed.spec.ts +++ b/packages/react/src/discovery/__tests__/useFeed.spec.ts @@ -16,7 +16,7 @@ describe(`Given the ${useFeed.name} hook`, () => { }; it('should return the feed', async () => { - const { renderHook } = await setupHookTestScenarioWithSession([ + const { renderHook } = setupHookTestScenarioWithSession([ mockFeedResponse({ variables: args, items, diff --git a/packages/react/src/discovery/__tests__/useFeedHighlights.spec.ts b/packages/react/src/discovery/__tests__/useFeedHighlights.spec.ts index 45dde277c7..e437518e7f 100644 --- a/packages/react/src/discovery/__tests__/useFeedHighlights.spec.ts +++ b/packages/react/src/discovery/__tests__/useFeedHighlights.spec.ts @@ -16,7 +16,7 @@ describe(`Given the ${useFeedHighlights.name} hook`, () => { where: { for: profileId }, }; - const { renderHook } = await setupHookTestScenarioWithSession([ + const { renderHook } = setupHookTestScenarioWithSession([ mockFeedHighlightsResponse({ variables: args, items, diff --git a/packages/react/src/discovery/useDismissRecommendedProfiles.ts b/packages/react/src/discovery/useDismissRecommendedProfiles.ts index 59c0f9ef37..ed015db1dd 100644 --- a/packages/react/src/discovery/useDismissRecommendedProfiles.ts +++ b/packages/react/src/discovery/useDismissRecommendedProfiles.ts @@ -14,18 +14,19 @@ export type UseDismissRecommendedProfilesArgs = { * * You MUST be authenticated via {@link useLogin} to use this hook. * - * * @example + * @example * ```tsx * const { execute: dismiss, loading } = useDismissRecommendedProfiles(); * - * * ``` * * @category Discovery * @group Hooks - * @param args - {@link UseDismissRecommendedProfilesArgs} */ export function useDismissRecommendedProfiles(): UseDeferredTask< void, diff --git a/packages/react/src/discovery/useFeed.ts b/packages/react/src/discovery/useFeed.ts index 95c6013d31..1f883a1eeb 100644 --- a/packages/react/src/discovery/useFeed.ts +++ b/packages/react/src/discovery/useFeed.ts @@ -1,5 +1,4 @@ import { FeedItem, FeedRequest, useFeed as useBaseFeedQuery } from '@lens-protocol/api-bindings'; -import { invariant } from '@lens-protocol/shared-kernel'; import { SessionType, useSession } from '../authentication'; import { useLensApolloClient } from '../helpers/arguments'; @@ -46,12 +45,6 @@ export type UseFeedArgs = OmitCursor; export function useFeed({ where }: UseFeedArgs): PaginatedReadResult { const { data: session } = useSession(); - invariant(session?.authenticated, 'You must be authenticated.'); - invariant( - session.type === SessionType.WithProfile, - 'You must be authenticated with a profile to use this query. Use `useLogin` hook to authenticate.', - ); - return usePaginatedReadResult( useBaseFeedQuery( useLensApolloClient({ @@ -59,6 +52,7 @@ export function useFeed({ where }: UseFeedArgs): PaginatedReadResult where, statsFor: where?.metadata?.publishedOn, }, + skip: session?.type !== SessionType.WithProfile, }), ), ); diff --git a/packages/react/src/discovery/useFeedHighlights.ts b/packages/react/src/discovery/useFeedHighlights.ts index f737058887..370bbd45f0 100644 --- a/packages/react/src/discovery/useFeedHighlights.ts +++ b/packages/react/src/discovery/useFeedHighlights.ts @@ -3,7 +3,6 @@ import { FeedHighlightsRequest, useFeedHighlights as useBaseFeedHighlightsQuery, } from '@lens-protocol/api-bindings'; -import { invariant } from '@lens-protocol/shared-kernel'; import { SessionType, useSession } from '../authentication'; import { useLensApolloClient } from '../helpers/arguments'; @@ -52,12 +51,6 @@ export function useFeedHighlights({ }: UseFeedHighlightsArgs): PaginatedReadResult { const { data: session } = useSession(); - invariant(session?.authenticated, 'You must be authenticated.'); - invariant( - session.type === SessionType.WithProfile, - 'You must be authenticated with a profile to use this query. Use `useLogin` hook to authenticate.', - ); - return usePaginatedReadResult( useBaseFeedHighlightsQuery( useLensApolloClient({ @@ -65,6 +58,7 @@ export function useFeedHighlights({ where, statsFor: where?.metadata?.publishedOn, }, + skip: session?.type !== SessionType.WithProfile, }), ), ); diff --git a/packages/react/src/notifications/__tests__/useNotifications.spec.ts b/packages/react/src/notifications/__tests__/useNotifications.spec.ts index 48cdce7cab..7798dfee73 100644 --- a/packages/react/src/notifications/__tests__/useNotifications.spec.ts +++ b/packages/react/src/notifications/__tests__/useNotifications.spec.ts @@ -6,7 +6,7 @@ import { mockAppId } from '@lens-protocol/domain/mocks'; import { waitFor } from '@testing-library/react'; import { setupHookTestScenario } from '../../__helpers__/setupHookTestScenario'; -import { UseNotificationsArgs, useNotifications } from '../useNotifications'; +import { useNotifications } from '../useNotifications'; describe(`Given the ${useNotifications.name} hook`, () => { const items = [mockMentionNotification(), mockMentionNotification()]; @@ -14,19 +14,26 @@ describe(`Given the ${useNotifications.name} hook`, () => { describe('when the query returns data successfully', () => { it('should return notifications', async () => { - const args: UseNotificationsArgs = { - where: { - publishedOn: [mockAppId()], - }, - }; + const appId = mockAppId(); const { renderHook } = setupHookTestScenario([ mockNotificationsResponse({ - variables: args, + variables: { + where: { + publishedOn: [appId], + }, + statsFor: [appId], + }, items, }), ]); - const { result } = renderHook(() => useNotifications(args)); + const { result } = renderHook(() => + useNotifications({ + where: { + publishedOn: [appId], + }, + }), + ); await waitFor(() => expect(result.current.loading).toBeFalsy()); expect(result.current.data).toMatchObject(expectations); diff --git a/packages/react/src/profile/__tests__/useProfileActionHistory.spec.ts b/packages/react/src/profile/__tests__/useProfileActionHistory.spec.ts index da7c7b0fd0..c32deee968 100644 --- a/packages/react/src/profile/__tests__/useProfileActionHistory.spec.ts +++ b/packages/react/src/profile/__tests__/useProfileActionHistory.spec.ts @@ -15,7 +15,7 @@ describe.skip(`Given the ${useProfileActionHistory.name} hook`, () => { describe('when the query returns data successfully', () => { it('should settle with the data', async () => { - const { renderHook } = await setupHookTestScenarioWithSession([ + const { renderHook } = setupHookTestScenarioWithSession([ mockProfileActionHistoryResponse({ variables: { limit: LimitType.Ten, diff --git a/packages/react/src/profile/useProfileActionHistory.ts b/packages/react/src/profile/useProfileActionHistory.ts index e3bb2a481e..4b91815118 100644 --- a/packages/react/src/profile/useProfileActionHistory.ts +++ b/packages/react/src/profile/useProfileActionHistory.ts @@ -3,7 +3,6 @@ import { ProfileActionHistoryRequest, useProfileActionHistory as useProfileActionHistoryHook, } from '@lens-protocol/api-bindings'; -import { invariant } from '@lens-protocol/shared-kernel'; import { SessionType, useSession } from '../authentication'; import { useLensApolloClient } from '../helpers/arguments'; @@ -32,16 +31,11 @@ export function useProfileActionHistory( ): PaginatedReadResult { const { data: session } = useSession(); - invariant(session?.authenticated, 'You must be authenticated.'); - invariant( - session.type === SessionType.WithProfile, - 'You must be authenticated with a profile to use this query. Use `useLogin` hook to authenticate.', - ); - return usePaginatedReadResult( useProfileActionHistoryHook( useLensApolloClient({ variables: args, + skip: session?.type !== SessionType.WithProfile, }), ), ); diff --git a/packages/react/src/publication/__tests__/useBookmarkToggle.spec.ts b/packages/react/src/publication/__tests__/useBookmarkToggle.spec.ts index dc56a5eaee..74bcd751c4 100644 --- a/packages/react/src/publication/__tests__/useBookmarkToggle.spec.ts +++ b/packages/react/src/publication/__tests__/useBookmarkToggle.spec.ts @@ -17,7 +17,7 @@ describe(`Given the ${useBookmarkToggle.name} hook`, () => { describe('when calling the execute method', () => { it('should call correct mutation', async () => { - const { renderHook } = await setupHookTestScenarioWithSession([ + const { renderHook } = setupHookTestScenarioWithSession([ mockPublicationResponse({ variables: { request: { forId: publication.id }, diff --git a/packages/react/src/publication/__tests__/useBookmarks.spec.ts b/packages/react/src/publication/__tests__/useBookmarks.spec.ts index 4e07cc4efc..709c4eab39 100644 --- a/packages/react/src/publication/__tests__/useBookmarks.spec.ts +++ b/packages/react/src/publication/__tests__/useBookmarks.spec.ts @@ -10,7 +10,7 @@ describe(`Given the ${useBookmarks.name} hook`, () => { describe('when a profile is provided', () => { it('should settle with the bookmarked publications', async () => { - const { renderHook } = await setupHookTestScenarioWithSession([ + const { renderHook } = setupHookTestScenarioWithSession([ mockProfileBookmarksResponse({ variables: { request: {}, diff --git a/packages/react/src/publication/__tests__/useHidePublication.spec.ts b/packages/react/src/publication/__tests__/useHidePublication.spec.ts new file mode 100644 index 0000000000..9112eb0dee --- /dev/null +++ b/packages/react/src/publication/__tests__/useHidePublication.spec.ts @@ -0,0 +1,56 @@ +import { + mockHidePublicationResponse, + mockPostFragment, + mockPublicationResponse, +} from '@lens-protocol/api-bindings/mocks'; +import { invariant } from '@lens-protocol/shared-kernel'; +import { act, waitFor } from '@testing-library/react'; + +import { setupHookTestScenarioWithSession } from '../../__helpers__/setupHookTestScenarioWithSession'; +import { useHidePublication } from '../useHidePublication'; +import { usePublication } from '../usePublication'; + +describe(`Given the ${useHidePublication.name} hook`, () => { + describe('when calling the execute method on a publication', () => { + it('should set its `isHidden` flag', async () => { + const publication = mockPostFragment(); + const { renderHook } = setupHookTestScenarioWithSession( + [ + mockPublicationResponse({ + variables: { + request: { forId: publication.id }, + }, + result: publication, + }), + mockHidePublicationResponse({ + request: { + for: publication.id, + }, + }), + ], + publication.by, + ); + + const { result } = renderHook(() => ({ + publication: usePublication({ forId: publication.id }), + toggle: useHidePublication(), + })); + + // wait for publication to be fetched + await waitFor(() => expect(result.current.publication.loading).toBeFalsy()); + + invariant(result.current.publication.data, 'Not a primary publication'); + + expect(result.current.publication.data.isHidden).toBe(false); + + // mark as not interested + act(() => { + void result.current.toggle.execute({ publication }); + }); + await waitFor(() => expect(result.current.toggle.loading).toBeFalsy()); + + // check publication operations + expect(result.current.publication.data.isHidden).toBe(true); + }); + }); +}); diff --git a/packages/react/src/publication/__tests__/useNotInterestedToggle.spec.ts b/packages/react/src/publication/__tests__/useNotInterestedToggle.spec.ts index e1480afa83..e3331b2a34 100644 --- a/packages/react/src/publication/__tests__/useNotInterestedToggle.spec.ts +++ b/packages/react/src/publication/__tests__/useNotInterestedToggle.spec.ts @@ -15,9 +15,9 @@ import { usePublication } from '../usePublication'; describe(`Given the ${useNotInterestedToggle.name} hook`, () => { describe('when calling the execute method on a publication', () => { - it('should call correct mutation', async () => { + it('should set its `operations.isNotInterested` flag', async () => { const publication = mockPostFragment(); - const { renderHook } = await setupHookTestScenarioWithSession([ + const { renderHook } = setupHookTestScenarioWithSession([ mockPublicationResponse({ variables: { request: { forId: publication.id }, @@ -29,38 +29,36 @@ describe(`Given the ${useNotInterestedToggle.name} hook`, () => { }), ]); - const { result: publicationResult } = renderHook(() => - usePublication({ forId: publication.id }), - ); - const { result } = renderHook(() => useNotInterestedToggle()); + const { result } = renderHook(() => ({ + publication: usePublication({ forId: publication.id }), + toggle: useNotInterestedToggle(), + })); - // put publication in cache - await waitFor(() => expect(publicationResult.current.loading).toBeFalsy()); + // wait for publication to be fetched + await waitFor(() => expect(result.current.publication.loading).toBeFalsy()); - invariant(publicationResult.current.data, 'publication not found'); - invariant(isPrimaryPublication(publicationResult.current.data), 'not a primary publication'); + invariant( + result.current.publication.data && isPrimaryPublication(result.current.publication.data), + 'Not a primary publication', + ); - expect(publicationResult.current.data.operations.isNotInterested).toBe(false); + expect(result.current.publication.data.operations.isNotInterested).toBe(false); // mark as not interested - await act(async () => { - invariant(publicationResult.current.data, 'publication not found'); - await result.current.execute({ publication: publicationResult.current.data }); + act(() => { + void result.current.toggle.execute({ publication }); }); - expect(result.current.loading).toBe(false); + await waitFor(() => expect(result.current.toggle.loading).toBeFalsy()); // check publication operations - expect(publicationResult.current.data.operations.isNotInterested).toBe(true); + expect(result.current.publication.data.operations.isNotInterested).toBe(true); }); - }); - describe('when calling the execute method on already not interested publication', () => { - it('should call correct mutation', async () => { - const operations = mockPublicationOperationsFragment({ isNotInterested: true }); + it('should undo previously flagged publications', async () => { const publication = mockPostFragment({ - operations, + operations: mockPublicationOperationsFragment({ isNotInterested: true }), }); - const { renderHook } = await setupHookTestScenarioWithSession([ + const { renderHook } = setupHookTestScenarioWithSession([ mockPublicationResponse({ variables: { request: { forId: publication.id }, @@ -72,28 +70,29 @@ describe(`Given the ${useNotInterestedToggle.name} hook`, () => { }), ]); - const { result: publicationResult } = renderHook(() => - usePublication({ forId: publication.id }), - ); - const { result } = renderHook(() => useNotInterestedToggle()); + const { result } = renderHook(() => ({ + publication: usePublication({ forId: publication.id }), + toggle: useNotInterestedToggle(), + })); - // put publication in cache - await waitFor(() => expect(publicationResult.current.loading).toBeFalsy()); + // wait for publication to be fetched + await waitFor(() => expect(result.current.publication.loading).toBeFalsy()); - invariant(publicationResult.current.data, 'publication not found'); - invariant(isPrimaryPublication(publicationResult.current.data), 'not a primary publication'); + invariant( + result.current.publication.data && isPrimaryPublication(result.current.publication.data), + 'Not a primary publication', + ); - expect(publicationResult.current.data.operations.isNotInterested).toBe(true); + expect(result.current.publication.data?.operations.isNotInterested).toBe(true); // undo mark as not interested - await act(async () => { - invariant(publicationResult.current.data, 'publication not found'); - await result.current.execute({ publication: publicationResult.current.data }); + act(() => { + void result.current.toggle.execute({ publication }); }); - expect(result.current.loading).toBe(false); + await waitFor(() => expect(result.current.toggle.loading).toBeFalsy()); // check publication operations - expect(publicationResult.current.data.operations.isNotInterested).toBe(false); + expect(result.current.publication.data.operations.isNotInterested).toBe(false); }); }); }); diff --git a/packages/react/src/publication/__tests__/usePublications.spec.ts b/packages/react/src/publication/__tests__/usePublications.spec.ts index fbacafe91a..89f8c01868 100644 --- a/packages/react/src/publication/__tests__/usePublications.spec.ts +++ b/packages/react/src/publication/__tests__/usePublications.spec.ts @@ -38,71 +38,71 @@ describe(`Given the ${usePublications.name} hook`, () => { await waitFor(() => expect(result.current.loading).toBeFalsy()); expect(result.current.data).toMatchObject(expectations); }); + }); - describe('when limit is provided', () => { - it('should override the default limit', async () => { - const { renderHook } = setupHookTestScenario([ - mockPublicationsResponse({ - variables: { - where: { - actedBy: profileId, - }, - limit: LimitType.Fifty, - }, - items: publications, - }), - ]); - - const { result } = renderHook(() => - usePublications({ - where: { actedBy: profileId }, - limit: LimitType.Fifty, - }), - ); - - await waitFor(() => expect(result.current.loading).toBeFalsy()); - expect(result.current.data).toMatchObject(expectations); - }); - }); - - describe(`when re-rendered`, () => { - const initialPageInfo = mockPaginatedResultInfo({ prev: mockCursor() }); - + describe('when limit is provided', () => { + it('should override the default limit', async () => { const { renderHook } = setupHookTestScenario([ mockPublicationsResponse({ variables: { where: { - from: [profileId], + actedBy: profileId, }, + limit: LimitType.Fifty, }, items: publications, - info: initialPageInfo, }), + ]); - mockPublicationsResponse({ - variables: { - where: { - from: [profileId], - }, - cursor: initialPageInfo.prev, - }, - items: [mockPostFragment()], + const { result } = renderHook(() => + usePublications({ + where: { actedBy: profileId }, + limit: LimitType.Fifty, }), - ]); + ); - it.skip(`should return cached data and then update the 'beforeCount' if new results are available`, async () => { - const first = renderHook(() => usePublications({ where: { from: [profileId] } })); - await waitFor(() => expect(first.result.current.loading).toBeFalsy()); + await waitFor(() => expect(result.current.loading).toBeFalsy()); + expect(result.current.data).toMatchObject(expectations); + }); + }); + + describe(`when re-rendered`, () => { + const initialPageInfo = mockPaginatedResultInfo({ prev: mockCursor() }); + + const { renderHook } = setupHookTestScenario([ + mockPublicationsResponse({ + variables: { + where: { + from: [profileId], + }, + }, + items: publications, + info: initialPageInfo, + }), + + mockPublicationsResponse({ + variables: { + where: { + from: [profileId], + }, + cursor: initialPageInfo.prev, + }, + items: [mockPostFragment()], + }), + ]); - const second = renderHook(() => usePublications({ where: { from: [profileId] } })); + it(`should return cached data and then update the 'beforeCount' if new results are available`, async () => { + const first = renderHook(() => usePublications({ where: { from: [profileId] } })); + await waitFor(() => expect(first.result.current.loading).toBeFalsy()); - expect(second.result.current).toMatchObject({ - data: expectations, - loading: false, - }); + const second = renderHook(() => usePublications({ where: { from: [profileId] } })); - await waitFor(() => expect(second.result.current.beforeCount).toEqual(1)); + expect(second.result.current).toMatchObject({ + data: expectations, + loading: false, }); + + await waitFor(() => expect(second.result.current.beforeCount).toEqual(1)); }); }); }); diff --git a/packages/react/src/publication/__tests__/useReactionToggle.spec.ts b/packages/react/src/publication/__tests__/useReactionToggle.spec.ts index df966179b8..e5722b3944 100644 --- a/packages/react/src/publication/__tests__/useReactionToggle.spec.ts +++ b/packages/react/src/publication/__tests__/useReactionToggle.spec.ts @@ -15,33 +15,33 @@ import { useReactionToggle } from '../useReactionToggle'; describe(`Given the ${useReactionToggle.name} hook`, () => { const publication = mockPostFragment(); - describe('when calling the execute method', () => { - it('should call correct mutation', async () => { - const { renderHook } = await setupHookTestScenarioWithSession([ - mockPublicationResponse({ - variables: { - request: { forId: publication.id }, + describe('when calling the execute method on a publication', () => { + const { renderHook } = setupHookTestScenarioWithSession([ + mockPublicationResponse({ + variables: { + request: { forId: publication.id }, + }, + result: publication, + }), + mockAddReactionResponse({ + variables: { + request: { + for: publication.id, + reaction: PublicationReactionType.Upvote, }, - result: publication, - }), - mockAddReactionResponse({ - variables: { - request: { - for: publication.id, - reaction: PublicationReactionType.Upvote, - }, + }, + }), + mockRemoveReactionResponse({ + variables: { + request: { + for: publication.id, + reaction: PublicationReactionType.Upvote, }, - }), - mockRemoveReactionResponse({ - variables: { - request: { - for: publication.id, - reaction: PublicationReactionType.Upvote, - }, - }, - }), - ]); + }, + }), + ]); + it('should update the publication `stats` and `operations` as expected', async () => { const { result: publicationResult } = renderHook(() => usePublication({ forId: publication.id }), ); diff --git a/packages/react/src/publication/adapters/BookmarksPresenter.ts b/packages/react/src/publication/adapters/BookmarksPresenter.ts index 27fc58b709..e7526d9cbb 100644 --- a/packages/react/src/publication/adapters/BookmarksPresenter.ts +++ b/packages/react/src/publication/adapters/BookmarksPresenter.ts @@ -4,11 +4,11 @@ import { TogglePropertyRequest, } from '@lens-protocol/domain/use-cases/publications'; -import { PublicationCacheManager } from '../infrastructure/PublicationCacheManager'; import { BookmarkRequest } from './BookmarksGateway'; +import { IPublicationCacheManager } from './IPublicationCacheManager'; export class BookmarksPresenter implements ITogglablePropertyPresenter { - constructor(private readonly publicationCacheManager: PublicationCacheManager) {} + constructor(private readonly publicationCacheManager: IPublicationCacheManager) {} async add({ publicationId }: TogglePropertyRequest) { this.publicationCacheManager.update(publicationId, (current) => { diff --git a/packages/react/src/publication/adapters/NotInterestedPresenter.ts b/packages/react/src/publication/adapters/NotInterestedPresenter.ts index 4ccc0d5280..bb9974b091 100644 --- a/packages/react/src/publication/adapters/NotInterestedPresenter.ts +++ b/packages/react/src/publication/adapters/NotInterestedPresenter.ts @@ -4,11 +4,11 @@ import { TogglePropertyRequest, } from '@lens-protocol/domain/use-cases/publications'; -import { PublicationCacheManager } from '../infrastructure/PublicationCacheManager'; +import { IPublicationCacheManager } from './IPublicationCacheManager'; import { NotInterestedRequest } from './NotInterestedGateway'; export class NotInterestedPresenter implements ITogglablePropertyPresenter { - constructor(private readonly publicationCacheManager: PublicationCacheManager) {} + constructor(private readonly publicationCacheManager: IPublicationCacheManager) {} async add({ publicationId }: TogglePropertyRequest) { this.publicationCacheManager.update(publicationId, (current) => { diff --git a/packages/react/src/publication/adapters/__tests__/HidePublicationGateway.spec.ts b/packages/react/src/publication/adapters/__tests__/HidePublicationGateway.spec.ts index a3df3d8a9f..8d51b3c2af 100644 --- a/packages/react/src/publication/adapters/__tests__/HidePublicationGateway.spec.ts +++ b/packages/react/src/publication/adapters/__tests__/HidePublicationGateway.spec.ts @@ -13,10 +13,8 @@ describe(`Given an instance of the ${HidePublicationGateway.name}`, () => { const apolloClient = mockLensApolloClient([ mockHidePublicationResponse({ - variables: { - request: { - for: publicationId, - }, + request: { + for: publicationId, }, }), ]); diff --git a/packages/react/src/publication/adapters/__tests__/HidePublicationPresenter.spec.ts b/packages/react/src/publication/adapters/__tests__/HidePublicationPresenter.spec.ts deleted file mode 100644 index 4042dc2d11..0000000000 --- a/packages/react/src/publication/adapters/__tests__/HidePublicationPresenter.spec.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { FragmentPost, Post } from '@lens-protocol/api-bindings'; -import { mockLensApolloClient, mockPostFragment } from '@lens-protocol/api-bindings/mocks'; - -import { PublicationCacheManager } from '../../infrastructure/PublicationCacheManager'; -import { HidePublicationPresenter } from '../HidePublicationPresenter'; - -function setupTestScenario({ post }: { post: Post }) { - const client = mockLensApolloClient(); - - client.cache.writeFragment({ - id: client.cache.identify({ - __typename: 'Post', - id: post.id, - }), - fragment: FragmentPost, - fragmentName: 'Post', - data: post, - }); - - const publicationCacheManager = new PublicationCacheManager(client); - const presenter = new HidePublicationPresenter(publicationCacheManager); - - return { - presenter, - - get updatedPostFragment() { - return client.cache.readFragment({ - id: client.cache.identify({ - __typename: 'Post', - id: post.id, - }), - fragment: FragmentPost, - fragmentName: 'Post', - }); - }, - }; -} - -describe(`Given the ${HidePublicationPresenter.name}`, () => { - describe(`when "${HidePublicationPresenter.prototype.present.name}" method is invoked`, () => { - it(`should update apollo cache by flagging publication as hidden`, async () => { - const post = mockPostFragment({ - isHidden: false, - }); - - const scenario = setupTestScenario({ - post, - }); - - scenario.presenter.present(post.id); - - expect(scenario.updatedPostFragment).toEqual( - expect.objectContaining({ - isHidden: true, - }), - ); - }); - }); -}); diff --git a/packages/react/src/publication/useBookmarks.ts b/packages/react/src/publication/useBookmarks.ts index 5b2d19f24c..97e851fcee 100644 --- a/packages/react/src/publication/useBookmarks.ts +++ b/packages/react/src/publication/useBookmarks.ts @@ -3,7 +3,6 @@ import { PublicationBookmarksRequest, usePublicationBookmarks, } from '@lens-protocol/api-bindings'; -import { invariant } from '@lens-protocol/shared-kernel'; import { SessionType, useSession } from '../authentication'; import { useLensApolloClient } from '../helpers/arguments'; @@ -28,12 +27,6 @@ export type UseBookmarksArgs = PaginatedArgs; export function useBookmarks(args: UseBookmarksArgs = {}): PaginatedReadResult { const { data: session } = useSession(); - invariant(session?.authenticated, 'You must be authenticated.'); - invariant( - session.type === SessionType.WithProfile, - 'You must be authenticated with a profile to use this query. Use `useLogin` hook to authenticate.', - ); - return usePaginatedReadResult( usePublicationBookmarks( useLensApolloClient({ @@ -41,6 +34,7 @@ export function useBookmarks(args: UseBookmarksArgs = {}): PaginatedReadResult Date: Wed, 24 Jan 2024 09:25:07 +0100 Subject: [PATCH 3/5] Clean up before merging --- .changeset/young-mayflies-invent.md | 6 ------ packages/react-web/src/LensProvider.tsx | 2 -- packages/react/src/config.ts | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 .changeset/young-mayflies-invent.md diff --git a/.changeset/young-mayflies-invent.md b/.changeset/young-mayflies-invent.md deleted file mode 100644 index 7005d9150a..0000000000 --- a/.changeset/young-mayflies-invent.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@lens-protocol/gated-content": patch -"@lens-protocol/client": patch ---- - -**fix:** cleanup obsolete environment configuration diff --git a/packages/react-web/src/LensProvider.tsx b/packages/react-web/src/LensProvider.tsx index 2d6e62e70b..845382205e 100644 --- a/packages/react-web/src/LensProvider.tsx +++ b/packages/react-web/src/LensProvider.tsx @@ -46,8 +46,6 @@ export type LensConfig = { storage?: IStorageProvider | IObservableStorageProvider; /** * The common query params allows you customize some aspect of the returned data. - * - * If not provided {@link defaultQueryParams} will be used instead. */ params?: QueryParams; }; diff --git a/packages/react/src/config.ts b/packages/react/src/config.ts index 6e6157ea29..b191b56283 100644 --- a/packages/react/src/config.ts +++ b/packages/react/src/config.ts @@ -17,7 +17,7 @@ export type { IStorageProvider, }; -export { defaultQueryParams, SupportedFiatType } from '@lens-protocol/api-bindings'; +export { SupportedFiatType } from '@lens-protocol/api-bindings'; export interface IBindings extends ISignerBinding, IProviderBinding {} From fd8e871396a101d74ad73d70866a68bc743730d5 Mon Sep 17 00:00:00 2001 From: Cesare Naldi Date: Wed, 24 Jan 2024 10:48:48 +0100 Subject: [PATCH 4/5] Includes RN into changeset --- .changeset/four-squids-clean.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.changeset/four-squids-clean.md b/.changeset/four-squids-clean.md index a34d01069b..a8541fa780 100644 --- a/.changeset/four-squids-clean.md +++ b/.changeset/four-squids-clean.md @@ -1,6 +1,7 @@ --- "@lens-protocol/api-bindings": minor "@lens-protocol/react": minor +"@lens-protocol/react-native": minor "@lens-protocol/react-web": minor --- From 8611ee24a57b12f08e01630a0a5f9f0e1a0f4994 Mon Sep 17 00:00:00 2001 From: Cesare Naldi Date: Wed, 24 Jan 2024 11:12:20 +0100 Subject: [PATCH 5/5] Amends TSDoc as per review comment --- packages/react-web/src/LensProvider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-web/src/LensProvider.tsx b/packages/react-web/src/LensProvider.tsx index 845382205e..7e5a146e84 100644 --- a/packages/react-web/src/LensProvider.tsx +++ b/packages/react-web/src/LensProvider.tsx @@ -46,6 +46,8 @@ export type LensConfig = { storage?: IStorageProvider | IObservableStorageProvider; /** * The common query params allows you customize some aspect of the returned data. + * + * @defaultValue see individual fields of {@link QueryParams} */ params?: QueryParams; };