diff --git a/examples/node/scripts/profile/checkIfProfileManagerIsEnabled.ts b/examples/node/scripts/profile/checkIfProfileManagerIsEnabled.ts index cf5d934414..d9eee4749c 100644 --- a/examples/node/scripts/profile/checkIfProfileManagerIsEnabled.ts +++ b/examples/node/scripts/profile/checkIfProfileManagerIsEnabled.ts @@ -6,10 +6,10 @@ async function main() { const lensClient = await getAuthenticatedClientFromEthersWallet(wallet); const profile = await lensClient.profile.fetch({ - profileId: 'your-profile-id', + forProfileId: 'your-profile-id', }); - if (profile.gasless.enabled) { + if (profile.sponsor) { console.log('Profile manager is enabled'); } else { console.log('Profile manager is disabled'); diff --git a/packages/client/src/graphql/fragments.generated.ts b/packages/client/src/graphql/fragments.generated.ts index 74cbf62b0f..bff7e9d50e 100644 --- a/packages/client/src/graphql/fragments.generated.ts +++ b/packages/client/src/graphql/fragments.generated.ts @@ -37,8 +37,6 @@ export type UnknownFollowModuleSettingsFragment = { contract: NetworkAddressFragment; }; -export type GaslessFragment = { enabled: boolean; relay: NetworkAddressFragment | null }; - export type NetworkAddressFragment = { address: string; chainId: string }; export type ImageFragment = { @@ -100,12 +98,13 @@ export type ProfileFieldsFragment = { __typename: 'Profile'; id: string; handle: string | null; + sponsor: boolean; + lensManager: boolean; interests: Array; invitesLeft: number | null; createdAt: string; metadata: { rawURI: string; displayName: string | null; bio: string | null } | null; ownedBy: NetworkAddressFragment; - gasless: GaslessFragment; followModule: | FeeFollowModuleSettingsFragment | RevertFollowModuleSettingsFragment @@ -986,15 +985,6 @@ export const NetworkAddressFragmentDoc = gql` chainId } `; -export const GaslessFragmentDoc = gql` - fragment Gasless on Gasless { - enabled - relay { - ...NetworkAddress - } - } - ${NetworkAddressFragmentDoc} -`; export const Erc20FragmentDoc = gql` fragment Erc20 on Erc20 { name @@ -1084,9 +1074,8 @@ export const ProfileFieldsFragmentDoc = gql` ownedBy { ...NetworkAddress } - gasless { - ...Gasless - } + sponsor + lensManager followModule { ... on FeeFollowModuleSettings { ...FeeFollowModuleSettings @@ -1142,7 +1131,6 @@ export const ProfileFieldsFragmentDoc = gql` createdAt } ${NetworkAddressFragmentDoc} - ${GaslessFragmentDoc} ${FeeFollowModuleSettingsFragmentDoc} ${RevertFollowModuleSettingsFragmentDoc} ${UnknownFollowModuleSettingsFragmentDoc} diff --git a/packages/client/src/graphql/fragments.graphql b/packages/client/src/graphql/fragments.graphql index a2753e1dda..95b08ad32c 100644 --- a/packages/client/src/graphql/fragments.graphql +++ b/packages/client/src/graphql/fragments.graphql @@ -59,13 +59,6 @@ fragment UnknownFollowModuleSettings on UnknownFollowModuleSettings { followModuleReturnData } -fragment Gasless on Gasless { - enabled - relay { - ...NetworkAddress - } -} - fragment NetworkAddress on NetworkAddress { address chainId @@ -199,9 +192,8 @@ fragment ProfileFields on Profile { ownedBy { ...NetworkAddress } - gasless { - ...Gasless - } + sponsor + lensManager followModule { ... on FeeFollowModuleSettings { ...FeeFollowModuleSettings diff --git a/packages/client/src/graphql/types.generated.ts b/packages/client/src/graphql/types.generated.ts index d84939e35d..7aeb2b5a2f 100644 --- a/packages/client/src/graphql/types.generated.ts +++ b/packages/client/src/graphql/types.generated.ts @@ -490,7 +490,6 @@ export enum ImageMimeType { Jpeg = 'JPEG', Jpg = 'JPG', Png = 'PNG', - Svg = 'SVG', SvgXml = 'SVG_XML', Tiff = 'TIFF', Webp = 'WEBP',