From 36a077785c7da7033e26c58cee835a66c9618cec Mon Sep 17 00:00:00 2001 From: Kris Urbas <605420+krzysu@users.noreply.github.com> Date: Mon, 4 Mar 2024 12:01:47 +0100 Subject: [PATCH 1/4] fix: useUpdateProfileManagers preconditions check (#870) --- .changeset/green-ligers-flow.md | 7 +++++++ .../react/src/transactions/useUpdateProfileManagers.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/green-ligers-flow.md diff --git a/.changeset/green-ligers-flow.md b/.changeset/green-ligers-flow.md new file mode 100644 index 000000000..2cded019b --- /dev/null +++ b/.changeset/green-ligers-flow.md @@ -0,0 +1,7 @@ +--- +"@lens-protocol/react": patch +"@lens-protocol/react-native": patch +"@lens-protocol/react-web": patch +--- + +**fix:** useUpdateProfileManagers preconditions logic when approving signless diff --git a/packages/react/src/transactions/useUpdateProfileManagers.ts b/packages/react/src/transactions/useUpdateProfileManagers.ts index 063a67966..2340329e2 100644 --- a/packages/react/src/transactions/useUpdateProfileManagers.ts +++ b/packages/react/src/transactions/useUpdateProfileManagers.ts @@ -219,7 +219,7 @@ export function useUpdateProfileManagers(): UseDeferredTask< if ('approveSignless' in args) { invariant( - args.approveSignless === session.profile.signless, + args.approveSignless !== session.profile.signless, `The Signless Experience is already ${args.approveSignless ? 'enabled' : 'disabled'}`, ); } From 8869b5819c1927332524f132edaa9b9b3f7a8b75 Mon Sep 17 00:00:00 2001 From: Kris Urbas <605420+krzysu@users.noreply.github.com> Date: Mon, 4 Mar 2024 12:04:16 +0100 Subject: [PATCH 2/4] feat: useRecommendProfileToggle hook (#867) --- .changeset/gold-ways-float.md | 9 + examples/web/src/App.tsx | 2 + examples/web/src/profiles/ProfilesPage.tsx | 5 + .../profiles/UseRecommendProfileToggle.tsx | 47 + examples/web/src/profiles/index.ts | 1 + .../src/apollo/cache/createTypePolicies.ts | 2 + .../createProfileFieldPolicy.ts | 33 + .../src/apollo/cache/field-policies/index.ts | 1 + .../src/lens/__helpers__/fragments.ts | 1 + .../src/lens/graphql/fragments.graphql | 16 + .../src/lens/graphql/generated.ts | 8507 +++++++++++++++-- .../src/lens/graphql/profile.graphql | 8 + .../ToggleProperty.ts | 28 +- .../__tests__/ToggleProperty.spec.ts | 44 +- .../profile/ToggleProfileProperty.ts | 18 + .../domain/src/use-cases/profile/index.ts | 1 + .../publications/TogglePublicationProperty.ts | 18 + .../publications/__helpers__/mocks.ts | 10 - .../src/use-cases/publications/index.ts | 2 +- .../profile/adapters/IProfileCacheManager.ts | 4 + .../adapters/RecommendProfileGateway.ts | 43 + .../adapters/RecommendProfilePresenter.ts | 28 + .../adapters/useRecommendProfileController.ts | 30 + packages/react/src/profile/index.ts | 1 + .../infrastructure/ProfileCacheManager.ts | 22 + .../src/profile/useRecommendProfileToggle.ts | 66 + .../publication/adapters/BookmarksGateway.ts | 18 +- .../adapters/BookmarksPresenter.ts | 17 +- .../adapters/HideCommentGateway.ts | 16 +- .../adapters/HideCommentPresenter.ts | 15 +- .../adapters/NotInterestedGateway.ts | 18 +- .../adapters/NotInterestedPresenter.ts | 17 +- .../publication/adapters/ReactionGateway.ts | 28 +- .../publication/adapters/ReactionPresenter.ts | 14 +- .../adapters/useBookmarkToggleController.ts | 10 +- .../adapters/useHideCommentController.ts | 10 +- .../adapters/useNotInterestedController.ts | 10 +- .../adapters/useReactionToggleController.ts | 10 +- .../infrastructure/PublicationCacheManager.ts | 23 +- .../src/publication/useBookmarkToggle.ts | 4 +- .../src/publication/useHideCommentToggle.ts | 4 +- .../src/publication/useNotInterestedToggle.ts | 6 +- .../src/publication/useReactionToggle.ts | 4 +- 43 files changed, 8281 insertions(+), 890 deletions(-) create mode 100644 .changeset/gold-ways-float.md create mode 100644 examples/web/src/profiles/UseRecommendProfileToggle.tsx create mode 100644 packages/api-bindings/src/apollo/cache/field-policies/createProfileFieldPolicy.ts rename packages/domain/src/use-cases/{publications => _common}/ToggleProperty.ts (50%) rename packages/domain/src/use-cases/{publications => _common}/__tests__/ToggleProperty.spec.ts (60%) create mode 100644 packages/domain/src/use-cases/profile/ToggleProfileProperty.ts create mode 100644 packages/domain/src/use-cases/publications/TogglePublicationProperty.ts create mode 100644 packages/react/src/profile/adapters/RecommendProfileGateway.ts create mode 100644 packages/react/src/profile/adapters/RecommendProfilePresenter.ts create mode 100644 packages/react/src/profile/adapters/useRecommendProfileController.ts create mode 100644 packages/react/src/profile/useRecommendProfileToggle.ts diff --git a/.changeset/gold-ways-float.md b/.changeset/gold-ways-float.md new file mode 100644 index 000000000..1fb5d2805 --- /dev/null +++ b/.changeset/gold-ways-float.md @@ -0,0 +1,9 @@ +--- +"@lens-protocol/api-bindings": minor +"@lens-protocol/domain": minor +"@lens-protocol/react": minor +"@lens-protocol/react-native": minor +"@lens-protocol/react-web": minor +--- + +**feat:** added `useRecommendProfileToggle` hook diff --git a/examples/web/src/App.tsx b/examples/web/src/App.tsx index 7afc7c5f6..16ba96c55 100644 --- a/examples/web/src/App.tsx +++ b/examples/web/src/App.tsx @@ -54,6 +54,7 @@ import { UseProfileManagers, UseProfiles, UseProfilesManaged, + UseRecommendProfileToggle, UseReportProfile, UseSetProfileMetadata, UseUpdateFollowPolicy, @@ -144,6 +145,7 @@ export function App() { } /> } /> } /> + } /> diff --git a/examples/web/src/profiles/ProfilesPage.tsx b/examples/web/src/profiles/ProfilesPage.tsx index 91848f010..7498b05b1 100644 --- a/examples/web/src/profiles/ProfilesPage.tsx +++ b/examples/web/src/profiles/ProfilesPage.tsx @@ -106,6 +106,11 @@ const profileHooks = [ description: 'Report a profile.', path: '/profiles/useReportProfile', }, + { + label: 'useRecommendProfileToggle', + description: 'Recommend a profile.', + path: '/profiles/useRecommendProfileToggle', + }, ]; export function ProfilesPage() { diff --git a/examples/web/src/profiles/UseRecommendProfileToggle.tsx b/examples/web/src/profiles/UseRecommendProfileToggle.tsx new file mode 100644 index 000000000..787c531f1 --- /dev/null +++ b/examples/web/src/profiles/UseRecommendProfileToggle.tsx @@ -0,0 +1,47 @@ +import { Profile, useExploreProfiles, useRecommendProfileToggle } from '@lens-protocol/react-web'; + +import { RequireProfileSession } from '../components/auth'; +import { ErrorMessage } from '../components/error/ErrorMessage'; +import { Loading } from '../components/loading/Loading'; +import { ProfileCard } from './components/ProfileCard'; + +function ProfileRecommendation({ profile }: { profile: Profile }) { + const { execute: toggle, loading } = useRecommendProfileToggle(); + + return ( + + + + ); +} + +function UseRecommendProfileToggleInner() { + const { data: profiles, error, loading } = useExploreProfiles(); + + if (loading) return ; + if (error) return ; + + return ( +
+ {profiles.map((profile) => ( + + ))} +
+ ); +} + +export function UseRecommendProfileToggle() { + return ( +
+

+ useRecommendProfileToggle +

+ + + + +
+ ); +} diff --git a/examples/web/src/profiles/index.ts b/examples/web/src/profiles/index.ts index 3479c9d43..404a1929b 100644 --- a/examples/web/src/profiles/index.ts +++ b/examples/web/src/profiles/index.ts @@ -15,6 +15,7 @@ export * from './UseProfileFollowing'; export * from './UseProfileManagers'; export * from './UseProfiles'; export * from './UseProfilesManaged'; +export * from './UseRecommendProfileToggle'; export * from './UseReportProfile'; export * from './UseSetProfileMetadata'; export * from './UseUpdateFollowPolicy'; diff --git a/packages/api-bindings/src/apollo/cache/createTypePolicies.ts b/packages/api-bindings/src/apollo/cache/createTypePolicies.ts index 54bdc50f9..6573c3b33 100644 --- a/packages/api-bindings/src/apollo/cache/createTypePolicies.ts +++ b/packages/api-bindings/src/apollo/cache/createTypePolicies.ts @@ -68,6 +68,8 @@ export function createTypePolicies(): StrictTypedTypePolicies & InheritedTypePol mutualFollowers: createMutualFollowersFieldPolicy(), profileActionHistory: createProfileActionHistoryFieldPolicy(), profileRecommendations: createProfileRecommendationsFieldPolicy(), + // TODO: investigate correct usage of cache redirect + // profile: createProfileFieldPolicy() as FieldPolicy, profiles: createProfilesFieldPolicy(), publication: createPublicationFieldPolicy() as FieldPolicy, publications: createPublicationsFieldPolicy(), diff --git a/packages/api-bindings/src/apollo/cache/field-policies/createProfileFieldPolicy.ts b/packages/api-bindings/src/apollo/cache/field-policies/createProfileFieldPolicy.ts new file mode 100644 index 000000000..1346f6db0 --- /dev/null +++ b/packages/api-bindings/src/apollo/cache/field-policies/createProfileFieldPolicy.ts @@ -0,0 +1,33 @@ +import { FieldFunctionOptions, FieldPolicy, Reference } from '@apollo/client'; + +import { Profile, ProfileRequest } from '../../../lens'; + +// this function is not in use +// TODO: investigate correct usage of cache redirect +export function createProfileFieldPolicy(): FieldPolicy< + Profile, + Profile, + Reference, + FieldFunctionOptions<{ request: ProfileRequest }> +> { + return { + read(_, { args, toReference, canRead }) { + if (!args) { + return undefined; + } + + if (args.request?.forProfileId) { + const ref = toReference({ + __typename: 'Profile', + id: args.request.forProfileId, + }); + + if (canRead(ref)) { + return ref; + } + } + + return undefined; + }, + }; +} diff --git a/packages/api-bindings/src/apollo/cache/field-policies/index.ts b/packages/api-bindings/src/apollo/cache/field-policies/index.ts index 90574ee21..602e518dd 100644 --- a/packages/api-bindings/src/apollo/cache/field-policies/index.ts +++ b/packages/api-bindings/src/apollo/cache/field-policies/index.ts @@ -8,6 +8,7 @@ export * from './createFollowingFieldPolicy'; export * from './createMutualFollowersFieldPolicy'; export * from './createProfileActionHistoryFieldPolicy'; export * from './createProfileRecommendationsFieldPolicy'; +export * from './createProfileFieldPolicy'; export * from './createProfilesFieldPolicy'; export * from './createPublicationFieldPolicy'; export * from './createPublicationsFieldPolicy'; diff --git a/packages/api-bindings/src/lens/__helpers__/fragments.ts b/packages/api-bindings/src/lens/__helpers__/fragments.ts index b35095b47..509db098b 100644 --- a/packages/api-bindings/src/lens/__helpers__/fragments.ts +++ b/packages/api-bindings/src/lens/__helpers__/fragments.ts @@ -130,6 +130,7 @@ export function mockProfileFragment(overrides?: Partial): gql.Profi metadata: null, invitedBy: null, stats: mockProfileStatsFragment(), + peerToPeerRecommendedByMe: false, ...overrides, __typename: 'Profile', diff --git a/packages/api-bindings/src/lens/graphql/fragments.graphql b/packages/api-bindings/src/lens/graphql/fragments.graphql index 925bb491d..e46edbd3c 100644 --- a/packages/api-bindings/src/lens/graphql/fragments.graphql +++ b/packages/api-bindings/src/lens/graphql/fragments.graphql @@ -356,6 +356,7 @@ fragment ProfileFields on Profile { stats(request: { forApps: $statsFor }) { ...ProfileStats } + peerToPeerRecommendedByMe } fragment Profile on Profile { @@ -1496,6 +1497,21 @@ fragment LiveStreamMetadataV3 on LiveStreamMetadataV3 { } # publication fragments +fragment AnyPublicationInternal on AnyPublication { + ... on Post { + ...Post + } + ... on Comment { + ...Comment + } + ... on Mirror { + ...Mirror + } + ... on Quote { + ...Quote + } +} + fragment PublicationStats on PublicationStats { __typename id diff --git a/packages/api-bindings/src/lens/graphql/generated.ts b/packages/api-bindings/src/lens/graphql/generated.ts index 75fbccfc5..807bdcbc0 100644 --- a/packages/api-bindings/src/lens/graphql/generated.ts +++ b/packages/api-bindings/src/lens/graphql/generated.ts @@ -2276,6 +2276,7 @@ export type ProfileFields = { invitesLeft: number; sponsor: boolean; signless: boolean; + peerToPeerRecommendedByMe: boolean; ownedBy: NetworkAddress; operations: ProfileOperations; guardian: ProfileGuardianResult | null; @@ -2983,6 +2984,20 @@ export type LiveStreamMetadataV3 = { > | null; }; +type AnyPublicationInternal_Comment_ = Comment; + +type AnyPublicationInternal_Mirror_ = Mirror; + +type AnyPublicationInternal_Post_ = Post; + +type AnyPublicationInternal_Quote_ = Quote; + +export type AnyPublicationInternal = + | AnyPublicationInternal_Comment_ + | AnyPublicationInternal_Mirror_ + | AnyPublicationInternal_Post_ + | AnyPublicationInternal_Quote_; + export type PublicationStats = { __typename: 'PublicationStats'; id: PublicationId; @@ -3848,6 +3863,18 @@ export type ReportProfileVariables = Exact<{ export type ReportProfileData = { reportProfile: void | null }; +export type PeerToPeerRecommendVariables = Exact<{ + request: PeerToPeerRecommendRequest; +}>; + +export type PeerToPeerRecommendData = { peerToPeerRecommend: void | null }; + +export type PeerToPeerUnrecommendVariables = Exact<{ + request: PeerToPeerRecommendRequest; +}>; + +export type PeerToPeerUnrecommendData = { peerToPeerUnrecommend: void | null }; + export type TagResult = { __typename: 'TagResult'; tag: string; total: number }; export type PublicationValidateMetadataResult = { @@ -6478,6 +6505,7 @@ export const FragmentProfileFields = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -8144,6 +8172,7 @@ export const FragmentProfile = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -32303,6 +32332,7 @@ export const FragmentPost = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -37592,6 +37622,7 @@ export const FragmentQuoteFields = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -42882,6 +42913,7 @@ export const FragmentCommentFields = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -48861,6 +48893,7 @@ export const FragmentQuote = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -55453,6 +55486,7 @@ export const FragmentExplorePublication = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -62149,6 +62183,7 @@ export const FragmentComment = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -68791,6 +68826,7 @@ export const FragmentMirror = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -75294,6 +75330,7 @@ export const FragmentReactionEvent = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -76545,6 +76582,6806 @@ export const FragmentFeedItem = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Profile' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Profile' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileFields' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'invitedBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileFields' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileMentioned' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileMentioned' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'profile' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'Field', name: { kind: 'Name', value: 'id' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'snapshotHandleMentioned' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'HandleInfo' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'stillOwnsHandle' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'App' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'App' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MomokaInfo' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'MomokaInfo' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'proof' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'commentsRestricted' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mirrorsRestricted' } }, + { kind: 'Field', name: { kind: 'Name', value: 'quotesRestricted' } }, + { kind: 'Field', name: { kind: 'Name', value: 'degreesOfSeparation' } }, + { kind: 'Field', name: { kind: 'Name', value: 'sourceProfileId' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyDegreesOfSeparationReferenceModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyDegreesOfSeparationReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'commentsRestricted' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mirrorsRestricted' } }, + { kind: 'Field', name: { kind: 'Name', value: 'degreesOfSeparation' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'initializeCalldata' } }, + { kind: 'Field', name: { kind: 'Name', value: 'initializeResultData' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signlessApproved' } }, + { kind: 'Field', name: { kind: 'Name', value: 'sponsoredApproved' } }, + { kind: 'Field', name: { kind: 'Name', value: 'verified' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Recipient' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RecipientDataOutput' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'split' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'recipients' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Recipient' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'initializeCalldata' } }, + { kind: 'Field', name: { kind: 'Name', value: 'initializeResultData' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signlessApproved' } }, + { kind: 'Field', name: { kind: 'Name', value: 'sponsoredApproved' } }, + { kind: 'Field', name: { kind: 'Name', value: 'verified' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endTimestamp' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endTimestamp' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyMultirecipientFeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyMultirecipientFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'recipients' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Recipient' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'CanDecryptResponse' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'CanDecryptResponse' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'result' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reasons' } }, + { kind: 'Field', name: { kind: 'Name', value: 'extraDetails' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PublicationOperations' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperations' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'isNotInterested' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hasBookmarked' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hasReported' } }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'canCollect' }, + name: { kind: 'Name', value: 'canAct' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'filter' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'category' }, + value: { kind: 'EnumValue', value: 'COLLECT' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'hasCollected' }, + name: { kind: 'Name', value: 'hasActed' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'filter' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'category' }, + value: { kind: 'EnumValue', value: 'COLLECT' }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'OptimisticStatusResult' } }, + ], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'hasUpvoted' }, + name: { kind: 'Name', value: 'hasReacted' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { kind: 'EnumValue', value: 'UPVOTE' }, + }, + ], + }, + }, + ], + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'hasDownvoted' }, + name: { kind: 'Name', value: 'hasReacted' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { kind: 'EnumValue', value: 'DOWNVOTE' }, + }, + ], + }, + }, + ], + }, + { kind: 'Field', name: { kind: 'Name', value: 'canComment' } }, + { kind: 'Field', name: { kind: 'Name', value: 'canMirror' } }, + { kind: 'Field', name: { kind: 'Name', value: 'canQuote' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'canDecrypt' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CanDecryptResponse' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessCondition' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'RootCondition' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'encryptedPaths' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'NftOwnershipCondition' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'NftOwnershipCondition' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'contractType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tokenIds' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Erc20OwnershipCondition' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'Erc20OwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'condition' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EoaOwnershipCondition' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EoaOwnershipCondition' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'address' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileOwnershipCondition' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProfileOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'profileId' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FollowCondition' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'FollowCondition' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'follow' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'CollectCondition' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'CollectCondition' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'publicationId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'thisPublication' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AndCondition' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'AndCondition' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'criteria' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'NftOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'NftOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'Erc20OwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'Erc20OwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EoaOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'EoaOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProfileOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ProfileOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'FollowCondition' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'CollectCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CollectCondition' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'OrCondition' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'OrCondition' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'criteria' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'NftOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'NftOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'Erc20OwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'Erc20OwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EoaOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'EoaOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProfileOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ProfileOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'FollowCondition' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'CollectCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CollectCondition' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'RootCondition' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RootCondition' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'criteria' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'NftOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'NftOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'Erc20OwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'Erc20OwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EoaOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'EoaOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProfileOwnershipCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ProfileOwnershipCondition' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'FollowCondition' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'CollectCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CollectCondition' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'AndCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'AndCondition' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'OrCondition' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'OrCondition' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PublicationMarketplaceMetadataAttribute' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMarketplaceMetadataAttribute' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'displayType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'traitType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MarketplaceMetadata' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'description' } }, + { kind: 'Field', name: { kind: 'Name', value: 'externalURL' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMarketplaceMetadataAttribute' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageSet' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'animationUrl' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'video' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EncryptableVideoSet' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EncryptableImageSet' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'duration' } }, + { kind: 'Field', name: { kind: 'Name', value: 'license' } }, + { kind: 'Field', name: { kind: 'Name', value: 'altTag' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EncryptableImageSet' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'license' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'audio' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EncryptableAudioSet' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cover' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EncryptableImageSet' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'duration' } }, + { kind: 'Field', name: { kind: 'Name', value: 'license' } }, + { kind: 'Field', name: { kind: 'Name', value: 'credits' } }, + { kind: 'Field', name: { kind: 'Name', value: 'artist' } }, + { kind: 'Field', name: { kind: 'Name', value: 'genre' } }, + { kind: 'Field', name: { kind: 'Name', value: 'recordLabel' } }, + { kind: 'Field', name: { kind: 'Name', value: 'lyrics' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'GeoLocation' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'GeoLocation' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'latitude' } }, + { kind: 'Field', name: { kind: 'Name', value: 'longitude' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'VideoMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'VideoMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'isShortVideo' } }, + { kind: 'Field', name: { kind: 'Name', value: 'title' } }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AudioMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'AudioMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'title' } }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ImageMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'title' } }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ArticleMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'title' } }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EventMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EventMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'geographic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'GeoLocation' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'startsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'links' } }, + { kind: 'Field', name: { kind: 'Name', value: 'location' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LinkMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'LinkMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { kind: 'Field', name: { kind: 'Name', value: 'sharingLink' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EmbedMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EmbedMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { kind: 'Field', name: { kind: 'Name', value: 'embed' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'CheckingInMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { kind: 'Field', name: { kind: 'Name', value: 'location' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'geographic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'GeoLocation' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'TextOnlyMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ThreeDMetadataV3Asset' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ThreeDMetadataV3Asset' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'uri' } }, + { kind: 'Field', name: { kind: 'Name', value: 'zipPath' } }, + { kind: 'Field', name: { kind: 'Name', value: 'playerURL' } }, + { kind: 'Field', name: { kind: 'Name', value: 'format' } }, + { kind: 'Field', name: { kind: 'Name', value: 'license' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ThreeDMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ThreeDMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'assets' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ThreeDMetadataV3Asset' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'StoryMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'StoryMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'TransactionMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'chainId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MintMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'MintMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mintLink' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'SpaceMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'SpaceMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { kind: 'Field', name: { kind: 'Name', value: 'title' } }, + { kind: 'Field', name: { kind: 'Name', value: 'link' } }, + { kind: 'Field', name: { kind: 'Name', value: 'startsAt' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'LiveStreamMetadataV3' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { kind: 'Field', name: { kind: 'Name', value: 'locale' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tags' } }, + { kind: 'Field', name: { kind: 'Name', value: 'contentWarning' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hideFromFeed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'marketplace' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MarketplaceMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'encryptedWith' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataLitEncryption' }, + }, + ], + }, + }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'title' } }, + { kind: 'Field', name: { kind: 'Name', value: 'content' } }, + { kind: 'Field', name: { kind: 'Name', value: 'startsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'playbackURL' } }, + { kind: 'Field', name: { kind: 'Name', value: 'liveURL' } }, + { kind: 'Field', name: { kind: 'Name', value: 'checkLiveAPI' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attachments' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaVideo' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaImage' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'PublicationMetadataMediaAudio' }, + }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'PublicationStats' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStats' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'comments' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mirrors' } }, + { kind: 'Field', name: { kind: 'Name', value: 'quotes' } }, + { kind: 'Field', name: { kind: 'Name', value: 'bookmarks' } }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'upvotes' }, + name: { kind: 'Name', value: 'reactions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { kind: 'EnumValue', value: 'UPVOTE' }, + }, + ], + }, + }, + ], + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'downvotes' }, + name: { kind: 'Name', value: 'reactions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { kind: 'EnumValue', value: 'DOWNVOTE' }, + }, + ], + }, + }, + ], + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'collects' }, + name: { kind: 'Name', value: 'countOpenActions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'anyOf' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'category' }, + value: { kind: 'EnumValue', value: 'COLLECT' }, + }, + ], + }, + ], + }, + }, + ], + }, + }, + ], + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Post' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'publishedOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'App' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'isHidden' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'momoka' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'MomokaInfo' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'isEncrypted' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'by' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Profile' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'metadata' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'publishedOn' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationStats' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'operations' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationOperations' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadata' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'AudioMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'AudioMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'VideoMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'VideoMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ImageMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EventMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EventMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LinkMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'LinkMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EmbedMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EmbedMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ThreeDMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ThreeDMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'StoryMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'StoryMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MintMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MintMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SpaceMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'SpaceMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'openActionModules' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyMultirecipientFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'LegacyMultirecipientFeeCollectModuleSettings', + }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'referenceModule' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'LegacyDegreesOfSeparationReferenceModuleSettings', + }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'LegacyDegreesOfSeparationReferenceModuleSettings', + }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profilesMentioned' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMentioned' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'hashtagsMentioned' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'CommentFields' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'publishedOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'App' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'isHidden' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hiddenByAuthor' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'momoka' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'MomokaInfo' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'isEncrypted' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'by' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Profile' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'operations' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationOperations' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'root' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'QuoteFields' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadata' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'AudioMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'AudioMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'VideoMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'VideoMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ImageMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EventMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EventMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LinkMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'LinkMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EmbedMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EmbedMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ThreeDMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ThreeDMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'StoryMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'StoryMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MintMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MintMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SpaceMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'SpaceMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'openActionModules' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyMultirecipientFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'LegacyMultirecipientFeeCollectModuleSettings', + }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'referenceModule' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'LegacyDegreesOfSeparationReferenceModuleSettings', + }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'LegacyDegreesOfSeparationReferenceModuleSettings', + }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'metadata' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'publishedOn' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationStats' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Comment' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profilesMentioned' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMentioned' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'hashtagsMentioned' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'firstComment' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'commentOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'QuoteFields' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Mirror' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Mirror' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'publishedOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'App' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'isHidden' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'momoka' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'MomokaInfo' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'by' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Profile' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'mirrorOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'Comment' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'Quote' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'QuoteFields' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'publishedOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'App' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'isHidden' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'momoka' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'MomokaInfo' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'isEncrypted' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'by' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Profile' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'operations' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationOperations' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'metadata' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'AudioMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'AudioMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'VideoMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'VideoMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ImageMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EventMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EventMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LinkMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'LinkMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EmbedMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EmbedMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ThreeDMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ThreeDMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'StoryMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'StoryMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MintMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MintMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SpaceMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'SpaceMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'openActionModules' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyMultirecipientFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'LegacyMultirecipientFeeCollectModuleSettings', + }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'referenceModule' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'LegacyDegreesOfSeparationReferenceModuleSettings', + }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'LegacyDegreesOfSeparationReferenceModuleSettings', + }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'metadata' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'publishedOn' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationStats' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Quote' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'QuoteFields' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profilesMentioned' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMentioned' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'hashtagsMentioned' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'quoteOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'QuoteFields' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FragmentFeedHighlight = /*#__PURE__*/ { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FeedHighlight' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'FeedHighlight' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Quote' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'OptimisticStatusResult' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'OptimisticStatusResult' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + { kind: 'Field', name: { kind: 'Name', value: 'isFinalisedOnchain' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Erc20' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Erc20' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'symbol' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decimals' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FiatAmount' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'FiatAmount' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Fiat' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Fiat' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Fiat' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'symbol' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decimals' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Amount' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Amount' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Erc20' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'rate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'for' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'fxRateFor' } }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'FiatAmount' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FeeFollowModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FeeFollowModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'RevertFollowModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'RevertFollowModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UnknownFollowModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownFollowModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'initializeCalldata' } }, + { kind: 'Field', name: { kind: 'Name', value: 'initializeResultData' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signlessApproved' } }, + { kind: 'Field', name: { kind: 'Name', value: 'sponsoredApproved' } }, + { kind: 'Field', name: { kind: 'Name', value: 'verified' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'NetworkAddress' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'NetworkAddress' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'address' } }, + { kind: 'Field', name: { kind: 'Name', value: 'chainId' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Image' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Image' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'uri' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mimeType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ImageSet' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'raw' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'optimized' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'small' }, + name: { kind: 'Name', value: 'transformed' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'imageSmallSize' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'medium' }, + name: { kind: 'Name', value: 'transformed' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'imageMediumSize' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EncryptableImage' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EncryptableImage' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'uri' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mimeType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'width' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EncryptableImageSet' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EncryptableImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'raw' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EncryptableImage' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'optimized' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Video' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Video' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'uri' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mimeType' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EncryptableVideo' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EncryptableVideo' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mimeType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'uri' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EncryptableVideoSet' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EncryptableVideoSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'raw' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EncryptableVideo' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'optimized' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Video' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Audio' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Audio' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'uri' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mimeType' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EncryptableAudio' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EncryptableAudio' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mimeType' } }, + { kind: 'Field', name: { kind: 'Name', value: 'uri' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'EncryptableAudioSet' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EncryptableAudioSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'raw' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EncryptableAudio' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'optimized' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Audio' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileCoverSet' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'raw' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'optimized' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'transformed' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverSize' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfilePictureSet' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'raw' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'optimized' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'thumbnail' }, + name: { kind: 'Name', value: 'transformed' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureSize' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'NftImage' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'NftImage' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'collection' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'tokenId' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'image' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfilePictureSet' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'verified' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileStats' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStats' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followers' } }, + { kind: 'Field', name: { kind: 'Name', value: 'following' } }, + { kind: 'Field', name: { kind: 'Name', value: 'comments' } }, + { kind: 'Field', name: { kind: 'Name', value: 'posts' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mirrors' } }, + { kind: 'Field', name: { kind: 'Name', value: 'quotes' } }, + { kind: 'Field', name: { kind: 'Name', value: 'publications' } }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'upvotes' }, + name: { kind: 'Name', value: 'reactions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { kind: 'EnumValue', value: 'UPVOTE' }, + }, + ], + }, + }, + ], + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'downvotes' }, + name: { kind: 'Name', value: 'reactions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { kind: 'EnumValue', value: 'DOWNVOTE' }, + }, + ], + }, + }, + ], + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'upvoted' }, + name: { kind: 'Name', value: 'reacted' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { kind: 'EnumValue', value: 'UPVOTE' }, + }, + ], + }, + }, + ], + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'downvoted' }, + name: { kind: 'Name', value: 'reacted' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { kind: 'EnumValue', value: 'DOWNVOTE' }, + }, + ], + }, + }, + ], + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'collects' }, + name: { kind: 'Name', value: 'countOpenActions' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'anyOf' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'category' }, + value: { kind: 'EnumValue', value: 'COLLECT' }, + }, + ], + }, + ], + }, + }, + ], + }, + }, + ], + }, + { kind: 'Field', name: { kind: 'Name', value: 'lensClassifierScore' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileOperations' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileOperations' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'isBlockedByMe' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'OptimisticStatusResult' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'isFollowedByMe' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'OptimisticStatusResult' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'isFollowingMe' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'OptimisticStatusResult' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'canBlock' } }, + { kind: 'Field', name: { kind: 'Name', value: 'canUnblock' } }, + { kind: 'Field', name: { kind: 'Name', value: 'canFollow' } }, + { kind: 'Field', name: { kind: 'Name', value: 'canUnfollow' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileOnchainIdentity' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileOnchainIdentity' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'proofOfHumanity' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'ens' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'Field', name: { kind: 'Name', value: 'name' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'sybilDotOrg' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'verified' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'source' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'twitter' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'Field', name: { kind: 'Name', value: 'handle' } }], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'worldcoin' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'Field', name: { kind: 'Name', value: 'isHuman' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileGuardianResult' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileGuardianResult' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'protected' } }, + { kind: 'Field', name: { kind: 'Name', value: 'cooldownEndsOn' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfilePicture' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfilePicture' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfilePictureSet' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'NftImage' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'NftImage' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileMetadata' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileMetadata' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'appId' } }, + { kind: 'Field', name: { kind: 'Name', value: 'displayName' } }, + { kind: 'Field', name: { kind: 'Name', value: 'bio' } }, + { kind: 'Field', name: { kind: 'Name', value: 'rawURI' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'picture' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfilePicture' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'coverPicture' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileCoverSet' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'attributes' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'key' } }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'HandleInfo' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'HandleInfo' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fullHandle' } }, + { kind: 'Field', name: { kind: 'Name', value: 'namespace' } }, + { kind: 'Field', name: { kind: 'Name', value: 'localName' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'suggestedFormatted' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'full' } }, + { kind: 'Field', name: { kind: 'Name', value: 'localName' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'linkedTo' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'nftTokenId' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'ownedBy' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProfileFields' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Profile' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'ownedBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'operations' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileOperations' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'interests' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'guardian' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileGuardianResult' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'invitesLeft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'onchainIdentity' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileOnchainIdentity' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'followNftAddress' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'followModule' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FeeFollowModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'FeeFollowModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'RevertFollowModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'RevertFollowModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownFollowModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownFollowModuleSettings' }, + }, + ], + }, + }, + ], + }, + }, + { + 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: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'handle' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'HandleInfo' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'sponsor' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signless' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'forApps' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileStats' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -80702,698 +87539,69 @@ export const FragmentFeedItem = /*#__PURE__*/ { }, { kind: 'Field', - name: { kind: 'Name', value: 'profilesMentioned' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMentioned' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'hashtagsMentioned' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'CommentFields' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'publishedOn' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'App' } }], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'isHidden' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hiddenByAuthor' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'momoka' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'MomokaInfo' } }], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'isEncrypted' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'by' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Profile' } }], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'operations' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationOperations' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'root' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'InlineFragment', - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'QuoteFields' } }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'metadata' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'AudioMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'AudioMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'VideoMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'VideoMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ImageMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ArticleMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'ArticleMetadataV3' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'EventMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EventMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LinkMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'LinkMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'EmbedMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EmbedMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'CheckingInMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'CheckingInMetadataV3' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ThreeDMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ThreeDMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'StoryMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'StoryMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'TransactionMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'TransactionMetadataV3' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MintMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MintMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'SpaceMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'SpaceMetadataV3' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'openActionModules' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyMultirecipientFeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'LegacyMultirecipientFeeCollectModuleSettings', - }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'referenceModule' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'LegacyDegreesOfSeparationReferenceModuleSettings', - }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'LegacyDegreesOfSeparationReferenceModuleSettings', - }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'stats' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'request' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'metadata' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'publishedOn' }, - value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, - }, - ], - }, - }, - ], - }, - }, - ], + name: { kind: 'Name', value: 'profilesMentioned' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationStats' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMentioned' } }, ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'hashtagsMentioned' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'Comment' }, + name: { kind: 'Name', value: 'CommentFields' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'profilesMentioned' }, + name: { kind: 'Name', value: 'publishedOn' }, selectionSet: { kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMentioned' } }, - ], + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'App' } }], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'hashtagsMentioned' } }, + { kind: 'Field', name: { kind: 'Name', value: 'isHidden' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hiddenByAuthor' } }, { kind: 'Field', - name: { kind: 'Name', value: 'firstComment' }, + name: { kind: 'Name', value: 'momoka' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'MomokaInfo' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'isEncrypted' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'by' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Profile' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'operations' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationOperations' } }, ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'commentOn' }, + name: { kind: 'Name', value: 'root' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -81405,16 +87613,6 @@ export const FragmentFeedItem = /*#__PURE__*/ { selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], }, }, - { - kind: 'InlineFragment', - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, - ], - }, - }, { kind: 'InlineFragment', typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, @@ -81428,79 +87626,572 @@ export const FragmentFeedItem = /*#__PURE__*/ { ], }, }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'Mirror' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Mirror' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'publishedOn' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'App' } }], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'isHidden' } }, { kind: 'Field', - name: { kind: 'Name', value: 'momoka' }, + name: { kind: 'Name', value: 'metadata' }, selectionSet: { kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'MomokaInfo' } }], + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'AudioMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'AudioMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'VideoMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'VideoMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ImageMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImageMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ArticleMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EventMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EventMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LinkMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'LinkMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'EmbedMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EmbedMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'CheckingInMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TextOnlyMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ThreeDMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ThreeDMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'StoryMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'StoryMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'TransactionMetadataV3' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MintMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'MintMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SpaceMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'SpaceMetadataV3' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LiveStreamMetadataV3' }, + }, + ], + }, + }, + ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, - { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, { kind: 'Field', - name: { kind: 'Name', value: 'by' }, + name: { kind: 'Name', value: 'openActionModules' }, selectionSet: { kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Profile' } }], + selections: [ + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFreeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyLimitedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyLimitedTimedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyRevertCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyTimedFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyMultirecipientFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'LegacyMultirecipientFeeCollectModuleSettings', + }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + ], + }, + }, + ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'mirrorOn' }, + name: { kind: 'Name', value: 'referenceModule' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'InlineFragment', - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, selectionSet: { kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + ], }, }, { kind: 'InlineFragment', - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'Comment' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, ], }, }, { kind: 'InlineFragment', - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'Quote' } }, + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'DegreesOfSeparationReferenceModuleSettings' }, + }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'LegacyDegreesOfSeparationReferenceModuleSettings', + }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'LegacyDegreesOfSeparationReferenceModuleSettings', + }, + }, ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UnknownReferenceModuleSettings' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'metadata' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'publishedOn' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'statsFor' } }, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PublicationStats' } }, ], }, }, @@ -82188,13 +88879,36 @@ export const FragmentFeedItem = /*#__PURE__*/ { }, ], } as unknown as DocumentNode; -export const FragmentFeedHighlight = /*#__PURE__*/ { +export const FragmentPaginatedResultInfo = /*#__PURE__*/ { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'FeedHighlight' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'FeedHighlight' } }, + name: { kind: 'Name', value: 'PaginatedResultInfo' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'PaginatedResultInfo' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'moreAfter' }, + directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], + }, + { kind: 'Field', name: { kind: 'Name', value: 'prev' } }, + { kind: 'Field', name: { kind: 'Name', value: 'next' } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const FragmentAnyPublicationInternal = /*#__PURE__*/ { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'AnyPublicationInternal' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'AnyPublication' } }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -82206,6 +88920,22 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], }, }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Comment' } }], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Mirror' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Mirror' } }], + }, + }, { kind: 'InlineFragment', typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, @@ -83343,6 +90073,7 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -88159,6 +94890,152 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Comment' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'profilesMentioned' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMentioned' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'hashtagsMentioned' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'firstComment' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'commentOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentFields' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'QuoteFields' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Mirror' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Mirror' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'publishedOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'App' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'isHidden' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'momoka' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'MomokaInfo' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'txHash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'by' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Profile' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'mirrorOn' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Post' } }], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'Comment' } }, + ], + }, + }, + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Quote' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'Quote' } }, + ], + }, + }, + ], + }, + }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'QuoteFields' }, @@ -88840,29 +95717,6 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { }, ], } as unknown as DocumentNode; -export const FragmentPaginatedResultInfo = /*#__PURE__*/ { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'PaginatedResultInfo' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'PaginatedResultInfo' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'moreAfter' }, - directives: [{ kind: 'Directive', name: { kind: 'Name', value: 'client' } }], - }, - { kind: 'Field', name: { kind: 'Name', value: 'prev' } }, - { kind: 'Field', name: { kind: 'Name', value: 'next' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; export const FragmentRelaySuccess = /*#__PURE__*/ { kind: 'Document', definitions: [ @@ -89876,6 +96730,7 @@ export const FragmentInvitedResult = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -90966,6 +97821,7 @@ export const FragmentProfileReactedResult = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -92194,6 +99050,7 @@ export const FragmentReactionNotification = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -98952,6 +105809,7 @@ export const FragmentCommentNotification = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -105396,6 +112254,7 @@ export const FragmentProfileMirrorResult = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -106611,6 +113470,7 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -113348,6 +120208,7 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -119912,6 +126773,7 @@ export const FragmentOpenActionProfileActed = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -121211,6 +128073,7 @@ export const FragmentActedNotification = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -127894,6 +134757,7 @@ export const FragmentFollowNotification = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -129099,6 +135963,7 @@ export const FragmentMentionNotification = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -135896,6 +142761,7 @@ export const FragmentNotification = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -145020,6 +151886,7 @@ export const FragmentProfileWhoReactedResult = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -146396,6 +153263,7 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -154302,6 +161170,7 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -160931,6 +167800,7 @@ export const ExploreProfilesDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -162384,6 +169254,7 @@ export const FeedDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -169383,6 +176254,7 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -176008,6 +182880,7 @@ export const InvitedProfilesDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -177935,6 +184808,7 @@ export const NotificationsDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -185100,6 +191974,7 @@ export const ProfileDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -186210,6 +193085,7 @@ export const ProfilesDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -187496,6 +194372,7 @@ export const ProfileRecommendationsDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -188644,6 +195521,7 @@ export const FollowingDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -189776,6 +196654,7 @@ export const FollowersDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -190921,6 +197800,7 @@ export const MutualFollowersDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -192073,6 +198953,7 @@ export const WhoActedOnPublicationDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -193207,6 +200088,7 @@ export const WhoHaveBlockedDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -196806,6 +203688,161 @@ export type ReportProfileMutationOptions = Apollo.BaseMutationOptions< ReportProfileData, ReportProfileVariables >; +export const PeerToPeerRecommendDocument = /*#__PURE__*/ { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'mutation', + name: { kind: 'Name', value: 'PeerToPeerRecommend' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'request' } }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PeerToPeerRecommendRequest' }, + }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'peerToPeerRecommend' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'request' } }, + }, + ], + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export type PeerToPeerRecommendMutationFn = Apollo.MutationFunction< + PeerToPeerRecommendData, + PeerToPeerRecommendVariables +>; + +/** + * __usePeerToPeerRecommend__ + * + * To run a mutation, you first call `usePeerToPeerRecommend` within a React component and pass it any options that fit your needs. + * When your component renders, `usePeerToPeerRecommend` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [peerToPeerRecommend, { data, loading, error }] = usePeerToPeerRecommend({ + * variables: { + * request: // value for 'request' + * }, + * }); + */ +export function usePeerToPeerRecommend( + baseOptions?: Apollo.MutationHookOptions, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + PeerToPeerRecommendDocument, + options, + ); +} +export type PeerToPeerRecommendHookResult = ReturnType; +export type PeerToPeerRecommendMutationResult = Apollo.MutationResult; +export type PeerToPeerRecommendMutationOptions = Apollo.BaseMutationOptions< + PeerToPeerRecommendData, + PeerToPeerRecommendVariables +>; +export const PeerToPeerUnrecommendDocument = /*#__PURE__*/ { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'mutation', + name: { kind: 'Name', value: 'PeerToPeerUnrecommend' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'request' } }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'PeerToPeerRecommendRequest' }, + }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'peerToPeerUnrecommend' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'request' } }, + }, + ], + }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export type PeerToPeerUnrecommendMutationFn = Apollo.MutationFunction< + PeerToPeerUnrecommendData, + PeerToPeerUnrecommendVariables +>; + +/** + * __usePeerToPeerUnrecommend__ + * + * To run a mutation, you first call `usePeerToPeerUnrecommend` within a React component and pass it any options that fit your needs. + * When your component renders, `usePeerToPeerUnrecommend` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [peerToPeerUnrecommend, { data, loading, error }] = usePeerToPeerUnrecommend({ + * variables: { + * request: // value for 'request' + * }, + * }); + */ +export function usePeerToPeerUnrecommend( + baseOptions?: Apollo.MutationHookOptions< + PeerToPeerUnrecommendData, + PeerToPeerUnrecommendVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + PeerToPeerUnrecommendDocument, + options, + ); +} +export type PeerToPeerUnrecommendHookResult = ReturnType; +export type PeerToPeerUnrecommendMutationResult = Apollo.MutationResult; +export type PeerToPeerUnrecommendMutationOptions = Apollo.BaseMutationOptions< + PeerToPeerUnrecommendData, + PeerToPeerUnrecommendVariables +>; export const PublicationDocument = /*#__PURE__*/ { kind: 'Document', definitions: [ @@ -198069,6 +205106,7 @@ export const PublicationDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -205076,6 +212114,7 @@ export const PublicationsDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -212333,6 +219372,7 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -222909,6 +229949,7 @@ export const WhoReactedPublicationDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -224349,6 +231390,7 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -231385,6 +238427,7 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -238726,6 +245769,7 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -245422,6 +252466,7 @@ export const SearchProfilesDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -247386,6 +254431,7 @@ export const ProfilesManagedDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, @@ -248557,6 +255603,7 @@ export const LastLoggedInProfileDocument = /*#__PURE__*/ { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'peerToPeerRecommendedByMe' } }, ], }, }, diff --git a/packages/api-bindings/src/lens/graphql/profile.graphql b/packages/api-bindings/src/lens/graphql/profile.graphql index 98b450de5..99373528d 100644 --- a/packages/api-bindings/src/lens/graphql/profile.graphql +++ b/packages/api-bindings/src/lens/graphql/profile.graphql @@ -625,3 +625,11 @@ mutation CreateUnlinkHandleFromProfileTypedData( mutation ReportProfile($request: ReportProfileRequest!) { reportProfile(request: $request) } + +mutation PeerToPeerRecommend($request: PeerToPeerRecommendRequest!) { + peerToPeerRecommend(request: $request) +} + +mutation PeerToPeerUnrecommend($request: PeerToPeerRecommendRequest!) { + peerToPeerUnrecommend(request: $request) +} diff --git a/packages/domain/src/use-cases/publications/ToggleProperty.ts b/packages/domain/src/use-cases/_common/ToggleProperty.ts similarity index 50% rename from packages/domain/src/use-cases/publications/ToggleProperty.ts rename to packages/domain/src/use-cases/_common/ToggleProperty.ts index 90291a142..5eb8992d2 100644 --- a/packages/domain/src/use-cases/publications/ToggleProperty.ts +++ b/packages/domain/src/use-cases/_common/ToggleProperty.ts @@ -1,17 +1,15 @@ -import { PublicationId } from '../../entities'; - export type TogglePropertyRequest = { - publicationId: PublicationId; + id: string; }; export interface ITogglablePropertyGateway { - add(request: T): Promise; - remove(request: T): Promise; + on(request: T): Promise; + off(request: T): Promise; } export interface ITogglablePropertyPresenter { - add(data: T): Promise; - remove(data: T): Promise; + on(data: T): Promise; + off(data: T): Promise; } export class ToggleProperty { @@ -20,24 +18,24 @@ export class ToggleProperty { private readonly presenter: ITogglablePropertyPresenter, ) {} - async add(request: T) { - await this.presenter.add(request); + async on(request: T) { + await this.presenter.on(request); try { - await this.gateway.add(request); + await this.gateway.on(request); } catch (e) { - await this.presenter.remove(request); + await this.presenter.off(request); throw e; } } - async remove(request: T) { - await this.presenter.remove(request); + async off(request: T) { + await this.presenter.off(request); try { - await this.gateway.remove(request); + await this.gateway.off(request); } catch (e) { - await this.presenter.add(request); + await this.presenter.on(request); throw e; } } diff --git a/packages/domain/src/use-cases/publications/__tests__/ToggleProperty.spec.ts b/packages/domain/src/use-cases/_common/__tests__/ToggleProperty.spec.ts similarity index 60% rename from packages/domain/src/use-cases/publications/__tests__/ToggleProperty.spec.ts rename to packages/domain/src/use-cases/_common/__tests__/ToggleProperty.spec.ts index f84902c72..24370d1f4 100644 --- a/packages/domain/src/use-cases/publications/__tests__/ToggleProperty.spec.ts +++ b/packages/domain/src/use-cases/_common/__tests__/ToggleProperty.spec.ts @@ -1,71 +1,77 @@ import { mock } from 'jest-mock-extended'; import { when } from 'jest-when'; +import { mockPublicationId } from '../../../mocks'; import { ToggleProperty, ITogglablePropertyGateway, ITogglablePropertyPresenter, TogglePropertyRequest, } from '../ToggleProperty'; -import { mockTogglePropertyRequest } from '../__helpers__/mocks'; + +function mockTogglePropertyRequest(): TogglePropertyRequest { + return { + id: mockPublicationId(), + }; +} describe(`Given the ${ToggleProperty.name} use-case interactor`, () => { - describe(`when executing the "${ToggleProperty.prototype.add.name}" method`, () => { + describe(`when executing the "${ToggleProperty.prototype.on.name}" method`, () => { const request = mockTogglePropertyRequest(); it(`should: - present optimistic update - - add new property`, async () => { + - toggle on the new property`, async () => { const presenter = mock>(); const gateway = mock>(); const property = new ToggleProperty(gateway, presenter); - await property.add(request); + await property.on(request); - expect(presenter.add).toHaveBeenCalledWith(request); + expect(presenter.on).toHaveBeenCalledWith(request); }); it(`should revert the optimistic update in case of errors and propagate the error`, async () => { const presenter = mock>(); - const gateway = mock>(); - when(gateway.add).calledWith(request).mockRejectedValue(new Error('')); + + when(gateway.on).calledWith(request).mockRejectedValue(new Error('')); const property = new ToggleProperty(gateway, presenter); - await expect(property.add(request)).rejects.toThrow(); + await expect(property.on(request)).rejects.toThrow(); - expect(presenter.add).toHaveBeenCalledWith(request); - expect(presenter.remove).toHaveBeenCalledWith(request); + expect(presenter.on).toHaveBeenCalledWith(request); + expect(presenter.off).toHaveBeenCalledWith(request); }); }); - describe(`when executing the "${ToggleProperty.prototype.remove.name}" method`, () => { + describe(`when executing the "${ToggleProperty.prototype.off.name}" method`, () => { const request = mockTogglePropertyRequest(); it(`should: - present optimistic update - - remove the property`, async () => { + - toggle off the property`, async () => { const presenter = mock>(); const gateway = mock>(); const property = new ToggleProperty(gateway, presenter); - await property.remove(request); + await property.on(request); - expect(presenter.remove).toHaveBeenCalledWith(request); + expect(presenter.on).toHaveBeenCalledWith(request); }); it(`should revert the optimistic update in case of errors and propagate the error`, async () => { const presenter = mock>(); - const gateway = mock>(); - when(gateway.remove).calledWith(request).mockRejectedValue(new Error('')); + + when(gateway.off).calledWith(request).mockRejectedValue(new Error('')); const property = new ToggleProperty(gateway, presenter); - await expect(property.remove(request)).rejects.toThrow(); + await expect(property.off(request)).rejects.toThrow(); - expect(presenter.remove).toHaveBeenCalledWith(request); - expect(presenter.add).toHaveBeenCalledWith(request); + expect(presenter.off).toHaveBeenCalledWith(request); + expect(presenter.on).toHaveBeenCalledWith(request); }); }); }); diff --git a/packages/domain/src/use-cases/profile/ToggleProfileProperty.ts b/packages/domain/src/use-cases/profile/ToggleProfileProperty.ts new file mode 100644 index 000000000..5f940eb96 --- /dev/null +++ b/packages/domain/src/use-cases/profile/ToggleProfileProperty.ts @@ -0,0 +1,18 @@ +import { ProfileId } from '../../entities'; +import { + ITogglablePropertyGateway, + ITogglablePropertyPresenter, + ToggleProperty, +} from '../_common/ToggleProperty'; + +export type ToggleProfilePropertyRequest = { + id: ProfileId; +}; + +export interface ITogglableProfilePropertyGateway + extends ITogglablePropertyGateway {} + +export interface ITogglableProfilePropertyPresenter + extends ITogglablePropertyPresenter {} + +export const ToggleProfileProperty = ToggleProperty; diff --git a/packages/domain/src/use-cases/profile/index.ts b/packages/domain/src/use-cases/profile/index.ts index 2dddd182f..50a870255 100644 --- a/packages/domain/src/use-cases/profile/index.ts +++ b/packages/domain/src/use-cases/profile/index.ts @@ -7,6 +7,7 @@ export * from './FollowProfile'; export * from './LinkHandle'; export * from './ReportProfile'; export * from './SetProfileMetadata'; +export * from './ToggleProfileProperty'; export * from './UnblockProfiles'; export * from './UnfollowProfile'; export * from './UnfollowProfile'; diff --git a/packages/domain/src/use-cases/publications/TogglePublicationProperty.ts b/packages/domain/src/use-cases/publications/TogglePublicationProperty.ts new file mode 100644 index 000000000..e690806a5 --- /dev/null +++ b/packages/domain/src/use-cases/publications/TogglePublicationProperty.ts @@ -0,0 +1,18 @@ +import { PublicationId } from '../../entities'; +import { + ITogglablePropertyGateway, + ITogglablePropertyPresenter, + ToggleProperty, +} from '../_common/ToggleProperty'; + +export type TogglePublicationPropertyRequest = { + id: PublicationId; +}; + +export interface ITogglablePublicationPropertyGateway + extends ITogglablePropertyGateway {} + +export interface ITogglablePublicationPropertyPresenter + extends ITogglablePropertyPresenter {} + +export const TogglePublicationProperty = ToggleProperty; diff --git a/packages/domain/src/use-cases/publications/__helpers__/mocks.ts b/packages/domain/src/use-cases/publications/__helpers__/mocks.ts index b57e00428..4db3188cf 100644 --- a/packages/domain/src/use-cases/publications/__helpers__/mocks.ts +++ b/packages/domain/src/use-cases/publications/__helpers__/mocks.ts @@ -20,7 +20,6 @@ import { import { OpenActionType, UnknownOpenActionConfig } from '../OpenActionConfig'; import { AnyoneReferencePolicyConfig, ReferencePolicyType } from '../ReferencePolicyConfig'; import { ReportPublicationRequest } from '../ReportPublication'; -import { TogglePropertyRequest } from '../ToggleProperty'; export function mockCreateMirrorRequest( overrides?: Partial, @@ -76,15 +75,6 @@ export function mockCreateQuoteRequest( }; } -export function mockTogglePropertyRequest( - overrides?: Partial, -): TogglePropertyRequest { - return { - publicationId: mockPublicationId(), - ...overrides, - }; -} - export function mockHidePublicationRequest( overrides?: Partial, ): HidePublicationRequest { diff --git a/packages/domain/src/use-cases/publications/index.ts b/packages/domain/src/use-cases/publications/index.ts index 9ed28d0aa..7d38695ed 100644 --- a/packages/domain/src/use-cases/publications/index.ts +++ b/packages/domain/src/use-cases/publications/index.ts @@ -7,4 +7,4 @@ export * from './OpenAction'; export * from './OpenActionConfig'; export * from './ReferencePolicyConfig'; export * from './ReportPublication'; -export * from './ToggleProperty'; +export * from './TogglePublicationProperty'; diff --git a/packages/react/src/profile/adapters/IProfileCacheManager.ts b/packages/react/src/profile/adapters/IProfileCacheManager.ts index 5d5302b2d..9a5908ada 100644 --- a/packages/react/src/profile/adapters/IProfileCacheManager.ts +++ b/packages/react/src/profile/adapters/IProfileCacheManager.ts @@ -5,4 +5,8 @@ export interface IProfileCacheManager { fetchProfileById(id: ProfileId): Promise; fetchProfileByHandle(fullHandle: string): Promise; refreshCurrentProfile(): Promise; + update( + profileId: ProfileId, + updateFn: (current: TProfile) => TProfile, + ): void; } diff --git a/packages/react/src/profile/adapters/RecommendProfileGateway.ts b/packages/react/src/profile/adapters/RecommendProfileGateway.ts new file mode 100644 index 000000000..94bfb0c27 --- /dev/null +++ b/packages/react/src/profile/adapters/RecommendProfileGateway.ts @@ -0,0 +1,43 @@ +import { + PeerToPeerRecommendData, + PeerToPeerRecommendDocument, + PeerToPeerRecommendVariables, + PeerToPeerUnrecommendData, + PeerToPeerUnrecommendDocument, + PeerToPeerUnrecommendVariables, + SafeApolloClient, +} from '@lens-protocol/api-bindings'; +import { + ITogglableProfilePropertyGateway, + ToggleProfilePropertyRequest, +} from '@lens-protocol/domain/use-cases/profile'; + +export type RecommendProfileRequest = ToggleProfilePropertyRequest; + +export class RecommendProfileGateway implements ITogglableProfilePropertyGateway { + constructor(private apolloClient: SafeApolloClient) {} + + // recommend + async on({ id }: RecommendProfileRequest): Promise { + await this.apolloClient.mutate({ + mutation: PeerToPeerRecommendDocument, + variables: { + request: { + profileId: id, + }, + }, + }); + } + + // unrecommend + async off({ id }: RecommendProfileRequest): Promise { + await this.apolloClient.mutate({ + mutation: PeerToPeerUnrecommendDocument, + variables: { + request: { + profileId: id, + }, + }, + }); + } +} diff --git a/packages/react/src/profile/adapters/RecommendProfilePresenter.ts b/packages/react/src/profile/adapters/RecommendProfilePresenter.ts new file mode 100644 index 000000000..1630d40d6 --- /dev/null +++ b/packages/react/src/profile/adapters/RecommendProfilePresenter.ts @@ -0,0 +1,28 @@ +import { ITogglableProfilePropertyPresenter } from '@lens-protocol/domain/use-cases/profile'; + +import { IProfileCacheManager } from './IProfileCacheManager'; +import { RecommendProfileRequest } from './RecommendProfileGateway'; + +export class RecommendProfilePresenter implements ITogglableProfilePropertyPresenter { + constructor(private readonly profileCacheManager: IProfileCacheManager) {} + + // recommend + async on({ id }: RecommendProfileRequest) { + this.profileCacheManager.update(id, (current) => { + return { + ...current, + peerToPeerRecommendedByMe: true, + }; + }); + } + + // unrecommend + async off({ id }: RecommendProfileRequest) { + this.profileCacheManager.update(id, (current) => { + return { + ...current, + peerToPeerRecommendedByMe: false, + }; + }); + } +} diff --git a/packages/react/src/profile/adapters/useRecommendProfileController.ts b/packages/react/src/profile/adapters/useRecommendProfileController.ts new file mode 100644 index 000000000..b9c42656e --- /dev/null +++ b/packages/react/src/profile/adapters/useRecommendProfileController.ts @@ -0,0 +1,30 @@ +import { ToggleProfileProperty } from '@lens-protocol/domain/use-cases/profile'; + +import { useSharedDependencies } from '../../shared'; +import { RecommendProfileGateway, RecommendProfileRequest } from './RecommendProfileGateway'; +import { RecommendProfilePresenter } from './RecommendProfilePresenter'; + +export function useRecommendProfileController() { + const { apolloClient, profileCacheManager } = useSharedDependencies(); + + const recommend = async (request: RecommendProfileRequest) => { + const presenter = new RecommendProfilePresenter(profileCacheManager); + const gateway = new RecommendProfileGateway(apolloClient); + const toggle = new ToggleProfileProperty(gateway, presenter); + + await toggle.on(request); + }; + + const unrecommend = async (request: RecommendProfileRequest) => { + const presenter = new RecommendProfilePresenter(profileCacheManager); + const gateway = new RecommendProfileGateway(apolloClient); + const toggle = new ToggleProfileProperty(gateway, presenter); + + await toggle.off(request); + }; + + return { + recommend, + unrecommend, + }; +} diff --git a/packages/react/src/profile/index.ts b/packages/react/src/profile/index.ts index ffd3b820e..d5d0ebb4e 100644 --- a/packages/react/src/profile/index.ts +++ b/packages/react/src/profile/index.ts @@ -11,6 +11,7 @@ export * from './useProfileFollowers'; export * from './useProfileFollowing'; export * from './useProfileManagers'; export * from './useProfiles'; +export * from './useRecommendProfileToggle'; export * from './useReportProfile'; export * from './useWhoActedOnPublication'; diff --git a/packages/react/src/profile/infrastructure/ProfileCacheManager.ts b/packages/react/src/profile/infrastructure/ProfileCacheManager.ts index c133f3630..f2adc6fbf 100644 --- a/packages/react/src/profile/infrastructure/ProfileCacheManager.ts +++ b/packages/react/src/profile/infrastructure/ProfileCacheManager.ts @@ -1,6 +1,8 @@ import { AllFragmentVariables, + FragmentProfile, getSessionData, + Profile, ProfileData, ProfileDocument, ProfileRequest, @@ -49,6 +51,26 @@ export class ProfileCacheManager implements IProfileCacheManager { }); } + update( + profileId: ProfileId, + updateFn: (current: TProfile) => TProfile, + ) { + this.client.cache.updateFragment( + { + id: this.client.cache.identify({ __typename: 'Profile', id: profileId }), + fragment: FragmentProfile, + fragmentName: 'Profile', + variables: this.variables, + }, + (data: Profile | null) => { + if (data) { + return updateFn(data); + } + return data; + }, + ); + } + private async fetch(request: ProfileRequest) { const { data } = await this.client.query({ query: ProfileDocument, diff --git a/packages/react/src/profile/useRecommendProfileToggle.ts b/packages/react/src/profile/useRecommendProfileToggle.ts new file mode 100644 index 000000000..60debe291 --- /dev/null +++ b/packages/react/src/profile/useRecommendProfileToggle.ts @@ -0,0 +1,66 @@ +import { Profile } from '@lens-protocol/api-bindings'; +import { invariant, success } from '@lens-protocol/shared-kernel'; + +import { SessionType, useSession } from '../authentication'; +import { UseDeferredTask, useDeferredTask } from '../helpers/tasks'; +import { useRecommendProfileController } from './adapters/useRecommendProfileController'; + +export type UseRecommendProfileToggleArgs = { + profile: Profile; +}; + +/** + * This hook enables you to either recommend a peer profile or withdraw a previous recommendation. + * + * You MUST be authenticated via {@link useLogin} to use this hook. + * + * @example + * ```tsx + * import { Profile, useRecommendProfileToggle } from '@lens-protocol/react-web'; + * + * function ProfileRecommendation({ profile }: { profile: Profile }) { + * const { execute: toggle, loading } = useRecommendProfileToggle(); + * + * return ( + * + * ); + * } + * ``` + * + * @category Profiles + * @group Hooks + * @param args - {@link UseRecommendProfileToggleArgs} + */ +export function useRecommendProfileToggle(): UseDeferredTask< + void, + never, + UseRecommendProfileToggleArgs +> { + const { data: session } = useSession(); + const { recommend, unrecommend } = useRecommendProfileController(); + + return useDeferredTask(async ({ profile }) => { + invariant( + session?.authenticated, + 'You must be authenticated to use this operation. Use `useLogin` hook to authenticate.', + ); + invariant( + session.type === SessionType.WithProfile, + 'You must be authenticated with a profile to use this query. Use `useLogin` hook to authenticate.', + ); + + if (profile.peerToPeerRecommendedByMe) { + await unrecommend({ + id: profile.id, + }); + } else { + await recommend({ + id: profile.id, + }); + } + + return success(); + }); +} diff --git a/packages/react/src/publication/adapters/BookmarksGateway.ts b/packages/react/src/publication/adapters/BookmarksGateway.ts index b6d1eb6f4..d3b001176 100644 --- a/packages/react/src/publication/adapters/BookmarksGateway.ts +++ b/packages/react/src/publication/adapters/BookmarksGateway.ts @@ -8,27 +8,29 @@ import { SafeApolloClient, } from '@lens-protocol/api-bindings'; import { - ITogglablePropertyGateway, - TogglePropertyRequest, + ITogglablePublicationPropertyGateway, + TogglePublicationPropertyRequest, } from '@lens-protocol/domain/use-cases/publications'; -export type BookmarkRequest = TogglePropertyRequest; +export type BookmarkRequest = TogglePublicationPropertyRequest; -export class BookmarksGateway implements ITogglablePropertyGateway { +export class BookmarksGateway implements ITogglablePublicationPropertyGateway { constructor(private apolloClient: SafeApolloClient) {} - async add({ publicationId }: BookmarkRequest): Promise { + // add + async on({ id }: BookmarkRequest): Promise { await this.apolloClient.mutate({ mutation: AddPublicationBookmarkDocument, variables: { request: { - on: publicationId, + on: id, }, }, }); } - async remove({ publicationId }: BookmarkRequest): Promise { + // remove + async off({ id }: BookmarkRequest): Promise { await this.apolloClient.mutate< RemovePublicationBookmarkData, RemovePublicationBookmarkVariables @@ -36,7 +38,7 @@ export class BookmarksGateway implements ITogglablePropertyGateway { +export class BookmarksPresenter implements ITogglablePublicationPropertyPresenter { constructor(private readonly publicationCacheManager: IPublicationCacheManager) {} - async add({ publicationId }: TogglePropertyRequest) { - this.publicationCacheManager.update(publicationId, (current) => { + // add + async on({ id }: BookmarkRequest) { + this.publicationCacheManager.update(id, (current) => { if (!isPrimaryPublication(current)) { return current; } @@ -26,8 +24,9 @@ export class BookmarksPresenter implements ITogglablePropertyPresenter { + // remove + async off({ id }: BookmarkRequest) { + this.publicationCacheManager.update(id, (current) => { if (!isPrimaryPublication(current)) { return current; } diff --git a/packages/react/src/publication/adapters/HideCommentGateway.ts b/packages/react/src/publication/adapters/HideCommentGateway.ts index c2f26bc17..24833f0f8 100644 --- a/packages/react/src/publication/adapters/HideCommentGateway.ts +++ b/packages/react/src/publication/adapters/HideCommentGateway.ts @@ -8,34 +8,34 @@ import { UnhideCommentVariables, } from '@lens-protocol/api-bindings'; import { - ITogglablePropertyGateway, - TogglePropertyRequest, + ITogglablePublicationPropertyGateway, + TogglePublicationPropertyRequest, } from '@lens-protocol/domain/use-cases/publications'; -export type HideCommentRequest = TogglePropertyRequest; +export type HideCommentRequest = TogglePublicationPropertyRequest; -export class HideCommentGateway implements ITogglablePropertyGateway { +export class HideCommentGateway implements ITogglablePublicationPropertyGateway { constructor(private apolloClient: SafeApolloClient) {} // hide - async add({ publicationId }: HideCommentRequest): Promise { + async on({ id }: HideCommentRequest): Promise { await this.apolloClient.mutate({ mutation: HideCommentDocument, variables: { request: { - for: publicationId, + for: id, }, }, }); } // unhide - async remove({ publicationId }: HideCommentRequest): Promise { + async off({ id }: HideCommentRequest): Promise { await this.apolloClient.mutate({ mutation: UnhideCommentDocument, variables: { request: { - for: publicationId, + for: id, }, }, }); diff --git a/packages/react/src/publication/adapters/HideCommentPresenter.ts b/packages/react/src/publication/adapters/HideCommentPresenter.ts index e288185b4..cf433881b 100644 --- a/packages/react/src/publication/adapters/HideCommentPresenter.ts +++ b/packages/react/src/publication/adapters/HideCommentPresenter.ts @@ -1,18 +1,15 @@ import { isCommentPublication } from '@lens-protocol/api-bindings'; -import { - ITogglablePropertyPresenter, - TogglePropertyRequest, -} from '@lens-protocol/domain/use-cases/publications'; +import { ITogglablePublicationPropertyPresenter } from '@lens-protocol/domain/use-cases/publications'; import { HideCommentRequest } from './HideCommentGateway'; import { IPublicationCacheManager } from './IPublicationCacheManager'; -export class HideCommentPresenter implements ITogglablePropertyPresenter { +export class HideCommentPresenter implements ITogglablePublicationPropertyPresenter { constructor(private readonly publicationCacheManager: IPublicationCacheManager) {} // hide - async add({ publicationId }: TogglePropertyRequest) { - this.publicationCacheManager.update(publicationId, (current) => { + async on({ id }: HideCommentRequest) { + this.publicationCacheManager.update(id, (current) => { if (!isCommentPublication(current)) { return current; } @@ -25,8 +22,8 @@ export class HideCommentPresenter implements ITogglablePropertyPresenter { + async off({ id }: HideCommentRequest) { + this.publicationCacheManager.update(id, (current) => { if (!isCommentPublication(current)) { return current; } diff --git a/packages/react/src/publication/adapters/NotInterestedGateway.ts b/packages/react/src/publication/adapters/NotInterestedGateway.ts index cff5940e4..7ecf38e25 100644 --- a/packages/react/src/publication/adapters/NotInterestedGateway.ts +++ b/packages/react/src/publication/adapters/NotInterestedGateway.ts @@ -8,16 +8,17 @@ import { AddPublicationNotInterestedVariables, } from '@lens-protocol/api-bindings'; import { - ITogglablePropertyGateway, - TogglePropertyRequest, + ITogglablePublicationPropertyGateway, + TogglePublicationPropertyRequest, } from '@lens-protocol/domain/use-cases/publications'; -export type NotInterestedRequest = TogglePropertyRequest; +export type NotInterestedRequest = TogglePublicationPropertyRequest; -export class NotInterestedGateway implements ITogglablePropertyGateway { +export class NotInterestedGateway implements ITogglablePublicationPropertyGateway { constructor(private apolloClient: SafeApolloClient) {} - async add({ publicationId }: NotInterestedRequest): Promise { + // add + async on({ id }: NotInterestedRequest): Promise { await this.apolloClient.mutate< AddPublicationNotInterestedData, AddPublicationNotInterestedVariables @@ -25,13 +26,14 @@ export class NotInterestedGateway implements ITogglablePropertyGateway { + // remove + async off({ id }: NotInterestedRequest): Promise { await this.apolloClient.mutate< UndoPublicationNotInterestedData, UndoPublicationNotInterestedVariables @@ -39,7 +41,7 @@ export class NotInterestedGateway implements ITogglablePropertyGateway { +export class NotInterestedPresenter implements ITogglablePublicationPropertyPresenter { constructor(private readonly publicationCacheManager: IPublicationCacheManager) {} - async add({ publicationId }: TogglePropertyRequest) { - this.publicationCacheManager.update(publicationId, (current) => { + // add + async on({ id }: NotInterestedRequest) { + this.publicationCacheManager.update(id, (current) => { if (!isPrimaryPublication(current)) { return current; } @@ -26,8 +24,9 @@ export class NotInterestedPresenter implements ITogglablePropertyPresenter { + // remove + async off({ id }: NotInterestedRequest) { + this.publicationCacheManager.update(id, (current) => { if (!isPrimaryPublication(current)) { return current; } diff --git a/packages/react/src/publication/adapters/ReactionGateway.ts b/packages/react/src/publication/adapters/ReactionGateway.ts index b6c68ef21..b0b0e9f81 100644 --- a/packages/react/src/publication/adapters/ReactionGateway.ts +++ b/packages/react/src/publication/adapters/ReactionGateway.ts @@ -8,39 +8,37 @@ import { SafeApolloClient, PublicationReactionType, } from '@lens-protocol/api-bindings'; -import { - TogglePropertyRequest, - ITogglablePropertyGateway, -} from '@lens-protocol/domain/use-cases/publications'; -import { Prettify } from '@lens-protocol/shared-kernel'; +import { PublicationId } from '@lens-protocol/domain/entities'; +import { ITogglablePublicationPropertyGateway } from '@lens-protocol/domain/use-cases/publications'; -export type ReactionRequest = Prettify< - TogglePropertyRequest & { - reaction: PublicationReactionType; - } ->; +export type ReactionRequest = { + id: PublicationId; + reaction: PublicationReactionType; +}; -export class ReactionGateway implements ITogglablePropertyGateway { +export class ReactionGateway implements ITogglablePublicationPropertyGateway { constructor(private apolloClient: SafeApolloClient) {} - async add(request: ReactionRequest): Promise { + // add + async on(request: ReactionRequest): Promise { await this.apolloClient.mutate({ mutation: AddReactionDocument, variables: { request: { - for: request.publicationId, + for: request.id, reaction: request.reaction, }, }, }); } - async remove(request: ReactionRequest): Promise { + // remove + async off(request: ReactionRequest): Promise { await this.apolloClient.mutate({ mutation: RemoveReactionDocument, variables: { request: { - for: request.publicationId, + for: request.id, reaction: request.reaction, }, }, diff --git a/packages/react/src/publication/adapters/ReactionPresenter.ts b/packages/react/src/publication/adapters/ReactionPresenter.ts index 6834712c0..7ec78ec63 100644 --- a/packages/react/src/publication/adapters/ReactionPresenter.ts +++ b/packages/react/src/publication/adapters/ReactionPresenter.ts @@ -3,7 +3,7 @@ import { PublicationStats, isPrimaryPublication, } from '@lens-protocol/api-bindings'; -import { ITogglablePropertyPresenter } from '@lens-protocol/domain/use-cases/publications'; +import { ITogglablePublicationPropertyPresenter } from '@lens-protocol/domain/use-cases/publications'; import { IPublicationCacheManager } from './IPublicationCacheManager'; import { ReactionRequest } from './ReactionGateway'; @@ -60,11 +60,12 @@ function updateStatsOnRemove(stats: PublicationStats, reaction: PublicationReact } } -export class ReactionPresenter implements ITogglablePropertyPresenter { +export class ReactionPresenter implements ITogglablePublicationPropertyPresenter { constructor(private readonly publicationCacheManager: IPublicationCacheManager) {} - async add(request: ReactionRequest): Promise { - this.publicationCacheManager.update(request.publicationId, (current) => { + // add + async on(request: ReactionRequest): Promise { + this.publicationCacheManager.update(request.id, (current) => { if (isPrimaryPublication(current)) { return { ...current, @@ -83,8 +84,9 @@ export class ReactionPresenter implements ITogglablePropertyPresenter { - this.publicationCacheManager.update(request.publicationId, (current) => { + // remove + async off(request: ReactionRequest): Promise { + this.publicationCacheManager.update(request.id, (current) => { if (isPrimaryPublication(current)) { return { ...current, diff --git a/packages/react/src/publication/adapters/useBookmarkToggleController.ts b/packages/react/src/publication/adapters/useBookmarkToggleController.ts index d7d7fdb5a..34eb2fa6e 100644 --- a/packages/react/src/publication/adapters/useBookmarkToggleController.ts +++ b/packages/react/src/publication/adapters/useBookmarkToggleController.ts @@ -1,4 +1,4 @@ -import { ToggleProperty } from '@lens-protocol/domain/use-cases/publications'; +import { TogglePublicationProperty } from '@lens-protocol/domain/use-cases/publications'; import { useSharedDependencies } from '../../shared'; import { BookmarkRequest, BookmarksGateway } from './BookmarksGateway'; @@ -10,17 +10,17 @@ export function useBookmarkToggleController() { const add = async (request: BookmarkRequest) => { const presenter = new BookmarksPresenter(publicationCacheManager); const gateway = new BookmarksGateway(apolloClient); - const bookmark = new ToggleProperty(gateway, presenter); + const toggle = new TogglePublicationProperty(gateway, presenter); - await bookmark.add(request); + await toggle.on(request); }; const remove = async (request: BookmarkRequest) => { const presenter = new BookmarksPresenter(publicationCacheManager); const gateway = new BookmarksGateway(apolloClient); - const bookmark = new ToggleProperty(gateway, presenter); + const toggle = new TogglePublicationProperty(gateway, presenter); - await bookmark.remove(request); + await toggle.off(request); }; return { diff --git a/packages/react/src/publication/adapters/useHideCommentController.ts b/packages/react/src/publication/adapters/useHideCommentController.ts index cc65a755e..3f2094431 100644 --- a/packages/react/src/publication/adapters/useHideCommentController.ts +++ b/packages/react/src/publication/adapters/useHideCommentController.ts @@ -1,4 +1,4 @@ -import { ToggleProperty } from '@lens-protocol/domain/use-cases/publications'; +import { TogglePublicationProperty } from '@lens-protocol/domain/use-cases/publications'; import { useSharedDependencies } from '../../shared'; import { HideCommentGateway, HideCommentRequest } from './HideCommentGateway'; @@ -10,17 +10,17 @@ export function useHideCommentController() { const hide = async (request: HideCommentRequest) => { const presenter = new HideCommentPresenter(publicationCacheManager); const gateway = new HideCommentGateway(apolloClient); - const comment = new ToggleProperty(gateway, presenter); + const toggle = new TogglePublicationProperty(gateway, presenter); - await comment.add(request); + await toggle.on(request); }; const unhide = async (request: HideCommentRequest) => { const presenter = new HideCommentPresenter(publicationCacheManager); const gateway = new HideCommentGateway(apolloClient); - const reaction = new ToggleProperty(gateway, presenter); + const toggle = new TogglePublicationProperty(gateway, presenter); - await reaction.remove(request); + await toggle.off(request); }; return { diff --git a/packages/react/src/publication/adapters/useNotInterestedController.ts b/packages/react/src/publication/adapters/useNotInterestedController.ts index 322849c70..97811100c 100644 --- a/packages/react/src/publication/adapters/useNotInterestedController.ts +++ b/packages/react/src/publication/adapters/useNotInterestedController.ts @@ -1,4 +1,4 @@ -import { ToggleProperty } from '@lens-protocol/domain/use-cases/publications'; +import { TogglePublicationProperty } from '@lens-protocol/domain/use-cases/publications'; import { useSharedDependencies } from '../../shared'; import { NotInterestedGateway, NotInterestedRequest } from './NotInterestedGateway'; @@ -10,17 +10,17 @@ export function useNotInterestedController() { const add = async (request: NotInterestedRequest) => { const presenter = new NotInterestedPresenter(publicationCacheManager); const gateway = new NotInterestedGateway(apolloClient); - const reaction = new ToggleProperty(gateway, presenter); + const toggle = new TogglePublicationProperty(gateway, presenter); - await reaction.add(request); + await toggle.on(request); }; const remove = async (request: NotInterestedRequest) => { const presenter = new NotInterestedPresenter(publicationCacheManager); const gateway = new NotInterestedGateway(apolloClient); - const reaction = new ToggleProperty(gateway, presenter); + const toggle = new TogglePublicationProperty(gateway, presenter); - await reaction.remove(request); + await toggle.off(request); }; return { diff --git a/packages/react/src/publication/adapters/useReactionToggleController.ts b/packages/react/src/publication/adapters/useReactionToggleController.ts index 29ae2a188..413d0c28f 100644 --- a/packages/react/src/publication/adapters/useReactionToggleController.ts +++ b/packages/react/src/publication/adapters/useReactionToggleController.ts @@ -1,4 +1,4 @@ -import { ToggleProperty } from '@lens-protocol/domain/use-cases/publications'; +import { TogglePublicationProperty } from '@lens-protocol/domain/use-cases/publications'; import { useSharedDependencies } from '../../shared'; import { ReactionRequest, ReactionGateway } from './ReactionGateway'; @@ -10,17 +10,17 @@ export function useReactionToggleController() { const add = async (request: ReactionRequest) => { const presenter = new ReactionPresenter(publicationCacheManager); const gateway = new ReactionGateway(apolloClient); - const reaction = new ToggleProperty(gateway, presenter); + const toggle = new TogglePublicationProperty(gateway, presenter); - await reaction.add(request); + await toggle.on(request); }; const remove = async (request: ReactionRequest) => { const presenter = new ReactionPresenter(publicationCacheManager); const gateway = new ReactionGateway(apolloClient); - const reaction = new ToggleProperty(gateway, presenter); + const toggle = new TogglePublicationProperty(gateway, presenter); - await reaction.remove(request); + await toggle.off(request); }; return { diff --git a/packages/react/src/publication/infrastructure/PublicationCacheManager.ts b/packages/react/src/publication/infrastructure/PublicationCacheManager.ts index 45fca0070..d233f2695 100644 --- a/packages/react/src/publication/infrastructure/PublicationCacheManager.ts +++ b/packages/react/src/publication/infrastructure/PublicationCacheManager.ts @@ -3,6 +3,7 @@ import { AllFragmentVariables, AnyPublication, Comment, + FragmentAnyPublicationInternal, isCommentPublication, isMirrorPublication, isPostPublication, @@ -66,22 +67,16 @@ export class PublicationCacheManager implements IPublicationCacheManager { publicationId: PublicationId, updateFn: (current: TPublication) => TPublication, ) { - this.client.cache.updateQuery( + this.client.cache.updateFragment( { - query: PublicationDocument, - variables: { - request: { - forId: publicationId, - }, - ...this.variables, - }, + id: this.client.cache.identify({ __typename: 'AnyPublication', id: publicationId }), + fragment: FragmentAnyPublicationInternal, + fragmentName: 'AnyPublicationInternal', + variables: this.variables, }, - (data) => { - if (data?.result) { - return { - ...data, - result: updateFn(data.result), - }; + (data: AnyPublication | null) => { + if (data) { + return updateFn(data); } return data; }, diff --git a/packages/react/src/publication/useBookmarkToggle.ts b/packages/react/src/publication/useBookmarkToggle.ts index 0ae319510..9ae8fe210 100644 --- a/packages/react/src/publication/useBookmarkToggle.ts +++ b/packages/react/src/publication/useBookmarkToggle.ts @@ -52,11 +52,11 @@ export function useBookmarkToggle(): UseDeferredTask Date: Mon, 4 Mar 2024 12:02:00 +0000 Subject: [PATCH 3/4] fix: issues found while working on nonce management docs (#869) * fix: issues found while working on nonce management docs * Update packages/react/src/transactions/adapters/PendingTransactionGateway/PendingTransactionGateway.ts Co-authored-by: Kris Urbas <605420+krzysu@users.noreply.github.com> * Fix linting issue --------- Co-authored-by: Kris Urbas <605420+krzysu@users.noreply.github.com> --- .changeset/khaki-students-pump.md | 5 +++ .changeset/tall-penguins-ring.md | 7 ++++ .../client/src/graphql/types.generated.ts | 20 ++++++++++ .../wallet/graphql/wallet.generated.ts | 3 ++ .../submodules/wallet/graphql/wallet.graphql | 1 + .../PendingTransactionGateway.ts | 19 +++++---- .../PendingTransactionGateway.spec.ts | 40 +++++-------------- 7 files changed, 57 insertions(+), 38 deletions(-) create mode 100644 .changeset/khaki-students-pump.md create mode 100644 .changeset/tall-penguins-ring.md diff --git a/.changeset/khaki-students-pump.md b/.changeset/khaki-students-pump.md new file mode 100644 index 000000000..4f02521e1 --- /dev/null +++ b/.changeset/khaki-students-pump.md @@ -0,0 +1,5 @@ +--- +"@lens-protocol/client": patch +--- + +**fix:** adds missing `lensPublicActProxyOnchainSigNonce` field to `UserSigNoncesFragment` diff --git a/.changeset/tall-penguins-ring.md b/.changeset/tall-penguins-ring.md new file mode 100644 index 000000000..26b2400b3 --- /dev/null +++ b/.changeset/tall-penguins-ring.md @@ -0,0 +1,7 @@ +--- +"@lens-protocol/react": patch +"@lens-protocol/react-native": patch +"@lens-protocol/react-web": patch +--- + +**fix:** nonce management for link/unlink handles and unfollow profile diff --git a/packages/client/src/graphql/types.generated.ts b/packages/client/src/graphql/types.generated.ts index b8e78474c..a221ae178 100644 --- a/packages/client/src/graphql/types.generated.ts +++ b/packages/client/src/graphql/types.generated.ts @@ -666,6 +666,26 @@ export enum MetadataAttributeType { String = 'STRING', } +export type ModExplorePublicationRequest = { + cursor?: InputMaybe; + limit?: InputMaybe; + orderBy: ExplorePublicationsOrderByType; + where?: InputMaybe; +}; + +export enum ModExplorePublicationType { + Comment = 'COMMENT', + Post = 'POST', + Quote = 'QUOTE', +} + +export type ModExplorePublicationsWhere = { + customFilters?: InputMaybe>; + metadata?: InputMaybe; + publicationTypes?: InputMaybe>; + since?: InputMaybe; +}; + export type ModuleCurrencyApproval = { followModule?: InputMaybe; openActionModule?: InputMaybe; diff --git a/packages/client/src/submodules/wallet/graphql/wallet.generated.ts b/packages/client/src/submodules/wallet/graphql/wallet.generated.ts index d91e6fe44..78afa227c 100644 --- a/packages/client/src/submodules/wallet/graphql/wallet.generated.ts +++ b/packages/client/src/submodules/wallet/graphql/wallet.generated.ts @@ -42,6 +42,7 @@ export type ProfilesManagedQuery = { export type UserSigNoncesFragment = { lensHubOnchainSigNonce: number; lensTokenHandleRegistryOnchainSigNonce: number; + lensPublicActProxyOnchainSigNonce: number; }; export type UserSigNoncesQueryVariables = Types.Exact<{ [key: string]: never }>; @@ -141,6 +142,7 @@ export const UserSigNoncesFragmentDoc = { kind: 'Field', name: { kind: 'Name', value: 'lensTokenHandleRegistryOnchainSigNonce' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'lensPublicActProxyOnchainSigNonce' } }, ], }, }, @@ -1505,6 +1507,7 @@ export const UserSigNoncesDocument = { kind: 'Field', name: { kind: 'Name', value: 'lensTokenHandleRegistryOnchainSigNonce' }, }, + { kind: 'Field', name: { kind: 'Name', value: 'lensPublicActProxyOnchainSigNonce' } }, ], }, }, diff --git a/packages/client/src/submodules/wallet/graphql/wallet.graphql b/packages/client/src/submodules/wallet/graphql/wallet.graphql index 73cb00602..99d1c2e67 100644 --- a/packages/client/src/submodules/wallet/graphql/wallet.graphql +++ b/packages/client/src/submodules/wallet/graphql/wallet.graphql @@ -32,6 +32,7 @@ query ProfilesManaged( fragment UserSigNonces on UserSigNonces { lensHubOnchainSigNonce lensTokenHandleRegistryOnchainSigNonce + lensPublicActProxyOnchainSigNonce } query UserSigNonces { diff --git a/packages/react/src/transactions/adapters/PendingTransactionGateway/PendingTransactionGateway.ts b/packages/react/src/transactions/adapters/PendingTransactionGateway/PendingTransactionGateway.ts index d6f3995ac..74e384b03 100644 --- a/packages/react/src/transactions/adapters/PendingTransactionGateway/PendingTransactionGateway.ts +++ b/packages/react/src/transactions/adapters/PendingTransactionGateway/PendingTransactionGateway.ts @@ -31,32 +31,37 @@ const lensHubTransactionKinds = [ TransactionKind.CREATE_QUOTE, TransactionKind.FOLLOW_PROFILE, TransactionKind.MIRROR_PUBLICATION, - TransactionKind.UPDATE_PROFILE_MANAGERS, + TransactionKind.UNFOLLOW_PROFILE, TransactionKind.UPDATE_FOLLOW_POLICY, TransactionKind.UPDATE_PROFILE_DETAILS, + TransactionKind.UPDATE_PROFILE_MANAGERS, ]; -// const tokenHandleRegistryTransactionKinds = []; // not used yet +const tokenHandleRegistryTransactionKinds = [ + TransactionKind.LINK_HANDLE, + TransactionKind.UNLINK_HANDLE, +]; const transactionKindToFilterGroup: { [k in TransactionKind]: TransactionKind[] } = { [TransactionKind.ACT_ON_PUBLICATION]: lensHubTransactionKinds, [TransactionKind.BLOCK_PROFILE]: lensHubTransactionKinds, - [TransactionKind.UNBLOCK_PROFILE]: lensHubTransactionKinds, [TransactionKind.CREATE_COMMENT]: lensHubTransactionKinds, [TransactionKind.CREATE_POST]: lensHubTransactionKinds, [TransactionKind.CREATE_QUOTE]: lensHubTransactionKinds, [TransactionKind.FOLLOW_PROFILE]: lensHubTransactionKinds, [TransactionKind.MIRROR_PUBLICATION]: lensHubTransactionKinds, - [TransactionKind.UPDATE_PROFILE_MANAGERS]: lensHubTransactionKinds, + [TransactionKind.UNBLOCK_PROFILE]: lensHubTransactionKinds, + [TransactionKind.UNFOLLOW_PROFILE]: lensHubTransactionKinds, [TransactionKind.UPDATE_FOLLOW_POLICY]: lensHubTransactionKinds, [TransactionKind.UPDATE_PROFILE_DETAILS]: lensHubTransactionKinds, + [TransactionKind.UPDATE_PROFILE_MANAGERS]: lensHubTransactionKinds, + + [TransactionKind.LINK_HANDLE]: tokenHandleRegistryTransactionKinds, + [TransactionKind.UNLINK_HANDLE]: tokenHandleRegistryTransactionKinds, [TransactionKind.CLAIM_HANDLE]: [], [TransactionKind.APPROVE_MODULE]: [], [TransactionKind.CREATE_PROFILE]: [], - [TransactionKind.UNFOLLOW_PROFILE]: [], - [TransactionKind.LINK_HANDLE]: [], - [TransactionKind.UNLINK_HANDLE]: [], }; function isSerializableMetaTransaction( diff --git a/packages/react/src/transactions/adapters/PendingTransactionGateway/__tests__/PendingTransactionGateway.spec.ts b/packages/react/src/transactions/adapters/PendingTransactionGateway/__tests__/PendingTransactionGateway.spec.ts index 6339ffbd1..165206c8c 100644 --- a/packages/react/src/transactions/adapters/PendingTransactionGateway/__tests__/PendingTransactionGateway.spec.ts +++ b/packages/react/src/transactions/adapters/PendingTransactionGateway/__tests__/PendingTransactionGateway.spec.ts @@ -241,22 +241,20 @@ describe(`Given an instance of the ${PendingTransactionGateway.name}`, () => { } }); - // TODO update with Link/Unlink tx types once ready - it.skip(`should not be affected by ${MetaTransaction.name} for methods exposed on TokenHandleRegistry.sol contract`, async () => { - const request = mockSetProfileMetadataRequest(); + it(`should not be affected by ${MetaTransaction.name} for methods exposed on TokenHandleRegistry.sol contract`, async () => { + const request = mockCreatePostRequest(); const gateway = setupPendingTransactionGateway({ factory }); const init = mockMetaTransactionData({ request }); const tx = factory.createMetaTransaction(init); await gateway.save(tx); - const nonce = await gateway.getNextMetaTransactionNonceFor(TransactionKind.CREATE_POST); + const nonce = await gateway.getNextMetaTransactionNonceFor(TransactionKind.LINK_HANDLE); expect(nonce).toBeUndefined(); }); }); - // TODO update with Link/Unlink tx types once ready - describe.skip('for a TransactionKind corresponding to a protocol method exposed on the TokenHandleRegistry.sol contract', () => { + describe('for a TransactionKind corresponding to a protocol method exposed on the TokenHandleRegistry.sol contract', () => { it(`should compute the next Nonce based on the most recent ${MetaTransaction.name} exposed from the same contract`, async () => { const gateway = setupPendingTransactionGateway({ factory }); @@ -268,40 +266,20 @@ describe(`Given an instance of the ${PendingTransactionGateway.name}`, () => { await gateway.save(tx); - expect( - await gateway.getNextMetaTransactionNonceFor(TransactionKind.UPDATE_PROFILE_DETAILS), - ).toBe(tx.nonce + 1); + expect(await gateway.getNextMetaTransactionNonceFor(TransactionKind.LINK_HANDLE)).toBe( + tx.nonce + 1, + ); } }); it(`should not be affected by ${MetaTransaction.name} for methods exposed on LensHub.sol contract`, async () => { - const request = mockCreatePostRequest(); + const request = mockLinkHandleRequest(); const gateway = setupPendingTransactionGateway({ factory }); const init = mockMetaTransactionData({ request }); const tx = factory.createMetaTransaction(init); await gateway.save(tx); - const nonce = await gateway.getNextMetaTransactionNonceFor( - TransactionKind.UPDATE_PROFILE_DETAILS, - ); - - expect(nonce).toBeUndefined(); - }); - }); - - describe(`for ${TransactionKind.UNFOLLOW_PROFILE} meta-tx`, () => { - const request = mockUnfollowRequest(); - const init = mockMetaTransactionData({ request }); - const tx = factory.createMetaTransaction(init); - - it(`should always return undefined cause the burn method is on Follow NFT contract - and keeping accurate tracking of nonces is more complex and not worth it`, async () => { - const gateway = setupPendingTransactionGateway({ factory }); - await gateway.save(tx); - - const nonce = await gateway.getNextMetaTransactionNonceFor( - TransactionKind.UNFOLLOW_PROFILE, - ); + const nonce = await gateway.getNextMetaTransactionNonceFor(TransactionKind.CREATE_POST); expect(nonce).toBeUndefined(); }); From 8f6070a018b5b5ddca98f659104cc5d535220cf8 Mon Sep 17 00:00:00 2001 From: Kris Urbas <605420+krzysu@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:50:44 +0100 Subject: [PATCH 4/4] chore: prepare release react 2.0.0-alpha.35 --- .changeset/pre.json | 4 ++++ packages/api-bindings/CHANGELOG.md | 11 +++++++++++ packages/api-bindings/package.json | 2 +- packages/blockchain-bindings/CHANGELOG.md | 7 +++++++ packages/blockchain-bindings/package.json | 2 +- packages/client/CHANGELOG.md | 7 +++++++ packages/client/package.json | 2 +- packages/domain/CHANGELOG.md | 6 ++++++ packages/domain/package.json | 2 +- packages/react-native/CHANGELOG.md | 17 +++++++++++++++++ packages/react-native/package.json | 2 +- packages/react-web/CHANGELOG.md | 17 +++++++++++++++++ packages/react-web/package.json | 2 +- packages/react/CHANGELOG.md | 15 +++++++++++++++ packages/react/package.json | 2 +- packages/wagmi/CHANGELOG.md | 9 +++++++++ packages/wagmi/package.json | 2 +- 17 files changed, 101 insertions(+), 8 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 2fc079222..85c1b8b66 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -80,10 +80,12 @@ "giant-games-type", "gold-dolphins-pump", "gold-radios-hunt", + "gold-ways-float", "gold-wombats-tell", "good-insects-compete", "gorgeous-pigs-kneel", "gorgeous-rice-trade", + "green-ligers-flow", "grumpy-bugs-sip", "grumpy-coats-scream", "happy-donuts-boil", @@ -102,6 +104,7 @@ "hot-eels-divide", "hot-hornets-drum", "itchy-mails-shout", + "khaki-students-pump", "large-cars-know", "large-glasses-grin", "late-clocks-rhyme", @@ -186,6 +189,7 @@ "swift-hornets-camp", "swift-readers-compare", "tall-gorillas-build", + "tall-penguins-ring", "tame-icons-leave", "tame-kiwis-own", "tame-starfishes-prove", diff --git a/packages/api-bindings/CHANGELOG.md b/packages/api-bindings/CHANGELOG.md index 9c5f71ed1..38a4bf904 100644 --- a/packages/api-bindings/CHANGELOG.md +++ b/packages/api-bindings/CHANGELOG.md @@ -1,5 +1,16 @@ # @lens-protocol/api-bindings +## 0.11.0-alpha.31 + +### Minor Changes + +- 8869b5819: **feat:** added `useRecommendProfileToggle` hook + +### Patch Changes + +- Updated dependencies [8869b5819] + - @lens-protocol/domain@0.11.0-alpha.24 + ## 0.11.0-alpha.30 ### Minor Changes diff --git a/packages/api-bindings/package.json b/packages/api-bindings/package.json index 4516826f3..ef2f4734e 100644 --- a/packages/api-bindings/package.json +++ b/packages/api-bindings/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/api-bindings", - "version": "0.11.0-alpha.30", + "version": "0.11.0-alpha.31", "description": "Graphql fragments, react hooks, typescript types of lens API.", "repository": { "directory": "packages/api-bindings", diff --git a/packages/blockchain-bindings/CHANGELOG.md b/packages/blockchain-bindings/CHANGELOG.md index 582caf4d9..ae312a86f 100644 --- a/packages/blockchain-bindings/CHANGELOG.md +++ b/packages/blockchain-bindings/CHANGELOG.md @@ -1,5 +1,12 @@ # @lens-protocol/blockchain-bindings +## 0.10.0-alpha.25 + +### Patch Changes + +- Updated dependencies [8869b5819] + - @lens-protocol/domain@0.11.0-alpha.24 + ## 0.10.0-alpha.24 ### Minor Changes diff --git a/packages/blockchain-bindings/package.json b/packages/blockchain-bindings/package.json index 1b5cde89c..ace14cedd 100644 --- a/packages/blockchain-bindings/package.json +++ b/packages/blockchain-bindings/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/blockchain-bindings", - "version": "0.10.0-alpha.24", + "version": "0.10.0-alpha.25", "description": "Utilities for interacting with the blockchain.", "repository": { "directory": "packages/blockchain-bindings", diff --git a/packages/client/CHANGELOG.md b/packages/client/CHANGELOG.md index 404063702..3a51ac7f1 100644 --- a/packages/client/CHANGELOG.md +++ b/packages/client/CHANGELOG.md @@ -1,5 +1,12 @@ # @lens-protocol/client +## 2.0.0-alpha.35 + +### Patch Changes + +- 0e9de6f2a: **fix:** adds missing `lensPublicActProxyOnchainSigNonce` field to `UserSigNoncesFragment` + - @lens-protocol/blockchain-bindings@0.10.0-alpha.25 + ## 2.0.0-alpha.34 ### Minor Changes diff --git a/packages/client/package.json b/packages/client/package.json index df48dbcc1..f0b83a469 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/client", - "version": "2.0.0-alpha.34", + "version": "2.0.0-alpha.35", "description": "Low level Lens API client", "repository": { "directory": "packages/client", diff --git a/packages/domain/CHANGELOG.md b/packages/domain/CHANGELOG.md index 7384f1985..7ab5b0038 100644 --- a/packages/domain/CHANGELOG.md +++ b/packages/domain/CHANGELOG.md @@ -1,5 +1,11 @@ # @lens-protocol/domain +## 0.11.0-alpha.24 + +### Minor Changes + +- 8869b5819: **feat:** added `useRecommendProfileToggle` hook + ## 0.11.0-alpha.23 ### Minor Changes diff --git a/packages/domain/package.json b/packages/domain/package.json index b5d16a180..5e247ff8c 100644 --- a/packages/domain/package.json +++ b/packages/domain/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/domain", - "version": "0.11.0-alpha.23", + "version": "0.11.0-alpha.24", "description": "Critical Business Rules and Application-specific Business Rules", "exports": { "./mocks": { diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index 75ff05284..677ae5c15 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,5 +1,22 @@ # @lens-protocol/react-native +## 0.1.0-alpha.12 + +### Minor Changes + +- 8869b5819: **feat:** added `useRecommendProfileToggle` hook + +### Patch Changes + +- 36a077785: **fix:** useUpdateProfileManagers preconditions logic when approving signless +- 0e9de6f2a: **fix:** nonce management for link/unlink handles and unfollow profile +- Updated dependencies [8869b5819] +- Updated dependencies [36a077785] +- Updated dependencies [0e9de6f2a] + - @lens-protocol/api-bindings@0.11.0-alpha.31 + - @lens-protocol/domain@0.11.0-alpha.24 + - @lens-protocol/react@2.0.0-alpha.35 + ## 0.1.0-alpha.11 ### Minor Changes diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 0f8e731ce..a748eb053 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/react-native", - "version": "0.1.0-alpha.11", + "version": "0.1.0-alpha.12", "description": "Lens Protocol SDK for React Native", "main": "dist/lens-protocol-react-native.cjs.js", "module": "dist/lens-protocol-react-native.esm.js", diff --git a/packages/react-web/CHANGELOG.md b/packages/react-web/CHANGELOG.md index 48984d132..5816d781e 100644 --- a/packages/react-web/CHANGELOG.md +++ b/packages/react-web/CHANGELOG.md @@ -1,5 +1,22 @@ # @lens-protocol/react-web +## 2.0.0-alpha.35 + +### Minor Changes + +- 8869b5819: **feat:** added `useRecommendProfileToggle` hook + +### Patch Changes + +- 36a077785: **fix:** useUpdateProfileManagers preconditions logic when approving signless +- 0e9de6f2a: **fix:** nonce management for link/unlink handles and unfollow profile +- Updated dependencies [8869b5819] +- Updated dependencies [36a077785] +- Updated dependencies [0e9de6f2a] + - @lens-protocol/api-bindings@0.11.0-alpha.31 + - @lens-protocol/domain@0.11.0-alpha.24 + - @lens-protocol/react@2.0.0-alpha.35 + ## 2.0.0-alpha.34 ### Minor Changes diff --git a/packages/react-web/package.json b/packages/react-web/package.json index 8db46698a..e69706e8e 100644 --- a/packages/react-web/package.json +++ b/packages/react-web/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/react-web", - "version": "2.0.0-alpha.34", + "version": "2.0.0-alpha.35", "description": "Lens Protocol SDK for React web applications", "main": "dist/lens-protocol-react-web.cjs.js", "module": "dist/lens-protocol-react-web.esm.js", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index c2f5a0621..4e8b5358f 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,20 @@ # @lens-protocol/react +## 2.0.0-alpha.35 + +### Minor Changes + +- 8869b5819: **feat:** added `useRecommendProfileToggle` hook + +### Patch Changes + +- 36a077785: **fix:** useUpdateProfileManagers preconditions logic when approving signless +- 0e9de6f2a: **fix:** nonce management for link/unlink handles and unfollow profile +- Updated dependencies [8869b5819] + - @lens-protocol/api-bindings@0.11.0-alpha.31 + - @lens-protocol/domain@0.11.0-alpha.24 + - @lens-protocol/blockchain-bindings@0.10.0-alpha.25 + ## 2.0.0-alpha.34 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index f8e0605c0..1ecaaee4a 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/react", - "version": "2.0.0-alpha.34", + "version": "2.0.0-alpha.35", "description": "Interacting with the Lens Protocol API using React.", "main": "dist/lens-protocol-react.cjs.js", "module": "dist/lens-protocol-react.esm.js", diff --git a/packages/wagmi/CHANGELOG.md b/packages/wagmi/CHANGELOG.md index 2dfe378d7..d9ed7514d 100644 --- a/packages/wagmi/CHANGELOG.md +++ b/packages/wagmi/CHANGELOG.md @@ -1,5 +1,14 @@ # @lens-protocol/wagmi +## 4.0.0-alpha.4 + +### Patch Changes + +- Updated dependencies [8869b5819] +- Updated dependencies [36a077785] +- Updated dependencies [0e9de6f2a] + - @lens-protocol/react-web@2.0.0-alpha.35 + ## 4.0.0-alpha.3 ### Minor Changes diff --git a/packages/wagmi/package.json b/packages/wagmi/package.json index c907c742b..8db2518e5 100644 --- a/packages/wagmi/package.json +++ b/packages/wagmi/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/wagmi", - "version": "4.0.0-alpha.3", + "version": "4.0.0-alpha.4", "description": "wagmi bindings for @lens-protocol/react", "repository": { "directory": "packages/wagmi",