From 36d255a4e11e3ffae8e1d48950194763ca6bdcee Mon Sep 17 00:00:00 2001 From: Kris Urbas <605420+krzysu@users.noreply.github.com> Date: Tue, 13 Feb 2024 10:35:58 +0100 Subject: [PATCH 1/6] examples: set profile metadata script --- .../profile/recipes/profileMetadata.ts | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 examples/node/scripts/profile/recipes/profileMetadata.ts diff --git a/examples/node/scripts/profile/recipes/profileMetadata.ts b/examples/node/scripts/profile/recipes/profileMetadata.ts new file mode 100644 index 0000000000..2eb733a4f8 --- /dev/null +++ b/examples/node/scripts/profile/recipes/profileMetadata.ts @@ -0,0 +1,79 @@ +import { isRelaySuccess } from '@lens-protocol/client'; + +import { getAuthenticatedClient } from '../shared/getAuthenticatedClient'; +import { setupWallet } from '../shared/setupWallet'; + +async function main() { + const wallet = setupWallet(); + const client = await getAuthenticatedClient(wallet); + + // I have metadata already uploaded for simplicity + const metadataURI = 'https://arweave.net/cv2Rw4g9NhSEXFlq3Ekx1Xo7n76zQSnrx24uBODEkGg'; + + // profile id of the authenticated user + const profileId = await client.authentication.getProfileId(); + + // fetch full profile + const profile = await client.profile.fetch({ + forProfileId: profileId, + }); + + console.log( + `Has profile ${profileId} ${profile?.handle?.fullHandle} signless experience enabled: ${profile?.signless}`, + ); + + // check if the profile has signless enabled aka. enabled lens profile manager + if (profile?.signless) { + // singless experience, just use profile.setProfileMetadata + const result = await client.profile.setProfileMetadata({ + metadataURI, + }); + + const data = result.unwrap(); + + if (!isRelaySuccess(data)) { + console.log(`Something went wrong`, data); + return; + } + + console.log(`Waiting for the transaction to be indexed...`); + await client.transaction.waitUntilComplete({ forTxId: data.txId }); + } else { + // we have to use profile.createSetProfileMetadataTypedData, sign with wallet and broadcast + const typedDataResult = await client.profile.createSetProfileMetadataTypedData({ + metadataURI, + }); + + // typedDataResult is a Result object + const data = typedDataResult.unwrap(); + + // sign with the wallet + const signedTypedData = await wallet._signTypedData( + data.typedData.domain, + data.typedData.types, + data.typedData.value, + ); + + // broadcast + console.log(`Broadcasting the transaction...`); + const broadcastResult = await client.transaction.broadcastOnchain({ + id: data.id, + signature: signedTypedData, + }); + + // broadcastResult is a Result object + const broadcastResultValue = broadcastResult.unwrap(); + + if (!isRelaySuccess(broadcastResultValue)) { + console.log(`Something went wrong`, broadcastResultValue); + return; + } + + console.log(`Waiting for the transaction to be indexed...`); + await client.transaction.waitUntilComplete({ forTxId: broadcastResultValue.txId }); + } + + console.log(`Profile metadata updated!`); +} + +main(); From 3d8c17b84544ae53dd1231f412a08654412c8df5 Mon Sep 17 00:00:00 2001 From: Kris Urbas <605420+krzysu@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:14:21 +0100 Subject: [PATCH 2/6] examples: set profile metadata script - fix --- .../profile/recipes/profileMetadata.ts | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/examples/node/scripts/profile/recipes/profileMetadata.ts b/examples/node/scripts/profile/recipes/profileMetadata.ts index 2eb733a4f8..96ac3b5fb9 100644 --- a/examples/node/scripts/profile/recipes/profileMetadata.ts +++ b/examples/node/scripts/profile/recipes/profileMetadata.ts @@ -1,7 +1,7 @@ import { isRelaySuccess } from '@lens-protocol/client'; -import { getAuthenticatedClient } from '../shared/getAuthenticatedClient'; -import { setupWallet } from '../shared/setupWallet'; +import { getAuthenticatedClient } from '../../shared/getAuthenticatedClient'; +import { setupWallet } from '../../shared/setupWallet'; async function main() { const wallet = setupWallet(); @@ -18,12 +18,26 @@ async function main() { forProfileId: profileId, }); + if (!profile) { + // should never happen + console.error(`Profile with id ${profileId} does not exist`); + return; + } + console.log( - `Has profile ${profileId} ${profile?.handle?.fullHandle} signless experience enabled: ${profile?.signless}`, + `Profile ${profileId} ${profile.handle?.fullHandle}: + - is signless experience enabled: ${profile.signless} + - is sponsored: ${profile.sponsor} + `, ); + if (!profile.sponsor) { + // TODO submit tx on chain + console.log(`Profile is not sponsored`); + } + // check if the profile has signless enabled aka. enabled lens profile manager - if (profile?.signless) { + if (profile.signless) { // singless experience, just use profile.setProfileMetadata const result = await client.profile.setProfileMetadata({ metadataURI, From 58d41a239fbab9d389da49b78b9650f351ba40c9 Mon Sep 17 00:00:00 2001 From: Kris Urbas <605420+krzysu@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:17:47 +0100 Subject: [PATCH 3/6] examples: set profile metadata script - direct contract call --- examples/node/abi/LensHub.json | 2933 ++++++++++++++ examples/node/contracts/LensHub.ts | 3370 +++++++++++++++++ .../contracts/factories/LensHub__factory.ts | 2951 +++++++++++++++ examples/node/contracts/factories/index.ts | 1 + examples/node/contracts/index.ts | 2 + .../profile/recipes/profileMetadata.ts | 53 +- 6 files changed, 9306 insertions(+), 4 deletions(-) create mode 100644 examples/node/abi/LensHub.json create mode 100644 examples/node/contracts/LensHub.ts create mode 100644 examples/node/contracts/factories/LensHub__factory.ts diff --git a/examples/node/abi/LensHub.json b/examples/node/abi/LensHub.json new file mode 100644 index 0000000000..6281553dbd --- /dev/null +++ b/examples/node/abi/LensHub.json @@ -0,0 +1,2933 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "moduleGlobals", + "type": "address" + }, + { + "internalType": "address", + "name": "followNFTImpl", + "type": "address" + }, + { + "internalType": "address", + "name": "collectNFTImpl", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenGuardianCooldown", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address", + "name": "lensHandlesAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenHandleRegistryAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "legacyFeeFollowModule", + "type": "address" + }, + { + "internalType": "address", + "name": "legacyProfileFollowModule", + "type": "address" + }, + { + "internalType": "address", + "name": "newFeeFollowModule", + "type": "address" + }, + { + "internalType": "address", + "name": "migrationAdmin", + "type": "address" + } + ], + "internalType": "struct Types.MigrationParams", + "name": "migrationParams", + "type": "tuple" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AlreadyEnabled", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotCollectNFT", + "type": "error" + }, + { + "inputs": [], + "name": "CallerNotFollowNFT", + "type": "error" + }, + { + "inputs": [], + "name": "DisablingAlreadyTriggered", + "type": "error" + }, + { + "inputs": [], + "name": "ExecutorInvalid", + "type": "error" + }, + { + "inputs": [], + "name": "GuardianEnabled", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOwner", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidParameter", + "type": "error" + }, + { + "inputs": [], + "name": "NonERC721ReceiverImplementer", + "type": "error" + }, + { + "inputs": [], + "name": "NotEOA", + "type": "error" + }, + { + "inputs": [], + "name": "NotGovernance", + "type": "error" + }, + { + "inputs": [], + "name": "NotMigrationAdmin", + "type": "error" + }, + { + "inputs": [], + "name": "NotOwnerOrApproved", + "type": "error" + }, + { + "inputs": [], + "name": "NotProfileOwner", + "type": "error" + }, + { + "inputs": [], + "name": "NotWhitelisted", + "type": "error" + }, + { + "inputs": [], + "name": "Paused", + "type": "error" + }, + { + "inputs": [], + "name": "PublishingPaused", + "type": "error" + }, + { + "inputs": [], + "name": "TokenDoesNotExist", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "inputs": [], + "name": "DANGER__disableTokenGuardian", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "publicationActedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "publicationActedId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "actorProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "referrerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "referrerPubIds", + "type": "uint256[]" + }, + { + "internalType": "address", + "name": "actionModuleAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "actionModuleData", + "type": "bytes" + } + ], + "internalType": "struct Types.PublicationActionParams", + "name": "publicationActionParams", + "type": "tuple" + } + ], + "name": "act", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "publicationActedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "publicationActedId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "actorProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "referrerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "referrerPubIds", + "type": "uint256[]" + }, + { + "internalType": "address", + "name": "actionModuleAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "actionModuleData", + "type": "bytes" + } + ], + "internalType": "struct Types.PublicationActionParams", + "name": "publicationActionParams", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "actWithSig", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "profileIds", + "type": "uint256[]" + } + ], + "name": "batchMigrateFollowModules", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "followerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256", + "name": "idOfProfileFollowed", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "followTokenIds", + "type": "uint256[]" + } + ], + "name": "batchMigrateFollowers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "followerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "idsOfProfileFollowed", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "followTokenIds", + "type": "uint256[]" + } + ], + "name": "batchMigrateFollows", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "profileIds", + "type": "uint256[]" + } + ], + "name": "batchMigrateProfiles", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "burn", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "delegatorProfileId", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "delegatedExecutors", + "type": "address[]" + }, + { + "internalType": "bool[]", + "name": "approvals", + "type": "bool[]" + }, + { + "internalType": "uint64", + "name": "configNumber", + "type": "uint64" + }, + { + "internalType": "bool", + "name": "switchToGivenConfig", + "type": "bool" + } + ], + "name": "changeDelegatedExecutorsConfig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "delegatorProfileId", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "delegatedExecutors", + "type": "address[]" + }, + { + "internalType": "bool[]", + "name": "approvals", + "type": "bool[]" + } + ], + "name": "changeDelegatedExecutorsConfig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "delegatorProfileId", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "delegatedExecutors", + "type": "address[]" + }, + { + "internalType": "bool[]", + "name": "approvals", + "type": "bool[]" + }, + { + "internalType": "uint64", + "name": "configNumber", + "type": "uint64" + }, + { + "internalType": "bool", + "name": "switchToGivenConfig", + "type": "bool" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "changeDelegatedExecutorsConfigWithSig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "publicationCollectedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "publicationCollectedId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "collectorProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "referrerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "referrerPubId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "collectModuleData", + "type": "bytes" + } + ], + "internalType": "struct Types.CollectParams", + "name": "collectParams", + "type": "tuple" + } + ], + "name": "collect", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "publicationCollectedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "publicationCollectedId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "collectorProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "referrerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "referrerPubId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "collectModuleData", + "type": "bytes" + } + ], + "internalType": "struct Types.CollectParams", + "name": "collectParams", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "collectWithSig", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "contentURI", + "type": "string" + }, + { + "internalType": "uint256", + "name": "pointedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pointedPubId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "referrerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "referrerPubIds", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "referenceModuleData", + "type": "bytes" + }, + { + "internalType": "address[]", + "name": "actionModules", + "type": "address[]" + }, + { + "internalType": "bytes[]", + "name": "actionModulesInitDatas", + "type": "bytes[]" + }, + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "referenceModuleInitData", + "type": "bytes" + } + ], + "internalType": "struct Types.CommentParams", + "name": "commentParams", + "type": "tuple" + } + ], + "name": "comment", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "contentURI", + "type": "string" + }, + { + "internalType": "uint256", + "name": "pointedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pointedPubId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "referrerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "referrerPubIds", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "referenceModuleData", + "type": "bytes" + }, + { + "internalType": "address[]", + "name": "actionModules", + "type": "address[]" + }, + { + "internalType": "bytes[]", + "name": "actionModulesInitDatas", + "type": "bytes[]" + }, + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "referenceModuleInitData", + "type": "bytes" + } + ], + "internalType": "struct Types.CommentParams", + "name": "commentParams", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "commentWithSig", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "address", + "name": "followModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "followModuleInitData", + "type": "bytes" + } + ], + "internalType": "struct Types.CreateProfileParams", + "name": "createProfileParams", + "type": "tuple" + } + ], + "name": "createProfile", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pubId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "collectNFTId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "emitCollectNFTTransferEvent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "unfollowerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "idOfProfileUnfollowed", + "type": "uint256" + }, + { + "internalType": "address", + "name": "transactionExecutor", + "type": "address" + } + ], + "name": "emitUnfollowedEvent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "enableTokenGuardian", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "exists", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "followerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "idsOfProfilesToFollow", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "followTokenIds", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "datas", + "type": "bytes[]" + } + ], + "name": "follow", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "followerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "idsOfProfilesToFollow", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "followTokenIds", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "datas", + "type": "bytes[]" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "followWithSig", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + } + ], + "name": "getActionModuleById", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "actionModule", + "type": "address" + } + ], + "name": "getActionModuleWhitelistData", + "outputs": [ + { + "components": [ + { + "internalType": "uint248", + "name": "id", + "type": "uint248" + }, + { + "internalType": "bool", + "name": "isWhitelisted", + "type": "bool" + } + ], + "internalType": "struct Types.ActionModuleWhitelistData", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getCollectNFTImpl", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pubId", + "type": "uint256" + } + ], + "name": "getContentURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "delegatorProfileId", + "type": "uint256" + } + ], + "name": "getDelegatedExecutorsConfigNumber", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "delegatorProfileId", + "type": "uint256" + } + ], + "name": "getDelegatedExecutorsMaxConfigNumberSet", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "delegatorProfileId", + "type": "uint256" + } + ], + "name": "getDelegatedExecutorsPrevConfigNumber", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getDomainSeparator", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getFollowNFTImpl", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getGovernance", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + } + ], + "name": "getProfile", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "pubCount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "followModule", + "type": "address" + }, + { + "internalType": "address", + "name": "followNFT", + "type": "address" + }, + { + "internalType": "string", + "name": "__DEPRECATED__handle", + "type": "string" + }, + { + "internalType": "string", + "name": "__DEPRECATED__imageURI", + "type": "string" + }, + { + "internalType": "string", + "name": "__DEPRECATED__followNFTURI", + "type": "string" + }, + { + "internalType": "string", + "name": "metadataURI", + "type": "string" + } + ], + "internalType": "struct Types.Profile", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "handleHash", + "type": "bytes32" + } + ], + "name": "getProfileIdByHandleHash", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pubId", + "type": "uint256" + } + ], + "name": "getPublication", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "pointedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pointedPubId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "contentURI", + "type": "string" + }, + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + }, + { + "internalType": "address", + "name": "__DEPRECATED__collectModule", + "type": "address" + }, + { + "internalType": "address", + "name": "__DEPRECATED__collectNFT", + "type": "address" + }, + { + "internalType": "enum Types.PublicationType", + "name": "pubType", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "rootProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rootPubId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "enabledActionModulesBitmap", + "type": "uint256" + } + ], + "internalType": "struct Types.Publication", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pubId", + "type": "uint256" + } + ], + "name": "getPublicationType", + "outputs": [ + { + "internalType": "enum Types.PublicationType", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getState", + "outputs": [ + { + "internalType": "enum Types.ProtocolState", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "wallet", + "type": "address" + } + ], + "name": "getTokenGuardianDisablingTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "byProfileId", + "type": "uint256" + } + ], + "name": "isBlocked", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "delegatorProfileId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "delegatedExecutor", + "type": "address" + } + ], + "name": "isDelegatedExecutorApproved", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "delegatorProfileId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "delegatedExecutor", + "type": "address" + }, + { + "internalType": "uint64", + "name": "configNumber", + "type": "uint64" + } + ], + "name": "isDelegatedExecutorApproved", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "followModule", + "type": "address" + } + ], + "name": "isFollowModuleWhitelisted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "followerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "followedProfileId", + "type": "uint256" + } + ], + "name": "isFollowing", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "profileCreator", + "type": "address" + } + ], + "name": "isProfileCreatorWhitelisted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + } + ], + "name": "isReferenceModuleWhitelisted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "mintTimestampOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "metadataURI", + "type": "string" + }, + { + "internalType": "uint256", + "name": "pointedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pointedPubId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "referrerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "referrerPubIds", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "referenceModuleData", + "type": "bytes" + } + ], + "internalType": "struct Types.MirrorParams", + "name": "mirrorParams", + "type": "tuple" + } + ], + "name": "mirror", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "metadataURI", + "type": "string" + }, + { + "internalType": "uint256", + "name": "pointedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pointedPubId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "referrerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "referrerPubIds", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "referenceModuleData", + "type": "bytes" + } + ], + "internalType": "struct Types.MirrorParams", + "name": "mirrorParams", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "mirrorWithSig", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + } + ], + "name": "nonces", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "contentURI", + "type": "string" + }, + { + "internalType": "address[]", + "name": "actionModules", + "type": "address[]" + }, + { + "internalType": "bytes[]", + "name": "actionModulesInitDatas", + "type": "bytes[]" + }, + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "referenceModuleInitData", + "type": "bytes" + } + ], + "internalType": "struct Types.PostParams", + "name": "postParams", + "type": "tuple" + } + ], + "name": "post", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "contentURI", + "type": "string" + }, + { + "internalType": "address[]", + "name": "actionModules", + "type": "address[]" + }, + { + "internalType": "bytes[]", + "name": "actionModulesInitDatas", + "type": "bytes[]" + }, + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "referenceModuleInitData", + "type": "bytes" + } + ], + "internalType": "struct Types.PostParams", + "name": "postParams", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "postWithSig", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "contentURI", + "type": "string" + }, + { + "internalType": "uint256", + "name": "pointedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pointedPubId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "referrerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "referrerPubIds", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "referenceModuleData", + "type": "bytes" + }, + { + "internalType": "address[]", + "name": "actionModules", + "type": "address[]" + }, + { + "internalType": "bytes[]", + "name": "actionModulesInitDatas", + "type": "bytes[]" + }, + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "referenceModuleInitData", + "type": "bytes" + } + ], + "internalType": "struct Types.QuoteParams", + "name": "quoteParams", + "type": "tuple" + } + ], + "name": "quote", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "contentURI", + "type": "string" + }, + { + "internalType": "uint256", + "name": "pointedProfileId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "pointedPubId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "referrerProfileIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "referrerPubIds", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "referenceModuleData", + "type": "bytes" + }, + { + "internalType": "address[]", + "name": "actionModules", + "type": "address[]" + }, + { + "internalType": "bytes[]", + "name": "actionModulesInitDatas", + "type": "bytes[]" + }, + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "referenceModuleInitData", + "type": "bytes" + } + ], + "internalType": "struct Types.QuoteParams", + "name": "quoteParams", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "quoteWithSig", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "salePrice", + "type": "uint256" + } + ], + "name": "royaltyInfo", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "byProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "idsOfProfilesToSetBlockStatus", + "type": "uint256[]" + }, + { + "internalType": "bool[]", + "name": "blockStatus", + "type": "bool[]" + } + ], + "name": "setBlockStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "byProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "idsOfProfilesToSetBlockStatus", + "type": "uint256[]" + }, + { + "internalType": "bool[]", + "name": "blockStatus", + "type": "bool[]" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "setBlockStatusWithSig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newEmergencyAdmin", + "type": "address" + } + ], + "name": "setEmergencyAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "followModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "followModuleInitData", + "type": "bytes" + } + ], + "name": "setFollowModule", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "followModule", + "type": "address" + }, + { + "internalType": "bytes", + "name": "followModuleInitData", + "type": "bytes" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "setFollowModuleWithSig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newGovernance", + "type": "address" + } + ], + "name": "setGovernance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "migrationAdmins", + "type": "address[]" + }, + { + "internalType": "bool", + "name": "whitelisted", + "type": "bool" + } + ], + "name": "setMigrationAdmins", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "metadataURI", + "type": "string" + } + ], + "name": "setProfileMetadataURI", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "profileId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "metadataURI", + "type": "string" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "setProfileMetadataURIWithSig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "royaltiesInBasisPoints", + "type": "uint256" + } + ], + "name": "setRoyalty", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "enum Types.ProtocolState", + "name": "newState", + "type": "uint8" + } + ], + "name": "setState", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenDataOf", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint96", + "name": "mintTimestamp", + "type": "uint96" + } + ], + "internalType": "struct Types.TokenData", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "unfollowerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "idsOfProfilesToUnfollow", + "type": "uint256[]" + } + ], + "name": "unfollow", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "unfollowerProfileId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "idsOfProfilesToUnfollow", + "type": "uint256[]" + }, + { + "components": [ + { + "internalType": "address", + "name": "signer", + "type": "address" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct Types.EIP712Signature", + "name": "signature", + "type": "tuple" + } + ], + "name": "unfollowWithSig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "actionModule", + "type": "address" + }, + { + "internalType": "bool", + "name": "whitelist", + "type": "bool" + } + ], + "name": "whitelistActionModule", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "followModule", + "type": "address" + }, + { + "internalType": "bool", + "name": "whitelist", + "type": "bool" + } + ], + "name": "whitelistFollowModule", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "profileCreator", + "type": "address" + }, + { + "internalType": "bool", + "name": "whitelist", + "type": "bool" + } + ], + "name": "whitelistProfileCreator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "referenceModule", + "type": "address" + }, + { + "internalType": "bool", + "name": "whitelist", + "type": "bool" + } + ], + "name": "whitelistReferenceModule", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/examples/node/contracts/LensHub.ts b/examples/node/contracts/LensHub.ts new file mode 100644 index 0000000000..f9c3302020 --- /dev/null +++ b/examples/node/contracts/LensHub.ts @@ -0,0 +1,3370 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from 'ethers'; +import type { FunctionFragment, Result, EventFragment } from '@ethersproject/abi'; +import type { Listener, Provider } from '@ethersproject/providers'; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, + PromiseOrValue, +} from './common'; + +export declare namespace Types { + export type MigrationParamsStruct = { + lensHandlesAddress: PromiseOrValue; + tokenHandleRegistryAddress: PromiseOrValue; + legacyFeeFollowModule: PromiseOrValue; + legacyProfileFollowModule: PromiseOrValue; + newFeeFollowModule: PromiseOrValue; + migrationAdmin: PromiseOrValue; + }; + + export type MigrationParamsStructOutput = [string, string, string, string, string, string] & { + lensHandlesAddress: string; + tokenHandleRegistryAddress: string; + legacyFeeFollowModule: string; + legacyProfileFollowModule: string; + newFeeFollowModule: string; + migrationAdmin: string; + }; + + export type PublicationActionParamsStruct = { + publicationActedProfileId: PromiseOrValue; + publicationActedId: PromiseOrValue; + actorProfileId: PromiseOrValue; + referrerProfileIds: PromiseOrValue[]; + referrerPubIds: PromiseOrValue[]; + actionModuleAddress: PromiseOrValue; + actionModuleData: PromiseOrValue; + }; + + export type PublicationActionParamsStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber[], + BigNumber[], + string, + string, + ] & { + publicationActedProfileId: BigNumber; + publicationActedId: BigNumber; + actorProfileId: BigNumber; + referrerProfileIds: BigNumber[]; + referrerPubIds: BigNumber[]; + actionModuleAddress: string; + actionModuleData: string; + }; + + export type EIP712SignatureStruct = { + signer: PromiseOrValue; + v: PromiseOrValue; + r: PromiseOrValue; + s: PromiseOrValue; + deadline: PromiseOrValue; + }; + + export type EIP712SignatureStructOutput = [string, number, string, string, BigNumber] & { + signer: string; + v: number; + r: string; + s: string; + deadline: BigNumber; + }; + + export type CollectParamsStruct = { + publicationCollectedProfileId: PromiseOrValue; + publicationCollectedId: PromiseOrValue; + collectorProfileId: PromiseOrValue; + referrerProfileId: PromiseOrValue; + referrerPubId: PromiseOrValue; + collectModuleData: PromiseOrValue; + }; + + export type CollectParamsStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + string, + ] & { + publicationCollectedProfileId: BigNumber; + publicationCollectedId: BigNumber; + collectorProfileId: BigNumber; + referrerProfileId: BigNumber; + referrerPubId: BigNumber; + collectModuleData: string; + }; + + export type CommentParamsStruct = { + profileId: PromiseOrValue; + contentURI: PromiseOrValue; + pointedProfileId: PromiseOrValue; + pointedPubId: PromiseOrValue; + referrerProfileIds: PromiseOrValue[]; + referrerPubIds: PromiseOrValue[]; + referenceModuleData: PromiseOrValue; + actionModules: PromiseOrValue[]; + actionModulesInitDatas: PromiseOrValue[]; + referenceModule: PromiseOrValue; + referenceModuleInitData: PromiseOrValue; + }; + + export type CommentParamsStructOutput = [ + BigNumber, + string, + BigNumber, + BigNumber, + BigNumber[], + BigNumber[], + string, + string[], + string[], + string, + string, + ] & { + profileId: BigNumber; + contentURI: string; + pointedProfileId: BigNumber; + pointedPubId: BigNumber; + referrerProfileIds: BigNumber[]; + referrerPubIds: BigNumber[]; + referenceModuleData: string; + actionModules: string[]; + actionModulesInitDatas: string[]; + referenceModule: string; + referenceModuleInitData: string; + }; + + export type CreateProfileParamsStruct = { + to: PromiseOrValue; + followModule: PromiseOrValue; + followModuleInitData: PromiseOrValue; + }; + + export type CreateProfileParamsStructOutput = [string, string, string] & { + to: string; + followModule: string; + followModuleInitData: string; + }; + + export type ActionModuleWhitelistDataStruct = { + id: PromiseOrValue; + isWhitelisted: PromiseOrValue; + }; + + export type ActionModuleWhitelistDataStructOutput = [BigNumber, boolean] & { + id: BigNumber; + isWhitelisted: boolean; + }; + + export type ProfileStruct = { + pubCount: PromiseOrValue; + followModule: PromiseOrValue; + followNFT: PromiseOrValue; + __DEPRECATED__handle: PromiseOrValue; + __DEPRECATED__imageURI: PromiseOrValue; + __DEPRECATED__followNFTURI: PromiseOrValue; + metadataURI: PromiseOrValue; + }; + + export type ProfileStructOutput = [BigNumber, string, string, string, string, string, string] & { + pubCount: BigNumber; + followModule: string; + followNFT: string; + __DEPRECATED__handle: string; + __DEPRECATED__imageURI: string; + __DEPRECATED__followNFTURI: string; + metadataURI: string; + }; + + export type PublicationStruct = { + pointedProfileId: PromiseOrValue; + pointedPubId: PromiseOrValue; + contentURI: PromiseOrValue; + referenceModule: PromiseOrValue; + __DEPRECATED__collectModule: PromiseOrValue; + __DEPRECATED__collectNFT: PromiseOrValue; + pubType: PromiseOrValue; + rootProfileId: PromiseOrValue; + rootPubId: PromiseOrValue; + enabledActionModulesBitmap: PromiseOrValue; + }; + + export type PublicationStructOutput = [ + BigNumber, + BigNumber, + string, + string, + string, + string, + number, + BigNumber, + BigNumber, + BigNumber, + ] & { + pointedProfileId: BigNumber; + pointedPubId: BigNumber; + contentURI: string; + referenceModule: string; + __DEPRECATED__collectModule: string; + __DEPRECATED__collectNFT: string; + pubType: number; + rootProfileId: BigNumber; + rootPubId: BigNumber; + enabledActionModulesBitmap: BigNumber; + }; + + export type MirrorParamsStruct = { + profileId: PromiseOrValue; + metadataURI: PromiseOrValue; + pointedProfileId: PromiseOrValue; + pointedPubId: PromiseOrValue; + referrerProfileIds: PromiseOrValue[]; + referrerPubIds: PromiseOrValue[]; + referenceModuleData: PromiseOrValue; + }; + + export type MirrorParamsStructOutput = [ + BigNumber, + string, + BigNumber, + BigNumber, + BigNumber[], + BigNumber[], + string, + ] & { + profileId: BigNumber; + metadataURI: string; + pointedProfileId: BigNumber; + pointedPubId: BigNumber; + referrerProfileIds: BigNumber[]; + referrerPubIds: BigNumber[]; + referenceModuleData: string; + }; + + export type PostParamsStruct = { + profileId: PromiseOrValue; + contentURI: PromiseOrValue; + actionModules: PromiseOrValue[]; + actionModulesInitDatas: PromiseOrValue[]; + referenceModule: PromiseOrValue; + referenceModuleInitData: PromiseOrValue; + }; + + export type PostParamsStructOutput = [BigNumber, string, string[], string[], string, string] & { + profileId: BigNumber; + contentURI: string; + actionModules: string[]; + actionModulesInitDatas: string[]; + referenceModule: string; + referenceModuleInitData: string; + }; + + export type QuoteParamsStruct = { + profileId: PromiseOrValue; + contentURI: PromiseOrValue; + pointedProfileId: PromiseOrValue; + pointedPubId: PromiseOrValue; + referrerProfileIds: PromiseOrValue[]; + referrerPubIds: PromiseOrValue[]; + referenceModuleData: PromiseOrValue; + actionModules: PromiseOrValue[]; + actionModulesInitDatas: PromiseOrValue[]; + referenceModule: PromiseOrValue; + referenceModuleInitData: PromiseOrValue; + }; + + export type QuoteParamsStructOutput = [ + BigNumber, + string, + BigNumber, + BigNumber, + BigNumber[], + BigNumber[], + string, + string[], + string[], + string, + string, + ] & { + profileId: BigNumber; + contentURI: string; + pointedProfileId: BigNumber; + pointedPubId: BigNumber; + referrerProfileIds: BigNumber[]; + referrerPubIds: BigNumber[]; + referenceModuleData: string; + actionModules: string[]; + actionModulesInitDatas: string[]; + referenceModule: string; + referenceModuleInitData: string; + }; + + export type TokenDataStruct = { + owner: PromiseOrValue; + mintTimestamp: PromiseOrValue; + }; + + export type TokenDataStructOutput = [string, BigNumber] & { + owner: string; + mintTimestamp: BigNumber; + }; +} + +export interface LensHubInterface extends utils.Interface { + functions: { + 'DANGER__disableTokenGuardian()': FunctionFragment; + 'act((uint256,uint256,uint256,uint256[],uint256[],address,bytes))': FunctionFragment; + 'actWithSig((uint256,uint256,uint256,uint256[],uint256[],address,bytes),(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'approve(address,uint256)': FunctionFragment; + 'balanceOf(address)': FunctionFragment; + 'batchMigrateFollowModules(uint256[])': FunctionFragment; + 'batchMigrateFollowers(uint256[],uint256,uint256[])': FunctionFragment; + 'batchMigrateFollows(uint256,uint256[],uint256[])': FunctionFragment; + 'batchMigrateProfiles(uint256[])': FunctionFragment; + 'burn(uint256)': FunctionFragment; + 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)': FunctionFragment; + 'changeDelegatedExecutorsConfig(uint256,address[],bool[])': FunctionFragment; + 'changeDelegatedExecutorsConfigWithSig(uint256,address[],bool[],uint64,bool,(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'collect((uint256,uint256,uint256,uint256,uint256,bytes))': FunctionFragment; + 'collectWithSig((uint256,uint256,uint256,uint256,uint256,bytes),(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'comment((uint256,string,uint256,uint256,uint256[],uint256[],bytes,address[],bytes[],address,bytes))': FunctionFragment; + 'commentWithSig((uint256,string,uint256,uint256,uint256[],uint256[],bytes,address[],bytes[],address,bytes),(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'createProfile((address,address,bytes))': FunctionFragment; + 'emitCollectNFTTransferEvent(uint256,uint256,uint256,address,address)': FunctionFragment; + 'emitUnfollowedEvent(uint256,uint256,address)': FunctionFragment; + 'enableTokenGuardian()': FunctionFragment; + 'exists(uint256)': FunctionFragment; + 'follow(uint256,uint256[],uint256[],bytes[])': FunctionFragment; + 'followWithSig(uint256,uint256[],uint256[],bytes[],(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'getActionModuleById(uint256)': FunctionFragment; + 'getActionModuleWhitelistData(address)': FunctionFragment; + 'getApproved(uint256)': FunctionFragment; + 'getCollectNFTImpl()': FunctionFragment; + 'getContentURI(uint256,uint256)': FunctionFragment; + 'getDelegatedExecutorsConfigNumber(uint256)': FunctionFragment; + 'getDelegatedExecutorsMaxConfigNumberSet(uint256)': FunctionFragment; + 'getDelegatedExecutorsPrevConfigNumber(uint256)': FunctionFragment; + 'getDomainSeparator()': FunctionFragment; + 'getFollowNFTImpl()': FunctionFragment; + 'getGovernance()': FunctionFragment; + 'getProfile(uint256)': FunctionFragment; + 'getProfileIdByHandleHash(bytes32)': FunctionFragment; + 'getPublication(uint256,uint256)': FunctionFragment; + 'getPublicationType(uint256,uint256)': FunctionFragment; + 'getState()': FunctionFragment; + 'getTokenGuardianDisablingTimestamp(address)': FunctionFragment; + 'isApprovedForAll(address,address)': FunctionFragment; + 'isBlocked(uint256,uint256)': FunctionFragment; + 'isDelegatedExecutorApproved(uint256,address)': FunctionFragment; + 'isDelegatedExecutorApproved(uint256,address,uint64)': FunctionFragment; + 'isFollowModuleWhitelisted(address)': FunctionFragment; + 'isFollowing(uint256,uint256)': FunctionFragment; + 'isProfileCreatorWhitelisted(address)': FunctionFragment; + 'isReferenceModuleWhitelisted(address)': FunctionFragment; + 'mintTimestampOf(uint256)': FunctionFragment; + 'mirror((uint256,string,uint256,uint256,uint256[],uint256[],bytes))': FunctionFragment; + 'mirrorWithSig((uint256,string,uint256,uint256,uint256[],uint256[],bytes),(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'name()': FunctionFragment; + 'nonces(address)': FunctionFragment; + 'ownerOf(uint256)': FunctionFragment; + 'post((uint256,string,address[],bytes[],address,bytes))': FunctionFragment; + 'postWithSig((uint256,string,address[],bytes[],address,bytes),(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'quote((uint256,string,uint256,uint256,uint256[],uint256[],bytes,address[],bytes[],address,bytes))': FunctionFragment; + 'quoteWithSig((uint256,string,uint256,uint256,uint256[],uint256[],bytes,address[],bytes[],address,bytes),(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'royaltyInfo(uint256,uint256)': FunctionFragment; + 'safeTransferFrom(address,address,uint256)': FunctionFragment; + 'safeTransferFrom(address,address,uint256,bytes)': FunctionFragment; + 'setApprovalForAll(address,bool)': FunctionFragment; + 'setBlockStatus(uint256,uint256[],bool[])': FunctionFragment; + 'setBlockStatusWithSig(uint256,uint256[],bool[],(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'setEmergencyAdmin(address)': FunctionFragment; + 'setFollowModule(uint256,address,bytes)': FunctionFragment; + 'setFollowModuleWithSig(uint256,address,bytes,(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'setGovernance(address)': FunctionFragment; + 'setMigrationAdmins(address[],bool)': FunctionFragment; + 'setProfileMetadataURI(uint256,string)': FunctionFragment; + 'setProfileMetadataURIWithSig(uint256,string,(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'setRoyalty(uint256)': FunctionFragment; + 'setState(uint8)': FunctionFragment; + 'supportsInterface(bytes4)': FunctionFragment; + 'symbol()': FunctionFragment; + 'tokenDataOf(uint256)': FunctionFragment; + 'tokenURI(uint256)': FunctionFragment; + 'totalSupply()': FunctionFragment; + 'transferFrom(address,address,uint256)': FunctionFragment; + 'unfollow(uint256,uint256[])': FunctionFragment; + 'unfollowWithSig(uint256,uint256[],(address,uint8,bytes32,bytes32,uint256))': FunctionFragment; + 'whitelistActionModule(address,bool)': FunctionFragment; + 'whitelistFollowModule(address,bool)': FunctionFragment; + 'whitelistProfileCreator(address,bool)': FunctionFragment; + 'whitelistReferenceModule(address,bool)': FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | 'DANGER__disableTokenGuardian' + | 'act' + | 'actWithSig' + | 'approve' + | 'balanceOf' + | 'batchMigrateFollowModules' + | 'batchMigrateFollowers' + | 'batchMigrateFollows' + | 'batchMigrateProfiles' + | 'burn' + | 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)' + | 'changeDelegatedExecutorsConfig(uint256,address[],bool[])' + | 'changeDelegatedExecutorsConfigWithSig' + | 'collect' + | 'collectWithSig' + | 'comment' + | 'commentWithSig' + | 'createProfile' + | 'emitCollectNFTTransferEvent' + | 'emitUnfollowedEvent' + | 'enableTokenGuardian' + | 'exists' + | 'follow' + | 'followWithSig' + | 'getActionModuleById' + | 'getActionModuleWhitelistData' + | 'getApproved' + | 'getCollectNFTImpl' + | 'getContentURI' + | 'getDelegatedExecutorsConfigNumber' + | 'getDelegatedExecutorsMaxConfigNumberSet' + | 'getDelegatedExecutorsPrevConfigNumber' + | 'getDomainSeparator' + | 'getFollowNFTImpl' + | 'getGovernance' + | 'getProfile' + | 'getProfileIdByHandleHash' + | 'getPublication' + | 'getPublicationType' + | 'getState' + | 'getTokenGuardianDisablingTimestamp' + | 'isApprovedForAll' + | 'isBlocked' + | 'isDelegatedExecutorApproved(uint256,address)' + | 'isDelegatedExecutorApproved(uint256,address,uint64)' + | 'isFollowModuleWhitelisted' + | 'isFollowing' + | 'isProfileCreatorWhitelisted' + | 'isReferenceModuleWhitelisted' + | 'mintTimestampOf' + | 'mirror' + | 'mirrorWithSig' + | 'name' + | 'nonces' + | 'ownerOf' + | 'post' + | 'postWithSig' + | 'quote' + | 'quoteWithSig' + | 'royaltyInfo' + | 'safeTransferFrom(address,address,uint256)' + | 'safeTransferFrom(address,address,uint256,bytes)' + | 'setApprovalForAll' + | 'setBlockStatus' + | 'setBlockStatusWithSig' + | 'setEmergencyAdmin' + | 'setFollowModule' + | 'setFollowModuleWithSig' + | 'setGovernance' + | 'setMigrationAdmins' + | 'setProfileMetadataURI' + | 'setProfileMetadataURIWithSig' + | 'setRoyalty' + | 'setState' + | 'supportsInterface' + | 'symbol' + | 'tokenDataOf' + | 'tokenURI' + | 'totalSupply' + | 'transferFrom' + | 'unfollow' + | 'unfollowWithSig' + | 'whitelistActionModule' + | 'whitelistFollowModule' + | 'whitelistProfileCreator' + | 'whitelistReferenceModule', + ): FunctionFragment; + + encodeFunctionData(functionFragment: 'DANGER__disableTokenGuardian', values?: undefined): string; + encodeFunctionData( + functionFragment: 'act', + values: [Types.PublicationActionParamsStruct], + ): string; + encodeFunctionData( + functionFragment: 'actWithSig', + values: [Types.PublicationActionParamsStruct, Types.EIP712SignatureStruct], + ): string; + encodeFunctionData( + functionFragment: 'approve', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; + encodeFunctionData( + functionFragment: 'batchMigrateFollowModules', + values: [PromiseOrValue[]], + ): string; + encodeFunctionData( + functionFragment: 'batchMigrateFollowers', + values: [ + PromiseOrValue[], + PromiseOrValue, + PromiseOrValue[], + ], + ): string; + encodeFunctionData( + functionFragment: 'batchMigrateFollows', + values: [ + PromiseOrValue, + PromiseOrValue[], + PromiseOrValue[], + ], + ): string; + encodeFunctionData( + functionFragment: 'batchMigrateProfiles', + values: [PromiseOrValue[]], + ): string; + encodeFunctionData(functionFragment: 'burn', values: [PromiseOrValue]): string; + encodeFunctionData( + functionFragment: 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)', + values: [ + PromiseOrValue, + PromiseOrValue[], + PromiseOrValue[], + PromiseOrValue, + PromiseOrValue, + ], + ): string; + encodeFunctionData( + functionFragment: 'changeDelegatedExecutorsConfig(uint256,address[],bool[])', + values: [PromiseOrValue, PromiseOrValue[], PromiseOrValue[]], + ): string; + encodeFunctionData( + functionFragment: 'changeDelegatedExecutorsConfigWithSig', + values: [ + PromiseOrValue, + PromiseOrValue[], + PromiseOrValue[], + PromiseOrValue, + PromiseOrValue, + Types.EIP712SignatureStruct, + ], + ): string; + encodeFunctionData(functionFragment: 'collect', values: [Types.CollectParamsStruct]): string; + encodeFunctionData( + functionFragment: 'collectWithSig', + values: [Types.CollectParamsStruct, Types.EIP712SignatureStruct], + ): string; + encodeFunctionData(functionFragment: 'comment', values: [Types.CommentParamsStruct]): string; + encodeFunctionData( + functionFragment: 'commentWithSig', + values: [Types.CommentParamsStruct, Types.EIP712SignatureStruct], + ): string; + encodeFunctionData( + functionFragment: 'createProfile', + values: [Types.CreateProfileParamsStruct], + ): string; + encodeFunctionData( + functionFragment: 'emitCollectNFTTransferEvent', + values: [ + PromiseOrValue, + PromiseOrValue, + PromiseOrValue, + PromiseOrValue, + PromiseOrValue, + ], + ): string; + encodeFunctionData( + functionFragment: 'emitUnfollowedEvent', + values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'enableTokenGuardian', values?: undefined): string; + encodeFunctionData(functionFragment: 'exists', values: [PromiseOrValue]): string; + encodeFunctionData( + functionFragment: 'follow', + values: [ + PromiseOrValue, + PromiseOrValue[], + PromiseOrValue[], + PromiseOrValue[], + ], + ): string; + encodeFunctionData( + functionFragment: 'followWithSig', + values: [ + PromiseOrValue, + PromiseOrValue[], + PromiseOrValue[], + PromiseOrValue[], + Types.EIP712SignatureStruct, + ], + ): string; + encodeFunctionData( + functionFragment: 'getActionModuleById', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'getActionModuleWhitelistData', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'getApproved', + values: [PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'getCollectNFTImpl', values?: undefined): string; + encodeFunctionData( + functionFragment: 'getContentURI', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'getDelegatedExecutorsConfigNumber', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'getDelegatedExecutorsMaxConfigNumberSet', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'getDelegatedExecutorsPrevConfigNumber', + values: [PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'getDomainSeparator', values?: undefined): string; + encodeFunctionData(functionFragment: 'getFollowNFTImpl', values?: undefined): string; + encodeFunctionData(functionFragment: 'getGovernance', values?: undefined): string; + encodeFunctionData( + functionFragment: 'getProfile', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'getProfileIdByHandleHash', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'getPublication', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'getPublicationType', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'getState', values?: undefined): string; + encodeFunctionData( + functionFragment: 'getTokenGuardianDisablingTimestamp', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'isApprovedForAll', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'isBlocked', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'isDelegatedExecutorApproved(uint256,address)', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'isDelegatedExecutorApproved(uint256,address,uint64)', + values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'isFollowModuleWhitelisted', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'isFollowing', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'isProfileCreatorWhitelisted', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'isReferenceModuleWhitelisted', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'mintTimestampOf', + values: [PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'mirror', values: [Types.MirrorParamsStruct]): string; + encodeFunctionData( + functionFragment: 'mirrorWithSig', + values: [Types.MirrorParamsStruct, Types.EIP712SignatureStruct], + ): string; + encodeFunctionData(functionFragment: 'name', values?: undefined): string; + encodeFunctionData(functionFragment: 'nonces', values: [PromiseOrValue]): string; + encodeFunctionData(functionFragment: 'ownerOf', values: [PromiseOrValue]): string; + encodeFunctionData(functionFragment: 'post', values: [Types.PostParamsStruct]): string; + encodeFunctionData( + functionFragment: 'postWithSig', + values: [Types.PostParamsStruct, Types.EIP712SignatureStruct], + ): string; + encodeFunctionData(functionFragment: 'quote', values: [Types.QuoteParamsStruct]): string; + encodeFunctionData( + functionFragment: 'quoteWithSig', + values: [Types.QuoteParamsStruct, Types.EIP712SignatureStruct], + ): string; + encodeFunctionData( + functionFragment: 'royaltyInfo', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'safeTransferFrom(address,address,uint256)', + values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'safeTransferFrom(address,address,uint256,bytes)', + values: [ + PromiseOrValue, + PromiseOrValue, + PromiseOrValue, + PromiseOrValue, + ], + ): string; + encodeFunctionData( + functionFragment: 'setApprovalForAll', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'setBlockStatus', + values: [ + PromiseOrValue, + PromiseOrValue[], + PromiseOrValue[], + ], + ): string; + encodeFunctionData( + functionFragment: 'setBlockStatusWithSig', + values: [ + PromiseOrValue, + PromiseOrValue[], + PromiseOrValue[], + Types.EIP712SignatureStruct, + ], + ): string; + encodeFunctionData( + functionFragment: 'setEmergencyAdmin', + values: [PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'setFollowModule', + values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'setFollowModuleWithSig', + values: [ + PromiseOrValue, + PromiseOrValue, + PromiseOrValue, + Types.EIP712SignatureStruct, + ], + ): string; + encodeFunctionData(functionFragment: 'setGovernance', values: [PromiseOrValue]): string; + encodeFunctionData( + functionFragment: 'setMigrationAdmins', + values: [PromiseOrValue[], PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'setProfileMetadataURI', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'setProfileMetadataURIWithSig', + values: [PromiseOrValue, PromiseOrValue, Types.EIP712SignatureStruct], + ): string; + encodeFunctionData( + functionFragment: 'setRoyalty', + values: [PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'setState', values: [PromiseOrValue]): string; + encodeFunctionData( + functionFragment: 'supportsInterface', + values: [PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; + encodeFunctionData( + functionFragment: 'tokenDataOf', + values: [PromiseOrValue], + ): string; + encodeFunctionData(functionFragment: 'tokenURI', values: [PromiseOrValue]): string; + encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; + encodeFunctionData( + functionFragment: 'transferFrom', + values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'unfollow', + values: [PromiseOrValue, PromiseOrValue[]], + ): string; + encodeFunctionData( + functionFragment: 'unfollowWithSig', + values: [ + PromiseOrValue, + PromiseOrValue[], + Types.EIP712SignatureStruct, + ], + ): string; + encodeFunctionData( + functionFragment: 'whitelistActionModule', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'whitelistFollowModule', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'whitelistProfileCreator', + values: [PromiseOrValue, PromiseOrValue], + ): string; + encodeFunctionData( + functionFragment: 'whitelistReferenceModule', + values: [PromiseOrValue, PromiseOrValue], + ): string; + + decodeFunctionResult(functionFragment: 'DANGER__disableTokenGuardian', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'act', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'actWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'batchMigrateFollowModules', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'batchMigrateFollowers', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'batchMigrateFollows', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'batchMigrateProfiles', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'burn', data: BytesLike): Result; + decodeFunctionResult( + functionFragment: 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)', + data: BytesLike, + ): Result; + decodeFunctionResult( + functionFragment: 'changeDelegatedExecutorsConfig(uint256,address[],bool[])', + data: BytesLike, + ): Result; + decodeFunctionResult( + functionFragment: 'changeDelegatedExecutorsConfigWithSig', + data: BytesLike, + ): Result; + decodeFunctionResult(functionFragment: 'collect', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'collectWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'comment', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'commentWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'createProfile', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'emitCollectNFTTransferEvent', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'emitUnfollowedEvent', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'enableTokenGuardian', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'follow', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'followWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getActionModuleById', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getActionModuleWhitelistData', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getApproved', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getCollectNFTImpl', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getContentURI', data: BytesLike): Result; + decodeFunctionResult( + functionFragment: 'getDelegatedExecutorsConfigNumber', + data: BytesLike, + ): Result; + decodeFunctionResult( + functionFragment: 'getDelegatedExecutorsMaxConfigNumberSet', + data: BytesLike, + ): Result; + decodeFunctionResult( + functionFragment: 'getDelegatedExecutorsPrevConfigNumber', + data: BytesLike, + ): Result; + decodeFunctionResult(functionFragment: 'getDomainSeparator', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getFollowNFTImpl', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getGovernance', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getProfile', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getProfileIdByHandleHash', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getPublication', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getPublicationType', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'getState', data: BytesLike): Result; + decodeFunctionResult( + functionFragment: 'getTokenGuardianDisablingTimestamp', + data: BytesLike, + ): Result; + decodeFunctionResult(functionFragment: 'isApprovedForAll', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'isBlocked', data: BytesLike): Result; + decodeFunctionResult( + functionFragment: 'isDelegatedExecutorApproved(uint256,address)', + data: BytesLike, + ): Result; + decodeFunctionResult( + functionFragment: 'isDelegatedExecutorApproved(uint256,address,uint64)', + data: BytesLike, + ): Result; + decodeFunctionResult(functionFragment: 'isFollowModuleWhitelisted', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'isFollowing', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'isProfileCreatorWhitelisted', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'isReferenceModuleWhitelisted', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'mintTimestampOf', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'mirror', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'mirrorWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'nonces', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'ownerOf', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'post', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'postWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'quote', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'quoteWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'royaltyInfo', data: BytesLike): Result; + decodeFunctionResult( + functionFragment: 'safeTransferFrom(address,address,uint256)', + data: BytesLike, + ): Result; + decodeFunctionResult( + functionFragment: 'safeTransferFrom(address,address,uint256,bytes)', + data: BytesLike, + ): Result; + decodeFunctionResult(functionFragment: 'setApprovalForAll', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setBlockStatus', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setBlockStatusWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setEmergencyAdmin', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setFollowModule', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setFollowModuleWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setGovernance', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setMigrationAdmins', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setProfileMetadataURI', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setProfileMetadataURIWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setRoyalty', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'setState', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'tokenDataOf', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'tokenURI', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'unfollow', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'unfollowWithSig', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'whitelistActionModule', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'whitelistFollowModule', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'whitelistProfileCreator', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'whitelistReferenceModule', data: BytesLike): Result; + + events: { + 'Approval(address,address,uint256)': EventFragment; + 'ApprovalForAll(address,address,bool)': EventFragment; + 'Transfer(address,address,uint256)': EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment; + getEvent(nameOrSignatureOrTopic: 'ApprovalForAll'): EventFragment; + getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment; +} + +export interface ApprovalEventObject { + owner: string; + approved: string; + tokenId: BigNumber; +} +export type ApprovalEvent = TypedEvent<[string, string, BigNumber], ApprovalEventObject>; + +export type ApprovalEventFilter = TypedEventFilter; + +export interface ApprovalForAllEventObject { + owner: string; + operator: string; + approved: boolean; +} +export type ApprovalForAllEvent = TypedEvent<[string, string, boolean], ApprovalForAllEventObject>; + +export type ApprovalForAllEventFilter = TypedEventFilter; + +export interface TransferEventObject { + from: string; + to: string; + tokenId: BigNumber; +} +export type TransferEvent = TypedEvent<[string, string, BigNumber], TransferEventObject>; + +export type TransferEventFilter = TypedEventFilter; + +export interface LensHub extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: LensHubInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter, + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners(eventFilter: TypedEventFilter): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + DANGER__disableTokenGuardian( + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + act( + publicationActionParams: Types.PublicationActionParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + actWithSig( + publicationActionParams: Types.PublicationActionParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; + + batchMigrateFollowModules( + profileIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateFollowers( + followerProfileIds: PromiseOrValue[], + idOfProfileFollowed: PromiseOrValue, + followTokenIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateFollows( + followerProfileId: PromiseOrValue, + idsOfProfileFollowed: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateProfiles( + profileIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + burn( + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[])'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + changeDelegatedExecutorsConfigWithSig( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + collect( + collectParams: Types.CollectParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + collectWithSig( + collectParams: Types.CollectParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + comment( + commentParams: Types.CommentParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + commentWithSig( + commentParams: Types.CommentParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + createProfile( + createProfileParams: Types.CreateProfileParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + emitCollectNFTTransferEvent( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + collectNFTId: PromiseOrValue, + from: PromiseOrValue, + to: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + emitUnfollowedEvent( + unfollowerProfileId: PromiseOrValue, + idOfProfileUnfollowed: PromiseOrValue, + transactionExecutor: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + enableTokenGuardian( + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + exists(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; + + follow( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + followWithSig( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + getActionModuleById( + id: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[string]>; + + getActionModuleWhitelistData( + actionModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[Types.ActionModuleWhitelistDataStructOutput]>; + + getApproved( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[string]>; + + getCollectNFTImpl(overrides?: CallOverrides): Promise<[string]>; + + getContentURI( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[string]>; + + getDelegatedExecutorsConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[BigNumber]>; + + getDelegatedExecutorsMaxConfigNumberSet( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[BigNumber]>; + + getDelegatedExecutorsPrevConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[BigNumber]>; + + getDomainSeparator(overrides?: CallOverrides): Promise<[string]>; + + getFollowNFTImpl(overrides?: CallOverrides): Promise<[string]>; + + getGovernance(overrides?: CallOverrides): Promise<[string]>; + + getProfile( + profileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[Types.ProfileStructOutput]>; + + getProfileIdByHandleHash( + handleHash: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[BigNumber]>; + + getPublication( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[Types.PublicationStructOutput]>; + + getPublicationType( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[number]>; + + getState(overrides?: CallOverrides): Promise<[number]>; + + getTokenGuardianDisablingTimestamp( + wallet: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[BigNumber]>; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + isBlocked( + profileId: PromiseOrValue, + byProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + 'isDelegatedExecutorApproved(uint256,address)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + 'isDelegatedExecutorApproved(uint256,address,uint64)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + configNumber: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + isFollowModuleWhitelisted( + followModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + isFollowing( + followerProfileId: PromiseOrValue, + followedProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + isProfileCreatorWhitelisted( + profileCreator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + isReferenceModuleWhitelisted( + referenceModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + mintTimestampOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[BigNumber]>; + + mirror( + mirrorParams: Types.MirrorParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + mirrorWithSig( + mirrorParams: Types.MirrorParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + name(overrides?: CallOverrides): Promise<[string]>; + + nonces(signer: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; + + ownerOf(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; + + post( + postParams: Types.PostParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + postWithSig( + postParams: Types.PostParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + quote( + quoteParams: Types.QuoteParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + quoteWithSig( + quoteParams: Types.QuoteParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + royaltyInfo( + tokenId: PromiseOrValue, + salePrice: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[string, BigNumber]>; + + 'safeTransferFrom(address,address,uint256)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'safeTransferFrom(address,address,uint256,bytes)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + _data: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + approved: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setBlockStatus( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setBlockStatusWithSig( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setEmergencyAdmin( + newEmergencyAdmin: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setFollowModule( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setFollowModuleWithSig( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setGovernance( + newGovernance: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setMigrationAdmins( + migrationAdmins: PromiseOrValue[], + whitelisted: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setProfileMetadataURI( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setProfileMetadataURIWithSig( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setRoyalty( + royaltiesInBasisPoints: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setState( + newState: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + supportsInterface( + interfaceId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[boolean]>; + + symbol(overrides?: CallOverrides): Promise<[string]>; + + tokenDataOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[Types.TokenDataStructOutput]>; + + tokenURI(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise<[string]>; + + totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + unfollow( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + unfollowWithSig( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistActionModule( + actionModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistFollowModule( + followModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistProfileCreator( + profileCreator: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistReferenceModule( + referenceModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + }; + + DANGER__disableTokenGuardian( + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + act( + publicationActionParams: Types.PublicationActionParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + actWithSig( + publicationActionParams: Types.PublicationActionParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; + + batchMigrateFollowModules( + profileIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateFollowers( + followerProfileIds: PromiseOrValue[], + idOfProfileFollowed: PromiseOrValue, + followTokenIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateFollows( + followerProfileId: PromiseOrValue, + idsOfProfileFollowed: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateProfiles( + profileIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + burn( + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[])'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + changeDelegatedExecutorsConfigWithSig( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + collect( + collectParams: Types.CollectParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + collectWithSig( + collectParams: Types.CollectParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + comment( + commentParams: Types.CommentParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + commentWithSig( + commentParams: Types.CommentParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + createProfile( + createProfileParams: Types.CreateProfileParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + emitCollectNFTTransferEvent( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + collectNFTId: PromiseOrValue, + from: PromiseOrValue, + to: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + emitUnfollowedEvent( + unfollowerProfileId: PromiseOrValue, + idOfProfileUnfollowed: PromiseOrValue, + transactionExecutor: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + enableTokenGuardian( + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + exists(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + follow( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + followWithSig( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + getActionModuleById(id: PromiseOrValue, overrides?: CallOverrides): Promise; + + getActionModuleWhitelistData( + actionModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getApproved(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + getCollectNFTImpl(overrides?: CallOverrides): Promise; + + getContentURI( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsMaxConfigNumberSet( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsPrevConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDomainSeparator(overrides?: CallOverrides): Promise; + + getFollowNFTImpl(overrides?: CallOverrides): Promise; + + getGovernance(overrides?: CallOverrides): Promise; + + getProfile( + profileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getProfileIdByHandleHash( + handleHash: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getPublication( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getPublicationType( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getState(overrides?: CallOverrides): Promise; + + getTokenGuardianDisablingTimestamp( + wallet: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isBlocked( + profileId: PromiseOrValue, + byProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'isDelegatedExecutorApproved(uint256,address)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'isDelegatedExecutorApproved(uint256,address,uint64)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + configNumber: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isFollowModuleWhitelisted( + followModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isFollowing( + followerProfileId: PromiseOrValue, + followedProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isProfileCreatorWhitelisted( + profileCreator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isReferenceModuleWhitelisted( + referenceModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + mintTimestampOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + mirror( + mirrorParams: Types.MirrorParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + mirrorWithSig( + mirrorParams: Types.MirrorParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + name(overrides?: CallOverrides): Promise; + + nonces(signer: PromiseOrValue, overrides?: CallOverrides): Promise; + + ownerOf(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + post( + postParams: Types.PostParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + postWithSig( + postParams: Types.PostParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + quote( + quoteParams: Types.QuoteParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + quoteWithSig( + quoteParams: Types.QuoteParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + royaltyInfo( + tokenId: PromiseOrValue, + salePrice: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[string, BigNumber]>; + + 'safeTransferFrom(address,address,uint256)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'safeTransferFrom(address,address,uint256,bytes)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + _data: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + approved: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setBlockStatus( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setBlockStatusWithSig( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setEmergencyAdmin( + newEmergencyAdmin: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setFollowModule( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setFollowModuleWithSig( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setGovernance( + newGovernance: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setMigrationAdmins( + migrationAdmins: PromiseOrValue[], + whitelisted: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setProfileMetadataURI( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setProfileMetadataURIWithSig( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setRoyalty( + royaltiesInBasisPoints: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setState( + newState: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + supportsInterface( + interfaceId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenDataOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + tokenURI(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + unfollow( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + unfollowWithSig( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistActionModule( + actionModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistFollowModule( + followModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistProfileCreator( + profileCreator: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistReferenceModule( + referenceModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + callStatic: { + DANGER__disableTokenGuardian(overrides?: CallOverrides): Promise; + + act( + publicationActionParams: Types.PublicationActionParamsStruct, + overrides?: CallOverrides, + ): Promise; + + actWithSig( + publicationActionParams: Types.PublicationActionParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; + + batchMigrateFollowModules( + profileIds: PromiseOrValue[], + overrides?: CallOverrides, + ): Promise; + + batchMigrateFollowers( + followerProfileIds: PromiseOrValue[], + idOfProfileFollowed: PromiseOrValue, + followTokenIds: PromiseOrValue[], + overrides?: CallOverrides, + ): Promise; + + batchMigrateFollows( + followerProfileId: PromiseOrValue, + idsOfProfileFollowed: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + overrides?: CallOverrides, + ): Promise; + + batchMigrateProfiles( + profileIds: PromiseOrValue[], + overrides?: CallOverrides, + ): Promise; + + burn(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[])'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + overrides?: CallOverrides, + ): Promise; + + changeDelegatedExecutorsConfigWithSig( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + collect( + collectParams: Types.CollectParamsStruct, + overrides?: CallOverrides, + ): Promise; + + collectWithSig( + collectParams: Types.CollectParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + comment( + commentParams: Types.CommentParamsStruct, + overrides?: CallOverrides, + ): Promise; + + commentWithSig( + commentParams: Types.CommentParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + createProfile( + createProfileParams: Types.CreateProfileParamsStruct, + overrides?: CallOverrides, + ): Promise; + + emitCollectNFTTransferEvent( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + collectNFTId: PromiseOrValue, + from: PromiseOrValue, + to: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + emitUnfollowedEvent( + unfollowerProfileId: PromiseOrValue, + idOfProfileUnfollowed: PromiseOrValue, + transactionExecutor: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + enableTokenGuardian(overrides?: CallOverrides): Promise; + + exists(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + follow( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + overrides?: CallOverrides, + ): Promise; + + followWithSig( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + getActionModuleById( + id: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getActionModuleWhitelistData( + actionModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getApproved(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + getCollectNFTImpl(overrides?: CallOverrides): Promise; + + getContentURI( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsMaxConfigNumberSet( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsPrevConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDomainSeparator(overrides?: CallOverrides): Promise; + + getFollowNFTImpl(overrides?: CallOverrides): Promise; + + getGovernance(overrides?: CallOverrides): Promise; + + getProfile( + profileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getProfileIdByHandleHash( + handleHash: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getPublication( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getPublicationType( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getState(overrides?: CallOverrides): Promise; + + getTokenGuardianDisablingTimestamp( + wallet: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isBlocked( + profileId: PromiseOrValue, + byProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'isDelegatedExecutorApproved(uint256,address)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'isDelegatedExecutorApproved(uint256,address,uint64)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + configNumber: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isFollowModuleWhitelisted( + followModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isFollowing( + followerProfileId: PromiseOrValue, + followedProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isProfileCreatorWhitelisted( + profileCreator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isReferenceModuleWhitelisted( + referenceModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + mintTimestampOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + mirror(mirrorParams: Types.MirrorParamsStruct, overrides?: CallOverrides): Promise; + + mirrorWithSig( + mirrorParams: Types.MirrorParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + name(overrides?: CallOverrides): Promise; + + nonces(signer: PromiseOrValue, overrides?: CallOverrides): Promise; + + ownerOf(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + post(postParams: Types.PostParamsStruct, overrides?: CallOverrides): Promise; + + postWithSig( + postParams: Types.PostParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + quote(quoteParams: Types.QuoteParamsStruct, overrides?: CallOverrides): Promise; + + quoteWithSig( + quoteParams: Types.QuoteParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + royaltyInfo( + tokenId: PromiseOrValue, + salePrice: PromiseOrValue, + overrides?: CallOverrides, + ): Promise<[string, BigNumber]>; + + 'safeTransferFrom(address,address,uint256)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'safeTransferFrom(address,address,uint256,bytes)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + _data: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + approved: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + setBlockStatus( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + overrides?: CallOverrides, + ): Promise; + + setBlockStatusWithSig( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + setEmergencyAdmin( + newEmergencyAdmin: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + setFollowModule( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + setFollowModuleWithSig( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + setGovernance(newGovernance: PromiseOrValue, overrides?: CallOverrides): Promise; + + setMigrationAdmins( + migrationAdmins: PromiseOrValue[], + whitelisted: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + setProfileMetadataURI( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + setProfileMetadataURIWithSig( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + setRoyalty( + royaltiesInBasisPoints: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + setState(newState: PromiseOrValue, overrides?: CallOverrides): Promise; + + supportsInterface( + interfaceId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenDataOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + tokenURI(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + unfollow( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + overrides?: CallOverrides, + ): Promise; + + unfollowWithSig( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: CallOverrides, + ): Promise; + + whitelistActionModule( + actionModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + whitelistFollowModule( + followModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + whitelistProfileCreator( + profileCreator: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + whitelistReferenceModule( + referenceModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + }; + + filters: { + 'Approval(address,address,uint256)'( + owner?: PromiseOrValue | null, + approved?: PromiseOrValue | null, + tokenId?: PromiseOrValue | null, + ): ApprovalEventFilter; + Approval( + owner?: PromiseOrValue | null, + approved?: PromiseOrValue | null, + tokenId?: PromiseOrValue | null, + ): ApprovalEventFilter; + + 'ApprovalForAll(address,address,bool)'( + owner?: PromiseOrValue | null, + operator?: PromiseOrValue | null, + approved?: null, + ): ApprovalForAllEventFilter; + ApprovalForAll( + owner?: PromiseOrValue | null, + operator?: PromiseOrValue | null, + approved?: null, + ): ApprovalForAllEventFilter; + + 'Transfer(address,address,uint256)'( + from?: PromiseOrValue | null, + to?: PromiseOrValue | null, + tokenId?: PromiseOrValue | null, + ): TransferEventFilter; + Transfer( + from?: PromiseOrValue | null, + to?: PromiseOrValue | null, + tokenId?: PromiseOrValue | null, + ): TransferEventFilter; + }; + + estimateGas: { + DANGER__disableTokenGuardian( + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + act( + publicationActionParams: Types.PublicationActionParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + actWithSig( + publicationActionParams: Types.PublicationActionParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + balanceOf(owner: PromiseOrValue, overrides?: CallOverrides): Promise; + + batchMigrateFollowModules( + profileIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateFollowers( + followerProfileIds: PromiseOrValue[], + idOfProfileFollowed: PromiseOrValue, + followTokenIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateFollows( + followerProfileId: PromiseOrValue, + idsOfProfileFollowed: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateProfiles( + profileIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + burn( + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[])'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + changeDelegatedExecutorsConfigWithSig( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + collect( + collectParams: Types.CollectParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + collectWithSig( + collectParams: Types.CollectParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + comment( + commentParams: Types.CommentParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + commentWithSig( + commentParams: Types.CommentParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + createProfile( + createProfileParams: Types.CreateProfileParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + emitCollectNFTTransferEvent( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + collectNFTId: PromiseOrValue, + from: PromiseOrValue, + to: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + emitUnfollowedEvent( + unfollowerProfileId: PromiseOrValue, + idOfProfileUnfollowed: PromiseOrValue, + transactionExecutor: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + enableTokenGuardian( + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + exists(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + follow( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + followWithSig( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + getActionModuleById( + id: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getActionModuleWhitelistData( + actionModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getApproved( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getCollectNFTImpl(overrides?: CallOverrides): Promise; + + getContentURI( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsMaxConfigNumberSet( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsPrevConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDomainSeparator(overrides?: CallOverrides): Promise; + + getFollowNFTImpl(overrides?: CallOverrides): Promise; + + getGovernance(overrides?: CallOverrides): Promise; + + getProfile( + profileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getProfileIdByHandleHash( + handleHash: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getPublication( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getPublicationType( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getState(overrides?: CallOverrides): Promise; + + getTokenGuardianDisablingTimestamp( + wallet: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isBlocked( + profileId: PromiseOrValue, + byProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'isDelegatedExecutorApproved(uint256,address)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'isDelegatedExecutorApproved(uint256,address,uint64)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + configNumber: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isFollowModuleWhitelisted( + followModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isFollowing( + followerProfileId: PromiseOrValue, + followedProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isProfileCreatorWhitelisted( + profileCreator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isReferenceModuleWhitelisted( + referenceModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + mintTimestampOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + mirror( + mirrorParams: Types.MirrorParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + mirrorWithSig( + mirrorParams: Types.MirrorParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + name(overrides?: CallOverrides): Promise; + + nonces(signer: PromiseOrValue, overrides?: CallOverrides): Promise; + + ownerOf(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + post( + postParams: Types.PostParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + postWithSig( + postParams: Types.PostParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + quote( + quoteParams: Types.QuoteParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + quoteWithSig( + quoteParams: Types.QuoteParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + royaltyInfo( + tokenId: PromiseOrValue, + salePrice: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'safeTransferFrom(address,address,uint256)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'safeTransferFrom(address,address,uint256,bytes)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + _data: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + approved: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setBlockStatus( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setBlockStatusWithSig( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setEmergencyAdmin( + newEmergencyAdmin: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setFollowModule( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setFollowModuleWithSig( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setGovernance( + newGovernance: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setMigrationAdmins( + migrationAdmins: PromiseOrValue[], + whitelisted: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setProfileMetadataURI( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setProfileMetadataURIWithSig( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setRoyalty( + royaltiesInBasisPoints: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setState( + newState: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + supportsInterface( + interfaceId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenDataOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + tokenURI(tokenId: PromiseOrValue, overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + unfollow( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + unfollowWithSig( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistActionModule( + actionModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistFollowModule( + followModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistProfileCreator( + profileCreator: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistReferenceModule( + referenceModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + }; + + populateTransaction: { + DANGER__disableTokenGuardian( + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + act( + publicationActionParams: Types.PublicationActionParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + actWithSig( + publicationActionParams: Types.PublicationActionParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + balanceOf( + owner: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + batchMigrateFollowModules( + profileIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateFollowers( + followerProfileIds: PromiseOrValue[], + idOfProfileFollowed: PromiseOrValue, + followTokenIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateFollows( + followerProfileId: PromiseOrValue, + idsOfProfileFollowed: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + batchMigrateProfiles( + profileIds: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + burn( + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[],uint64,bool)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'changeDelegatedExecutorsConfig(uint256,address[],bool[])'( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + changeDelegatedExecutorsConfigWithSig( + delegatorProfileId: PromiseOrValue, + delegatedExecutors: PromiseOrValue[], + approvals: PromiseOrValue[], + configNumber: PromiseOrValue, + switchToGivenConfig: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + collect( + collectParams: Types.CollectParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + collectWithSig( + collectParams: Types.CollectParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + comment( + commentParams: Types.CommentParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + commentWithSig( + commentParams: Types.CommentParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + createProfile( + createProfileParams: Types.CreateProfileParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + emitCollectNFTTransferEvent( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + collectNFTId: PromiseOrValue, + from: PromiseOrValue, + to: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + emitUnfollowedEvent( + unfollowerProfileId: PromiseOrValue, + idOfProfileUnfollowed: PromiseOrValue, + transactionExecutor: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + enableTokenGuardian( + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + exists( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + follow( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + followWithSig( + followerProfileId: PromiseOrValue, + idsOfProfilesToFollow: PromiseOrValue[], + followTokenIds: PromiseOrValue[], + datas: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + getActionModuleById( + id: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getActionModuleWhitelistData( + actionModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getApproved( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getCollectNFTImpl(overrides?: CallOverrides): Promise; + + getContentURI( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsMaxConfigNumberSet( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDelegatedExecutorsPrevConfigNumber( + delegatorProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getDomainSeparator(overrides?: CallOverrides): Promise; + + getFollowNFTImpl(overrides?: CallOverrides): Promise; + + getGovernance(overrides?: CallOverrides): Promise; + + getProfile( + profileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getProfileIdByHandleHash( + handleHash: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getPublication( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getPublicationType( + profileId: PromiseOrValue, + pubId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + getState(overrides?: CallOverrides): Promise; + + getTokenGuardianDisablingTimestamp( + wallet: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isBlocked( + profileId: PromiseOrValue, + byProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'isDelegatedExecutorApproved(uint256,address)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'isDelegatedExecutorApproved(uint256,address,uint64)'( + delegatorProfileId: PromiseOrValue, + delegatedExecutor: PromiseOrValue, + configNumber: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isFollowModuleWhitelisted( + followModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isFollowing( + followerProfileId: PromiseOrValue, + followedProfileId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isProfileCreatorWhitelisted( + profileCreator: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + isReferenceModuleWhitelisted( + referenceModule: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + mintTimestampOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + mirror( + mirrorParams: Types.MirrorParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + mirrorWithSig( + mirrorParams: Types.MirrorParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + name(overrides?: CallOverrides): Promise; + + nonces( + signer: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + ownerOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + post( + postParams: Types.PostParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + postWithSig( + postParams: Types.PostParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + quote( + quoteParams: Types.QuoteParamsStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + quoteWithSig( + quoteParams: Types.QuoteParamsStruct, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + royaltyInfo( + tokenId: PromiseOrValue, + salePrice: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + 'safeTransferFrom(address,address,uint256)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + 'safeTransferFrom(address,address,uint256,bytes)'( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + _data: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + approved: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setBlockStatus( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setBlockStatusWithSig( + byProfileId: PromiseOrValue, + idsOfProfilesToSetBlockStatus: PromiseOrValue[], + blockStatus: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setEmergencyAdmin( + newEmergencyAdmin: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setFollowModule( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setFollowModuleWithSig( + profileId: PromiseOrValue, + followModule: PromiseOrValue, + followModuleInitData: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setGovernance( + newGovernance: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setMigrationAdmins( + migrationAdmins: PromiseOrValue[], + whitelisted: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setProfileMetadataURI( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setProfileMetadataURIWithSig( + profileId: PromiseOrValue, + metadataURI: PromiseOrValue, + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setRoyalty( + royaltiesInBasisPoints: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + setState( + newState: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + supportsInterface( + interfaceId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenDataOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + tokenURI( + tokenId: PromiseOrValue, + overrides?: CallOverrides, + ): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + unfollow( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + unfollowWithSig( + unfollowerProfileId: PromiseOrValue, + idsOfProfilesToUnfollow: PromiseOrValue[], + signature: Types.EIP712SignatureStruct, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistActionModule( + actionModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistFollowModule( + followModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistProfileCreator( + profileCreator: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + + whitelistReferenceModule( + referenceModule: PromiseOrValue, + whitelist: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue }, + ): Promise; + }; +} diff --git a/examples/node/contracts/factories/LensHub__factory.ts b/examples/node/contracts/factories/LensHub__factory.ts new file mode 100644 index 0000000000..96a15cf201 --- /dev/null +++ b/examples/node/contracts/factories/LensHub__factory.ts @@ -0,0 +1,2951 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from 'ethers'; +import type { Provider } from '@ethersproject/providers'; +import type { LensHub, LensHubInterface, Types } from '../LensHub'; + +const _abi = [ + { + inputs: [ + { + internalType: 'address', + name: 'moduleGlobals', + type: 'address', + }, + { + internalType: 'address', + name: 'followNFTImpl', + type: 'address', + }, + { + internalType: 'address', + name: 'collectNFTImpl', + type: 'address', + }, + { + internalType: 'uint256', + name: 'tokenGuardianCooldown', + type: 'uint256', + }, + { + components: [ + { + internalType: 'address', + name: 'lensHandlesAddress', + type: 'address', + }, + { + internalType: 'address', + name: 'tokenHandleRegistryAddress', + type: 'address', + }, + { + internalType: 'address', + name: 'legacyFeeFollowModule', + type: 'address', + }, + { + internalType: 'address', + name: 'legacyProfileFollowModule', + type: 'address', + }, + { + internalType: 'address', + name: 'newFeeFollowModule', + type: 'address', + }, + { + internalType: 'address', + name: 'migrationAdmin', + type: 'address', + }, + ], + internalType: 'struct Types.MigrationParams', + name: 'migrationParams', + type: 'tuple', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [], + name: 'AlreadyEnabled', + type: 'error', + }, + { + inputs: [], + name: 'CallerNotCollectNFT', + type: 'error', + }, + { + inputs: [], + name: 'CallerNotFollowNFT', + type: 'error', + }, + { + inputs: [], + name: 'DisablingAlreadyTriggered', + type: 'error', + }, + { + inputs: [], + name: 'ExecutorInvalid', + type: 'error', + }, + { + inputs: [], + name: 'GuardianEnabled', + type: 'error', + }, + { + inputs: [], + name: 'InvalidOwner', + type: 'error', + }, + { + inputs: [], + name: 'InvalidParameter', + type: 'error', + }, + { + inputs: [], + name: 'NonERC721ReceiverImplementer', + type: 'error', + }, + { + inputs: [], + name: 'NotEOA', + type: 'error', + }, + { + inputs: [], + name: 'NotGovernance', + type: 'error', + }, + { + inputs: [], + name: 'NotMigrationAdmin', + type: 'error', + }, + { + inputs: [], + name: 'NotOwnerOrApproved', + type: 'error', + }, + { + inputs: [], + name: 'NotProfileOwner', + type: 'error', + }, + { + inputs: [], + name: 'NotWhitelisted', + type: 'error', + }, + { + inputs: [], + name: 'Paused', + type: 'error', + }, + { + inputs: [], + name: 'PublishingPaused', + type: 'error', + }, + { + inputs: [], + name: 'TokenDoesNotExist', + type: 'error', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'approved', + type: 'address', + }, + { + indexed: true, + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'Approval', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'operator', + type: 'address', + }, + { + indexed: false, + internalType: 'bool', + name: 'approved', + type: 'bool', + }, + ], + name: 'ApprovalForAll', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'from', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'to', + type: 'address', + }, + { + indexed: true, + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'Transfer', + type: 'event', + }, + { + inputs: [], + name: 'DANGER__disableTokenGuardian', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'publicationActedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'publicationActedId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'actorProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'referrerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'referrerPubIds', + type: 'uint256[]', + }, + { + internalType: 'address', + name: 'actionModuleAddress', + type: 'address', + }, + { + internalType: 'bytes', + name: 'actionModuleData', + type: 'bytes', + }, + ], + internalType: 'struct Types.PublicationActionParams', + name: 'publicationActionParams', + type: 'tuple', + }, + ], + name: 'act', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'publicationActedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'publicationActedId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'actorProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'referrerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'referrerPubIds', + type: 'uint256[]', + }, + { + internalType: 'address', + name: 'actionModuleAddress', + type: 'address', + }, + { + internalType: 'bytes', + name: 'actionModuleData', + type: 'bytes', + }, + ], + internalType: 'struct Types.PublicationActionParams', + name: 'publicationActionParams', + type: 'tuple', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'actWithSig', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'approve', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'balanceOf', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256[]', + name: 'profileIds', + type: 'uint256[]', + }, + ], + name: 'batchMigrateFollowModules', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256[]', + name: 'followerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256', + name: 'idOfProfileFollowed', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'followTokenIds', + type: 'uint256[]', + }, + ], + name: 'batchMigrateFollowers', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'followerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'idsOfProfileFollowed', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'followTokenIds', + type: 'uint256[]', + }, + ], + name: 'batchMigrateFollows', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256[]', + name: 'profileIds', + type: 'uint256[]', + }, + ], + name: 'batchMigrateProfiles', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'burn', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'delegatorProfileId', + type: 'uint256', + }, + { + internalType: 'address[]', + name: 'delegatedExecutors', + type: 'address[]', + }, + { + internalType: 'bool[]', + name: 'approvals', + type: 'bool[]', + }, + { + internalType: 'uint64', + name: 'configNumber', + type: 'uint64', + }, + { + internalType: 'bool', + name: 'switchToGivenConfig', + type: 'bool', + }, + ], + name: 'changeDelegatedExecutorsConfig', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'delegatorProfileId', + type: 'uint256', + }, + { + internalType: 'address[]', + name: 'delegatedExecutors', + type: 'address[]', + }, + { + internalType: 'bool[]', + name: 'approvals', + type: 'bool[]', + }, + ], + name: 'changeDelegatedExecutorsConfig', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'delegatorProfileId', + type: 'uint256', + }, + { + internalType: 'address[]', + name: 'delegatedExecutors', + type: 'address[]', + }, + { + internalType: 'bool[]', + name: 'approvals', + type: 'bool[]', + }, + { + internalType: 'uint64', + name: 'configNumber', + type: 'uint64', + }, + { + internalType: 'bool', + name: 'switchToGivenConfig', + type: 'bool', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'changeDelegatedExecutorsConfigWithSig', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'publicationCollectedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'publicationCollectedId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'collectorProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'referrerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'referrerPubId', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'collectModuleData', + type: 'bytes', + }, + ], + internalType: 'struct Types.CollectParams', + name: 'collectParams', + type: 'tuple', + }, + ], + name: 'collect', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'publicationCollectedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'publicationCollectedId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'collectorProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'referrerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'referrerPubId', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'collectModuleData', + type: 'bytes', + }, + ], + internalType: 'struct Types.CollectParams', + name: 'collectParams', + type: 'tuple', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'collectWithSig', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'contentURI', + type: 'string', + }, + { + internalType: 'uint256', + name: 'pointedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pointedPubId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'referrerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'referrerPubIds', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: 'referenceModuleData', + type: 'bytes', + }, + { + internalType: 'address[]', + name: 'actionModules', + type: 'address[]', + }, + { + internalType: 'bytes[]', + name: 'actionModulesInitDatas', + type: 'bytes[]', + }, + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'referenceModuleInitData', + type: 'bytes', + }, + ], + internalType: 'struct Types.CommentParams', + name: 'commentParams', + type: 'tuple', + }, + ], + name: 'comment', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'contentURI', + type: 'string', + }, + { + internalType: 'uint256', + name: 'pointedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pointedPubId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'referrerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'referrerPubIds', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: 'referenceModuleData', + type: 'bytes', + }, + { + internalType: 'address[]', + name: 'actionModules', + type: 'address[]', + }, + { + internalType: 'bytes[]', + name: 'actionModulesInitDatas', + type: 'bytes[]', + }, + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'referenceModuleInitData', + type: 'bytes', + }, + ], + internalType: 'struct Types.CommentParams', + name: 'commentParams', + type: 'tuple', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'commentWithSig', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'address', + name: 'followModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'followModuleInitData', + type: 'bytes', + }, + ], + internalType: 'struct Types.CreateProfileParams', + name: 'createProfileParams', + type: 'tuple', + }, + ], + name: 'createProfile', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pubId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'collectNFTId', + type: 'uint256', + }, + { + internalType: 'address', + name: 'from', + type: 'address', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + ], + name: 'emitCollectNFTTransferEvent', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'unfollowerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'idOfProfileUnfollowed', + type: 'uint256', + }, + { + internalType: 'address', + name: 'transactionExecutor', + type: 'address', + }, + ], + name: 'emitUnfollowedEvent', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'enableTokenGuardian', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'exists', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'followerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'idsOfProfilesToFollow', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'followTokenIds', + type: 'uint256[]', + }, + { + internalType: 'bytes[]', + name: 'datas', + type: 'bytes[]', + }, + ], + name: 'follow', + outputs: [ + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'followerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'idsOfProfilesToFollow', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'followTokenIds', + type: 'uint256[]', + }, + { + internalType: 'bytes[]', + name: 'datas', + type: 'bytes[]', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'followWithSig', + outputs: [ + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + ], + name: 'getActionModuleById', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'actionModule', + type: 'address', + }, + ], + name: 'getActionModuleWhitelistData', + outputs: [ + { + components: [ + { + internalType: 'uint248', + name: 'id', + type: 'uint248', + }, + { + internalType: 'bool', + name: 'isWhitelisted', + type: 'bool', + }, + ], + internalType: 'struct Types.ActionModuleWhitelistData', + name: '', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'getApproved', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getCollectNFTImpl', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pubId', + type: 'uint256', + }, + ], + name: 'getContentURI', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'delegatorProfileId', + type: 'uint256', + }, + ], + name: 'getDelegatedExecutorsConfigNumber', + outputs: [ + { + internalType: 'uint64', + name: '', + type: 'uint64', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'delegatorProfileId', + type: 'uint256', + }, + ], + name: 'getDelegatedExecutorsMaxConfigNumberSet', + outputs: [ + { + internalType: 'uint64', + name: '', + type: 'uint64', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'delegatorProfileId', + type: 'uint256', + }, + ], + name: 'getDelegatedExecutorsPrevConfigNumber', + outputs: [ + { + internalType: 'uint64', + name: '', + type: 'uint64', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getDomainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getFollowNFTImpl', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getGovernance', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + ], + name: 'getProfile', + outputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'pubCount', + type: 'uint256', + }, + { + internalType: 'address', + name: 'followModule', + type: 'address', + }, + { + internalType: 'address', + name: 'followNFT', + type: 'address', + }, + { + internalType: 'string', + name: '__DEPRECATED__handle', + type: 'string', + }, + { + internalType: 'string', + name: '__DEPRECATED__imageURI', + type: 'string', + }, + { + internalType: 'string', + name: '__DEPRECATED__followNFTURI', + type: 'string', + }, + { + internalType: 'string', + name: 'metadataURI', + type: 'string', + }, + ], + internalType: 'struct Types.Profile', + name: '', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'handleHash', + type: 'bytes32', + }, + ], + name: 'getProfileIdByHandleHash', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pubId', + type: 'uint256', + }, + ], + name: 'getPublication', + outputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'pointedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pointedPubId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'contentURI', + type: 'string', + }, + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + { + internalType: 'address', + name: '__DEPRECATED__collectModule', + type: 'address', + }, + { + internalType: 'address', + name: '__DEPRECATED__collectNFT', + type: 'address', + }, + { + internalType: 'enum Types.PublicationType', + name: 'pubType', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'rootProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'rootPubId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'enabledActionModulesBitmap', + type: 'uint256', + }, + ], + internalType: 'struct Types.Publication', + name: '', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pubId', + type: 'uint256', + }, + ], + name: 'getPublicationType', + outputs: [ + { + internalType: 'enum Types.PublicationType', + name: '', + type: 'uint8', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getState', + outputs: [ + { + internalType: 'enum Types.ProtocolState', + name: '', + type: 'uint8', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'wallet', + type: 'address', + }, + ], + name: 'getTokenGuardianDisablingTimestamp', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'address', + name: 'operator', + type: 'address', + }, + ], + name: 'isApprovedForAll', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'byProfileId', + type: 'uint256', + }, + ], + name: 'isBlocked', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'delegatorProfileId', + type: 'uint256', + }, + { + internalType: 'address', + name: 'delegatedExecutor', + type: 'address', + }, + ], + name: 'isDelegatedExecutorApproved', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'delegatorProfileId', + type: 'uint256', + }, + { + internalType: 'address', + name: 'delegatedExecutor', + type: 'address', + }, + { + internalType: 'uint64', + name: 'configNumber', + type: 'uint64', + }, + ], + name: 'isDelegatedExecutorApproved', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'followModule', + type: 'address', + }, + ], + name: 'isFollowModuleWhitelisted', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'followerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'followedProfileId', + type: 'uint256', + }, + ], + name: 'isFollowing', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'profileCreator', + type: 'address', + }, + ], + name: 'isProfileCreatorWhitelisted', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + ], + name: 'isReferenceModuleWhitelisted', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'mintTimestampOf', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'metadataURI', + type: 'string', + }, + { + internalType: 'uint256', + name: 'pointedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pointedPubId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'referrerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'referrerPubIds', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: 'referenceModuleData', + type: 'bytes', + }, + ], + internalType: 'struct Types.MirrorParams', + name: 'mirrorParams', + type: 'tuple', + }, + ], + name: 'mirror', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'metadataURI', + type: 'string', + }, + { + internalType: 'uint256', + name: 'pointedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pointedPubId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'referrerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'referrerPubIds', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: 'referenceModuleData', + type: 'bytes', + }, + ], + internalType: 'struct Types.MirrorParams', + name: 'mirrorParams', + type: 'tuple', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'mirrorWithSig', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'name', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + ], + name: 'nonces', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'ownerOf', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'contentURI', + type: 'string', + }, + { + internalType: 'address[]', + name: 'actionModules', + type: 'address[]', + }, + { + internalType: 'bytes[]', + name: 'actionModulesInitDatas', + type: 'bytes[]', + }, + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'referenceModuleInitData', + type: 'bytes', + }, + ], + internalType: 'struct Types.PostParams', + name: 'postParams', + type: 'tuple', + }, + ], + name: 'post', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'contentURI', + type: 'string', + }, + { + internalType: 'address[]', + name: 'actionModules', + type: 'address[]', + }, + { + internalType: 'bytes[]', + name: 'actionModulesInitDatas', + type: 'bytes[]', + }, + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'referenceModuleInitData', + type: 'bytes', + }, + ], + internalType: 'struct Types.PostParams', + name: 'postParams', + type: 'tuple', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'postWithSig', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'contentURI', + type: 'string', + }, + { + internalType: 'uint256', + name: 'pointedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pointedPubId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'referrerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'referrerPubIds', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: 'referenceModuleData', + type: 'bytes', + }, + { + internalType: 'address[]', + name: 'actionModules', + type: 'address[]', + }, + { + internalType: 'bytes[]', + name: 'actionModulesInitDatas', + type: 'bytes[]', + }, + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'referenceModuleInitData', + type: 'bytes', + }, + ], + internalType: 'struct Types.QuoteParams', + name: 'quoteParams', + type: 'tuple', + }, + ], + name: 'quote', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'contentURI', + type: 'string', + }, + { + internalType: 'uint256', + name: 'pointedProfileId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'pointedPubId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'referrerProfileIds', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: 'referrerPubIds', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: 'referenceModuleData', + type: 'bytes', + }, + { + internalType: 'address[]', + name: 'actionModules', + type: 'address[]', + }, + { + internalType: 'bytes[]', + name: 'actionModulesInitDatas', + type: 'bytes[]', + }, + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'referenceModuleInitData', + type: 'bytes', + }, + ], + internalType: 'struct Types.QuoteParams', + name: 'quoteParams', + type: 'tuple', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'quoteWithSig', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'salePrice', + type: 'uint256', + }, + ], + name: 'royaltyInfo', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'safeTransferFrom', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + ], + name: 'safeTransferFrom', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'operator', + type: 'address', + }, + { + internalType: 'bool', + name: 'approved', + type: 'bool', + }, + ], + name: 'setApprovalForAll', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'byProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'idsOfProfilesToSetBlockStatus', + type: 'uint256[]', + }, + { + internalType: 'bool[]', + name: 'blockStatus', + type: 'bool[]', + }, + ], + name: 'setBlockStatus', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'byProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'idsOfProfilesToSetBlockStatus', + type: 'uint256[]', + }, + { + internalType: 'bool[]', + name: 'blockStatus', + type: 'bool[]', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'setBlockStatusWithSig', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'newEmergencyAdmin', + type: 'address', + }, + ], + name: 'setEmergencyAdmin', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'address', + name: 'followModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'followModuleInitData', + type: 'bytes', + }, + ], + name: 'setFollowModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'address', + name: 'followModule', + type: 'address', + }, + { + internalType: 'bytes', + name: 'followModuleInitData', + type: 'bytes', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'setFollowModuleWithSig', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'newGovernance', + type: 'address', + }, + ], + name: 'setGovernance', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address[]', + name: 'migrationAdmins', + type: 'address[]', + }, + { + internalType: 'bool', + name: 'whitelisted', + type: 'bool', + }, + ], + name: 'setMigrationAdmins', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'metadataURI', + type: 'string', + }, + ], + name: 'setProfileMetadataURI', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'profileId', + type: 'uint256', + }, + { + internalType: 'string', + name: 'metadataURI', + type: 'string', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'setProfileMetadataURIWithSig', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'royaltiesInBasisPoints', + type: 'uint256', + }, + ], + name: 'setRoyalty', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'enum Types.ProtocolState', + name: 'newState', + type: 'uint8', + }, + ], + name: 'setState', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'symbol', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'tokenDataOf', + outputs: [ + { + components: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint96', + name: 'mintTimestamp', + type: 'uint96', + }, + ], + internalType: 'struct Types.TokenData', + name: '', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'tokenURI', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'totalSupply', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'from', + type: 'address', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'tokenId', + type: 'uint256', + }, + ], + name: 'transferFrom', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'unfollowerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'idsOfProfilesToUnfollow', + type: 'uint256[]', + }, + ], + name: 'unfollow', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'unfollowerProfileId', + type: 'uint256', + }, + { + internalType: 'uint256[]', + name: 'idsOfProfilesToUnfollow', + type: 'uint256[]', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'uint8', + name: 'v', + type: 'uint8', + }, + { + internalType: 'bytes32', + name: 'r', + type: 'bytes32', + }, + { + internalType: 'bytes32', + name: 's', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'deadline', + type: 'uint256', + }, + ], + internalType: 'struct Types.EIP712Signature', + name: 'signature', + type: 'tuple', + }, + ], + name: 'unfollowWithSig', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'actionModule', + type: 'address', + }, + { + internalType: 'bool', + name: 'whitelist', + type: 'bool', + }, + ], + name: 'whitelistActionModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'followModule', + type: 'address', + }, + { + internalType: 'bool', + name: 'whitelist', + type: 'bool', + }, + ], + name: 'whitelistFollowModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'profileCreator', + type: 'address', + }, + { + internalType: 'bool', + name: 'whitelist', + type: 'bool', + }, + ], + name: 'whitelistProfileCreator', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'referenceModule', + type: 'address', + }, + { + internalType: 'bool', + name: 'whitelist', + type: 'bool', + }, + ], + name: 'whitelistReferenceModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const; + +export class LensHub__factory { + static readonly abi = _abi; + static createInterface(): LensHubInterface { + return new utils.Interface(_abi) as LensHubInterface; + } + static connect(address: string, signerOrProvider: Signer | Provider): LensHub { + return new Contract(address, _abi, signerOrProvider) as LensHub; + } +} diff --git a/examples/node/contracts/factories/index.ts b/examples/node/contracts/factories/index.ts index ec2ebe7d82..da1193c21f 100644 --- a/examples/node/contracts/factories/index.ts +++ b/examples/node/contracts/factories/index.ts @@ -1,5 +1,6 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ +export { LensHub__factory } from './LensHub__factory'; export { PermissonlessCreator__factory } from './PermissonlessCreator__factory'; export { PublicActProxy__factory } from './PublicActProxy__factory'; diff --git a/examples/node/contracts/index.ts b/examples/node/contracts/index.ts index 5a21584945..e0728ff5ad 100644 --- a/examples/node/contracts/index.ts +++ b/examples/node/contracts/index.ts @@ -1,8 +1,10 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ +export type { LensHub } from './LensHub'; export type { PermissonlessCreator } from './PermissonlessCreator'; export type { PublicActProxy } from './PublicActProxy'; export * as factories from './factories'; +export { LensHub__factory } from './factories/LensHub__factory'; export { PermissonlessCreator__factory } from './factories/PermissonlessCreator__factory'; export { PublicActProxy__factory } from './factories/PublicActProxy__factory'; diff --git a/examples/node/scripts/profile/recipes/profileMetadata.ts b/examples/node/scripts/profile/recipes/profileMetadata.ts index 96ac3b5fb9..e2602860e7 100644 --- a/examples/node/scripts/profile/recipes/profileMetadata.ts +++ b/examples/node/scripts/profile/recipes/profileMetadata.ts @@ -1,10 +1,37 @@ import { isRelaySuccess } from '@lens-protocol/client'; +import * as dotenv from 'dotenv'; +import { ethers } from 'ethers'; +import abi from '../../../abi/LensHub.json'; +import type { LensHub } from '../../../contracts/LensHub'; import { getAuthenticatedClient } from '../../shared/getAuthenticatedClient'; -import { setupWallet } from '../../shared/setupWallet'; + +dotenv.config(); + +// prepare direct contract call in case of non-sponsored profile +const typedAbi = abi as ethers.ContractInterface; + +const lensHubAddress = { + development: '0x4fbffF20302F3326B20052ab9C217C44F6480900', + production: '0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d', +}; + +if (!process.env.INFURA_API_KEY) { + throw new Error('Infura API key is not defined in .env file'); +} + +const rpcUrl = { + development: `https://polygon-mumbai.infura.io/v3/${process.env.INFURA_API_KEY}`, + production: `https://polygon.infura.io/v3/${process.env.INFURA_API_KEY}`, +}; async function main() { - const wallet = setupWallet(); + if (!process.env.WALLET_PRIVATE_KEY) { + throw new Error('Private key is not defined in .env file'); + } + const provider = new ethers.providers.JsonRpcProvider(rpcUrl.development); + const wallet = new ethers.Wallet(process.env.WALLET_PRIVATE_KEY, provider); + const client = await getAuthenticatedClient(wallet); // I have metadata already uploaded for simplicity @@ -32,8 +59,26 @@ async function main() { ); if (!profile.sponsor) { - // TODO submit tx on chain - console.log(`Profile is not sponsored`); + // call the contract directly, pay gas yourself + const lensHub = new ethers.Contract(lensHubAddress.development, typedAbi, wallet) as LensHub; + + const tx = await lensHub.setProfileMetadataURI(profile.id, metadataURI); + + console.log(`Submitted a tx with a hash: `, tx.hash); + + console.log(`Waiting for tx to be mined and indexed...`); + const outcome = await client.transaction.waitUntilComplete({ + forTxHash: tx.hash, + }); + + if (outcome === null) { + // if the transaction was sped up, the hash would have changed + console.error('The transaction was not found'); + return; + } + + console.log(`Profile metadata updated!`); + return; } // check if the profile has signless enabled aka. enabled lens profile manager From 1f95547be28e158e5284911a1ee532a818153351 Mon Sep 17 00:00:00 2001 From: Kris Urbas <605420+krzysu@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:12:25 +0100 Subject: [PATCH 4/6] client: introduce common query params, add wallet.rateLimits (#836) --- .changeset/gold-wombats-tell.md | 5 + .changeset/three-tools-fly.md | 5 + examples/node/scripts/profile/stats.ts | 38 - examples/node/scripts/publication/stats.ts | 19 - examples/node/scripts/wallet/rateLimits.ts | 19 + packages/client/src/LensClient.ts | 20 +- packages/client/src/context.ts | 25 +- .../client/src/graphql/fragments.generated.ts | 2934 ++++++++++++++--- packages/client/src/graphql/fragments.graphql | 65 +- packages/client/src/graphql/index.ts | 11 +- .../client/src/graphql/types.generated.ts | 40 + .../helpers/buildPaginatedQueryResult.spec.ts | 43 +- .../src/helpers/buildRequestFromConfig.ts | 16 - .../src/helpers/commonQueryVariables.ts | 82 + packages/client/src/helpers/index.ts | 2 +- .../src/helpers/requireAuthHeaders.spec.ts | 1 + .../src/helpers/sdkAuthHeaderWrapper.spec.ts | 3 +- packages/client/src/index.ts | 2 +- packages/client/src/queryParams.ts | 95 + .../client/src/submodules/explore/Explore.ts | 6 +- .../explore/graphql/explore.generated.ts | 570 +++- .../explore/graphql/explore.graphql | 31 +- packages/client/src/submodules/feed/Feed.ts | 8 +- .../submodules/feed/graphql/feed.generated.ts | 2532 +++++++++----- .../src/submodules/feed/graphql/feed.graphql | 60 +- .../client/src/submodules/invites/Invites.ts | 4 +- .../invites/graphql/invites.generated.ts | 396 ++- .../invites/graphql/invites.graphql | 11 +- .../client/src/submodules/modules/Modules.ts | 8 +- .../modules/graphql/modules.generated.ts | 15 +- .../modules/graphql/modules.graphql | 2 +- .../client/src/submodules/momoka/Momoka.ts | 13 +- packages/client/src/submodules/nfts/Nfts.ts | 4 +- .../submodules/nfts/graphql/nfts.generated.ts | 217 +- .../src/submodules/nfts/graphql/nfts.graphql | 11 +- .../submodules/notifications/Notifications.ts | 4 +- .../graphql/notifications.generated.ts | 2535 ++++++++++---- .../graphql/notifications.graphql | 20 +- packages/client/src/submodules/poaps/Poaps.ts | 4 +- .../poaps/graphql/poap.generated.ts | 217 +- .../src/submodules/poaps/graphql/poap.graphql | 11 +- .../client/src/submodules/profile/Profile.ts | 20 +- .../profile/graphql/profile.generated.ts | 2017 ++++++----- .../profile/graphql/profile.graphql | 99 +- .../client/src/submodules/profile/types.ts | 3 +- .../src/submodules/publication/Publication.ts | 6 +- .../graphql/publication.generated.ts | 706 ++-- .../publication/graphql/publication.graphql | 40 +- .../submodules/bookmarks/Bookmarks.ts | 4 +- .../bookmarks/graphql/bookmarks.generated.ts | 353 +- .../bookmarks/graphql/bookmarks.graphql | 20 +- .../submodules/reactions/Reactions.ts | 4 +- .../reactions/graphql/reactions.generated.ts | 394 ++- .../reactions/graphql/reactions.graphql | 11 +- .../src/submodules/publication/types.ts | 6 +- .../client/src/submodules/revenue/Revenue.ts | 7 +- .../revenue/graphql/revenue.generated.ts | 1005 ++++-- .../revenue/graphql/revenue.graphql | 42 +- .../client/src/submodules/search/Search.ts | 6 +- .../search/graphql/search.generated.ts | 570 +++- .../submodules/search/graphql/search.graphql | 31 +- .../client/src/submodules/wallet/Wallet.ts | 28 +- .../wallet/graphql/wallet.generated.ts | 647 +++- .../submodules/wallet/graphql/wallet.graphql | 46 +- .../client/src/submodules/wallet/index.ts | 2 + packages/react-web/src/LensProvider.tsx | 2 +- 66 files changed, 11511 insertions(+), 4662 deletions(-) create mode 100644 .changeset/gold-wombats-tell.md create mode 100644 .changeset/three-tools-fly.md delete mode 100644 examples/node/scripts/profile/stats.ts delete mode 100644 examples/node/scripts/publication/stats.ts create mode 100644 examples/node/scripts/wallet/rateLimits.ts delete mode 100644 packages/client/src/helpers/buildRequestFromConfig.ts create mode 100644 packages/client/src/helpers/commonQueryVariables.ts create mode 100644 packages/client/src/queryParams.ts diff --git a/.changeset/gold-wombats-tell.md b/.changeset/gold-wombats-tell.md new file mode 100644 index 0000000000..4056173b34 --- /dev/null +++ b/.changeset/gold-wombats-tell.md @@ -0,0 +1,5 @@ +--- +"@lens-protocol/client": minor +--- + +**feat:** added `client.wallet.rateLimits` method to fetch the sponsored transaction limits diff --git a/.changeset/three-tools-fly.md b/.changeset/three-tools-fly.md new file mode 100644 index 0000000000..9bb9b8650a --- /dev/null +++ b/.changeset/three-tools-fly.md @@ -0,0 +1,5 @@ +--- +"@lens-protocol/client": minor +--- + +**feat:** Introduced common query params, deprecated `LensClientConfig.mediaTransforms` for `LensClientConfig.params` diff --git a/examples/node/scripts/profile/stats.ts b/examples/node/scripts/profile/stats.ts deleted file mode 100644 index f03e49ea1a..0000000000 --- a/examples/node/scripts/profile/stats.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { - LensClient, - OpenActionCategoryType, - OpenActionFilter, - development, -} from '@lens-protocol/client'; - -async function main() { - const client = new LensClient({ - environment: development, - }); - - const modules = await client.modules.supportedOpenActionModules(); - - const result = await client.profile.fetch( - { forProfileId: '0x01' }, - { - profileStatsCountOpenActionArgs: { - anyOf: [ - { - address: modules.items[0].contract.address, - }, - { - category: OpenActionCategoryType.Collect, - }, - ] as OpenActionFilter[], - }, - }, - ); - - console.log(`Result: `, { - id: result?.id, - handle: result?.handle, - stats: result?.stats, - }); -} - -main(); diff --git a/examples/node/scripts/publication/stats.ts b/examples/node/scripts/publication/stats.ts deleted file mode 100644 index 6d2477b9d9..0000000000 --- a/examples/node/scripts/publication/stats.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { LensClient, development, isMirrorPublication } from '@lens-protocol/client'; - -async function main() { - const client = new LensClient({ - environment: development, - }); - - const result = await client.publication.fetch({ - forId: '0x56-0x02', - }); - - if (result && isMirrorPublication(result)) { - throw new Error(`Stats are not available for mirrors`); - } - - console.log(`Stats for the publication: `, result?.stats); -} - -main(); diff --git a/examples/node/scripts/wallet/rateLimits.ts b/examples/node/scripts/wallet/rateLimits.ts new file mode 100644 index 0000000000..1e7a5b24c6 --- /dev/null +++ b/examples/node/scripts/wallet/rateLimits.ts @@ -0,0 +1,19 @@ +import { LensClient, development } from '@lens-protocol/client'; + +import { setupWallet } from '../shared/setupWallet'; + +async function main() { + const client = new LensClient({ + environment: development, + }); + + const wallet = setupWallet(); + + const result = await client.wallet.rateLimits({ + userAddress: wallet.address, + }); + + console.log(`Rate limits for ${wallet.address}: `, result); +} + +main(); diff --git a/packages/client/src/LensClient.ts b/packages/client/src/LensClient.ts index d10409a753..dbe8e23e78 100644 --- a/packages/client/src/LensClient.ts +++ b/packages/client/src/LensClient.ts @@ -1,8 +1,9 @@ import { InMemoryStorageProvider, IStorageProvider } from '@lens-protocol/storage'; import { Authentication, IAuthentication } from './authentication'; -import { LensContext, MediaTransformsConfig } from './context'; +import { LensContext } from './context'; import { Environment } from './environments'; +import { MediaTransformsConfig, QueryParams } from './queryParams'; import { Explore, Feed, @@ -37,12 +38,19 @@ export type LensClientConfig = { */ storage?: IStorageProvider; + /** + * Allows to define extra headers to be sent when making requests to the Lens API. + * You can set the `origin` or `user-agent` headers here. + */ + headers?: Record; + /** * Media returned from the publication and profile queries can be transformed * to sizes needed by the SDK consuming application. * To overwrite default transformation values, provide a `mediaTransforms` object. * * @see {@link MediaTransformsConfig} for more information + * @deprecated Use the `params` option instead. This will be removed in a future release. */ mediaTransforms?: MediaTransformsConfig; @@ -54,10 +62,11 @@ export type LensClientConfig = { origin?: string; /** - * Allows to define extra headers to be sent when making requests to the Lens API. - * You can set the `origin` or `user-agent` headers here. + * The common query params allow you to customize some aspects of the returned data. + * + * @defaultValue see individual fields of {@link QueryParams} */ - headers?: Record; + params?: QueryParams; }; /** @@ -87,9 +96,10 @@ export class LensClient { this.context = { environment: config.environment, storage: config.storage || new InMemoryStorageProvider(), - mediaTransforms: config.mediaTransforms || {}, origin: config.origin, headers: config.headers, + mediaTransforms: config.mediaTransforms ?? {}, + params: config.params ?? {}, }; this._authentication = new Authentication(this.context); } diff --git a/packages/client/src/context.ts b/packages/client/src/context.ts index 31d43cac9d..9aca1e24d9 100644 --- a/packages/client/src/context.ts +++ b/packages/client/src/context.ts @@ -1,27 +1,7 @@ import { IStorageProvider } from '@lens-protocol/storage'; import { Environment } from './environments'; -import { ImageTransform } from './graphql'; - -/** - * The media transforms configuration. - */ -export type MediaTransformsConfig = { - /** - * The transforms for the publication images. - */ - publication?: ImageTransform; - - /** - * The transforms for the profile images. - */ - profilePicture?: ImageTransform; - - /** - * The transforms for the profile cover images. - */ - profileCover?: ImageTransform; -}; +import { MediaTransformsConfig, QueryParams } from './queryParams'; /** * The LensClient context. @@ -31,7 +11,8 @@ export type MediaTransformsConfig = { export type LensContext = { environment: Environment; storage: IStorageProvider; - mediaTransforms: MediaTransformsConfig; origin?: string; headers?: Record; + mediaTransforms: MediaTransformsConfig; + params: QueryParams; }; diff --git a/packages/client/src/graphql/fragments.generated.ts b/packages/client/src/graphql/fragments.generated.ts index 6774c58ed8..f58aedc4b7 100644 --- a/packages/client/src/graphql/fragments.generated.ts +++ b/packages/client/src/graphql/fragments.generated.ts @@ -71,6 +71,8 @@ export type ImageSetFragment = { __typename: 'ImageSet'; raw: ImageFragment; optimized: ImageFragment | null; + small: ImageFragment | null; + medium: ImageFragment | null; transformed: ImageFragment | null; }; @@ -127,6 +129,7 @@ export type ProfilePictureSetFragment = { __typename: 'ImageSet'; raw: ImageFragment; optimized: ImageFragment | null; + thumbnail: ImageFragment | null; transformed: ImageFragment | null; }; @@ -138,6 +141,17 @@ export type NftImageFragment = { image: ProfilePictureSetFragment; }; +export type ProfileMetadataFragment = { + __typename: 'ProfileMetadata'; + appId: string | null; + displayName: string | null; + bio: string | null; + rawURI: string; + picture: ProfilePictureSetFragment | NftImageFragment | null; + coverPicture: ProfileCoverSetFragment | null; + attributes: Array<{ type: Types.MetadataAttributeType; key: string; value: string }> | null; +}; + export type ProfileStatsFragment = { id: string; followers: number; @@ -204,15 +218,7 @@ export type ProfileFragment = { | RevertFollowModuleSettingsFragment | UnknownFollowModuleSettingsFragment | null; - metadata: { - appId: string | null; - displayName: string | null; - bio: string | null; - rawURI: string; - picture: ProfilePictureSetFragment | NftImageFragment | null; - coverPicture: ProfileCoverSetFragment | null; - attributes: Array<{ type: Types.MetadataAttributeType; key: string; value: string }> | null; - } | null; + metadata: ProfileMetadataFragment | null; handle: HandleInfoFragment | null; invitedBy: { id: string } | null; stats: ProfileStatsFragment; @@ -429,7 +435,9 @@ export type PublicationOperationsFragment = { canComment: Types.TriStateValue; canMirror: Types.TriStateValue; canQuote: Types.TriStateValue; + hasQuoted: boolean; hasMirrored: boolean; + canCollect: Types.TriStateValue; hasUpvoted: boolean; hasDownvoted: boolean; hasActed: OptimisticStatusResultFragment; @@ -437,6 +445,7 @@ export type PublicationOperationsFragment = { | OpenActionResult_KnownCollectOpenActionResult_Fragment | OpenActionResult_UnknownOpenActionResult_Fragment >; + hasCollected: OptimisticStatusResultFragment; canDecrypt: CanDecryptResponseFragment; }; @@ -1784,6 +1793,25 @@ export const ProfilePictureSetFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1910,6 +1938,25 @@ export const NftImageFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1995,6 +2042,247 @@ export const ProfileCoverSetFragmentDoc = { }, ], } as unknown as DocumentNode; +export const ProfileMetadataFragmentDoc = { + kind: 'Document', + definitions: [ + { + 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: '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: '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: '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: '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: 'profileCoverTransform' } }, + }, + ], + 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: 'profilePictureTransform' }, + }, + }, + ], + 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: 'profilePictureTransform' }, + }, + }, + ], + 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' } }, + ], + }, + }, + ], +} as unknown as DocumentNode; export const HandleInfoFragmentDoc = { kind: 'Document', definitions: [ @@ -2516,73 +2804,34 @@ export const ProfileFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -2911,6 +3160,25 @@ export const ProfileFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -2965,6 +3233,75 @@ export const ProfileFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfileStats' }, @@ -3458,6 +3795,72 @@ export const PublicationOperationsFragmentDoc = { ], }, }, + { + 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' }, @@ -3503,6 +3906,7 @@ export const PublicationOperationsFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -3669,6 +4073,44 @@ export const ImageSetFragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -3678,7 +4120,7 @@ export const ImageSetFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -3785,6 +4227,44 @@ export const MarketplaceMetadataFragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -3794,7 +4274,7 @@ export const MarketplaceMetadataFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -7127,6 +7607,7 @@ export const AudioMetadataV3FragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -7134,7 +7615,44 @@ export const AudioMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -8303,6 +8821,44 @@ export const VideoMetadataV3FragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -8312,7 +8868,7 @@ export const VideoMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -9482,6 +10038,7 @@ export const ImageMetadataV3FragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -9489,7 +10046,44 @@ export const ImageMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -10644,6 +11238,44 @@ export const ArticleMetadataV3FragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -10653,7 +11285,7 @@ export const ArticleMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -11841,6 +12473,7 @@ export const EventMetadataV3FragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -11848,7 +12481,44 @@ export const EventMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -13017,6 +13687,44 @@ export const LinkMetadataV3FragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -13026,7 +13734,7 @@ export const LinkMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -14183,6 +14891,7 @@ export const EmbedMetadataV3FragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -14190,7 +14899,44 @@ export const EmbedMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -15355,6 +16101,44 @@ export const CheckingInMetadataV3FragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -15364,7 +16148,7 @@ export const CheckingInMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -16477,6 +17261,7 @@ export const TextOnlyMetadataV3FragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -16484,7 +17269,44 @@ export const TextOnlyMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -17411,6 +18233,44 @@ export const ThreeDMetadataV3FragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -17420,7 +18280,7 @@ export const ThreeDMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -18592,6 +19452,7 @@ export const StoryMetadataV3FragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -18599,7 +19460,44 @@ export const StoryMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -19756,6 +20654,44 @@ export const TransactionMetadataV3FragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -19765,7 +20701,7 @@ export const TransactionMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -20922,6 +21858,7 @@ export const MintMetadataV3FragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -20929,7 +21866,44 @@ export const MintMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -22086,6 +23060,44 @@ export const SpaceMetadataV3FragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -22095,7 +23107,7 @@ export const SpaceMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -23257,6 +24269,7 @@ export const LiveStreamMetadataV3FragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -23264,7 +24277,44 @@ export const LiveStreamMetadataV3FragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -26898,6 +27948,44 @@ export const PostFragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -26907,7 +27995,7 @@ export const PostFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -27139,6 +28227,25 @@ export const PostFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -27193,6 +28300,75 @@ export const PostFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfileStats' }, @@ -27688,73 +28864,34 @@ export const PostFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -28545,6 +29682,72 @@ export const PostFragmentDoc = { ], }, }, + { + 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' }, @@ -28590,6 +29793,7 @@ export const PostFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -32189,6 +33393,26 @@ export const CommentBaseFragmentDoc = { }, { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'medium' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -32196,7 +33420,25 @@ export const CommentBaseFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -32428,6 +33670,25 @@ export const CommentBaseFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -32482,6 +33743,75 @@ export const CommentBaseFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfileStats' }, @@ -32977,73 +34307,34 @@ export const CommentBaseFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -33834,6 +35125,72 @@ export const CommentBaseFragmentDoc = { ], }, }, + { + 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' }, @@ -33879,6 +35236,7 @@ export const CommentBaseFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -37328,6 +38686,44 @@ export const QuoteBaseFragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -37337,7 +38733,7 @@ export const QuoteBaseFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -37569,6 +38965,25 @@ export const QuoteBaseFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -37623,6 +39038,75 @@ export const QuoteBaseFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfileStats' }, @@ -38118,73 +39602,34 @@ export const QuoteBaseFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -38975,6 +40420,72 @@ export const QuoteBaseFragmentDoc = { ], }, }, + { + 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' }, @@ -39020,6 +40531,7 @@ export const QuoteBaseFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -42009,6 +43521,26 @@ export const CommentFragmentDoc = { }, { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'medium' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -42016,7 +43548,25 @@ export const CommentFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -42248,6 +43798,25 @@ export const CommentFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -42302,6 +43871,75 @@ export const CommentFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfileStats' }, @@ -42797,73 +44435,34 @@ export const CommentFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -43654,6 +45253,72 @@ export const CommentFragmentDoc = { ], }, }, + { + 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' }, @@ -43699,6 +45364,7 @@ export const CommentFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -48468,6 +50134,44 @@ export const QuoteFragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -48477,7 +50181,7 @@ export const QuoteFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -48709,6 +50413,25 @@ export const QuoteFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -48763,6 +50486,75 @@ export const QuoteFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfileStats' }, @@ -49258,73 +51050,34 @@ export const QuoteFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -50115,6 +51868,72 @@ export const QuoteFragmentDoc = { ], }, }, + { + 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' }, @@ -50160,6 +51979,7 @@ export const QuoteFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -54942,6 +56762,26 @@ export const MirrorFragmentDoc = { }, { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'medium' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -54949,7 +56789,25 @@ export const MirrorFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -55181,6 +57039,25 @@ export const MirrorFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -55235,6 +57112,75 @@ export const MirrorFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfileStats' }, @@ -55730,73 +57676,34 @@ export const MirrorFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -56587,6 +58494,72 @@ export const MirrorFragmentDoc = { ], }, }, + { + 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' }, @@ -56632,6 +58605,7 @@ export const MirrorFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', diff --git a/packages/client/src/graphql/fragments.graphql b/packages/client/src/graphql/fragments.graphql index 5b3a2adb8b..566989d847 100644 --- a/packages/client/src/graphql/fragments.graphql +++ b/packages/client/src/graphql/fragments.graphql @@ -95,7 +95,14 @@ fragment ImageSet on ImageSet { optimized { ...Image } - transformed(request: $publicationImageTransform) { + small: transformed(request: $publicationImageSmallTransform) { + ...Image + } + medium: transformed(request: $publicationImageMediumTransform) { + ...Image + } + # @deprecated + transformed(request: $publicationImageMediumTransform) { ...Image } } @@ -184,6 +191,10 @@ fragment ProfilePictureSet on ImageSet { optimized { ...Image } + thumbnail: transformed(request: $profilePictureTransform) { + ...Image + } + # @deprecated transformed(request: $profilePictureTransform) { ...Image } @@ -201,6 +212,30 @@ fragment NftImage on NftImage { verified } +fragment ProfileMetadata on ProfileMetadata { + __typename + appId + displayName + bio + rawURI + picture { + ... on ImageSet { + ...ProfilePictureSet + } + ... on NftImage { + ...NftImage + } + } + coverPicture { + ...ProfileCoverSet + } + attributes { + type + key + value + } +} + fragment ProfileStats on ProfileStats { id followers @@ -305,27 +340,8 @@ fragment Profile on Profile { ...UnknownFollowModuleSettings } } - metadata { - appId - displayName - bio - rawURI - picture { - ... on ImageSet { - ...ProfilePictureSet - } - ... on NftImage { - ...NftImage - } - } - coverPicture { - ...ProfileCoverSet - } - attributes { - type - key - value - } + metadata(request: { appId: $profileMetadataSource, useFallback: true }) { + ...ProfileMetadata } handle { ...HandleInfo @@ -626,11 +642,16 @@ fragment PublicationOperations on PublicationOperations { actedOn(request: $publicationOperationsActedArgs) { ...OpenActionResult } + canCollect: canAct(request: { filter: { category: COLLECT } }) + hasCollected: hasActed(request: { filter: { category: COLLECT } }) { + ...OptimisticStatusResult + } hasUpvoted: hasReacted(request: { type: UPVOTE }) hasDownvoted: hasReacted(request: { type: DOWNVOTE }) canComment canMirror canQuote + hasQuoted hasMirrored canDecrypt { ...CanDecryptResponse diff --git a/packages/client/src/graphql/index.ts b/packages/client/src/graphql/index.ts index 9dacb892e6..b57b54ff3f 100644 --- a/packages/client/src/graphql/index.ts +++ b/packages/client/src/graphql/index.ts @@ -66,6 +66,7 @@ export type { PostFragment, ProfileCoverSetFragment, ProfileFragment, + ProfileMetadataFragment, ProfileOwnershipConditionFragment, ProfilePictureSetFragment, ProfileStatsFragment, @@ -122,15 +123,14 @@ export type { FollowRevenueRequest, FollowStatusBulkRequest, GenerateModuleCurrencyApprovalDataRequest, - LastLoggedInProfileRequest, - LinkHandleToProfileRequest, - UnlinkHandleFromProfileRequest, HandleToAddressRequest, HideCommentRequest, HidePublicationRequest, InviteRequest, + LastLoggedInProfileRequest, LegacyCollectRequest, LensTransactionStatusRequest, + LinkHandleToProfileRequest, ModuleMetadataRequest, MomokaCommentRequest, MomokaMirrorRequest, @@ -190,6 +190,8 @@ export type { UnblockRequest, UnfollowRequest, UnhideCommentRequest, + UnlinkHandleFromProfileRequest, + UserCurrentRateLimitRequest, UserPoapsQueryRequest, ValidatePublicationMetadataRequest, WalletAuthenticationToProfileAuthenticationRequest, @@ -289,6 +291,7 @@ export { ExplorePublicationType, FeedEventItemType, FollowModuleType, + HiddenCommentsType, LensProfileManagerRelayErrorReasonType, LensTransactionFailureType, LensTransactionStatusType, @@ -308,6 +311,7 @@ export { ProfileReportingFraudSubreason, ProfileReportingReason, ProfileReportingSpamSubreason, + ProfilesOrderBy, PublicationContentWarningType, PublicationMetadataLicenseType, PublicationMetadataMainFocusType, @@ -324,6 +328,7 @@ export { RelayErrorReasonType, RelayRoleKey, SearchPublicationType, + SupportedFiatType, TagSortCriteriaType, TriStateValue, } from './types.generated'; diff --git a/packages/client/src/graphql/types.generated.ts b/packages/client/src/graphql/types.generated.ts index 9a1618ad13..e4650c7ff8 100644 --- a/packages/client/src/graphql/types.generated.ts +++ b/packages/client/src/graphql/types.generated.ts @@ -417,12 +417,16 @@ export type FollowersRequest = { cursor?: InputMaybe; limit?: InputMaybe; of: Scalars['ProfileId']['input']; + /** The order by which to sort the profiles - note if your looking at your own followers it always be DESC */ + orderBy?: InputMaybe; }; export type FollowingRequest = { cursor?: InputMaybe; for: Scalars['ProfileId']['input']; limit?: InputMaybe; + /** The order by which to sort the profiles - note if your looking at your own following it always be DESC */ + orderBy?: InputMaybe; }; export type FraudReasonInput = { @@ -507,6 +511,19 @@ export type InternalAllowedDomainsRequest = { secret: Scalars['String']['input']; }; +export type InternalBoostProfileRequest = { + h?: InputMaybe; + p?: InputMaybe; + s: Scalars['Int']['input']; + secret: Scalars['String']['input']; +}; + +export type InternalBoostScoreRequest = { + h?: InputMaybe; + p?: InputMaybe; + secret: Scalars['String']['input']; +}; + export type InternalClaimRequest = { address: Scalars['EvmAddress']['input']; freeTextHandle?: InputMaybe; @@ -744,6 +761,8 @@ export type MutualFollowersRequest = { cursor?: InputMaybe; limit?: InputMaybe; observer: Scalars['ProfileId']['input']; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; viewing: Scalars['ProfileId']['input']; }; @@ -881,6 +900,8 @@ export type NftsRequestWhere = { export type NotificationRequest = { cursor?: InputMaybe; + /** The order by which to sort the profiles on follows, reactions, actions and mirrors */ + orderBy?: InputMaybe; where?: InputMaybe; }; @@ -899,6 +920,7 @@ export type NotificationWhere = { highSignalFilter?: InputMaybe; notificationTypes?: InputMaybe>; publishedOn?: InputMaybe>; + timeBasedAggregation?: InputMaybe; }; export type OnchainCommentRequest = { @@ -1178,6 +1200,8 @@ export type ProfileRequest = { export type ProfileSearchRequest = { cursor?: InputMaybe; limit?: InputMaybe; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; /** Query for the profile search */ query: Scalars['String']['input']; /** Filtering criteria for profile search */ @@ -1216,9 +1240,16 @@ export type ProfilesManagedRequest = { limit?: InputMaybe; }; +export enum ProfilesOrderBy { + Default = 'DEFAULT', + ProfileClassifier = 'PROFILE_CLASSIFIER', +} + export type ProfilesRequest = { cursor?: InputMaybe; limit?: InputMaybe; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; /** The where clause to use to filter on what you are looking for */ where: ProfilesRequestWhere; }; @@ -1703,6 +1734,11 @@ export type UnlinkHandleFromProfileRequest = { handle: Scalars['Handle']['input']; }; +export type UserCurrentRateLimitRequest = { + profileId?: InputMaybe; + userAddress: Scalars['EvmAddress']['input']; +}; + export type UserPoapsQueryRequest = { cursor?: InputMaybe; for: Scalars['ProfileId']['input']; @@ -1728,6 +1764,8 @@ export type WhoActedOnPublicationRequest = { cursor?: InputMaybe; limit?: InputMaybe; on: Scalars['PublicationId']['input']; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; where?: InputMaybe; }; @@ -1744,6 +1782,8 @@ export type WhoReactedPublicationRequest = { cursor?: InputMaybe; for: Scalars['PublicationId']['input']; limit?: InputMaybe; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; where?: InputMaybe; }; diff --git a/packages/client/src/helpers/buildPaginatedQueryResult.spec.ts b/packages/client/src/helpers/buildPaginatedQueryResult.spec.ts index 8e57bc53fb..b5d235da08 100644 --- a/packages/client/src/helpers/buildPaginatedQueryResult.spec.ts +++ b/packages/client/src/helpers/buildPaginatedQueryResult.spec.ts @@ -1,38 +1,24 @@ import { GraphQLClient } from 'graphql-request'; import { buildTestEnvironment } from '../__helpers__'; -import { getSdk } from '../submodules/profile/graphql/profile.generated'; +import { LimitType } from '../graphql/types.generated'; +import { getSdk } from '../submodules/momoka/graphql/momoka.generated'; import { buildPaginatedQueryResult } from './buildPaginatedQueryResult'; -describe.skip('Given a paginated query function and the paginated query result helper', () => { +describe('Given a paginated query function and the paginated query result helper', () => { const environment = buildTestEnvironment(); const sdk = getSdk(new GraphQLClient(environment.gqlEndpoint)); - it('should be able to paginate forward', async () => { - const result = await buildPaginatedQueryResult( - async (currRequest) => { - const res = await sdk.Profiles({ - request: currRequest, - }); - - return res.data.result; - }, - { where: { ownedBy: ['0xa5653e88D9c352387deDdC79bcf99f0ada62e9c6'], limit: 2 } }, - ); - - await expect(result.next()).resolves.not.toThrow(); - }); - it('should be able to paginate forward and then back', async () => { const result = await buildPaginatedQueryResult( async (currRequest) => { - const res = await sdk.Profiles({ + const res = await sdk.momokaTransactions({ request: currRequest, }); return res.data.result; }, - { where: { ownedBy: ['0xa5653e88D9c352387deDdC79bcf99f0ada62e9c6'], limit: 2 } }, + { limit: LimitType.Ten }, ); const firstPageResults = [...result.items]; @@ -43,22 +29,7 @@ describe.skip('Given a paginated query function and the paginated query result h await expect(result.prev()).resolves.not.toThrow(); - expect(result.items).toEqual(firstPageResults); - }); - - it('should be able to paginate forward and then back even if there are no results', async () => { - const result = await buildPaginatedQueryResult( - async (currRequest) => { - const res = await sdk.Profiles({ - request: currRequest, - }); - - return res.data.result; - }, - { where: { ownedBy: ['0xa5653e88D9c352387deDdC79bcf99f0ada62e9c6'], limit: 50 } }, - ); - - await expect(result.next()).resolves.not.toThrow(); - await expect(result.prev()).resolves.not.toThrow(); + // TODO: enable when the prev items order is fixed on the API side + // expect(result.items).toEqual(firstPageResults); }); }); diff --git a/packages/client/src/helpers/buildRequestFromConfig.ts b/packages/client/src/helpers/buildRequestFromConfig.ts deleted file mode 100644 index 40056c6d81..0000000000 --- a/packages/client/src/helpers/buildRequestFromConfig.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { LensContext } from '../context'; -import { ImageTransform } from '../graphql'; - -type RequestFromConfig = { - publicationImageTransform?: ImageTransform; - profileCoverTransform?: ImageTransform; - profilePictureTransform?: ImageTransform; -}; - -export function buildRequestFromConfig(config: LensContext): RequestFromConfig { - return { - publicationImageTransform: config.mediaTransforms?.publication, - profileCoverTransform: config.mediaTransforms?.profileCover, - profilePictureTransform: config.mediaTransforms?.profilePicture, - }; -} diff --git a/packages/client/src/helpers/commonQueryVariables.ts b/packages/client/src/helpers/commonQueryVariables.ts new file mode 100644 index 0000000000..8fc315df6f --- /dev/null +++ b/packages/client/src/helpers/commonQueryVariables.ts @@ -0,0 +1,82 @@ +import { LensContext } from '../context'; +import { ImageSizeTransform, ImageTransform } from '../graphql'; +import { + ProfileStatsArg, + ProfileStatsCountOpenActionArgs, + PublicationOperationsActedArgs, + PublicationStatsCountOpenActionArgs, + PublicationStatsInput, + RateRequest, + SupportedFiatType, +} from '../graphql/types.generated'; +import { AppId } from '../queryParams'; + +type CommonQueryVariables = { + publicationImageSmallTransform: ImageTransform; + publicationImageMediumTransform: ImageTransform; + publicationOperationsActedArgs: PublicationOperationsActedArgs; + publicationStatsInput: PublicationStatsInput; + publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs; + profileCoverTransform: ImageTransform; + profilePictureTransform: ImageTransform; + profileStatsArg: ProfileStatsArg; + profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs; + profileMetadataSource?: AppId; + rateRequest: RateRequest; +}; + +export function commonQueryVariables({ + params, + mediaTransforms, +}: LensContext): CommonQueryVariables { + return { + publicationImageSmallTransform: pickImageTransform( + mediaTransforms.publication, + params.image?.small, + buildImageTransform('400px'), + ), + publicationImageMediumTransform: pickImageTransform( + mediaTransforms.publication, + params.image?.medium, + buildImageTransform('700px'), + ), + publicationOperationsActedArgs: {}, + publicationStatsInput: { metadata: { publishedOn: params.statsFor } }, + publicationStatsCountOpenActionArgs: {}, + profileCoverTransform: pickImageTransform( + mediaTransforms.profileCover, + params.profile?.cover, + buildImageTransform('1100px'), + ), + profilePictureTransform: pickImageTransform( + mediaTransforms.profilePicture, + params.profile?.thumbnail, + buildImageTransform('256px'), + ), + profileStatsArg: { forApps: params.statsFor }, + profileStatsCountOpenActionArgs: {}, + profileMetadataSource: params.profile?.metadataSource, + rateRequest: { + for: params.fxRateFor || SupportedFiatType.Usd, + }, + }; +} + +function pickImageTransform( + option1: ImageTransform | undefined, + option2: ImageTransform | undefined, + defaultOption: ImageTransform, +): ImageTransform { + return option1 ?? option2 ?? defaultOption; +} + +function buildImageTransform( + width: ImageSizeTransform, + height: ImageSizeTransform = 'auto', +): ImageTransform { + return { + width, + height, + keepAspectRatio: true, + }; +} diff --git a/packages/client/src/helpers/index.ts b/packages/client/src/helpers/index.ts index 6ff9fc87db..cb0e42c708 100644 --- a/packages/client/src/helpers/index.ts +++ b/packages/client/src/helpers/index.ts @@ -1,6 +1,6 @@ export * from './buildAuthorizationHeader'; export * from './buildPaginatedQueryResult'; -export * from './buildRequestFromConfig'; +export * from './commonQueryVariables'; export * from './poll'; export * from './requireAuthHeaders'; export * from './sdkAuthHeaderWrapper'; diff --git a/packages/client/src/helpers/requireAuthHeaders.spec.ts b/packages/client/src/helpers/requireAuthHeaders.spec.ts index e6d6aefbe4..35ddcbdfde 100644 --- a/packages/client/src/helpers/requireAuthHeaders.spec.ts +++ b/packages/client/src/helpers/requireAuthHeaders.spec.ts @@ -10,6 +10,7 @@ const context: LensContext = { environment: buildTestEnvironment(), storage: new InMemoryStorageProvider(), mediaTransforms: {}, + params: {}, }; describe(`Given the "${requireAuthHeaders.name}" helper`, () => { diff --git a/packages/client/src/helpers/sdkAuthHeaderWrapper.spec.ts b/packages/client/src/helpers/sdkAuthHeaderWrapper.spec.ts index be65fc3091..7343e2144d 100644 --- a/packages/client/src/helpers/sdkAuthHeaderWrapper.spec.ts +++ b/packages/client/src/helpers/sdkAuthHeaderWrapper.spec.ts @@ -7,8 +7,9 @@ import { sdkAuthHeaderWrapper } from './sdkAuthHeaderWrapper'; const context: LensContext = { environment: buildTestEnvironment(), - mediaTransforms: {}, storage: new InMemoryStorageProvider(), + mediaTransforms: {}, + params: {}, }; describe(`Given the "${sdkAuthHeaderWrapper.name}" helper`, () => { diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index c303cf280e..7994150ce6 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -55,5 +55,5 @@ export type { } from '@lens-protocol/shared-kernel'; export type { IStorageProvider, InMemoryStorageProvider } from '@lens-protocol/storage'; export type { TypedData, TypedDataResponse } from './types'; -export type { MediaTransformsConfig } from './context'; +export type { MediaTransformsConfig, AppId, QueryParams } from './queryParams'; export type { PaginatedResult, PaginatedQueryData } from './helpers/buildPaginatedQueryResult'; diff --git a/packages/client/src/queryParams.ts b/packages/client/src/queryParams.ts new file mode 100644 index 0000000000..17e63f3338 --- /dev/null +++ b/packages/client/src/queryParams.ts @@ -0,0 +1,95 @@ +import { ImageTransform, SupportedFiatType } from './graphql/types.generated'; + +export type AppId = string; + +/** + * The common query parameters used across any query. + */ +export type QueryParams = { + /** + * The size of the publication image. + * + * @defaultValue see individual fields + */ + image?: { + /** + * The size of the small publication image + * + * @defaultValue width: 400px, height: auto, keepAspectRatio: true + */ + small?: ImageTransform; + /** + * The size of the medium publication image + * + * @defaultValue width: 700px, height: auto, keepAspectRatio: true + */ + medium?: ImageTransform; + }; + /** + * Profile related fields parameters + * + * @defaultValue see individual fields + */ + profile?: { + /** + * The size of optimized profile image + * + * @defaultValue width: 256px, height: auto, keepAspectRatio: true + */ + thumbnail?: ImageTransform; + /** + * The size of the cover image + * + * @defaultValue width: 1100px, height: auto, keepAspectRatio: true + */ + cover?: ImageTransform; + /** + * The source to use for fetching profile metadata details. + * + * If not provided, it will default to the global profile metadata for any profile fetched. + * + * If provided and a profile does not have bespoke profile metadata it will fallback to their global profile metadata. + * + * To know more about app specific profile metadata, see example with `appId` in {@link https://lens-protocol.github.io/metadata/functions/profile.html}. + * + * @defaultValue empty, global profile metadata + */ + metadataSource?: AppId; + }; + /** + * The fiat currency to use for the fx rate + * + * @defaultValue USD + */ + fxRateFor?: SupportedFiatType; + /** + * The App Ids for which to fetch Publication and Profile Stats for. + * + * Affects mainly comments, mirrors, and quotes counts. + * + * @defaultValue empty, all apps + */ + statsFor?: AppId[]; +}; + +/** + * The media transforms configuration. + * + * @deprecated Will be removed in a future release. + */ +export type MediaTransformsConfig = { + /** + * The transforms for the publication images. + */ + publication?: ImageTransform; + + /** + * The transforms for the profile images. + */ + profilePicture?: ImageTransform; + + /** + * The transforms for the profile cover images. + */ + profileCover?: ImageTransform; +}; diff --git a/packages/client/src/submodules/explore/Explore.ts b/packages/client/src/submodules/explore/Explore.ts index 733485786d..6dbf5b6a0f 100644 --- a/packages/client/src/submodules/explore/Explore.ts +++ b/packages/client/src/submodules/explore/Explore.ts @@ -11,7 +11,7 @@ import type { ExplorePublicationRequest, } from '../../graphql/types.generated'; import { - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, PaginatedResult, sdkAuthHeaderWrapper, @@ -58,7 +58,7 @@ export class Explore { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.ExplorePublications({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -84,7 +84,7 @@ export class Explore { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.ExploreProfiles({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; diff --git a/packages/client/src/submodules/explore/graphql/explore.generated.ts b/packages/client/src/submodules/explore/graphql/explore.generated.ts index 20eb5823be..650db008e7 100644 --- a/packages/client/src/submodules/explore/graphql/explore.generated.ts +++ b/packages/client/src/submodules/explore/graphql/explore.generated.ts @@ -23,15 +23,17 @@ import { print } from 'graphql'; import { DocumentNode } from 'graphql'; export type ExplorePublicationsQueryVariables = Types.Exact<{ request: Types.ExplorePublicationRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type ExplorePublicationsQuery = { @@ -40,11 +42,12 @@ export type ExplorePublicationsQuery = { export type ExploreProfilesQueryVariables = Types.Exact<{ request: Types.ExploreProfilesRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type ExploreProfilesQuery = { @@ -71,10 +74,23 @@ export const ExplorePublicationsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -86,7 +102,6 @@ export const ExplorePublicationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -95,7 +110,6 @@ export const ExplorePublicationsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -110,25 +124,27 @@ export const ExplorePublicationsDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -140,21 +156,19 @@ export const ExplorePublicationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -1025,73 +1039,34 @@ export const ExplorePublicationsDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1339,6 +1314,75 @@ export const ExplorePublicationsDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1363,6 +1407,25 @@ export const ExplorePublicationsDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1822,6 +1885,72 @@ export const ExplorePublicationsDocument = { ], }, }, + { + 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' }, @@ -1867,6 +1996,7 @@ export const ExplorePublicationsDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -2184,6 +2314,44 @@ export const ExplorePublicationsDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -2193,7 +2361,7 @@ export const ExplorePublicationsDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -6715,20 +6883,23 @@ export const ExploreProfilesDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -6740,21 +6911,19 @@ export const ExploreProfilesDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -7017,73 +7186,34 @@ export const ExploreProfilesDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -7331,6 +7461,75 @@ export const ExploreProfilesDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -7355,6 +7554,25 @@ export const ExploreProfilesDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, diff --git a/packages/client/src/submodules/explore/graphql/explore.graphql b/packages/client/src/submodules/explore/graphql/explore.graphql index 72241f0061..24c640cacb 100644 --- a/packages/client/src/submodules/explore/graphql/explore.graphql +++ b/packages/client/src/submodules/explore/graphql/explore.graphql @@ -1,14 +1,16 @@ query ExplorePublications( $request: ExplorePublicationRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: explorePublications(request: $request) { items { @@ -27,11 +29,12 @@ query ExplorePublications( query ExploreProfiles( $request: ExploreProfilesRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: exploreProfiles(request: $request) { items { diff --git a/packages/client/src/submodules/feed/Feed.ts b/packages/client/src/submodules/feed/Feed.ts index 3e4bdbee72..ddb3e56c05 100644 --- a/packages/client/src/submodules/feed/Feed.ts +++ b/packages/client/src/submodules/feed/Feed.ts @@ -7,7 +7,7 @@ import { FetchGraphQLClient } from '../../graphql/FetchGraphQLClient'; import type { PostFragment, QuoteFragment } from '../../graphql/fragments.generated'; import type { FeedHighlightsRequest, FeedRequest } from '../../graphql/types.generated'; import { - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, PaginatedResult, requireAuthHeaders, @@ -68,7 +68,7 @@ export class Feed { const result = await this.sdk.Feed( { request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }, headers, ); @@ -106,7 +106,7 @@ export class Feed { const result = await this.sdk.FeedHighlights( { request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }, headers, ); @@ -136,7 +136,7 @@ export class Feed { return buildPaginatedQueryResult(async () => { const result = await this.sdk.LatestPaidActions( { - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }, headers, ); diff --git a/packages/client/src/submodules/feed/graphql/feed.generated.ts b/packages/client/src/submodules/feed/graphql/feed.generated.ts index c148d15321..f47d82dbdf 100644 --- a/packages/client/src/submodules/feed/graphql/feed.generated.ts +++ b/packages/client/src/submodules/feed/graphql/feed.generated.ts @@ -31,15 +31,17 @@ export type FeedItemFragment = { export type FeedQueryVariables = Types.Exact<{ request: Types.FeedRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type FeedQuery = { @@ -48,15 +50,17 @@ export type FeedQuery = { export type FeedHighlightsQueryVariables = Types.Exact<{ request: Types.FeedHighlightsRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type FeedHighlightsQuery = { @@ -78,15 +82,17 @@ export type OpenActionPaidActionFragment = { }; export type LatestPaidActionsQueryVariables = Types.Exact<{ - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type LatestPaidActionsQuery = { @@ -332,73 +338,34 @@ export const ReactionEventFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -646,6 +613,75 @@ export const ReactionEventFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -670,6 +706,25 @@ export const ReactionEventFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1375,73 +1430,34 @@ export const FeedItemFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1689,6 +1705,75 @@ export const FeedItemFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1713,6 +1798,25 @@ export const FeedItemFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -2758,6 +2862,72 @@ export const FeedItemFragmentDoc = { ], }, }, + { + 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' }, @@ -2803,6 +2973,7 @@ export const FeedItemFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -3122,6 +3293,7 @@ export const FeedItemFragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -3129,7 +3301,44 @@ export const FeedItemFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -8015,73 +8224,34 @@ export const LatestActedFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -8331,100 +8501,188 @@ export const LatestActedFragmentDoc = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfilePictureSet' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + 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: 'raw' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'optimized' }, + name: { kind: 'Name', value: 'picture' }, 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: 'profilePictureTransform' }, + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ProfilePictureSet' }, + }, + ], + }, }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + { + 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: '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: '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' }, + name: { kind: 'Name', value: 'coverPicture' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileCoverSet' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'tokenId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'image' }, + name: { kind: 'Name', value: 'attributes' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfilePictureSet' } }, + { 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: 'verified' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfileCoverSet' }, + 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: 'profilePictureTransform' }, + }, + }, + ], + 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + ], + }, + }, + { + 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: '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: 'ProfileCoverSet' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, selectionSet: { kind: 'SelectionSet', @@ -9013,73 +9271,34 @@ export const FollowPaidActionFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -9329,100 +9548,188 @@ export const FollowPaidActionFragmentDoc = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfilePictureSet' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + 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: 'raw' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'optimized' }, + name: { kind: 'Name', value: 'picture' }, 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: 'profilePictureTransform' }, + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ProfilePictureSet' }, + }, + ], + }, }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + { + 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: '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: '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' }, + name: { kind: 'Name', value: 'coverPicture' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileCoverSet' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'tokenId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'image' }, + name: { kind: 'Name', value: 'attributes' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfilePictureSet' } }, + { 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: 'verified' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfileCoverSet' }, + 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: 'profilePictureTransform' }, + }, + }, + ], + 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + ], + }, + }, + { + 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: '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: 'ProfileCoverSet' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, selectionSet: { kind: 'SelectionSet', @@ -10040,73 +10347,34 @@ export const OpenActionPaidActionFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -10356,100 +10624,188 @@ export const OpenActionPaidActionFragmentDoc = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfilePictureSet' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + 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: 'raw' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'optimized' }, + name: { kind: 'Name', value: 'picture' }, 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: 'profilePictureTransform' }, + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ProfilePictureSet' }, + }, + ], + }, }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + { + 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: '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: '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' }, + name: { kind: 'Name', value: 'coverPicture' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileCoverSet' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'tokenId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'image' }, + name: { kind: 'Name', value: 'attributes' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfilePictureSet' } }, + { 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: 'verified' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfileCoverSet' }, + 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: 'profilePictureTransform' }, + }, + }, + ], + 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + ], + }, + }, + { + 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: '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: 'ProfileCoverSet' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, selectionSet: { kind: 'SelectionSet', @@ -11423,6 +11779,72 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + 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' }, @@ -11468,6 +11890,7 @@ export const OpenActionPaidActionFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -11787,6 +12210,7 @@ export const OpenActionPaidActionFragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -11794,7 +12218,44 @@ export const OpenActionPaidActionFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -16388,10 +16849,23 @@ export const FeedDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -16403,7 +16877,6 @@ export const FeedDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -16412,7 +16885,6 @@ export const FeedDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -16427,25 +16899,27 @@ export const FeedDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -16457,21 +16931,19 @@ export const FeedDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -16828,73 +17300,34 @@ export const FeedDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -17142,6 +17575,75 @@ export const FeedDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -17166,6 +17668,25 @@ export const FeedDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -18211,6 +18732,72 @@ export const FeedDocument = { ], }, }, + { + 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' }, @@ -18256,6 +18843,7 @@ export const FeedDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -18573,6 +19161,44 @@ export const FeedDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -18582,7 +19208,7 @@ export const FeedDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -23264,10 +23890,23 @@ export const FeedHighlightsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -23279,7 +23918,6 @@ export const FeedHighlightsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -23288,7 +23926,6 @@ export const FeedHighlightsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -23303,25 +23940,27 @@ export const FeedHighlightsDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -23333,21 +23972,19 @@ export const FeedHighlightsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -23632,73 +24269,34 @@ export const FeedHighlightsDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -23946,6 +24544,75 @@ export const FeedHighlightsDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -23970,6 +24637,25 @@ export const FeedHighlightsDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -25015,6 +25701,72 @@ export const FeedHighlightsDocument = { ], }, }, + { + 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' }, @@ -25060,6 +25812,7 @@ export const FeedHighlightsDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -25379,6 +26132,7 @@ export const FeedHighlightsDocument = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -25386,7 +26140,44 @@ export const FeedHighlightsDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -29901,10 +30692,23 @@ export const LatestPaidActionsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -29916,7 +30720,6 @@ export const LatestPaidActionsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -29925,7 +30728,6 @@ export const LatestPaidActionsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -29940,25 +30742,27 @@ export const LatestPaidActionsDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -29970,21 +30774,19 @@ export const LatestPaidActionsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -30378,73 +31180,34 @@ export const LatestPaidActionsDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -30692,6 +31455,75 @@ export const LatestPaidActionsDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -30716,6 +31548,25 @@ export const LatestPaidActionsDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -31761,6 +32612,72 @@ export const LatestPaidActionsDocument = { ], }, }, + { + 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' }, @@ -31806,6 +32723,7 @@ export const LatestPaidActionsDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -32123,6 +33041,44 @@ export const LatestPaidActionsDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -32132,7 +33088,7 @@ export const LatestPaidActionsDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -36765,7 +37721,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ); }, LatestPaidActions( - variables?: LatestPaidActionsQueryVariables, + variables: LatestPaidActionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, ): Promise<{ data: LatestPaidActionsQuery; diff --git a/packages/client/src/submodules/feed/graphql/feed.graphql b/packages/client/src/submodules/feed/graphql/feed.graphql index eb5831a83e..eb9adbaa5f 100644 --- a/packages/client/src/submodules/feed/graphql/feed.graphql +++ b/packages/client/src/submodules/feed/graphql/feed.graphql @@ -32,15 +32,17 @@ fragment FeedItem on FeedItem { query Feed( $request: FeedRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: feed(request: $request) { items { @@ -54,15 +56,17 @@ query Feed( query FeedHighlights( $request: FeedHighlightsRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: feedHighlights(request: $request) { items { @@ -116,15 +120,17 @@ fragment OpenActionPaidAction on OpenActionPaidAction { } query LatestPaidActions( - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: latestPaidActions { items { diff --git a/packages/client/src/submodules/invites/Invites.ts b/packages/client/src/submodules/invites/Invites.ts index db8ab00160..39bd7b1d34 100644 --- a/packages/client/src/submodules/invites/Invites.ts +++ b/packages/client/src/submodules/invites/Invites.ts @@ -5,7 +5,7 @@ import { LensContext } from '../../context'; import { CredentialsExpiredError, NotAuthenticatedError } from '../../errors'; import { FetchGraphQLClient } from '../../graphql/FetchGraphQLClient'; import { AlreadyInvitedCheckRequest, InviteRequest } from '../../graphql/types.generated'; -import { buildRequestFromConfig, requireAuthHeaders, sdkAuthHeaderWrapper } from '../../helpers'; +import { commonQueryVariables, requireAuthHeaders, sdkAuthHeaderWrapper } from '../../helpers'; import { InvitedResultFragment, Sdk, getSdk } from './graphql/invites.generated'; /** @@ -44,7 +44,7 @@ export class Invites { CredentialsExpiredError | NotAuthenticatedError > { return requireAuthHeaders(this.authentication, async (headers) => { - const result = await this.sdk.InvitedProfiles(buildRequestFromConfig(this.context), headers); + const result = await this.sdk.InvitedProfiles(commonQueryVariables(this.context), headers); return result.data.result; }); diff --git a/packages/client/src/submodules/invites/graphql/invites.generated.ts b/packages/client/src/submodules/invites/graphql/invites.generated.ts index ec685ef005..668422dc8e 100644 --- a/packages/client/src/submodules/invites/graphql/invites.generated.ts +++ b/packages/client/src/submodules/invites/graphql/invites.generated.ts @@ -22,11 +22,12 @@ export type InvitedResultFragment = { }; export type InvitedProfilesQueryVariables = Types.Exact<{ - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type InvitedProfilesQuery = { result: Array }; @@ -279,73 +280,34 @@ export const InvitedResultFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -593,6 +555,75 @@ export const InvitedResultFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -617,6 +648,25 @@ export const InvitedResultFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1023,20 +1073,23 @@ export const InvitedProfilesDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1048,21 +1101,19 @@ export const InvitedProfilesDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -1316,73 +1367,34 @@ export const InvitedProfilesDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1630,6 +1642,75 @@ export const InvitedProfilesDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1654,6 +1735,25 @@ export const InvitedProfilesDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -2139,7 +2239,7 @@ const InviteDocumentString = print(InviteDocument); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { InvitedProfiles( - variables?: InvitedProfilesQueryVariables, + variables: InvitedProfilesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, ): Promise<{ data: InvitedProfilesQuery; diff --git a/packages/client/src/submodules/invites/graphql/invites.graphql b/packages/client/src/submodules/invites/graphql/invites.graphql index 31d58081bb..01446ab00f 100644 --- a/packages/client/src/submodules/invites/graphql/invites.graphql +++ b/packages/client/src/submodules/invites/graphql/invites.graphql @@ -7,11 +7,12 @@ fragment InvitedResult on InvitedResult { } query InvitedProfiles( - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: invitedProfiles { ...InvitedResult diff --git a/packages/client/src/submodules/modules/Modules.ts b/packages/client/src/submodules/modules/Modules.ts index 3859d3a691..21f22e5cf6 100644 --- a/packages/client/src/submodules/modules/Modules.ts +++ b/packages/client/src/submodules/modules/Modules.ts @@ -15,6 +15,7 @@ import { import { PaginatedResult, buildPaginatedQueryResult, + commonQueryVariables, requireAuthHeaders, sdkAuthHeaderWrapper, } from '../../helpers'; @@ -38,7 +39,7 @@ export class Modules { * @internal */ constructor( - context: LensContext, + private readonly context: LensContext, private readonly authentication: Authentication, ) { const client = new FetchGraphQLClient(context); @@ -92,7 +93,10 @@ export class Modules { CredentialsExpiredError | NotAuthenticatedError > { return requireAuthHeaders(this.authentication, async (headers) => { - const result = await this.sdk.ApprovedModuleAllowanceAmount({ request }, headers); + const result = await this.sdk.ApprovedModuleAllowanceAmount( + { request, ...commonQueryVariables(this.context) }, + headers, + ); return result.data.result; }); diff --git a/packages/client/src/submodules/modules/graphql/modules.generated.ts b/packages/client/src/submodules/modules/graphql/modules.generated.ts index 4cffaf2b40..4d6e142d9c 100644 --- a/packages/client/src/submodules/modules/graphql/modules.generated.ts +++ b/packages/client/src/submodules/modules/graphql/modules.generated.ts @@ -59,7 +59,7 @@ export type CurrenciesQuery = { export type ApprovedModuleAllowanceAmountQueryVariables = Types.Exact<{ request: Types.ApprovedModuleAllowanceAmountRequest; - rateRequest?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type ApprovedModuleAllowanceAmountQuery = { @@ -622,16 +622,9 @@ export const ApprovedModuleAllowanceAmountDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], diff --git a/packages/client/src/submodules/modules/graphql/modules.graphql b/packages/client/src/submodules/modules/graphql/modules.graphql index b828343bdc..5062495090 100644 --- a/packages/client/src/submodules/modules/graphql/modules.graphql +++ b/packages/client/src/submodules/modules/graphql/modules.graphql @@ -55,7 +55,7 @@ query Currencies($request: PaginatedOffsetRequest!) { query ApprovedModuleAllowanceAmount( $request: ApprovedModuleAllowanceAmountRequest! - $rateRequest: RateRequest = { for: USD } + $rateRequest: RateRequest! ) { result: approvedModuleAllowanceAmount(request: $request) { ... on ApprovedAllowanceAmountResult { diff --git a/packages/client/src/submodules/momoka/Momoka.ts b/packages/client/src/submodules/momoka/Momoka.ts index 79edc72c72..71dbdf81ae 100644 --- a/packages/client/src/submodules/momoka/Momoka.ts +++ b/packages/client/src/submodules/momoka/Momoka.ts @@ -2,12 +2,7 @@ import type { Authentication } from '../../authentication'; import { LensContext } from '../../context'; import { FetchGraphQLClient } from '../../graphql/FetchGraphQLClient'; import { MomokaTransactionRequest, MomokaTransactionsRequest } from '../../graphql/types.generated'; -import { - PaginatedResult, - buildRequestFromConfig, - buildPaginatedQueryResult, - sdkAuthHeaderWrapper, -} from '../../helpers'; +import { PaginatedResult, buildPaginatedQueryResult, sdkAuthHeaderWrapper } from '../../helpers'; import { MomokaCommentTransactionFragment, MomokaMirrorTransactionFragment, @@ -33,10 +28,7 @@ export class Momoka { /** * @internal */ - constructor( - private readonly context: LensContext, - authentication: Authentication, - ) { + constructor(context: LensContext, authentication: Authentication) { const client = new FetchGraphQLClient(context); this.sdk = getSdk(client, sdkAuthHeaderWrapper(authentication)); } @@ -107,7 +99,6 @@ export class Momoka { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.momokaTransactions({ request: currRequest, - ...buildRequestFromConfig(this.context), }); return result.data.result; }, request); diff --git a/packages/client/src/submodules/nfts/Nfts.ts b/packages/client/src/submodules/nfts/Nfts.ts index cc607a81a9..af03ae2a18 100644 --- a/packages/client/src/submodules/nfts/Nfts.ts +++ b/packages/client/src/submodules/nfts/Nfts.ts @@ -22,6 +22,7 @@ import type { import { PaginatedResult, buildPaginatedQueryResult, + commonQueryVariables, requireAuthHeaders, sdkAuthHeaderWrapper, } from '../../helpers'; @@ -48,7 +49,7 @@ export class Nfts { * @internal */ constructor( - context: LensContext, + private readonly context: LensContext, private readonly authentication: Authentication, ) { const client = new FetchGraphQLClient(context); @@ -217,6 +218,7 @@ export class Nfts { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.NftCollectionOwners({ request: currRequest, + ...commonQueryVariables(this.context), }); return result.data.result; diff --git a/packages/client/src/submodules/nfts/graphql/nfts.generated.ts b/packages/client/src/submodules/nfts/graphql/nfts.generated.ts index 22abab49d2..2c7bbfc49c 100644 --- a/packages/client/src/submodules/nfts/graphql/nfts.generated.ts +++ b/packages/client/src/submodules/nfts/graphql/nfts.generated.ts @@ -82,11 +82,12 @@ export type NftGalleriesQuery = { export type NftCollectionOwnersQueryVariables = Types.Exact<{ request: Types.NftCollectionOwnersRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type NftCollectionOwnersQuery = { @@ -1217,20 +1218,23 @@ export const NftCollectionOwnersDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1242,21 +1246,19 @@ export const NftCollectionOwnersDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -1559,73 +1561,34 @@ export const NftCollectionOwnersDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1860,6 +1823,75 @@ export const NftCollectionOwnersDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1884,6 +1916,25 @@ export const NftCollectionOwnersDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, diff --git a/packages/client/src/submodules/nfts/graphql/nfts.graphql b/packages/client/src/submodules/nfts/graphql/nfts.graphql index 4a8c92bec1..d1984feaa6 100644 --- a/packages/client/src/submodules/nfts/graphql/nfts.graphql +++ b/packages/client/src/submodules/nfts/graphql/nfts.graphql @@ -92,11 +92,12 @@ query NftGalleries($request: NftGalleriesRequest!) { query NftCollectionOwners( $request: NftCollectionOwnersRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: nftCollectionOwners(request: $request) { items { diff --git a/packages/client/src/submodules/notifications/Notifications.ts b/packages/client/src/submodules/notifications/Notifications.ts index c41f3de1e8..057a174c6c 100644 --- a/packages/client/src/submodules/notifications/Notifications.ts +++ b/packages/client/src/submodules/notifications/Notifications.ts @@ -7,7 +7,7 @@ import { FetchGraphQLClient } from '../../graphql/FetchGraphQLClient'; import type { NotificationRequest } from '../../graphql/types.generated'; import { PaginatedResult, - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, requireAuthHeaders, sdkAuthHeaderWrapper, @@ -76,7 +76,7 @@ export class Notifications { const result = await this.sdk.Notifications( { request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }, headers, ); diff --git a/packages/client/src/submodules/notifications/graphql/notifications.generated.ts b/packages/client/src/submodules/notifications/graphql/notifications.generated.ts index 8e5015310f..4002640ea9 100644 --- a/packages/client/src/submodules/notifications/graphql/notifications.generated.ts +++ b/packages/client/src/submodules/notifications/graphql/notifications.generated.ts @@ -73,15 +73,17 @@ export type MentionNotificationFragment = { export type NotificationsQueryVariables = Types.Exact<{ request: Types.NotificationRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type NotificationsQuery = { @@ -394,73 +396,34 @@ export const ReactionNotificationFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -708,6 +671,75 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -732,6 +764,25 @@ export const ReactionNotificationFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1777,6 +1828,72 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + 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' }, @@ -1822,6 +1939,7 @@ export const ReactionNotificationFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -2141,6 +2259,7 @@ export const ReactionNotificationFragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -2148,7 +2267,44 @@ export const ReactionNotificationFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -6958,73 +7114,34 @@ export const CommentNotificationFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -7272,6 +7389,75 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -7296,6 +7482,25 @@ export const CommentNotificationFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -8341,6 +8546,72 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + 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' }, @@ -8386,6 +8657,7 @@ export const CommentNotificationFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -8703,6 +8975,44 @@ export const CommentNotificationFragmentDoc = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -8712,7 +9022,7 @@ export const CommentNotificationFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -13507,73 +13817,34 @@ export const MirrorNotificationFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -13821,6 +14092,75 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -13845,6 +14185,25 @@ export const MirrorNotificationFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -14890,6 +15249,72 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + 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' }, @@ -14935,6 +15360,7 @@ export const MirrorNotificationFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -15254,6 +15680,7 @@ export const MirrorNotificationFragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -15261,7 +15688,44 @@ export const MirrorNotificationFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -20071,73 +20535,34 @@ export const QuoteNotificationFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -20387,100 +20812,188 @@ export const QuoteNotificationFragmentDoc = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfilePictureSet' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + 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: 'raw' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'optimized' }, + name: { kind: 'Name', value: 'picture' }, 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: 'profilePictureTransform' }, + selections: [ + { + kind: 'InlineFragment', + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'ProfilePictureSet' }, + }, + ], + }, }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + { + 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: '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: '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' }, + name: { kind: 'Name', value: 'coverPicture' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileCoverSet' } }, ], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'tokenId' } }, { kind: 'Field', - name: { kind: 'Name', value: 'image' }, + name: { kind: 'Name', value: 'attributes' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfilePictureSet' } }, + { 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: 'verified' } }, ], }, }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfileCoverSet' }, + 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: 'profilePictureTransform' }, + }, + }, + ], + 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + ], + }, + }, + { + 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: '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: 'ProfileCoverSet' }, typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, selectionSet: { kind: 'SelectionSet', @@ -21454,6 +21967,72 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + 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' }, @@ -21499,6 +22078,7 @@ export const QuoteNotificationFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -21818,6 +22398,26 @@ export const QuoteNotificationFragmentDoc = { }, { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'medium' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -21825,7 +22425,25 @@ export const QuoteNotificationFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -26561,73 +27179,34 @@ export const OpenActionProfileActedFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -26875,6 +27454,75 @@ export const OpenActionProfileActedFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -26899,6 +27547,25 @@ export const OpenActionProfileActedFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -27682,73 +28349,34 @@ export const ActedNotificationFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -27996,6 +28624,75 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -28020,6 +28717,25 @@ export const ActedNotificationFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -29065,6 +29781,72 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + 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' }, @@ -29110,6 +29892,7 @@ export const ActedNotificationFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -29429,6 +30212,7 @@ export const ActedNotificationFragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -29436,7 +30220,44 @@ export const ActedNotificationFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -34322,73 +35143,34 @@ export const FollowNotificationFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -34636,6 +35418,75 @@ export const FollowNotificationFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -34660,6 +35511,25 @@ export const FollowNotificationFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -35320,73 +36190,34 @@ export const MentionNotificationFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -35634,6 +36465,75 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -35658,6 +36558,25 @@ export const MentionNotificationFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -36703,6 +37622,72 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + 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' }, @@ -36748,6 +37733,7 @@ export const MentionNotificationFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -37067,6 +38053,7 @@ export const MentionNotificationFragmentDoc = { }, { kind: 'Field', + alias: { kind: 'Name', value: 'small' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -37074,7 +38061,44 @@ export const MentionNotificationFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -41668,10 +42692,23 @@ export const NotificationsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -41683,7 +42720,6 @@ export const NotificationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -41692,7 +42728,6 @@ export const NotificationsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -41707,25 +42742,27 @@ export const NotificationsDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -41737,21 +42774,19 @@ export const NotificationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -42481,73 +43516,34 @@ export const NotificationsDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -42795,6 +43791,75 @@ export const NotificationsDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -42819,6 +43884,25 @@ export const NotificationsDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -43864,6 +44948,72 @@ export const NotificationsDocument = { ], }, }, + { + 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' }, @@ -43909,6 +45059,7 @@ export const NotificationsDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -44226,6 +45377,44 @@ export const NotificationsDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -44235,7 +45424,7 @@ export const NotificationsDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], diff --git a/packages/client/src/submodules/notifications/graphql/notifications.graphql b/packages/client/src/submodules/notifications/graphql/notifications.graphql index 634e63f58c..f70cbdbefa 100644 --- a/packages/client/src/submodules/notifications/graphql/notifications.graphql +++ b/packages/client/src/submodules/notifications/graphql/notifications.graphql @@ -121,15 +121,17 @@ fragment MentionNotification on MentionNotification { # queries query Notifications( $request: NotificationRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: notifications(request: $request) { items { diff --git a/packages/client/src/submodules/poaps/Poaps.ts b/packages/client/src/submodules/poaps/Poaps.ts index e89a4a3ba9..011ff9ab8c 100644 --- a/packages/client/src/submodules/poaps/Poaps.ts +++ b/packages/client/src/submodules/poaps/Poaps.ts @@ -10,7 +10,7 @@ import type { } from '../../graphql/types.generated'; import { PaginatedResult, - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, sdkAuthHeaderWrapper, } from '../../helpers'; @@ -79,7 +79,7 @@ export class Poaps { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.PoapHolders({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; diff --git a/packages/client/src/submodules/poaps/graphql/poap.generated.ts b/packages/client/src/submodules/poaps/graphql/poap.generated.ts index 5248a0958a..cb6cfd80fb 100644 --- a/packages/client/src/submodules/poaps/graphql/poap.generated.ts +++ b/packages/client/src/submodules/poaps/graphql/poap.generated.ts @@ -70,11 +70,12 @@ export type MutualPoapsQuery = { export type PoapHoldersQueryVariables = Types.Exact<{ request: Types.PoapHoldersQueryRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type PoapHoldersQuery = { @@ -470,20 +471,23 @@ export const PoapHoldersDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -495,21 +499,19 @@ export const PoapHoldersDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -797,73 +799,34 @@ export const PoapHoldersDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1098,6 +1061,75 @@ export const PoapHoldersDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1122,6 +1154,25 @@ export const PoapHoldersDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, diff --git a/packages/client/src/submodules/poaps/graphql/poap.graphql b/packages/client/src/submodules/poaps/graphql/poap.graphql index c992cb87f2..ef9f95a9ce 100644 --- a/packages/client/src/submodules/poaps/graphql/poap.graphql +++ b/packages/client/src/submodules/poaps/graphql/poap.graphql @@ -56,11 +56,12 @@ query MutualPoaps($request: MutualPoapsQueryRequest!) { query PoapHolders( $request: PoapHoldersQueryRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: poapHolders(request: $request) { items { diff --git a/packages/client/src/submodules/profile/Profile.ts b/packages/client/src/submodules/profile/Profile.ts index 160350f550..ef2a3948a8 100644 --- a/packages/client/src/submodules/profile/Profile.ts +++ b/packages/client/src/submodules/profile/Profile.ts @@ -39,7 +39,7 @@ import type { } from '../../graphql/types.generated'; import { PaginatedResult, - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, requireAuthHeaders, sdkAuthHeaderWrapper, @@ -102,7 +102,7 @@ export class Profile { ): Promise { const result = await this.sdk.Profile({ request, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), ...options, }); @@ -132,7 +132,7 @@ export class Profile { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.Profiles({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), ...options, }); @@ -184,7 +184,7 @@ export class Profile { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.ProfileRecommendations({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -231,7 +231,7 @@ export class Profile { async fetchDefault(request: DefaultProfileRequest): Promise { const result = await this.sdk.DefaultProfile({ request, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -277,7 +277,7 @@ export class Profile { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.Following({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -301,7 +301,7 @@ export class Profile { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.Followers({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -328,7 +328,7 @@ export class Profile { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.MutualFollowers({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -386,7 +386,7 @@ export class Profile { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.WhoActedOnPublication({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -417,7 +417,7 @@ export class Profile { const result = await this.sdk.WhoHaveBlocked( { request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }, headers, ); diff --git a/packages/client/src/submodules/profile/graphql/profile.generated.ts b/packages/client/src/submodules/profile/graphql/profile.generated.ts index dc109dc01a..e9d4aa3936 100644 --- a/packages/client/src/submodules/profile/graphql/profile.generated.ts +++ b/packages/client/src/submodules/profile/graphql/profile.generated.ts @@ -152,33 +152,36 @@ export type CreateUnlinkHandleFromProfileBroadcastItemResultFragment = { export type ProfileQueryVariables = Types.Exact<{ request: Types.ProfileRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type ProfileQuery = { result: ProfileFragment | null }; export type DefaultProfileQueryVariables = Types.Exact<{ request: Types.DefaultProfileRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type DefaultProfileQuery = { result: ProfileFragment | null }; export type ProfilesQueryVariables = Types.Exact<{ request: Types.ProfilesRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type ProfilesQuery = { @@ -195,11 +198,12 @@ export type ProfileManagersQuery = { export type ProfileRecommendationsQueryVariables = Types.Exact<{ request: Types.ProfileRecommendationsRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type ProfileRecommendationsQuery = { @@ -208,11 +212,12 @@ export type ProfileRecommendationsQuery = { export type FollowingQueryVariables = Types.Exact<{ request: Types.FollowingRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type FollowingQuery = { @@ -221,11 +226,12 @@ export type FollowingQuery = { export type FollowersQueryVariables = Types.Exact<{ request: Types.FollowersRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type FollowersQuery = { @@ -234,11 +240,12 @@ export type FollowersQuery = { export type MutualFollowersQueryVariables = Types.Exact<{ request: Types.MutualFollowersRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type MutualFollowersQuery = { @@ -259,11 +266,12 @@ export type FollowStatusBulkQuery = { result: Array; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type WhoActedOnPublicationQuery = { @@ -288,11 +296,12 @@ export type ProfileActionHistoryQuery = { export type WhoHaveBlockedQueryVariables = Types.Exact<{ request: Types.WhoHaveBlockedRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type WhoHaveBlockedQuery = { @@ -1407,20 +1416,23 @@ export const ProfileDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1432,21 +1444,19 @@ export const ProfileDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -1685,73 +1695,34 @@ export const ProfileDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1999,6 +1970,75 @@ export const ProfileDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -2023,6 +2063,25 @@ export const ProfileDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -2437,20 +2496,23 @@ export const DefaultProfileDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -2462,21 +2524,19 @@ export const DefaultProfileDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -2715,73 +2775,34 @@ export const DefaultProfileDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -3031,35 +3052,123 @@ export const DefaultProfileDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ProfilePictureSet' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageSet' } }, + 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: 'raw' }, + name: { kind: 'Name', value: 'picture' }, selectionSet: { kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + selections: [ + { + 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: 'Field', - name: { kind: 'Name', value: 'optimized' }, + name: { kind: 'Name', value: 'coverPicture' }, selectionSet: { kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileCoverSet' } }, + ], }, }, { kind: 'Field', - name: { kind: 'Name', value: 'transformed' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'request' }, + 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: '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: 'profilePictureTransform' }, + }, + }, + ], + 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: 'profilePictureTransform' }, @@ -3467,20 +3576,23 @@ export const ProfilesDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -3492,21 +3604,19 @@ export const ProfilesDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -3769,73 +3879,34 @@ export const ProfilesDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -4083,6 +4154,75 @@ export const ProfilesDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -4107,6 +4247,25 @@ export const ProfilesDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -4625,20 +4784,23 @@ export const ProfileRecommendationsDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -4650,21 +4812,19 @@ export const ProfileRecommendationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -4927,73 +5087,34 @@ export const ProfileRecommendationsDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -5241,6 +5362,75 @@ export const ProfileRecommendationsDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -5265,6 +5455,25 @@ export const ProfileRecommendationsDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -5691,20 +5900,23 @@ export const FollowingDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -5716,21 +5928,19 @@ export const FollowingDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -5993,73 +6203,34 @@ export const FollowingDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -6307,6 +6478,75 @@ export const FollowingDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -6331,6 +6571,25 @@ export const FollowingDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -6757,20 +7016,23 @@ export const FollowersDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -6782,21 +7044,19 @@ export const FollowersDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -7059,73 +7319,34 @@ export const FollowersDocument = { { kind: 'Field', name: { kind: 'Name', value: 'metadata' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { 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: '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' } }, - ], - }, + 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: '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: 'ObjectField', + name: { kind: 'Name', value: 'useFallback' }, + value: { kind: 'BooleanValue', value: true }, + }, + ], }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -7373,6 +7594,75 @@ export const FollowersDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -7397,6 +7687,25 @@ export const FollowersDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -7823,20 +8132,23 @@ export const MutualFollowersDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -7848,21 +8160,19 @@ export const MutualFollowersDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -8125,73 +8435,34 @@ export const MutualFollowersDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -8439,6 +8710,75 @@ export const MutualFollowersDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -8463,6 +8803,25 @@ export const MutualFollowersDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -8970,20 +9329,23 @@ export const WhoActedOnPublicationDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -8995,21 +9357,19 @@ export const WhoActedOnPublicationDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -9245,103 +9605,64 @@ export const WhoActedOnPublicationDocument = { 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' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { 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: '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: 'Field', - name: { kind: 'Name', value: 'coverPicture' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileCoverSet' } }, + name: { kind: 'Name', value: 'RevertFollowModuleSettings' }, + }, ], }, }, { - kind: 'Field', - name: { kind: 'Name', value: 'attributes' }, + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownFollowModuleSettings' }, + }, 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: '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' }, @@ -9586,6 +9907,75 @@ export const WhoActedOnPublicationDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -9610,6 +10000,25 @@ export const WhoActedOnPublicationDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -10134,20 +10543,23 @@ export const WhoHaveBlockedDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -10159,21 +10571,19 @@ export const WhoHaveBlockedDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -10436,73 +10846,34 @@ export const WhoHaveBlockedDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -10750,6 +11121,75 @@ export const WhoHaveBlockedDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -10774,6 +11214,25 @@ export const WhoHaveBlockedDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, diff --git a/packages/client/src/submodules/profile/graphql/profile.graphql b/packages/client/src/submodules/profile/graphql/profile.graphql index c974b93798..2db81df9ed 100644 --- a/packages/client/src/submodules/profile/graphql/profile.graphql +++ b/packages/client/src/submodules/profile/graphql/profile.graphql @@ -210,11 +210,12 @@ fragment CreateUnlinkHandleFromProfileBroadcastItemResult on CreateUnlinkHandleF # queries query Profile( $request: ProfileRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: profile(request: $request) { ...Profile @@ -223,11 +224,12 @@ query Profile( query DefaultProfile( $request: DefaultProfileRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: defaultProfile(request: $request) { ...Profile @@ -236,11 +238,12 @@ query DefaultProfile( query Profiles( $request: ProfilesRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: profiles(request: $request) { items { @@ -265,11 +268,12 @@ query ProfileManagers($request: ProfileManagersRequest!) { query ProfileRecommendations( $request: ProfileRecommendationsRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: profileRecommendations(request: $request) { items { @@ -283,11 +287,12 @@ query ProfileRecommendations( query Following( $request: FollowingRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: following(request: $request) { items { @@ -301,11 +306,12 @@ query Following( query Followers( $request: FollowersRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: followers(request: $request) { items { @@ -319,11 +325,12 @@ query Followers( query MutualFollowers( $request: MutualFollowersRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: mutualFollowers(request: $request) { items { @@ -351,11 +358,12 @@ query FollowStatusBulk($request: FollowStatusBulkRequest!) { query WhoActedOnPublication( $request: WhoActedOnPublicationRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: whoActedOnPublication(request: $request) { items { @@ -388,11 +396,12 @@ query ProfileActionHistory($request: ProfileActionHistoryRequest!) { query WhoHaveBlocked( $request: WhoHaveBlockedRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: whoHaveBlocked(request: $request) { items { diff --git a/packages/client/src/submodules/profile/types.ts b/packages/client/src/submodules/profile/types.ts index 4a0d0f76cb..747dad86c8 100644 --- a/packages/client/src/submodules/profile/types.ts +++ b/packages/client/src/submodules/profile/types.ts @@ -1,6 +1,5 @@ -import { ProfileStatsArg, ProfileStatsCountOpenActionArgs } from '../../graphql/types.generated'; +import { ProfileStatsCountOpenActionArgs } from '../../graphql/types.generated'; export type FetchProfileOptions = { - profileStatsArg?: ProfileStatsArg; profileStatsCountOpenActionArgs?: ProfileStatsCountOpenActionArgs; }; diff --git a/packages/client/src/submodules/publication/Publication.ts b/packages/client/src/submodules/publication/Publication.ts index 4249c0ad89..ed89bcf6db 100644 --- a/packages/client/src/submodules/publication/Publication.ts +++ b/packages/client/src/submodules/publication/Publication.ts @@ -35,7 +35,7 @@ import { ValidatePublicationMetadataRequest, } from '../../graphql/types.generated'; import { - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, PaginatedResult, requireAuthHeaders, @@ -127,7 +127,7 @@ export class Publication { ): Promise { const result = await this.sdk.Publication({ request, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), ...options, }); @@ -157,7 +157,7 @@ export class Publication { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.Publications({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), ...options, }); diff --git a/packages/client/src/submodules/publication/graphql/publication.generated.ts b/packages/client/src/submodules/publication/graphql/publication.generated.ts index 0cf47d64ce..73b60fb623 100644 --- a/packages/client/src/submodules/publication/graphql/publication.generated.ts +++ b/packages/client/src/submodules/publication/graphql/publication.generated.ts @@ -27,15 +27,17 @@ export type PublicationValidateMetadataResultFragment = { valid: boolean; reason export type PublicationQueryVariables = Types.Exact<{ request: Types.PublicationRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type PublicationQuery = { @@ -44,15 +46,17 @@ export type PublicationQuery = { export type PublicationsQueryVariables = Types.Exact<{ request: Types.PublicationsRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type PublicationsQuery = { @@ -1505,10 +1509,23 @@ export const PublicationDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1520,7 +1537,6 @@ export const PublicationDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1529,7 +1545,6 @@ export const PublicationDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1544,25 +1559,27 @@ export const PublicationDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1574,21 +1591,19 @@ export const PublicationDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -2452,73 +2467,34 @@ export const PublicationDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -2766,6 +2742,75 @@ export const PublicationDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -2790,6 +2835,25 @@ export const PublicationDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -3249,6 +3313,72 @@ export const PublicationDocument = { ], }, }, + { + 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' }, @@ -3294,6 +3424,7 @@ export const PublicationDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -3611,6 +3742,44 @@ export const PublicationDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -3620,7 +3789,7 @@ export const PublicationDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -8290,10 +8459,23 @@ export const PublicationsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -8305,7 +8487,6 @@ export const PublicationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -8314,7 +8495,6 @@ export const PublicationsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -8329,25 +8509,27 @@ export const PublicationsDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -8359,21 +8541,19 @@ export const PublicationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -9270,73 +9450,34 @@ export const PublicationsDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -9584,6 +9725,75 @@ export const PublicationsDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -9608,6 +9818,25 @@ export const PublicationsDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -10067,6 +10296,72 @@ export const PublicationsDocument = { ], }, }, + { + 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' }, @@ -10112,6 +10407,7 @@ export const PublicationsDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -10429,6 +10725,44 @@ export const PublicationsDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -10438,7 +10772,7 @@ export const PublicationsDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], diff --git a/packages/client/src/submodules/publication/graphql/publication.graphql b/packages/client/src/submodules/publication/graphql/publication.graphql index 569dc01649..ee4b5ae023 100644 --- a/packages/client/src/submodules/publication/graphql/publication.graphql +++ b/packages/client/src/submodules/publication/graphql/publication.graphql @@ -12,15 +12,17 @@ fragment PublicationValidateMetadataResult on PublicationValidateMetadataResult # queries query Publication( $request: PublicationRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: publication(request: $request) { ... on Post { @@ -40,15 +42,17 @@ query Publication( query Publications( $request: PublicationsRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: publications(request: $request) { items { diff --git a/packages/client/src/submodules/publication/submodules/bookmarks/Bookmarks.ts b/packages/client/src/submodules/publication/submodules/bookmarks/Bookmarks.ts index 4479de7202..875716d774 100644 --- a/packages/client/src/submodules/publication/submodules/bookmarks/Bookmarks.ts +++ b/packages/client/src/submodules/publication/submodules/bookmarks/Bookmarks.ts @@ -10,7 +10,7 @@ import type { PublicationBookmarksRequest, } from '../../../../graphql/types.generated'; import { - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, PaginatedResult, requireAuthHeaders, @@ -61,7 +61,7 @@ export class Bookmarks { const result = await this.sdk.PublicationBookmarks( { request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }, headers, ); diff --git a/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts b/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts index 8639fae063..533f0f890e 100644 --- a/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts +++ b/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts @@ -23,15 +23,17 @@ import { print } from 'graphql'; import { DocumentNode } from 'graphql'; export type PublicationBookmarksQueryVariables = Types.Exact<{ request: Types.PublicationBookmarksRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type PublicationBookmarksQuery = { @@ -76,10 +78,23 @@ export const PublicationBookmarksDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -91,7 +106,6 @@ export const PublicationBookmarksDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -100,7 +114,6 @@ export const PublicationBookmarksDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -115,25 +128,27 @@ export const PublicationBookmarksDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -145,21 +160,19 @@ export const PublicationBookmarksDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -1056,73 +1069,34 @@ export const PublicationBookmarksDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1370,6 +1344,75 @@ export const PublicationBookmarksDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1394,6 +1437,25 @@ export const PublicationBookmarksDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1853,6 +1915,72 @@ export const PublicationBookmarksDocument = { ], }, }, + { + 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' }, @@ -1898,6 +2026,7 @@ export const PublicationBookmarksDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -2215,6 +2344,44 @@ export const PublicationBookmarksDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -2224,7 +2391,7 @@ export const PublicationBookmarksDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], diff --git a/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.graphql b/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.graphql index 0d2298e98b..9a3b107a3d 100644 --- a/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.graphql +++ b/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.graphql @@ -1,15 +1,17 @@ # queries query PublicationBookmarks( $request: PublicationBookmarksRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: publicationBookmarks(request: $request) { items { diff --git a/packages/client/src/submodules/publication/submodules/reactions/Reactions.ts b/packages/client/src/submodules/publication/submodules/reactions/Reactions.ts index eb65521ee8..07671634a5 100644 --- a/packages/client/src/submodules/publication/submodules/reactions/Reactions.ts +++ b/packages/client/src/submodules/publication/submodules/reactions/Reactions.ts @@ -9,7 +9,7 @@ import type { WhoReactedPublicationRequest, } from '../../../../graphql/types.generated'; import { - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, PaginatedResult, requireAuthHeaders, @@ -108,7 +108,7 @@ export class Reactions { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.WhoReactedPublication({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; diff --git a/packages/client/src/submodules/publication/submodules/reactions/graphql/reactions.generated.ts b/packages/client/src/submodules/publication/submodules/reactions/graphql/reactions.generated.ts index a9e6685993..eb36bc056a 100644 --- a/packages/client/src/submodules/publication/submodules/reactions/graphql/reactions.generated.ts +++ b/packages/client/src/submodules/publication/submodules/reactions/graphql/reactions.generated.ts @@ -39,11 +39,12 @@ export type ProfileWhoReactedResultFragment = { export type WhoReactedPublicationQueryVariables = Types.Exact<{ request: Types.WhoReactedPublicationRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type WhoReactedPublicationQuery = { @@ -326,73 +327,34 @@ export const ProfileWhoReactedResultFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -640,6 +602,75 @@ export const ProfileWhoReactedResultFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -664,6 +695,25 @@ export const ProfileWhoReactedResultFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1153,20 +1203,23 @@ export const WhoReactedPublicationDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1178,21 +1231,19 @@ export const WhoReactedPublicationDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -1501,73 +1552,34 @@ export const WhoReactedPublicationDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1815,6 +1827,75 @@ export const WhoReactedPublicationDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1839,6 +1920,25 @@ export const WhoReactedPublicationDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, diff --git a/packages/client/src/submodules/publication/submodules/reactions/graphql/reactions.graphql b/packages/client/src/submodules/publication/submodules/reactions/graphql/reactions.graphql index cfb55fdd49..a09a791a50 100644 --- a/packages/client/src/submodules/publication/submodules/reactions/graphql/reactions.graphql +++ b/packages/client/src/submodules/publication/submodules/reactions/graphql/reactions.graphql @@ -22,11 +22,12 @@ fragment ProfileWhoReactedResult on ProfileWhoReactedResult { query WhoReactedPublication( $request: WhoReactedPublicationRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: whoReactedPublication(request: $request) { items { diff --git a/packages/client/src/submodules/publication/types.ts b/packages/client/src/submodules/publication/types.ts index 31b2a42084..08e4de119a 100644 --- a/packages/client/src/submodules/publication/types.ts +++ b/packages/client/src/submodules/publication/types.ts @@ -1,10 +1,6 @@ -import { - PublicationStatsCountOpenActionArgs, - PublicationStatsInput, -} from '../../graphql/types.generated'; +import { PublicationStatsCountOpenActionArgs } from '../../graphql/types.generated'; export type FetchPublicationOptions = { - publicationStatsInput?: PublicationStatsInput; publicationStatsCountOpenActionArgs?: PublicationStatsCountOpenActionArgs; }; diff --git a/packages/client/src/submodules/revenue/Revenue.ts b/packages/client/src/submodules/revenue/Revenue.ts index 2a7c5a6af8..7fe98a8c14 100644 --- a/packages/client/src/submodules/revenue/Revenue.ts +++ b/packages/client/src/submodules/revenue/Revenue.ts @@ -7,7 +7,7 @@ import type { RevenueFromPublicationsRequest, } from '../../graphql/types.generated'; import { - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, PaginatedResult, sdkAuthHeaderWrapper, @@ -54,6 +54,7 @@ export class Revenue { async fromFollow(request: FollowRevenueRequest): Promise { const result = await this.sdk.FollowRevenues({ request, + ...commonQueryVariables(this.context), }); return result.data.result.revenues; @@ -77,7 +78,7 @@ export class Revenue { ): Promise { const result = await this.sdk.RevenueFromPublication({ request, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -102,7 +103,7 @@ export class Revenue { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.RevenueFromPublications({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; diff --git a/packages/client/src/submodules/revenue/graphql/revenue.generated.ts b/packages/client/src/submodules/revenue/graphql/revenue.generated.ts index 061c96cf02..ed31382ebb 100644 --- a/packages/client/src/submodules/revenue/graphql/revenue.generated.ts +++ b/packages/client/src/submodules/revenue/graphql/revenue.generated.ts @@ -31,15 +31,17 @@ export type PublicationRevenueFragment = { export type RevenueFromPublicationsQueryVariables = Types.Exact<{ request: Types.RevenueFromPublicationsRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type RevenueFromPublicationsQuery = { @@ -48,22 +50,24 @@ export type RevenueFromPublicationsQuery = { export type RevenueFromPublicationQueryVariables = Types.Exact<{ request: Types.RevenueFromPublicationRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type RevenueFromPublicationQuery = { result: PublicationRevenueFragment | null }; export type FollowRevenuesQueryVariables = Types.Exact<{ request: Types.FollowRevenueRequest; - rateRequest?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type FollowRevenuesQuery = { result: { revenues: Array } }; @@ -1190,73 +1194,34 @@ export const PublicationRevenueFragmentDoc = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1398,6 +1363,75 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1422,6 +1456,25 @@ export const PublicationRevenueFragmentDoc = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1881,6 +1934,72 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + 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' }, @@ -1926,6 +2045,7 @@ export const PublicationRevenueFragmentDoc = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -2245,6 +2365,26 @@ export const PublicationRevenueFragmentDoc = { }, { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'medium' }, name: { kind: 'Name', value: 'transformed' }, arguments: [ { @@ -2252,7 +2392,25 @@ export const PublicationRevenueFragmentDoc = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, }, }, ], @@ -6925,10 +7083,23 @@ export const RevenueFromPublicationsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -6940,7 +7111,6 @@ export const RevenueFromPublicationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -6949,7 +7119,6 @@ export const RevenueFromPublicationsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -6964,25 +7133,27 @@ export const RevenueFromPublicationsDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -6994,21 +7165,19 @@ export const RevenueFromPublicationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -8051,73 +8220,34 @@ export const RevenueFromPublicationsDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -8259,6 +8389,75 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -8283,6 +8482,25 @@ export const RevenueFromPublicationsDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -8742,6 +8960,72 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + 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' }, @@ -8787,6 +9071,7 @@ export const RevenueFromPublicationsDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -9104,6 +9389,44 @@ export const RevenueFromPublicationsDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -9113,7 +9436,7 @@ export const RevenueFromPublicationsDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -13798,10 +14121,23 @@ export const RevenueFromPublicationDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -13813,7 +14149,6 @@ export const RevenueFromPublicationDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -13822,7 +14157,6 @@ export const RevenueFromPublicationDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -13837,25 +14171,27 @@ export const RevenueFromPublicationDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -13867,21 +14203,19 @@ export const RevenueFromPublicationDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -14899,73 +15233,34 @@ export const RevenueFromPublicationDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -15107,6 +15402,75 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -15131,6 +15495,25 @@ export const RevenueFromPublicationDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -15590,6 +15973,72 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + 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' }, @@ -15635,6 +16084,7 @@ export const RevenueFromPublicationDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -15952,6 +16402,44 @@ export const RevenueFromPublicationDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -15961,7 +16449,7 @@ export const RevenueFromPublicationDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -20630,16 +21118,9 @@ export const FollowRevenuesDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], diff --git a/packages/client/src/submodules/revenue/graphql/revenue.graphql b/packages/client/src/submodules/revenue/graphql/revenue.graphql index 1408970fcc..133d14d93c 100644 --- a/packages/client/src/submodules/revenue/graphql/revenue.graphql +++ b/packages/client/src/submodules/revenue/graphql/revenue.graphql @@ -26,15 +26,17 @@ fragment PublicationRevenue on PublicationRevenue { query RevenueFromPublications( $request: RevenueFromPublicationsRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: revenueFromPublications(request: $request) { items { @@ -48,22 +50,24 @@ query RevenueFromPublications( query RevenueFromPublication( $request: RevenueFromPublicationRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: revenueFromPublication(request: $request) { ...PublicationRevenue } } -query FollowRevenues($request: FollowRevenueRequest!, $rateRequest: RateRequest = { for: USD }) { +query FollowRevenues($request: FollowRevenueRequest!, $rateRequest: RateRequest!) { result: followRevenues(request: $request) { revenues { ...RevenueAggregate diff --git a/packages/client/src/submodules/search/Search.ts b/packages/client/src/submodules/search/Search.ts index 1e1fad19c4..aa35957cab 100644 --- a/packages/client/src/submodules/search/Search.ts +++ b/packages/client/src/submodules/search/Search.ts @@ -5,7 +5,7 @@ import type { ProfileFragment } from '../../graphql/fragments.generated'; import { PrimaryPublicationFragment } from '../../graphql/types'; import { ProfileSearchRequest, PublicationSearchRequest } from '../../graphql/types.generated'; import { - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, PaginatedResult, sdkAuthHeaderWrapper, @@ -48,7 +48,7 @@ export class Search { return buildPaginatedQueryResult(async (currRequest) => { const response = await this.sdk.SearchProfiles({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return response.data.result; }, request); @@ -73,7 +73,7 @@ export class Search { return buildPaginatedQueryResult(async (currRequest) => { const response = await this.sdk.SearchPublications({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return response.data.result; }, request); diff --git a/packages/client/src/submodules/search/graphql/search.generated.ts b/packages/client/src/submodules/search/graphql/search.generated.ts index db2dfc8151..049d8b0595 100644 --- a/packages/client/src/submodules/search/graphql/search.generated.ts +++ b/packages/client/src/submodules/search/graphql/search.generated.ts @@ -23,15 +23,17 @@ import { print } from 'graphql'; import { DocumentNode } from 'graphql'; export type SearchPublicationsQueryVariables = Types.Exact<{ request: Types.PublicationSearchRequest; - publicationImageTransform?: Types.InputMaybe; + publicationImageSmallTransform: Types.ImageTransform; + publicationImageMediumTransform: Types.ImageTransform; publicationOperationsActedArgs?: Types.InputMaybe; - publicationStatsInput?: Types.PublicationStatsInput; - publicationStatsCountOpenActionArgs?: Types.PublicationStatsCountOpenActionArgs; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + publicationStatsInput: Types.PublicationStatsInput; + publicationStatsCountOpenActionArgs: Types.PublicationStatsCountOpenActionArgs; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type SearchPublicationsQuery = { @@ -43,11 +45,12 @@ export type SearchPublicationsQuery = { export type SearchProfilesQueryVariables = Types.Exact<{ request: Types.ProfileSearchRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type SearchProfilesQuery = { @@ -74,10 +77,23 @@ export const SearchPublicationsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageSmallTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -89,7 +105,6 @@ export const SearchPublicationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationOperationsActedArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -98,7 +113,6 @@ export const SearchPublicationsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'PublicationStatsInput' } }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -113,25 +127,27 @@ export const SearchPublicationsDocument = { name: { kind: 'Name', value: 'PublicationStatsCountOpenActionArgs' }, }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -143,21 +159,19 @@ export const SearchPublicationsDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -1041,73 +1055,34 @@ export const SearchPublicationsDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1355,6 +1330,75 @@ export const SearchPublicationsDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1379,6 +1423,25 @@ export const SearchPublicationsDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1838,6 +1901,72 @@ export const SearchPublicationsDocument = { ], }, }, + { + 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' }, @@ -1883,6 +2012,7 @@ export const SearchPublicationsDocument = { { 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: 'hasQuoted' } }, { kind: 'Field', name: { kind: 'Name', value: 'hasMirrored' } }, { kind: 'Field', @@ -2200,6 +2330,44 @@ export const SearchPublicationsDocument = { 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: 'publicationImageSmallTransform' }, + }, + }, + ], + 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: 'publicationImageMediumTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -2209,7 +2377,7 @@ export const SearchPublicationsDocument = { name: { kind: 'Name', value: 'request' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'publicationImageTransform' }, + name: { kind: 'Name', value: 'publicationImageMediumTransform' }, }, }, ], @@ -6814,20 +6982,23 @@ export const SearchProfilesDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -6839,21 +7010,19 @@ export const SearchProfilesDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -7116,73 +7285,34 @@ export const SearchProfilesDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -7430,6 +7560,75 @@ export const SearchProfilesDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -7454,6 +7653,25 @@ export const SearchProfilesDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, diff --git a/packages/client/src/submodules/search/graphql/search.graphql b/packages/client/src/submodules/search/graphql/search.graphql index 8a1982da79..5bf6c44655 100644 --- a/packages/client/src/submodules/search/graphql/search.graphql +++ b/packages/client/src/submodules/search/graphql/search.graphql @@ -1,14 +1,16 @@ query SearchPublications( $request: PublicationSearchRequest! - $publicationImageTransform: ImageTransform = {} - $publicationOperationsActedArgs: PublicationOperationsActedArgs = {} - $publicationStatsInput: PublicationStatsInput! = {} - $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! = {} - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $publicationImageSmallTransform: ImageTransform! + $publicationImageMediumTransform: ImageTransform! + $publicationOperationsActedArgs: PublicationOperationsActedArgs + $publicationStatsInput: PublicationStatsInput! + $publicationStatsCountOpenActionArgs: PublicationStatsCountOpenActionArgs! + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: searchPublications(request: $request) { items { @@ -30,11 +32,12 @@ query SearchPublications( query SearchProfiles( $request: ProfileSearchRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: searchProfiles(request: $request) { items { diff --git a/packages/client/src/submodules/wallet/Wallet.ts b/packages/client/src/submodules/wallet/Wallet.ts index 8be4d96ed3..a68f35d952 100644 --- a/packages/client/src/submodules/wallet/Wallet.ts +++ b/packages/client/src/submodules/wallet/Wallet.ts @@ -16,10 +16,11 @@ import type { LastLoggedInProfileRequest, OwnedHandlesRequest, ProfilesManagedRequest, + UserCurrentRateLimitRequest, } from '../../graphql/types.generated'; import { PaginatedResult, - buildRequestFromConfig, + commonQueryVariables, buildPaginatedQueryResult, requireAuthHeaders, sdkAuthHeaderWrapper, @@ -30,6 +31,7 @@ import { CreateProfileWithHandleErrorResultFragment, getSdk, Sdk, + UserCurrentRateLimitResultFragment, UserSigNoncesFragment, } from './graphql/wallet.generated'; @@ -92,7 +94,7 @@ export class Wallet { return buildPaginatedQueryResult(async (currRequest) => { const result = await this.sdk.ProfilesManaged({ request: currRequest, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; @@ -227,9 +229,29 @@ export class Wallet { async lastLoggedInProfile(request: LastLoggedInProfileRequest): Promise { const result = await this.sdk.LastLoggedInProfile({ request, - ...buildRequestFromConfig(this.context), + ...commonQueryVariables(this.context), }); return result.data.result; } + + /** + * Fetch the current sponsored transaction limits for the requested address and profile. + * + * @param request - Request object for the query + * @returns Current rate limits + * + * @example + * ```ts + * const result = await client.wallet.rateLimits({ + * userAddress: '0xa5653e88D9c352387deDdC79bcf99f0ada62e9c6', + * }); + * ``` + */ + async rateLimits( + request: UserCurrentRateLimitRequest, + ): Promise { + const result = await this.sdk.UserRateLimit({ request }); + return result.data.result; + } } diff --git a/packages/client/src/submodules/wallet/graphql/wallet.generated.ts b/packages/client/src/submodules/wallet/graphql/wallet.generated.ts index 2b7b01150f..f44470985a 100644 --- a/packages/client/src/submodules/wallet/graphql/wallet.generated.ts +++ b/packages/client/src/submodules/wallet/graphql/wallet.generated.ts @@ -27,11 +27,12 @@ export type OwnedHandlesQuery = { export type ProfilesManagedQueryVariables = Types.Exact<{ request: Types.ProfilesManagedRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type ProfilesManagedQuery = { @@ -65,15 +66,36 @@ export type ClaimableProfilesQuery = { result: ClaimableProfilesResultFragment } export type LastLoggedInProfileQueryVariables = Types.Exact<{ request: Types.LastLoggedInProfileRequest; - profileCoverTransform?: Types.InputMaybe; - profilePictureTransform?: Types.InputMaybe; + profileCoverTransform: Types.ImageTransform; + profilePictureTransform: Types.ImageTransform; profileStatsArg?: Types.InputMaybe; profileStatsCountOpenActionArgs?: Types.InputMaybe; - rateRequest?: Types.InputMaybe; + profileMetadataSource?: Types.InputMaybe; + rateRequest: Types.RateRequest; }>; export type LastLoggedInProfileQuery = { result: ProfileFragment | null }; +export type UserCurrentRateLimitFragment = { + hourAllowanceLeft: number; + hourAllowanceUsed: number; + hourAllowance: number; + dayAllowanceLeft: number; + dayAllowanceUsed: number; + dayAllowance: number; +}; + +export type UserCurrentRateLimitResultFragment = { + momoka: UserCurrentRateLimitFragment; + onchain: UserCurrentRateLimitFragment; +}; + +export type UserRateLimitQueryVariables = Types.Exact<{ + request: Types.UserCurrentRateLimitRequest; +}>; + +export type UserRateLimitQuery = { result: UserCurrentRateLimitResultFragment }; + export type CreateProfileWithHandleErrorResultFragment = { reason: Types.CreateProfileWithHandleErrorReasonType; }; @@ -186,6 +208,81 @@ export const ClaimableProfilesResultFragmentDoc = { }, ], } as unknown as DocumentNode; +export const UserCurrentRateLimitFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UserCurrentRateLimit' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'UserCurrentRateLimit' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowanceLeft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowanceUsed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowance' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowanceLeft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowanceUsed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowance' } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UserCurrentRateLimitResultFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UserCurrentRateLimitResult' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UserCurrentRateLimitResult' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'momoka' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'UserCurrentRateLimit' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'onchain' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'UserCurrentRateLimit' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UserCurrentRateLimit' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'UserCurrentRateLimit' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowanceLeft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowanceUsed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowance' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowanceLeft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowanceUsed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowance' } }, + ], + }, + }, + ], +} as unknown as DocumentNode; export const CreateProfileWithHandleErrorResultFragmentDoc = { kind: 'Document', definitions: [ @@ -376,20 +473,23 @@ export const ProfilesManagedDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -401,21 +501,19 @@ export const ProfilesManagedDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -750,73 +848,34 @@ export const ProfilesManagedDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -1051,6 +1110,75 @@ export const ProfilesManagedDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -1075,6 +1203,25 @@ export const ProfilesManagedDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -1553,20 +1700,23 @@ export const LastLoggedInProfileDocument = { { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileCoverTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profilePictureTransform' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageTransform' } }, + }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileStatsArg' } }, type: { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsArg' } }, - defaultValue: { kind: 'ObjectValue', fields: [] }, }, { kind: 'VariableDefinition', @@ -1578,21 +1728,19 @@ export const LastLoggedInProfileDocument = { kind: 'NamedType', name: { kind: 'Name', value: 'ProfileStatsCountOpenActionArgs' }, }, - defaultValue: { kind: 'ObjectValue', fields: [] }, + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'profileMetadataSource' } }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'AppId' } }, + defaultValue: { kind: 'NullValue' }, }, { kind: 'VariableDefinition', variable: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, - defaultValue: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'for' }, - value: { kind: 'EnumValue', value: 'USD' }, - }, - ], + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'RateRequest' } }, }, }, ], @@ -1891,73 +2039,34 @@ export const LastLoggedInProfileDocument = { { 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: '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: '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: '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: 'FragmentSpread', name: { kind: 'Name', value: 'ProfileMetadata' } }, ], }, }, @@ -2192,6 +2301,75 @@ export const LastLoggedInProfileDocument = { ], }, }, + { + 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: '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: '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: 'ProfilePictureSet' }, @@ -2216,6 +2394,25 @@ export const LastLoggedInProfileDocument = { 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: 'profilePictureTransform' }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Image' } }], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'transformed' }, @@ -2564,6 +2761,104 @@ export const LastLoggedInProfileDocument = { }, ], } as unknown as DocumentNode; +export const UserRateLimitDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'UserRateLimit' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'request' } }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UserCurrentRateLimitRequest' }, + }, + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'result' }, + name: { kind: 'Name', value: 'userRateLimit' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'request' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'UserCurrentRateLimitResult' }, + }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UserCurrentRateLimit' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'UserCurrentRateLimit' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowanceLeft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowanceUsed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hourAllowance' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowanceLeft' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowanceUsed' } }, + { kind: 'Field', name: { kind: 'Name', value: 'dayAllowance' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UserCurrentRateLimitResult' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UserCurrentRateLimitResult' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'momoka' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'UserCurrentRateLimit' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'onchain' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'UserCurrentRateLimit' } }, + ], + }, + }, + ], + }, + }, + ], +} as unknown as DocumentNode; export const ClaimProfileWithHandleDocument = { kind: 'Document', definitions: [ @@ -2831,6 +3126,7 @@ const ProfilesManagedDocumentString = print(ProfilesManagedDocument); const UserSigNoncesDocumentString = print(UserSigNoncesDocument); const ClaimableProfilesDocumentString = print(ClaimableProfilesDocument); const LastLoggedInProfileDocumentString = print(LastLoggedInProfileDocument); +const UserRateLimitDocumentString = print(UserRateLimitDocument); const ClaimProfileWithHandleDocumentString = print(ClaimProfileWithHandleDocument); const CreateProfileWithHandleDocumentString = print(CreateProfileWithHandleDocument); const CreateProfileDocumentString = print(CreateProfileDocument); @@ -2932,6 +3228,25 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = 'query', ); }, + UserRateLimit( + variables: UserRateLimitQueryVariables, + requestHeaders?: GraphQLClientRequestHeaders, + ): Promise<{ + data: UserRateLimitQuery; + extensions?: any; + headers: Dom.Headers; + status: number; + }> { + return withWrapper( + (wrappedRequestHeaders) => + client.rawRequest(UserRateLimitDocumentString, variables, { + ...requestHeaders, + ...wrappedRequestHeaders, + }), + 'UserRateLimit', + 'query', + ); + }, ClaimProfileWithHandle( variables: ClaimProfileWithHandleMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, diff --git a/packages/client/src/submodules/wallet/graphql/wallet.graphql b/packages/client/src/submodules/wallet/graphql/wallet.graphql index b329698acb..73cb00602f 100644 --- a/packages/client/src/submodules/wallet/graphql/wallet.graphql +++ b/packages/client/src/submodules/wallet/graphql/wallet.graphql @@ -12,11 +12,12 @@ query OwnedHandles($request: OwnedHandlesRequest!) { query ProfilesManaged( $request: ProfilesManagedRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: profilesManaged(request: $request) { items { @@ -61,17 +62,42 @@ query ClaimableProfiles { query LastLoggedInProfile( $request: LastLoggedInProfileRequest! - $profileCoverTransform: ImageTransform = {} - $profilePictureTransform: ImageTransform = {} - $profileStatsArg: ProfileStatsArg = {} - $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs = {} - $rateRequest: RateRequest = { for: USD } + $profileCoverTransform: ImageTransform! + $profilePictureTransform: ImageTransform! + $profileStatsArg: ProfileStatsArg + $profileStatsCountOpenActionArgs: ProfileStatsCountOpenActionArgs + $profileMetadataSource: AppId = null + $rateRequest: RateRequest! ) { result: lastLoggedInProfile(request: $request) { ...Profile } } +fragment UserCurrentRateLimit on UserCurrentRateLimit { + hourAllowanceLeft + hourAllowanceUsed + hourAllowance + dayAllowanceLeft + dayAllowanceUsed + dayAllowance +} + +fragment UserCurrentRateLimitResult on UserCurrentRateLimitResult { + momoka { + ...UserCurrentRateLimit + } + onchain { + ...UserCurrentRateLimit + } +} + +query UserRateLimit($request: UserCurrentRateLimitRequest!) { + result: userRateLimit(request: $request) { + ...UserCurrentRateLimitResult + } +} + # mutations fragment CreateProfileWithHandleErrorResult on CreateProfileWithHandleErrorResult { reason diff --git a/packages/client/src/submodules/wallet/index.ts b/packages/client/src/submodules/wallet/index.ts index 411c8eed76..d18d5f002e 100644 --- a/packages/client/src/submodules/wallet/index.ts +++ b/packages/client/src/submodules/wallet/index.ts @@ -5,5 +5,7 @@ export type { ClaimProfileWithHandleErrorResultFragment, CreateProfileWithHandleErrorResultFragment, ReservedClaimableFragment, + UserCurrentRateLimitFragment, + UserCurrentRateLimitResultFragment, UserSigNoncesFragment, } from './graphql/wallet.generated'; diff --git a/packages/react-web/src/LensProvider.tsx b/packages/react-web/src/LensProvider.tsx index 7e5a146e84..d76a2d3bae 100644 --- a/packages/react-web/src/LensProvider.tsx +++ b/packages/react-web/src/LensProvider.tsx @@ -45,7 +45,7 @@ export type LensConfig = { */ storage?: IStorageProvider | IObservableStorageProvider; /** - * The common query params allows you customize some aspect of the returned data. + * The common query params allow you to customize some aspect of the returned data. * * @defaultValue see individual fields of {@link QueryParams} */ From 7b1cbde5de70bec08b2257537b97e9af5d73e329 Mon Sep 17 00:00:00 2001 From: Cesare Naldi Date: Wed, 14 Feb 2024 20:55:20 +0000 Subject: [PATCH 5/6] fix: TSDoc, new TypeDoc theme, re-export of common React APIs (#846) * fix: TSDoc, new TypeDoc theme, re-export of common React APIs * Fixes linting issue * Removes invalid TSDoc tag --- .changeset/neat-moons-study.md | 8 ++ assets/docs.css | 9 ++ package.json | 5 +- packages/client/README.md | 52 ++++++++- packages/client/package.json | 5 + packages/client/src/LensClient.ts | 2 + packages/client/src/gated/LensClient.ts | 7 ++ packages/client/src/gated/index.ts | 14 +-- packages/client/src/index.ts | 38 ++----- packages/client/typedoc.json | 3 +- packages/react-native/README.md | 73 ++++++++++++- packages/react-native/src/LensProvider.tsx | 74 +++++++++++++ packages/react-native/src/index.ts | 76 +------------ packages/react-native/src/storage/index.ts | 6 ++ packages/react-native/typedoc.json | 4 +- packages/react-web/README.md | 95 ++++++++++++++++- packages/react-web/src/LensProvider.tsx | 15 +-- packages/react-web/src/inbox/index.ts | 4 +- packages/react-web/src/index.ts | 100 +----------------- packages/react-web/typedoc.json | 2 +- .../{LensProvider.tsx => BaseProvider.tsx} | 16 +-- packages/react/src/config.ts | 20 ++-- packages/react/src/index.ts | 29 ++--- packages/react/src/misc/useModuleMetadata.ts | 10 +- packages/react/src/misc/useResolveAddress.ts | 2 +- packages/react/src/misc/useValidateHandle.ts | 2 +- .../react/src/misc/useWasWalletInvited.ts | 4 +- .../src/publication/useReportPublication.ts | 7 -- packages/react/src/shared.tsx | 8 +- .../adapters/AbstractContractCallGateway.ts | 4 +- .../CreateProfileTransactionGateway.ts | 4 +- .../adapters/OpenActionGateway.ts | 4 +- .../ApproveTransactionGateway.spec.ts | 4 +- .../CreateProfileTransactionGateway.spec.ts | 4 +- .../__tests__/OpenActionGateway.spec.ts | 4 +- .../adapters/profiles/BlockProfilesGateway.ts | 4 +- .../adapters/profiles/FollowProfileGateway.ts | 4 +- .../adapters/profiles/LinkHandleGateway.ts | 4 +- .../profiles/ProfileMetadataGateway.ts | 4 +- .../profiles/UnblockProfilesGateway.ts | 4 +- .../profiles/UnfollowProfileGateway.ts | 4 +- .../adapters/profiles/UnlinkHandleGateway.ts | 4 +- .../profiles/UpdateFollowPolicyGateway.ts | 4 +- .../profiles/UpdateProfileManagersGateway.ts | 4 +- .../__tests__/BlockProfilesGateway.spec.ts | 4 +- .../__tests__/FollowProfileGateway.spec.ts | 4 +- .../__tests__/LinkHandleGateway.spec.ts | 4 +- .../__tests__/ProfileMetadataGateway.spec.ts | 4 +- .../__tests__/UnblockProfilesGateway.spec.ts | 4 +- .../__tests__/UnfollowProfileGateway.spec.ts | 4 +- .../__tests__/UnlinkHandleGateway.spec.ts | 4 +- .../UpdateFollowPolicyGateway.spec.ts | 4 +- .../CreateOnChainCommentGateway.ts | 4 +- .../CreateOnChainMirrorGateway.ts | 4 +- .../publications/CreateOnChainPostGateway.ts | 4 +- .../publications/CreateOnChainQuoteGateway.ts | 4 +- .../CreateOnChainCommentGateway.spec.ts | 4 +- .../CreateOnChainMirrorGateway.spec.ts | 4 +- .../CreateOnChainPostGateway.spec.ts | 4 +- .../CreateOnChainQuoteGateway.spec.ts | 4 +- .../react/src/transactions/useClaimHandle.ts | 9 +- packages/react/tsdoc.json | 4 + pnpm-lock.yaml | 83 +++++++++------ typedoc.base.json | 4 +- typedoc.json | 12 ++- 65 files changed, 536 insertions(+), 390 deletions(-) create mode 100644 .changeset/neat-moons-study.md create mode 100644 assets/docs.css create mode 100644 packages/react-native/src/LensProvider.tsx create mode 100644 packages/react-native/src/storage/index.ts rename packages/react/src/{LensProvider.tsx => BaseProvider.tsx} (71%) create mode 100644 packages/react/tsdoc.json diff --git a/.changeset/neat-moons-study.md b/.changeset/neat-moons-study.md new file mode 100644 index 0000000000..73fd98e3b2 --- /dev/null +++ b/.changeset/neat-moons-study.md @@ -0,0 +1,8 @@ +--- +"@lens-protocol/react-native": patch +"@lens-protocol/react-web": patch +"@lens-protocol/client": patch +"@lens-protocol/react": patch +--- + +**fix:** TSDoc and better exporting of shared parts diff --git a/assets/docs.css b/assets/docs.css new file mode 100644 index 0000000000..a9b6581d0f --- /dev/null +++ b/assets/docs.css @@ -0,0 +1,9 @@ +@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=SF+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap"); + +:root, +:root[data-theme="light"], +:root[data-theme="dark"] { + --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, + "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol" !important; + --font-mono: "SF Mono", "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, Courier, monospace !important; +} diff --git a/package.json b/package.json index 5717020716..4b0fb81b4c 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,13 @@ }, "devDependencies": { "@changesets/cli": "^2.26.2", - "@mxssfd/typedoc-theme": "^1.1.3", "@preconstruct/cli": "^2.8.1", "prettier": "^2.8.8", "rimraf": "^4.4.1", "turbo": "^1.10.16", - "typedoc": "^0.25.3", + "typedoc": "^0.25.8", + "typedoc-material-theme": "^1.0.2", + "typedoc-plugin-extras": "^3.0.0", "typescript": "5.2.2" }, "resolutions": { diff --git a/packages/client/README.md b/packages/client/README.md index 54d7159d66..dd39735823 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -1,5 +1,53 @@ -# `@lens-protocol/client` +# Lens JavaScript SDK -The official framework-agnostic Lens API Client. +The official framework-agnostic JavaScript SDK for Lens Protocol. + +--- This package enables you to interact with the Lens API via a type safe interface that abstracts away some of the GraphQL intricacies. + +## Documentation + +- [GitHub monorepo](https://github.com/lens-protocol/lens-sdk) +- [Getting Started](https://docs.lens.xyz/docs/lensclient-sdk-1) +- [Reference](https://lens-protocol.github.io/lens-sdk/modules/_lens_protocol_client.html) + +## Quick start + +Install the Lens React Native SDK package using your package manager of choice: + +| Package Manager | Command | +| :-------------: | :----------------------------------------- | +| npm | `npm install @lens-protocol/client@latest` | +| yarn | `yarn add @lens-protocol/client@latest` | +| pnpm | `pnpm add @lens-protocol/client@latest` | + +Development configuration example: + +```ts +import { LensClient, development } from '@lens-protocol/client'; + +const client = new LensClient({ + environment: development, +}); +``` + +Production configuration example: + +```ts +import { LensClient, production } from '@lens-protocol/client'; + +const client = new LensClient({ + environment: production, +}); +``` + +In a browser-based implementation you can use the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API) to persist authentication state. + +```ts +const client = new LensClient({ + environment: production, + + storage: window.localStorage, +}); +``` diff --git a/packages/client/package.json b/packages/client/package.json index 443b3b1aff..3a9ca7c20a 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -115,5 +115,10 @@ }, "peerDependencies": { "@lens-protocol/metadata": "^1.0.0" + }, + "peerDependenciesMeta": { + "@lens-protocol/metadata": { + "optional": true + } } } diff --git a/packages/client/src/LensClient.ts b/packages/client/src/LensClient.ts index dbe8e23e78..547a651a25 100644 --- a/packages/client/src/LensClient.ts +++ b/packages/client/src/LensClient.ts @@ -24,6 +24,8 @@ import { /** * LensClient configuration + * + * @group LensClient */ export type LensClientConfig = { /** diff --git a/packages/client/src/gated/LensClient.ts b/packages/client/src/gated/LensClient.ts index 1b353b04df..dacc167d19 100644 --- a/packages/client/src/gated/LensClient.ts +++ b/packages/client/src/gated/LensClient.ts @@ -10,6 +10,11 @@ import { InMemoryStorageProvider } from '@lens-protocol/storage'; import * as core from '../LensClient'; import { Gated } from './Gated'; +/** + * The configuration for the LensClient + * + * @group LensClient + */ export type LensClientConfig = core.LensClientConfig & { /** * The authentication configuration to use for authenticating with the Lit Protocol network. @@ -73,6 +78,8 @@ export type LensClientConfig = core.LensClientConfig & { * signer: await provider.getSigner(), * }); * ``` + * + * @group LensClient */ export class LensClient extends core.LensClient { private _gated: Gated; diff --git a/packages/client/src/gated/index.ts b/packages/client/src/gated/index.ts index bed60767cd..65d7bcdd89 100644 --- a/packages/client/src/gated/index.ts +++ b/packages/client/src/gated/index.ts @@ -12,18 +12,18 @@ * * ## Quick start * - * Install: + * Install the required peer dependencies. * * ```bash - * npm install zod @lens-protocol/metadata@latest @lens-protocol/client@alpha + * npm install zod @lens-protocol/metadata@latest * * # OR * - * yarn add zod @lens-protocol/metadata@latest @lens-protocol/client@alpha + * yarn add zod @lens-protocol/metadata@latest * * # OR * - * pnpm add zod @lens-protocol/metadata@latest @lens-protocol/client@alpha + * pnpm add zod @lens-protocol/metadata@latest * ``` * * Typical NodeJS setup: @@ -190,19 +190,19 @@ * * @module Gated */ -import { LensClientConfig, LensClient } from './LensClient'; +import { LensClient, LensClientConfig } from './LensClient'; export * from '../index'; export * from './Gated'; // NOTE: local exports takes priority over package exports, basically overriding the LensClient and // see https://github.com/systemjs/systemjs/issues/1031#issuecomment-171262430 -export type { LensClientConfig }; export { LensClient }; +export type { LensClientConfig }; export { isEncryptedPublicationMetadata } from '@lens-protocol/gated-content'; export type { AuthenticationConfig, - ISigner, IEncryptionProvider, + ISigner, } from '@lens-protocol/gated-content'; diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index 7994150ce6..06016b6328 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -1,42 +1,16 @@ /** - * @module Core - * - * @example - * Development example: - * ```ts - * import { LensClient, development } from '@lens-protocol/client'; - * - * const client = new LensClient({ - * environment: development - * }); - * ``` - * - * @example - * Production example: - * ```ts - * import { LensClient, production } from '@lens-protocol/client'; + * The primary entry point of the `@lens-protocol/client` package. * - * const client = new LensClient({ - * environment: production - * }); - * ``` + * See {@link Gated} for token-gated support. * - * @example - * Use [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API) to persist authentication state: - * ```ts - * const client = new LensClient({ - * environment: production, - * - * storage: window.localStorage, - * }); - * ``` + * @module Core */ export * from './LensClient'; +export * from './authentication'; export * from './environments'; export * from './errors'; export * from './graphql'; -export * from './authentication'; export * from './submodules'; // types @@ -54,6 +28,6 @@ export type { Success, } from '@lens-protocol/shared-kernel'; export type { IStorageProvider, InMemoryStorageProvider } from '@lens-protocol/storage'; +export type { PaginatedQueryData, PaginatedResult } from './helpers/buildPaginatedQueryResult'; +export type { AppId, MediaTransformsConfig, QueryParams } from './queryParams'; export type { TypedData, TypedDataResponse } from './types'; -export type { MediaTransformsConfig, AppId, QueryParams } from './queryParams'; -export type { PaginatedResult, PaginatedQueryData } from './helpers/buildPaginatedQueryResult'; diff --git a/packages/client/typedoc.json b/packages/client/typedoc.json index 962fb71be6..5c6695e80f 100644 --- a/packages/client/typedoc.json +++ b/packages/client/typedoc.json @@ -3,5 +3,6 @@ "extends": ["../../typedoc.base.json"], "entryPoints": ["src/index.ts", "src/gated/index.ts"], "intentionallyNotExported": ["Environment", "Typename", "PickByTypename"], - "groupOrder": ["LensClient", "LensClient Modules", "Variables", "Functions"] + "groupOrder": ["LensClient", "LensClient Modules", "Variables", "Functions"], + "readme": "./README.md" } diff --git a/packages/react-native/README.md b/packages/react-native/README.md index ce67b67ac0..d77d409128 100644 --- a/packages/react-native/README.md +++ b/packages/react-native/README.md @@ -1,11 +1,78 @@ -# `@lens-protocol/react-native` +# Lens React Native SDK The official Lens Protocol React bindings for React Native. +--- + This package enables you to build mobile applications on top of the Lens Protocol using React Native. ## Documentation - [GitHub monorepo](https://github.com/lens-protocol/lens-sdk) -- [Getting Started](https://lens-protocol.github.io/lens-sdk/modules/_lens_protocol_react_web.html#md:quick-start) -- [SDK Reference](https://lens-protocol.github.io/lens-sdk/modules/_lens_protocol_react_web.html) +- [Reference](https://lens-protocol.github.io/lens-sdk/modules/_lens_protocol_react_native.html) + +## Quick start + +Install the Lens React Native SDK package using your package manager of choice: + +| Package Manager | Command | +| :-------------: | :----------------------------------------------- | +| npm | `npm install @lens-protocol/react-native@latest` | +| yarn | `yarn add @lens-protocol/react-native@latest` | +| pnpm | `pnpm add @lens-protocol/react-native@latest` | + +First we need to create so-called bindings. Bindings are just an object implementing the `IBindings` interface. This is used by the Lens SDK to access the Signer and the Provider. + +In this example we will limit ourselves to the bare minimum and we will use the `ethers.js` library to create the bindings. + +```ts +// wallet.ts +import { IBindings } from '@lens-protocol/react-native'; +import { providers, Wallet } from 'ethers'; + +const provider = new providers.InfuraProvider('maticmum'); +const wallet = new Wallet('', provider); + +export const bindings: IBindings = { + getProvider: async () => provider, + getSigner: async () => wallet, +}; +``` + +Create the `LensConfig`. In this example we will use `react-native-mmkk` as underlying storage. You can use any storage you want as long as it implements the `IStorageProvider` interface. + +First install the `react-native-mmkv` package: + +| Package Manager | Command | +| :-------------: | :------------------------------ | +| npm | `npm install react-native-mmkv` | +| yarn | `yarn add react-native-mmkv` | +| pnpm | `pnpm add react-native-mmkv` | + +Create the `LensConfig` object: + +```ts +import { LensConfig, development } from '@lens-protocol/react-web'; +import { storage } from '@lens-protocol/react-web/storage/mmkv'; +import { bindings } from './wallet.ts'; + +const lensConfig: LensConfig = { + bindings, + environment: development, + storage: storage(), +}; +``` + +Wrap your app with the `` and pass the `LensConfig` as a prop. + +```tsx +import { LensProvider } from '@lens-protocol/react-web'; + +function App() { + return ( + + + + ); +} +``` diff --git a/packages/react-native/src/LensProvider.tsx b/packages/react-native/src/LensProvider.tsx new file mode 100644 index 0000000000..68bde72624 --- /dev/null +++ b/packages/react-native/src/LensProvider.tsx @@ -0,0 +1,74 @@ +import { BaseProvider, EnvironmentConfig, IBindings, QueryParams } from '@lens-protocol/react'; +import { ILogger } from '@lens-protocol/shared-kernel'; +import { IObservableStorageProvider, IStorageProvider } from '@lens-protocol/storage'; +import { ReactNode } from 'react'; + +/** + * `` configuration + */ +export type LensConfig = { + /** + * Provides integration with the ethers.js Signer and Provider + */ + bindings: IBindings; + /** + * The environment to use. See {@link production} or {@link development}. + */ + environment: EnvironmentConfig; + /** + * The logger interface to use when something worth logging happens + * + * @defaultValue `ConsoleLogger`, an internal implementation of `ILogger` interface that logs to the console + */ + logger?: ILogger; + /** + * Enable debug mode. Disable gas estimation on self-funded transactions. + * + * @defaultValue `false` + */ + debug?: boolean; + /** + * The storage provider to use. + * + * If a implementation of {@link IObservableStorageProvider} is provided, + * the provider will be used to subscribe to changes in the storage. + */ + storage: IStorageProvider | IObservableStorageProvider; + /** + * The common query params allow you customize some aspect of the returned data. + */ + params?: QueryParams; + /** + * The value of the `Origin` HTTP header to use when making requests to the Lens API. + * + * @example + * ```md + * https://example.xyz + * ``` + * + * @defaultValue if not provided, the requests will be made without the `Origin` header. + */ + origin?: string; +}; + +/** + * props + */ +export type LensProviderProps = { + /** + * The children to render + */ + children: ReactNode; + /** + * The configuration for the Lens SDK + */ + config: LensConfig; +}; + +/** + * Manages the lifecycle and internal state of the Lens SDK + * + * @group Components + * @param props - {@link LensProviderProps} + */ +export const LensProvider = BaseProvider; diff --git a/packages/react-native/src/index.ts b/packages/react-native/src/index.ts index 4cd630e034..0c1b5b3141 100644 --- a/packages/react-native/src/index.ts +++ b/packages/react-native/src/index.ts @@ -1,79 +1,11 @@ /** - * ## Quick start + * The primary entry point of the `@lens-protocol/react-native` package. * - * Install: + * See {@link Storage} for built-in storage options. * - * | Package Manager | Command | - * |:---------------:|:------- | - * | npm | `npm install @lens-protocol/react-native@latest` | - * | yarn | `yarn add @lens-protocol/react-native@latest` | - * | pnpm | `pnpm add @lens-protocol/react-native@latest` | - * - * First we need to create so-called bindings. Bindings are just an object implementing the {@link IBindings} interface. This is used by the Lens SDK to access the Signer and the Provider. - * - * In this example we will limit ourselves to the bare minimum and we will use the `ethers.js` library to create the bindings. - * - * ```ts - * // wallet.ts - * import { IBindings } from '@lens-protocol/react-native'; - * import { providers, Wallet } from 'ethers'; - * - * const provider = new providers.InfuraProvider('maticmum'); - * const wallet = new Wallet('', provider); - * - * export function bindings(): IBindings { - * return { - * getProvider: async () => provider, - * getSigner: async () => wallet, - * }; - * } - * ``` - * - * Create the {@link LensConfig}. In this example we will use `react-native-mmkk` as underlying storage. You can use any storage you want as long as it implements the {@link IStorageProvider} interface. - * - * First install the `react-native-mmkv` package: - * - * | Package Manager | Command | - * |:---------------:|:------- | - * | npm | `npm install react-native-mmkv` | - * | yarn | `yarn add react-native-mmkv` | - * | pnpm | `pnpm add react-native-mmkv` | - * - * Create the `LensConfig` object: - * - * ```ts - * import { LensConfig, development } from '@lens-protocol/react-web'; - * import { storage } from '@lens-protocol/react-web/storage/mmkv'; - * import { bindings } from './wallet.ts'; - * - * const lensConfig: LensConfig = { - * bindings: bindings(), - * environment: development, - * storage: storage(), - * }; - * ``` - * - * Wrap your app with the {@link LensProvider | ``} and pass the `LensConfig` as a prop. - * - * ```tsx - * import { LensProvider } from '@lens-protocol/react-web'; - * - * function App() { - * return ( - * - * - * - * ); - * } - * ``` - * - * @module + * @module Core */ export * from '@lens-protocol/react'; -// NOTE: local exports takes priority over package exports, basically overriding the hooks with same names from @lens-protocol/react -// see https://github.com/systemjs/systemjs/issues/1031#issuecomment-171262430 - -// Shadows the types from @lens-protocol/react so that they cannot be used nor surfaced in reference docs for @lens-protocol/react-web -export type EncryptionConfig = never; +export * from './LensProvider'; diff --git a/packages/react-native/src/storage/index.ts b/packages/react-native/src/storage/index.ts new file mode 100644 index 0000000000..b221e2beaf --- /dev/null +++ b/packages/react-native/src/storage/index.ts @@ -0,0 +1,6 @@ +/** + * The secondary `/storage` entrypoint provides a set of storage options for use with the Lens React Native SDK. + * + * @module Storage + */ +export * as mmkv from './mmkv'; diff --git a/packages/react-native/typedoc.json b/packages/react-native/typedoc.json index bf79e1a80a..1b87fd276f 100644 --- a/packages/react-native/typedoc.json +++ b/packages/react-native/typedoc.json @@ -1,8 +1,8 @@ { "tsconfig": "./tsconfig.json", "extends": ["../../typedoc.base.json"], - "entryPoints": ["src/index.ts"], - "readme": "none", + "entryPoints": ["src/index.ts", "src/storage/index.ts"], + "readme": "./README.md", "categorizeByGroup": true, "groupOrder": [ "Hooks", diff --git a/packages/react-web/README.md b/packages/react-web/README.md index 532ce2dcd6..e646d9d0cd 100644 --- a/packages/react-web/README.md +++ b/packages/react-web/README.md @@ -1,14 +1,103 @@ -# `@lens-protocol/react-web` +# Lens React Web SDK The official Lens Protocol React bindings for web applications. +--- + This package enables you to build web applications on top of the Lens Protocol using React. ## Documentation - [GitHub monorepo](https://github.com/lens-protocol/lens-sdk) -- [Getting Started](https://lens-protocol.github.io/lens-sdk/modules/_lens_protocol_react_web.html#md:quick-start) -- [SDK Reference](https://lens-protocol.github.io/lens-sdk/modules/_lens_protocol_react_web.html) +- [Getting Started](https://docs.lens.xyz/docs/react-hooks-sdk-v2) +- [Reference](https://lens-protocol.github.io/lens-sdk/modules/_lens_protocol_react_web.html) + +## Quick start + +Install the Lens React Web SDK package using your package manager of choice: + +| Package Manager | Command | +| :-------------: | :-------------------------------------------- | +| npm | `npm install @lens-protocol/react-web@latest` | +| yarn | `yarn add @lens-protocol/react-web@latest` | +| pnpm | `pnpm add @lens-protocol/react-web@latest` | + +In the following examples we will show you integration with Wagmi and we will explain later how to integrate other libraries via custom bindings. + +Install the Lens Wagmi bindings package and its peer dependencies. + +| Package Manager | Command | +| :-------------: | :----------------------------------------------------------------------------------- | +| npm | `npm install viem@2 wagmi@2 @tanstack/react-query@5 @lens-protocol/wagmi@latest` | +| yarn | `yarn add viem@2 viem@2 wagmi@2 @tanstack/react-query@5 @lens-protocol/wagmi@latest` | +| pnpm | `pnpm add viem@2 viem@2 wagmi@2 @tanstack/react-query@5 @lens-protocol/wagmi@latest` | + +Follow the [Wagmi documentation](https://wagmi.sh/react/getting-started#create-config) to create the Wagmi configuration. + +```ts +import { createConfig, http } from 'wagmi'; +import { polygon } from 'wagmi/chains'; + +const wagmiConfig = createConfig({ + chains: [polygon], + transports: { + [polygon.id]: http(), + }, +}); +``` + +Next, use this configuration with the `bindings` from the `@lens-protocol/wagmi` package to generate the [LensConfig](https://lens-protocol.github.io/lens-sdk/types/_lens_protocol_react_web.index.LensConfig.html) object. + +```ts +import { LensConfig, production } from '@lens-protocol/react-web'; +import { bindings } from '@lens-protocol/wagmi'; + +const lensConfig: LensConfig = { + environment: production, + bindings: bindings(wagmiConfig), +}; +``` + +Now, wrap your app with the `` component and pass the `LensConfig` object you created earlier. + +```tsx +import { LensProvider } from '@lens-protocol/react-web'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { WagmiProvider } from 'wagmi'; + +const queryClient = new QueryClient(); + +function App() { + return ( + + + + + + + + ); +} +``` + +### Custom bindings + +You can create custom bindings for your own `Signer` and `Provider` by implementing the {@link IBindings} interface. + +An example of how to create custom bindings for a `Wallet` from `ethers.js` + +```ts +import { InfuraProvider, Wallet } from 'ethers'; +import { IBindings } from '@lens-protocol/react-web'; + +const provider = new providers.InfuraProvider('maticmum'); +const wallet = new Wallet('', provider); + +const bindings: IBindings = { + getProvider: () => provider, + getSigner: () => wallet, +}; +``` ## Troubleshooting diff --git a/packages/react-web/src/LensProvider.tsx b/packages/react-web/src/LensProvider.tsx index d76a2d3bae..5f782eb0b9 100644 --- a/packages/react-web/src/LensProvider.tsx +++ b/packages/react-web/src/LensProvider.tsx @@ -1,10 +1,5 @@ -import { - EnvironmentConfig, - IBindings, - LensProvider as LensProviderBase, - QueryParams, -} from '@lens-protocol/react'; -import type { LensConfig as LensConfigBase } from '@lens-protocol/react'; +import type { BaseConfig } from '@lens-protocol/react'; +import { BaseProvider, EnvironmentConfig, IBindings, QueryParams } from '@lens-protocol/react'; import { ILogger } from '@lens-protocol/shared-kernel'; import { IObservableStorageProvider, IStorageProvider } from '@lens-protocol/storage'; import { ReactNode, useState } from 'react'; @@ -46,8 +41,6 @@ export type LensConfig = { storage?: IStorageProvider | IObservableStorageProvider; /** * The common query params allow you to customize some aspect of the returned data. - * - * @defaultValue see individual fields of {@link QueryParams} */ params?: QueryParams; }; @@ -94,10 +87,10 @@ const storage = localStorage(); * ``` */ export function LensProvider({ config, ...props }: LensProviderProps) { - const [resolvedConfig] = useState(() => ({ + const [resolvedConfig] = useState(() => ({ ...config, storage: config.storage ?? storage, })); - return ; + return ; } diff --git a/packages/react-web/src/inbox/index.ts b/packages/react-web/src/inbox/index.ts index 2ec5ef3de0..049483ab6d 100644 --- a/packages/react-web/src/inbox/index.ts +++ b/packages/react-web/src/inbox/index.ts @@ -1,7 +1,5 @@ /** - * ## Quick start - * - * This folder provides a set of hooks to help integrate XMTP SDK features with the Lens SDK. + * The secondary `/inbox` entrypoint provides a set of hooks to help integrate XMTP SDK features with the Lens SDK. * The hooks are intended to be used together with hooks provided by `@xmtp/react-sdk` package. * You can find more in their [GitHub repository](https://github.com/xmtp/xmtp-web/tree/main/packages/react-sdk) * diff --git a/packages/react-web/src/index.ts b/packages/react-web/src/index.ts index c0461882d4..939a7bf984 100644 --- a/packages/react-web/src/index.ts +++ b/packages/react-web/src/index.ts @@ -1,105 +1,13 @@ /** - * ## Quick start + * The primary entry point of the `@lens-protocol/react-web` package. * - * Install the Lens React Web SDK package. - * - * | Package Manager | Command | - * |:---------------:|:------- | - * | npm | `npm install @lens-protocol/react-web@latest` | - * | yarn | `yarn add @lens-protocol/react-web@latest` | - * | pnpm | `pnpm add @lens-protocol/react-web@latest` | - * - * In the following examples we will show you integration with Wagmi and we will explain later how to integrate other libraries via custom bindings. - * - * Install the Lens Wagmi bindings package and its peer dependencies. - * - * | Package Manager | Command | - * |:---------------:|:------- | - * | npm | `npm install viem@2 wagmi@2 @tanstack/react-query@5 @lens-protocol/wagmi@latest` | - * | yarn | `yarn add viem@2 viem@2 wagmi@2 @tanstack/react-query@5 @lens-protocol/wagmi@latest` | - * | pnpm | `pnpm add viem@2 viem@2 wagmi@2 @tanstack/react-query@5 @lens-protocol/wagmi@latest` | - * - * Follow the [Wagmi documentation](https://wagmi.sh/react/getting-started#create-config) to create the Wagmi configuration. - * - * ```ts - * import { createConfig, http } from "wagmi"; - * import { polygon } from "wagmi/chains"; - * - * const wagmiConfig = createConfig({ - * chains: [polygon], - * transports: { - * [polygon.id]: http(), - * }, - * }); - * ``` - * - * Next, use this configuration with the `bindings` from the `@lens-protocol/wagmi` package to generate the [LensConfig](https://lens-protocol.github.io/lens-sdk/types/_lens_protocol_react_web.index.LensConfig.html) object. - * - * - * ```ts - * import { LensConfig, production } from "@lens-protocol/react-web"; - * import { bindings } from "@lens-protocol/wagmi"; - * - * const lensConfig: LensConfig = { - * environment: production, - * bindings: bindings(wagmiConfig), - * }; - * ``` - * - * Now, wrap your app with the `` component and pass the `LensConfig` object you created earlier. - * - * ```tsx - * import { LensProvider } from '@lens-protocol/react-web'; - * import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; - * import { WagmiProvider } from "wagmi"; - * - * const queryClient = new QueryClient(); - * - * function App() { - * return ( - * - * - * - * - * - * - * - * ); - * } - * ``` - * - * ### Custom bindings - * - * You can create custom bindings for your own `Signer` and `Provider` by implementing the {@link IBindings} interface. - * - * @example - * An example of how to create custom bindings for a `Wallet` from `ethers.js` - * ```ts - * import { InfuraProvider, Wallet } from 'ethers'; - * import { IBindings } from '@lens-protocol/react-web'; - * - * const provider = new providers.InfuraProvider('maticmum'); - * const wallet = new Wallet('', provider); - * - * const bindings: IBindings = { - * getProvider: () => provider, - * getSigner: () => wallet - * }; - * ``` + * See {@link Inbox} for DMs support. * * @module Core */ 'use client'; -import { LensConfig, LensProvider, LensProviderProps } from './LensProvider'; - export * from '@lens-protocol/react'; -export * from './storage'; - -// NOTE: local exports takes priority over package exports, basically overriding the hooks with same names from @lens-protocol/react -// see https://github.com/systemjs/systemjs/issues/1031#issuecomment-171262430 -export { LensProvider }; -export type { LensConfig, LensProviderProps }; -// Shadows the types from @lens-protocol/react so that they cannot be used nor surfaced in reference docs for @lens-protocol/react-web -export type EncryptionConfig = never; +export * from './LensProvider'; +export * from './storage'; diff --git a/packages/react-web/typedoc.json b/packages/react-web/typedoc.json index ee3e40f200..5d121e9bce 100644 --- a/packages/react-web/typedoc.json +++ b/packages/react-web/typedoc.json @@ -2,7 +2,7 @@ "tsconfig": "./tsconfig.json", "extends": ["../../typedoc.base.json"], "entryPoints": ["src/index.ts", "src/inbox/index.ts"], - "readme": "none", + "readme": "./README.md", "categorizeByGroup": true, "groupOrder": [ "Hooks", diff --git a/packages/react/src/LensProvider.tsx b/packages/react/src/BaseProvider.tsx similarity index 71% rename from packages/react/src/LensProvider.tsx rename to packages/react/src/BaseProvider.tsx index 15a0afa04f..3d1d868342 100644 --- a/packages/react/src/LensProvider.tsx +++ b/packages/react/src/BaseProvider.tsx @@ -1,13 +1,13 @@ import { ReactNode, useState } from 'react'; import { useBootstrapController } from './authentication/adapters/useBootstrapController'; -import { LensConfig } from './config'; +import { BaseConfig } from './config'; import { createSharedDependencies, SharedDependenciesProvider } from './shared'; /** - * props + * props */ -export type LensProviderProps = { +export type BaseProviderProps = { /** * The children to render */ @@ -15,16 +15,18 @@ export type LensProviderProps = { /** * The configuration for the Lens SDK */ - config: LensConfig; + config: TConfig; }; /** * Manages the lifecycle and internal state of the Lens SDK * - * @group Components - * @param props - {@link LensProviderProps} + * @internal */ -export function LensProvider({ children, ...props }: LensProviderProps) { +export function BaseProvider({ + children, + ...props +}: BaseProviderProps) { const [sharedDependencies] = useState(() => createSharedDependencies(props.config)); useBootstrapController(sharedDependencies); diff --git a/packages/react/src/config.ts b/packages/react/src/config.ts index b191b56283..02ac3e282d 100644 --- a/packages/react/src/config.ts +++ b/packages/react/src/config.ts @@ -4,17 +4,17 @@ import { IObservableStorageProvider, IStorageProvider } from '@lens-protocol/sto import { EnvironmentConfig } from './environments'; import { RequiredSigner } from './wallet/adapters/ConcreteWallet'; -import { IProviderBinding, GetProvider } from './wallet/infrastructure/ProviderFactory'; -import { ISignerBinding, GetSigner } from './wallet/infrastructure/SignerFactory'; +import { GetProvider, IProviderBinding } from './wallet/infrastructure/ProviderFactory'; +import { GetSigner, ISignerBinding } from './wallet/infrastructure/SignerFactory'; export type { - QueryParams, - ILogger, GetProvider, GetSigner, - RequiredSigner, + ILogger, IObservableStorageProvider, IStorageProvider, + QueryParams, + RequiredSigner, }; export { SupportedFiatType } from '@lens-protocol/api-bindings'; @@ -22,9 +22,11 @@ export { SupportedFiatType } from '@lens-protocol/api-bindings'; export interface IBindings extends ISignerBinding, IProviderBinding {} /** - * `` configuration + * `` configuration + * + * @internal */ -export type LensConfig = { +export type BaseConfig = { /** * Provides integration with the ethers.js Signer and Provider */ @@ -53,9 +55,7 @@ export type LensConfig = { */ storage: IStorageProvider | IObservableStorageProvider; /** - * The common query params allows you customize some aspect of the returned data. - * - * @defaultValue see individual fields of {@link QueryParams} + * The common query params allow you customize some aspect of the returned data. */ params?: QueryParams; }; diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index 5b1afc2245..2d9ef27ada 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -13,7 +13,7 @@ /** * Components */ -export * from './LensProvider'; +export * from './BaseProvider'; /** * Hooks @@ -32,16 +32,16 @@ export * from './wallet'; /** * Domain essentials */ +export type { AppId, NftId, ProfileId, PublicationId } from '@lens-protocol/domain/entities'; export { Amount, - WellKnownSymbols, ChainType, + WellKnownSymbols, + erc20, ether, matic, - erc20, usd, } from '@lens-protocol/shared-kernel'; -export type { EvmAddress, Url } from '@lens-protocol/shared-kernel'; export type { AmountValue, Asset, @@ -54,25 +54,26 @@ export type { Erc20Amount, Erc20Info, Ether, - Kind, - NativeType, + EvmAddress, Failure, Fiat, FiatAmount, IEquatableError, + Kind, Matic, + NativeType, PromiseResult, Result, Success, + Url, } from '@lens-protocol/shared-kernel'; -export type { AppId, NftId, ProfileId, PublicationId } from '@lens-protocol/domain/entities'; /** * Config */ export * from './chains'; -export * from './environments'; export * from './config'; +export * from './environments'; /** * Hooks helpers types @@ -97,8 +98,8 @@ export { ComparisonOperatorConditionType, CustomFiltersType, ExploreProfilesOrderByType, - ExplorePublicationsOrderByType, ExplorePublicationType, + ExplorePublicationsOrderByType, FeedEventItemType, FollowModuleType, LimitType, @@ -122,7 +123,7 @@ export { /** * Common errors */ -export { InvariantError } from '@lens-protocol/shared-kernel'; +export { UnspecifiedError } from '@lens-protocol/api-bindings'; export { InsufficientGasError, PendingSigningRequestError, @@ -134,17 +135,17 @@ export { BroadcastingError, BroadcastingErrorReason, } from '@lens-protocol/domain/use-cases/transactions'; -export { NotFoundError } from './NotFoundError'; export { InsufficientAllowanceError, InsufficientFundsError, } from '@lens-protocol/domain/use-cases/wallets'; -export { UnspecifiedError } from '@lens-protocol/api-bindings'; +export { InvariantError } from '@lens-protocol/shared-kernel'; +export { NotFoundError } from './NotFoundError'; /** * Helpers */ -export * from './utils'; +export { erc20Amount } from '@lens-protocol/api-bindings'; export * from './ConsoleLogger'; export { useSharedDependencies } from './shared'; -export { erc20Amount } from '@lens-protocol/api-bindings'; +export * from './utils'; diff --git a/packages/react/src/misc/useModuleMetadata.ts b/packages/react/src/misc/useModuleMetadata.ts index c69348d1be..3e62fee381 100644 --- a/packages/react/src/misc/useModuleMetadata.ts +++ b/packages/react/src/misc/useModuleMetadata.ts @@ -4,17 +4,17 @@ import { useModuleMetadata as useModuleMetadataHook, useModuleMetadataLazyQuery, } from '@lens-protocol/api-bindings'; -import { failure, PromiseResult, success } from '@lens-protocol/shared-kernel'; +import { PromiseResult, failure, success } from '@lens-protocol/shared-kernel'; import { NotFoundError } from '../NotFoundError'; import { useLensApolloClient } from '../helpers/arguments'; import { ReadResult, useReadResult } from '../helpers/reads'; -import { useDeferredTask, UseDeferredTask } from '../helpers/tasks'; +import { UseDeferredTask, useDeferredTask } from '../helpers/tasks'; export type { ModuleMetadataResult }; // export helpers -export { encodeData, decodeData } from '@lens-protocol/blockchain-bindings'; +export { decodeData, encodeData } from '@lens-protocol/blockchain-bindings'; export type { ModuleData, ModuleParam } from '@lens-protocol/blockchain-bindings'; /** @@ -35,7 +35,7 @@ export type UseModuleMetadataArgs = { * const { data, error, loading } = useModuleMetadata(); * ``` * - * @category Misc + * @category Modules * @group Hooks */ export function useModuleMetadata( @@ -71,7 +71,7 @@ export type FetchModuleMetadataArgs = { * ``` * * @experimental This hook is experimental and may change in the future. - * @category Misc + * @category Modules * @group Hooks */ export function useLazyModuleMetadata(): UseDeferredTask< diff --git a/packages/react/src/misc/useResolveAddress.ts b/packages/react/src/misc/useResolveAddress.ts index 5cd8a466ee..e7b447695f 100644 --- a/packages/react/src/misc/useResolveAddress.ts +++ b/packages/react/src/misc/useResolveAddress.ts @@ -36,7 +36,7 @@ import { UseDeferredTask, useDeferredTask } from '../helpers/tasks'; * ``` * * @experimental This hook is experimental and may change in the future. - * @category Misc + * @category Handle * @group Hooks */ export function useResolveAddress(): UseDeferredTask< diff --git a/packages/react/src/misc/useValidateHandle.ts b/packages/react/src/misc/useValidateHandle.ts index a1d622817d..d7f22d5427 100644 --- a/packages/react/src/misc/useValidateHandle.ts +++ b/packages/react/src/misc/useValidateHandle.ts @@ -65,7 +65,7 @@ export type ValidateHandleRequest = { * ``` * * @experimental This hook is experimental and may change in the future. - * @category Misc + * @category Handle * @group Hooks */ export function useValidateHandle(): UseDeferredTask< diff --git a/packages/react/src/misc/useWasWalletInvited.ts b/packages/react/src/misc/useWasWalletInvited.ts index 1933df7f79..5be9d7d2e8 100644 --- a/packages/react/src/misc/useWasWalletInvited.ts +++ b/packages/react/src/misc/useWasWalletInvited.ts @@ -25,7 +25,7 @@ export type UseWasWalletInvitedArgs = AlreadyInvitedCheckRequest; * }); * ``` * - * @category Misc + * @category Wallet * @group Hooks */ export function useWasWalletInvited(args: UseWasWalletInvitedArgs): ReadResult { @@ -64,7 +64,7 @@ export function useWasWalletInvited(args: UseWasWalletInvitedArgs): ReadResult = { ...defaultConfig, ...userConfig }; + const config: Required = { ...defaultConfig, ...userConfig }; // auth api const anonymousApolloClient = createAuthApolloClient({ @@ -187,7 +187,7 @@ export type SharedDependencies = { accessTokenStorage: AccessTokenStorage; activeWallet: ActiveWallet; apolloClient: SafeApolloClient; - config: LensConfig; + config: BaseConfig; credentialsFactory: CredentialsFactory; credentialsGateway: CredentialsGateway; inboxKeyStorage: IStorage; diff --git a/packages/react/src/transactions/adapters/AbstractContractCallGateway.ts b/packages/react/src/transactions/adapters/AbstractContractCallGateway.ts index a05f2869b1..2df29e41af 100644 --- a/packages/react/src/transactions/adapters/AbstractContractCallGateway.ts +++ b/packages/react/src/transactions/adapters/AbstractContractCallGateway.ts @@ -9,7 +9,7 @@ import { Amount, ChainType, Data, EvmAddress } from '@lens-protocol/shared-kerne import { BigNumberish, BytesLike } from 'ethers'; import { v4 } from 'uuid'; -import { LensConfig } from '../../config'; +import { BaseConfig } from '../../config'; import { ITransactionRequest } from '../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../wallet/adapters/IProviderFactory'; import { Eip1559GasPriceEstimator, TransactionExecutionSpeed } from './Eip1559GasPriceEstimator'; @@ -50,7 +50,7 @@ export abstract class AbstractContractCallGateway { constructor( - protected readonly config: LensConfig, + protected readonly config: BaseConfig, private readonly providerFactory: IProviderFactory, ) {} diff --git a/packages/react/src/transactions/adapters/CreateProfileTransactionGateway.ts b/packages/react/src/transactions/adapters/CreateProfileTransactionGateway.ts index ad2b5b6924..f8d7462f27 100644 --- a/packages/react/src/transactions/adapters/CreateProfileTransactionGateway.ts +++ b/packages/react/src/transactions/adapters/CreateProfileTransactionGateway.ts @@ -8,14 +8,14 @@ import { permissionlessCreator } from '@lens-protocol/blockchain-bindings'; import { CreateProfileRequest } from '@lens-protocol/domain/use-cases/profile'; import { Data, EvmAddress } from '@lens-protocol/shared-kernel'; -import { LensConfig } from '../../config'; +import { BaseConfig } from '../../config'; import { IProviderFactory } from '../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from './AbstractContractCallGateway'; export class CreateProfileTransactionGateway extends AbstractContractCallGateway { constructor( private apolloClient: SafeApolloClient, - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, ) { super(config, providerFactory); diff --git a/packages/react/src/transactions/adapters/OpenActionGateway.ts b/packages/react/src/transactions/adapters/OpenActionGateway.ts index af7952110b..cc48d2bb9d 100644 --- a/packages/react/src/transactions/adapters/OpenActionGateway.ts +++ b/packages/react/src/transactions/adapters/OpenActionGateway.ts @@ -31,7 +31,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../config'; +import { BaseConfig } from '../../config'; import { UnsignedProtocolCall } from '../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from './AbstractContractCallGateway'; @@ -50,7 +50,7 @@ export class OpenActionGateway IDelegatedTransactionGateway { constructor( - config: LensConfig, + config: BaseConfig, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, providerFactory: IProviderFactory, diff --git a/packages/react/src/transactions/adapters/__tests__/ApproveTransactionGateway.spec.ts b/packages/react/src/transactions/adapters/__tests__/ApproveTransactionGateway.spec.ts index 9e15371754..0c13332d9b 100644 --- a/packages/react/src/transactions/adapters/__tests__/ApproveTransactionGateway.spec.ts +++ b/packages/react/src/transactions/adapters/__tests__/ApproveTransactionGateway.spec.ts @@ -10,7 +10,7 @@ import { import { BigNumber, constants, providers, utils } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { mockIProviderFactory } from '../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../AbstractContractCallGateway'; import { ApproveTransactionGateway } from '../ApproveTransactionGateway'; @@ -23,7 +23,7 @@ function setupApproveTransactionGateway({ request: TokenAllowanceRequest; provider: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const providerFactory = mockIProviderFactory({ chainType: request.amount.asset.chainType, provider, diff --git a/packages/react/src/transactions/adapters/__tests__/CreateProfileTransactionGateway.spec.ts b/packages/react/src/transactions/adapters/__tests__/CreateProfileTransactionGateway.spec.ts index 653383b2bb..935f9d6671 100644 --- a/packages/react/src/transactions/adapters/__tests__/CreateProfileTransactionGateway.spec.ts +++ b/packages/react/src/transactions/adapters/__tests__/CreateProfileTransactionGateway.spec.ts @@ -18,7 +18,7 @@ import { deployMockContract } from 'ethereum-waffle'; import { BigNumber, Wallet, utils } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { staging } from '../../../environments'; import { mockIProviderFactory } from '../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../AbstractContractCallGateway'; @@ -49,7 +49,7 @@ async function setupTestScenario(mocks: MockedResponse[] = []) { // eslint-disable-next-line @typescript-eslint/await-thenable await mockContract.mock.getProfileWithHandleCreationPrice!.returns(utils.parseEther('10')); - const config = mock({ environment: staging }); + const config = mock({ environment: staging }); return new CreateProfileTransactionGateway(apolloClient, config, providerFactory); } diff --git a/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts b/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts index 16b3268ecb..dd151c323f 100644 --- a/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts +++ b/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts @@ -36,7 +36,7 @@ import { mockEvmAddress } from '@lens-protocol/shared-kernel/mocks'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../AbstractContractCallGateway'; @@ -54,7 +54,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ diff --git a/packages/react/src/transactions/adapters/profiles/BlockProfilesGateway.ts b/packages/react/src/transactions/adapters/profiles/BlockProfilesGateway.ts index 7748468f09..d5e46bc591 100644 --- a/packages/react/src/transactions/adapters/profiles/BlockProfilesGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/BlockProfilesGateway.ts @@ -21,7 +21,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -35,7 +35,7 @@ export class BlockProfilesGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/profiles/FollowProfileGateway.ts b/packages/react/src/transactions/adapters/profiles/FollowProfileGateway.ts index 612ec69781..f6de7be790 100644 --- a/packages/react/src/transactions/adapters/profiles/FollowProfileGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/FollowProfileGateway.ts @@ -30,7 +30,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -76,7 +76,7 @@ export class FollowProfileGateway implements IDelegatedTransactionGateway, ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/profiles/LinkHandleGateway.ts b/packages/react/src/transactions/adapters/profiles/LinkHandleGateway.ts index f738e68a46..bee28834b0 100644 --- a/packages/react/src/transactions/adapters/profiles/LinkHandleGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/LinkHandleGateway.ts @@ -21,7 +21,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -35,7 +35,7 @@ export class LinkHandleGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/profiles/ProfileMetadataGateway.ts b/packages/react/src/transactions/adapters/profiles/ProfileMetadataGateway.ts index 2e1b39f1ec..cd1a051dea 100644 --- a/packages/react/src/transactions/adapters/profiles/ProfileMetadataGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/ProfileMetadataGateway.ts @@ -21,7 +21,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -35,7 +35,7 @@ export class ProfileMetadataGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/profiles/UnblockProfilesGateway.ts b/packages/react/src/transactions/adapters/profiles/UnblockProfilesGateway.ts index d5611fc08c..9107055052 100644 --- a/packages/react/src/transactions/adapters/profiles/UnblockProfilesGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/UnblockProfilesGateway.ts @@ -21,7 +21,7 @@ import { import { ChainType, Data, PromiseResult, failure, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -35,7 +35,7 @@ export class UnblockProfilesGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/profiles/UnfollowProfileGateway.ts b/packages/react/src/transactions/adapters/profiles/UnfollowProfileGateway.ts index 3b4b52d9c4..c1677d55ba 100644 --- a/packages/react/src/transactions/adapters/profiles/UnfollowProfileGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/UnfollowProfileGateway.ts @@ -21,7 +21,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -33,7 +33,7 @@ export class UnfollowProfileGateway implements IDelegatedTransactionGateway, ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/profiles/UnlinkHandleGateway.ts b/packages/react/src/transactions/adapters/profiles/UnlinkHandleGateway.ts index bb8ae69f80..1ea18b50fa 100644 --- a/packages/react/src/transactions/adapters/profiles/UnlinkHandleGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/UnlinkHandleGateway.ts @@ -21,7 +21,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -35,7 +35,7 @@ export class UnlinkHandleGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/profiles/UpdateFollowPolicyGateway.ts b/packages/react/src/transactions/adapters/profiles/UpdateFollowPolicyGateway.ts index d592d2fdb7..ae09de4c60 100644 --- a/packages/react/src/transactions/adapters/profiles/UpdateFollowPolicyGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/UpdateFollowPolicyGateway.ts @@ -22,7 +22,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -36,7 +36,7 @@ export class UpdateFollowPolicyGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/profiles/UpdateProfileManagersGateway.ts b/packages/react/src/transactions/adapters/profiles/UpdateProfileManagersGateway.ts index c6fe473bf5..66a318dc29 100644 --- a/packages/react/src/transactions/adapters/profiles/UpdateProfileManagersGateway.ts +++ b/packages/react/src/transactions/adapters/profiles/UpdateProfileManagersGateway.ts @@ -13,7 +13,7 @@ import { UpdateProfileManagersRequest } from '@lens-protocol/domain/use-cases/pr import { ISignedOnChainGateway } from '@lens-protocol/domain/use-cases/transactions'; import { Data } from '@lens-protocol/shared-kernel'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -23,7 +23,7 @@ export class UpdateProfileManagersGateway implements ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private apolloClient: SafeApolloClient, ) { diff --git a/packages/react/src/transactions/adapters/profiles/__tests__/BlockProfilesGateway.spec.ts b/packages/react/src/transactions/adapters/profiles/__tests__/BlockProfilesGateway.spec.ts index 938d19a476..90d8f94bde 100644 --- a/packages/react/src/transactions/adapters/profiles/__tests__/BlockProfilesGateway.spec.ts +++ b/packages/react/src/transactions/adapters/profiles/__tests__/BlockProfilesGateway.spec.ts @@ -15,7 +15,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -30,7 +30,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/profiles/__tests__/FollowProfileGateway.spec.ts b/packages/react/src/transactions/adapters/profiles/__tests__/FollowProfileGateway.spec.ts index 82211e1b30..28c7713ea0 100644 --- a/packages/react/src/transactions/adapters/profiles/__tests__/FollowProfileGateway.spec.ts +++ b/packages/react/src/transactions/adapters/profiles/__tests__/FollowProfileGateway.spec.ts @@ -20,7 +20,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -35,7 +35,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/profiles/__tests__/LinkHandleGateway.spec.ts b/packages/react/src/transactions/adapters/profiles/__tests__/LinkHandleGateway.spec.ts index 8d1aab5c25..a5495063a8 100644 --- a/packages/react/src/transactions/adapters/profiles/__tests__/LinkHandleGateway.spec.ts +++ b/packages/react/src/transactions/adapters/profiles/__tests__/LinkHandleGateway.spec.ts @@ -15,7 +15,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -30,7 +30,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/profiles/__tests__/ProfileMetadataGateway.spec.ts b/packages/react/src/transactions/adapters/profiles/__tests__/ProfileMetadataGateway.spec.ts index fdc8b59707..07066a68c5 100644 --- a/packages/react/src/transactions/adapters/profiles/__tests__/ProfileMetadataGateway.spec.ts +++ b/packages/react/src/transactions/adapters/profiles/__tests__/ProfileMetadataGateway.spec.ts @@ -13,7 +13,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -31,7 +31,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/profiles/__tests__/UnblockProfilesGateway.spec.ts b/packages/react/src/transactions/adapters/profiles/__tests__/UnblockProfilesGateway.spec.ts index 9b7c5629b3..891fd36afa 100644 --- a/packages/react/src/transactions/adapters/profiles/__tests__/UnblockProfilesGateway.spec.ts +++ b/packages/react/src/transactions/adapters/profiles/__tests__/UnblockProfilesGateway.spec.ts @@ -15,7 +15,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -30,7 +30,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/profiles/__tests__/UnfollowProfileGateway.spec.ts b/packages/react/src/transactions/adapters/profiles/__tests__/UnfollowProfileGateway.spec.ts index df04c56fa9..7da1cea5f8 100644 --- a/packages/react/src/transactions/adapters/profiles/__tests__/UnfollowProfileGateway.spec.ts +++ b/packages/react/src/transactions/adapters/profiles/__tests__/UnfollowProfileGateway.spec.ts @@ -15,7 +15,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -30,7 +30,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/profiles/__tests__/UnlinkHandleGateway.spec.ts b/packages/react/src/transactions/adapters/profiles/__tests__/UnlinkHandleGateway.spec.ts index 54ad43bdff..60d0c6fc79 100644 --- a/packages/react/src/transactions/adapters/profiles/__tests__/UnlinkHandleGateway.spec.ts +++ b/packages/react/src/transactions/adapters/profiles/__tests__/UnlinkHandleGateway.spec.ts @@ -15,7 +15,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -30,7 +30,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/profiles/__tests__/UpdateFollowPolicyGateway.spec.ts b/packages/react/src/transactions/adapters/profiles/__tests__/UpdateFollowPolicyGateway.spec.ts index 5c235657ec..c62bd56682 100644 --- a/packages/react/src/transactions/adapters/profiles/__tests__/UpdateFollowPolicyGateway.spec.ts +++ b/packages/react/src/transactions/adapters/profiles/__tests__/UpdateFollowPolicyGateway.spec.ts @@ -15,7 +15,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -30,7 +30,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/publications/CreateOnChainCommentGateway.ts b/packages/react/src/transactions/adapters/publications/CreateOnChainCommentGateway.ts index a03c49624a..0921430c4f 100644 --- a/packages/react/src/transactions/adapters/publications/CreateOnChainCommentGateway.ts +++ b/packages/react/src/transactions/adapters/publications/CreateOnChainCommentGateway.ts @@ -22,7 +22,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -38,7 +38,7 @@ export class CreateOnChainCommentGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/publications/CreateOnChainMirrorGateway.ts b/packages/react/src/transactions/adapters/publications/CreateOnChainMirrorGateway.ts index 371a7a1746..fcb49c330c 100644 --- a/packages/react/src/transactions/adapters/publications/CreateOnChainMirrorGateway.ts +++ b/packages/react/src/transactions/adapters/publications/CreateOnChainMirrorGateway.ts @@ -22,7 +22,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -36,7 +36,7 @@ export class CreateOnChainMirrorGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/publications/CreateOnChainPostGateway.ts b/packages/react/src/transactions/adapters/publications/CreateOnChainPostGateway.ts index 5169ce4340..458c61bdd0 100644 --- a/packages/react/src/transactions/adapters/publications/CreateOnChainPostGateway.ts +++ b/packages/react/src/transactions/adapters/publications/CreateOnChainPostGateway.ts @@ -22,7 +22,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -38,7 +38,7 @@ export class CreateOnChainPostGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/publications/CreateOnChainQuoteGateway.ts b/packages/react/src/transactions/adapters/publications/CreateOnChainQuoteGateway.ts index 4391f48838..0b3e058851 100644 --- a/packages/react/src/transactions/adapters/publications/CreateOnChainQuoteGateway.ts +++ b/packages/react/src/transactions/adapters/publications/CreateOnChainQuoteGateway.ts @@ -22,7 +22,7 @@ import { import { ChainType, Data, PromiseResult, success } from '@lens-protocol/shared-kernel'; import { v4 } from 'uuid'; -import { LensConfig } from '../../../config'; +import { BaseConfig } from '../../../config'; import { UnsignedProtocolCall } from '../../../wallet/adapters/ConcreteWallet'; import { IProviderFactory } from '../../../wallet/adapters/IProviderFactory'; import { AbstractContractCallGateway, ContractCallDetails } from '../AbstractContractCallGateway'; @@ -38,7 +38,7 @@ export class CreateOnChainQuoteGateway ISignedOnChainGateway { constructor( - config: LensConfig, + config: BaseConfig, providerFactory: IProviderFactory, private readonly apolloClient: SafeApolloClient, private readonly transactionFactory: ITransactionFactory, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainCommentGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainCommentGateway.spec.ts index 06478f2611..3e94bed5e7 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainCommentGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainCommentGateway.spec.ts @@ -23,7 +23,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -42,7 +42,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainMirrorGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainMirrorGateway.spec.ts index 29b152d125..cb30f2437c 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainMirrorGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainMirrorGateway.spec.ts @@ -23,7 +23,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -42,7 +42,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainPostGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainPostGateway.spec.ts index f1408508e1..389d6cf0fe 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainPostGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainPostGateway.spec.ts @@ -23,7 +23,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -42,7 +42,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainQuoteGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainQuoteGateway.spec.ts index 97983ce194..077dfe387b 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainQuoteGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainQuoteGateway.spec.ts @@ -23,7 +23,7 @@ import { ChainType } from '@lens-protocol/shared-kernel'; import { providers } from 'ethers'; import { mock } from 'jest-mock-extended'; -import { LensConfig } from '../../../../config'; +import { BaseConfig } from '../../../../config'; import { UnsignedProtocolCall } from '../../../../wallet/adapters/ConcreteWallet'; import { mockIProviderFactory } from '../../../../wallet/adapters/__helpers__/mocks'; import { UnsignedContractCallTransaction } from '../../AbstractContractCallGateway'; @@ -42,7 +42,7 @@ function setupTestScenario({ apolloClient: SafeApolloClient; provider?: providers.JsonRpcProvider; }) { - const config = mock(); + const config = mock(); const transactionFactory = mockITransactionFactory(); const providerFactory = mockIProviderFactory({ chainType: ChainType.POLYGON, diff --git a/packages/react/src/transactions/useClaimHandle.ts b/packages/react/src/transactions/useClaimHandle.ts index a37283626c..628f2abe93 100644 --- a/packages/react/src/transactions/useClaimHandle.ts +++ b/packages/react/src/transactions/useClaimHandle.ts @@ -5,9 +5,9 @@ import { } from '@lens-protocol/api-bindings'; import { TransactionError, TransactionKind } from '@lens-protocol/domain/entities'; import { - ClaimHandleError as GenericClaimHandleError, ClaimHandleRequest, FollowPolicyConfig, + ClaimHandleError as GenericClaimHandleError, } from '@lens-protocol/domain/use-cases/profile'; import { OneOf, invariant } from '@lens-protocol/shared-kernel'; @@ -15,9 +15,10 @@ import { SessionType, useSession } from '../authentication'; import { UseDeferredTask, useDeferredTask } from '../helpers/tasks'; import { useClaimHandleController } from './adapters/useClaimHandleController'; -// re-export constructor and specialized type -export const ClaimHandleError = GenericClaimHandleError; -export type ClaimHandleError = GenericClaimHandleError; +/** + * @privateRemarks Extended class to generate proper documentation. No measurable run-time implications. + */ +export class ClaimHandleError extends GenericClaimHandleError {} export { ClaimProfileWithHandleErrorReasonType }; diff --git a/packages/react/tsdoc.json b/packages/react/tsdoc.json new file mode 100644 index 0000000000..b89839ca22 --- /dev/null +++ b/packages/react/tsdoc.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "extends": ["typedoc/tsdoc.json"] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d16d9c920..3004bce1b3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,9 +15,6 @@ importers: '@changesets/cli': specifier: ^2.26.2 version: 2.26.2 - '@mxssfd/typedoc-theme': - specifier: ^1.1.3 - version: 1.1.3(typedoc@0.25.3) '@preconstruct/cli': specifier: ^2.8.1 version: 2.8.1 @@ -31,8 +28,14 @@ importers: specifier: ^1.10.16 version: 1.10.16 typedoc: - specifier: ^0.25.3 - version: 0.25.3(typescript@5.2.2) + specifier: ^0.25.8 + version: 0.25.8(typescript@5.2.2) + typedoc-material-theme: + specifier: ^1.0.2 + version: 1.0.2(typedoc@0.25.8) + typedoc-plugin-extras: + specifier: ^3.0.0 + version: 3.0.0(typedoc@0.25.8) typescript: specifier: 5.2.2 version: 5.2.2 @@ -59,7 +62,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: ^2.7.6 - version: 2.7.6(typescript@5.2.2)(zod@3.22.4) + version: 2.7.6(typescript@5.2.2) wagmi: specifier: ^2.5.6 version: 2.5.6(@tanstack/react-query@5.18.1)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@2.7.6) @@ -198,7 +201,7 @@ importers: version: 3.0.2 viem: specifier: ^2.7.6 - version: 2.7.6(typescript@5.2.2)(zod@3.22.4) + version: 2.7.6(typescript@5.2.2) wagmi: specifier: ^2.5.6 version: 2.5.6(@tanstack/react-query@5.18.1)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@2.7.6) @@ -1284,7 +1287,7 @@ importers: version: 5.2.2 viem: specifier: ^2.7.6 - version: 2.7.6(typescript@5.2.2)(zod@3.22.4) + version: 2.7.6(typescript@5.2.2) wagmi: specifier: ^2.5.6 version: 2.5.6(@tanstack/react-query@5.18.1)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@2.7.6) @@ -5845,6 +5848,10 @@ packages: read-yaml-file: 1.1.0 dev: true + /@material/material-color-utilities@0.2.7: + resolution: {integrity: sha512-0FCeqG6WvK4/Cc06F/xXMd/pv4FeisI0c1tUpBbfhA2n9Y8eZEv4Karjbmf2ZqQCPUWMrGp8A571tCjizxoTiQ==} + dev: true + /@metamask/eth-json-rpc-provider@1.0.1: resolution: {integrity: sha512-whiUMPlAOrVGmX8aKYVPvlKyG4CpQXiNNyt74vE1xb5sPvmx5oA7B/kOi/JdBvhGQq97U1/AVdXEdk2zkP8qyA==} engines: {node: '>=14.0.0'} @@ -6088,15 +6095,6 @@ packages: '@motionone/dom': 10.16.4 tslib: 2.6.2 - /@mxssfd/typedoc-theme@1.1.3(typedoc@0.25.3): - resolution: {integrity: sha512-/yP5rqhvibMpzXpmw0YLLRCpoj3uVWWlwyJseZXzGxTfiA6/fd1uubUqNoQAi2U19atMDonq8mQc+hlVctrX4g==} - engines: {node: '>= 14'} - peerDependencies: - typedoc: ^0.25.1 - dependencies: - typedoc: 0.25.3(typescript@5.2.2) - dev: true - /@near-js/crypto@0.0.3: resolution: {integrity: sha512-3WC2A1a1cH8Cqrx+0iDjp1ASEEhxN/KHEMENYb0KZH6Hp5bXIY7Akt4quC7JlgJS5ESvEiLa40tS5h0zAhBWGw==} dependencies: @@ -7884,7 +7882,7 @@ packages: '@walletconnect/ethereum-provider': 2.11.1(@types/react@18.2.38)(react@18.2.0) '@walletconnect/modal': 2.6.2(@types/react@18.2.38)(react@18.2.0) typescript: 5.2.2 - viem: 2.7.6(typescript@5.2.2)(zod@3.22.4) + viem: 2.7.6(typescript@5.2.2) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -7924,7 +7922,7 @@ packages: eventemitter3: 5.0.1 mipd: 0.0.5(typescript@5.2.2) typescript: 5.2.2 - viem: 2.7.6(typescript@5.2.2)(zod@3.22.4) + viem: 2.7.6(typescript@5.2.2) zustand: 4.4.1(@types/react@18.2.38)(react@18.2.0) transitivePeerDependencies: - '@types/react' @@ -8656,7 +8654,7 @@ packages: typescript: 5.2.2 zod: 3.22.4 - /abitype@1.0.0(typescript@5.2.2)(zod@3.22.4): + /abitype@1.0.0(typescript@5.2.2): resolution: {integrity: sha512-NMeMah//6bJ56H5XRj8QCV4AwuW6hB6zqz2LnhhLdcWVQOsXki6/Pn3APeqxCma62nXIcmZWdu1DlHWS74umVQ==} peerDependencies: typescript: '>=5.0.4' @@ -8668,7 +8666,6 @@ packages: optional: true dependencies: typescript: 5.2.2 - zod: 3.22.4 /abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} @@ -14851,8 +14848,8 @@ packages: hasBin: true dev: true - /jsonc-parser@3.2.0: - resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} + /jsonc-parser@3.2.1: + resolution: {integrity: sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==} /jsonfile@2.4.0: resolution: {integrity: sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==} @@ -17129,7 +17126,7 @@ packages: /pkg-types@1.0.3: resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} dependencies: - jsonc-parser: 3.2.0 + jsonc-parser: 3.2.1 mlly: 1.4.2 pathe: 1.1.1 @@ -18504,11 +18501,11 @@ packages: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} dev: true - /shiki@0.14.5: - resolution: {integrity: sha512-1gCAYOcmCFONmErGTrS1fjzJLA7MGZmKzrBNX7apqSwhyITJg2O102uFzXUeBxNnEkDA9vHIKLyeKq0V083vIw==} + /shiki@0.14.7: + resolution: {integrity: sha512-dNPAPrxSc87ua2sKJ3H5dQ/6ZaY8RNnaAqK+t0eG7p0Soi2ydiqbGOTaZCqaYvA/uZYfS1LJnemt3Q+mSfcPCg==} dependencies: ansi-sequence-parser: 1.1.1 - jsonc-parser: 3.2.0 + jsonc-parser: 3.2.1 vscode-oniguruma: 1.7.0 vscode-textmate: 8.0.0 dev: true @@ -19750,17 +19747,35 @@ packages: for-each: 0.3.3 is-typed-array: 1.1.12 - /typedoc@0.25.3(typescript@5.2.2): - resolution: {integrity: sha512-Ow8Bo7uY1Lwy7GTmphRIMEo6IOZ+yYUyrc8n5KXIZg1svpqhZSWgni2ZrDhe+wLosFS8yswowUzljTAV/3jmWw==} + /typedoc-material-theme@1.0.2(typedoc@0.25.8): + resolution: {integrity: sha512-/nH/twYeHrnz5sZaaXzYJ85EOgKqnbl1ivzBKmuEAga1dBsARttwQUTPKAT7XrCPD+rRcoqxuCOdXZ6EGiqRQA==} + engines: {node: '>=18.0.0', npm: '>=8.6.0'} + peerDependencies: + typedoc: ^0.25.3 + dependencies: + '@material/material-color-utilities': 0.2.7 + typedoc: 0.25.8(typescript@5.2.2) + dev: true + + /typedoc-plugin-extras@3.0.0(typedoc@0.25.8): + resolution: {integrity: sha512-eiAe3qtm2WbV5owdncpt0zHZPqsNZH2mzNGILPd4zqrvEZie3Et9es4cpGZ+8lHO/SI0pVKwsAj7IuMxPNOdYg==} + peerDependencies: + typedoc: 0.25.x + dependencies: + typedoc: 0.25.8(typescript@5.2.2) + dev: true + + /typedoc@0.25.8(typescript@5.2.2): + resolution: {integrity: sha512-mh8oLW66nwmeB9uTa0Bdcjfis+48bAjSH3uqdzSuSawfduROQLlXw//WSNZLYDdhmMVB7YcYZicq6e8T0d271A==} engines: {node: '>= 16'} hasBin: true peerDependencies: - typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x + typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x dependencies: lunr: 2.3.9 marked: 4.3.0 minimatch: 9.0.3 - shiki: 0.14.5 + shiki: 0.14.7 typescript: 5.2.2 dev: true @@ -20241,7 +20256,7 @@ packages: - utf-8-validate - zod - /viem@2.7.6(typescript@5.2.2)(zod@3.22.4): + /viem@2.7.6(typescript@5.2.2): resolution: {integrity: sha512-43TF0VYcTeNef9dax1/BhqlRLXpAo6HAiQ68hrJ8XRhDOou73nHZEjeFl8Eai4UFFodKhu+PbRUFzuuoixOUfg==} peerDependencies: typescript: '>=5.0.4' @@ -20254,7 +20269,7 @@ packages: '@noble/hashes': 1.3.2 '@scure/bip32': 1.3.2 '@scure/bip39': 1.2.1 - abitype: 1.0.0(typescript@5.2.2)(zod@3.22.4) + abitype: 1.0.0(typescript@5.2.2) isows: 1.0.3(ws@8.13.0) typescript: 5.2.2 ws: 8.13.0 @@ -20360,7 +20375,7 @@ packages: react: 18.2.0 typescript: 5.2.2 use-sync-external-store: 1.2.0(react@18.2.0) - viem: 2.7.6(typescript@5.2.2)(zod@3.22.4) + viem: 2.7.6(typescript@5.2.2) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' diff --git a/typedoc.base.json b/typedoc.base.json index 3cfa4aa8a8..c9f115e5d7 100644 --- a/typedoc.base.json +++ b/typedoc.base.json @@ -6,7 +6,7 @@ "excludeNotDocumented": false, "excludePrivate": true, "excludeProtected": true, - "disableSources": true, - "gitRevision": "develop", + "disableSources": false, + "gitRevision": "main", "hideGenerator": true } diff --git a/typedoc.json b/typedoc.json index dfb0f71173..28b640b9a7 100644 --- a/typedoc.json +++ b/typedoc.json @@ -5,6 +5,14 @@ "name": "Lens SDK Reference", "out": "docs", "readme": "none", - "plugin": ["@mxssfd/typedoc-theme"], - "theme": "my-theme" + "plugin": ["typedoc-material-theme", "typedoc-plugin-extras"], + "themeColor": "#c3e4cd", + "customCss": "assets/docs.css", + "navigation": { + "includeCategories": false, + "includeGroups": true, + "includeFolders": false + }, + "categorizeByGroup": true, + "hideGenerator": true } From 39a3854fb4bda6c593cafd95e6d26a9934b1f23f Mon Sep 17 00:00:00 2001 From: Cesare Naldi Date: Wed, 14 Feb 2024 21:57:04 +0100 Subject: [PATCH 6/6] chore: bumps up versions --- .changeset/pre.json | 3 +++ packages/client/CHANGELOG.md | 11 +++++++++++ packages/client/package.json | 2 +- packages/react-native/CHANGELOG.md | 8 ++++++++ packages/react-native/package.json | 2 +- packages/react-web/CHANGELOG.md | 8 ++++++++ packages/react-web/package.json | 2 +- packages/react/CHANGELOG.md | 6 ++++++ packages/react/package.json | 2 +- packages/wagmi/CHANGELOG.md | 7 +++++++ packages/wagmi/package.json | 2 +- 11 files changed, 48 insertions(+), 5 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 3850ab5246..f36f1a232a 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -76,6 +76,7 @@ "giant-games-type", "gold-dolphins-pump", "gold-radios-hunt", + "gold-wombats-tell", "gorgeous-pigs-kneel", "gorgeous-rice-trade", "grumpy-bugs-sip", @@ -114,6 +115,7 @@ "mighty-planets-retire", "modern-spies-confess", "modern-taxis-share", + "neat-moons-study", "nervous-papayas-design", "new-doors-sip", "new-moons-jog", @@ -180,6 +182,7 @@ "thin-news-pull", "thirty-eyes-act", "three-cougars-pay", + "three-tools-fly", "tidy-kangaroos-bake", "tidy-pants-punch", "tough-snakes-complain", diff --git a/packages/client/CHANGELOG.md b/packages/client/CHANGELOG.md index 9ae172725c..e08e9c2c3d 100644 --- a/packages/client/CHANGELOG.md +++ b/packages/client/CHANGELOG.md @@ -1,5 +1,16 @@ # @lens-protocol/client +## 2.0.0-alpha.32 + +### Minor Changes + +- 1f95547be: **feat:** added `client.wallet.rateLimits` method to fetch the sponsored transaction limits +- 1f95547be: **feat:** Introduced common query params, deprecated `LensClientConfig.mediaTransforms` for `LensClientConfig.params` + +### Patch Changes + +- 7b1cbde5d: **fix:** TSDoc and better exporting of shared parts + ## 2.0.0-alpha.31 ### Patch Changes diff --git a/packages/client/package.json b/packages/client/package.json index 3a9ca7c20a..1d85b316a2 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/client", - "version": "2.0.0-alpha.31", + "version": "2.0.0-alpha.32", "description": "Low level Lens API client", "repository": { "directory": "packages/client", diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index 4c7d99d107..99e84b2a0f 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,5 +1,13 @@ # @lens-protocol/react-native +## 0.1.0-alpha.9 + +### Patch Changes + +- 7b1cbde5d: **fix:** TSDoc and better exporting of shared parts +- Updated dependencies [7b1cbde5d] + - @lens-protocol/react@2.0.0-alpha.32 + ## 0.1.0-alpha.8 ### Minor Changes diff --git a/packages/react-native/package.json b/packages/react-native/package.json index e35235b06c..913f52e022 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.8", + "version": "0.1.0-alpha.9", "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 ae34075310..24e4994341 100644 --- a/packages/react-web/CHANGELOG.md +++ b/packages/react-web/CHANGELOG.md @@ -1,5 +1,13 @@ # @lens-protocol/react-web +## 2.0.0-alpha.32 + +### Patch Changes + +- 7b1cbde5d: **fix:** TSDoc and better exporting of shared parts +- Updated dependencies [7b1cbde5d] + - @lens-protocol/react@2.0.0-alpha.32 + ## 2.0.0-alpha.31 ### Minor Changes diff --git a/packages/react-web/package.json b/packages/react-web/package.json index 2a4ebbc8ee..b23e612854 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.31", + "version": "2.0.0-alpha.32", "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 5dc15c2039..6aa4ac2802 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @lens-protocol/react +## 2.0.0-alpha.32 + +### Patch Changes + +- 7b1cbde5d: **fix:** TSDoc and better exporting of shared parts + ## 2.0.0-alpha.31 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index e593fc7988..b57f68c186 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/react", - "version": "2.0.0-alpha.31", + "version": "2.0.0-alpha.32", "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 8f1cd5e662..d17274daf5 100644 --- a/packages/wagmi/CHANGELOG.md +++ b/packages/wagmi/CHANGELOG.md @@ -1,5 +1,12 @@ # @lens-protocol/wagmi +## 4.0.0-alpha.1 + +### Patch Changes + +- Updated dependencies [7b1cbde5d] + - @lens-protocol/react-web@2.0.0-alpha.32 + ## 4.0.0-alpha.0 ### Major Changes diff --git a/packages/wagmi/package.json b/packages/wagmi/package.json index 309afaa2b7..df825ec172 100644 --- a/packages/wagmi/package.json +++ b/packages/wagmi/package.json @@ -1,6 +1,6 @@ { "name": "@lens-protocol/wagmi", - "version": "4.0.0-alpha.0", + "version": "4.0.0-alpha.1", "description": "wagmi bindings for @lens-protocol/react", "repository": { "directory": "packages/wagmi",