mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 04:37:56 +00:00 
			
		
		
		
	Add mutationMaximumRecordAffected to clientConfig (#6039)
We are exposing the server mutationMaximumRecordAffected value via clientConfig so it can be used by the FE. This is a first step for https://github.com/twentyhq/twenty/issues/6025 <img width="610" alt="Screenshot 2024-06-26 at 14 58 26" src="https://github.com/twentyhq/twenty/assets/1834158/9d192976-fd22-45d2-bdaa-a8ff6bb90ca2">
This commit is contained in:
		| @@ -30,6 +30,11 @@ export type Analytics = { | ||||
|   success: Scalars['Boolean']; | ||||
| }; | ||||
|  | ||||
| export type ApiConfig = { | ||||
|   __typename?: 'ApiConfig'; | ||||
|   mutationMaximumRecordAffected: Scalars['Float']; | ||||
| }; | ||||
|  | ||||
| export type ApiKeyToken = { | ||||
|   __typename?: 'ApiKeyToken'; | ||||
|   token: Scalars['String']; | ||||
| @@ -136,6 +141,7 @@ export enum CaptchaDriverType { | ||||
|  | ||||
| export type ClientConfig = { | ||||
|   __typename?: 'ClientConfig'; | ||||
|   api: ApiConfig; | ||||
|   authProviders: AuthProviders; | ||||
|   billing: Billing; | ||||
|   captcha: Captcha; | ||||
| @@ -1229,7 +1235,7 @@ export type UpdateBillingSubscriptionMutation = { __typename?: 'Mutation', updat | ||||
| export type GetClientConfigQueryVariables = Exact<{ [key: string]: never; }>; | ||||
|  | ||||
|  | ||||
| export type GetClientConfigQuery = { __typename?: 'Query', clientConfig: { __typename?: 'ClientConfig', signInPrefilled: boolean, signUpDisabled: boolean, debugMode: boolean, chromeExtensionId?: string | null, authProviders: { __typename?: 'AuthProviders', google: boolean, password: boolean, microsoft: boolean }, billing: { __typename?: 'Billing', isBillingEnabled: boolean, billingUrl?: string | null, billingFreeTrialDurationInDays?: number | null }, telemetry: { __typename?: 'Telemetry', enabled: boolean }, support: { __typename?: 'Support', supportDriver: string, supportFrontChatId?: string | null }, sentry: { __typename?: 'Sentry', dsn?: string | null, environment?: string | null, release?: string | null }, captcha: { __typename?: 'Captcha', provider?: CaptchaDriverType | null, siteKey?: string | null } } }; | ||||
| export type GetClientConfigQuery = { __typename?: 'Query', clientConfig: { __typename?: 'ClientConfig', signInPrefilled: boolean, signUpDisabled: boolean, debugMode: boolean, chromeExtensionId?: string | null, authProviders: { __typename?: 'AuthProviders', google: boolean, password: boolean, microsoft: boolean }, billing: { __typename?: 'Billing', isBillingEnabled: boolean, billingUrl?: string | null, billingFreeTrialDurationInDays?: number | null }, telemetry: { __typename?: 'Telemetry', enabled: boolean }, support: { __typename?: 'Support', supportDriver: string, supportFrontChatId?: string | null }, sentry: { __typename?: 'Sentry', dsn?: string | null, environment?: string | null, release?: string | null }, captcha: { __typename?: 'Captcha', provider?: CaptchaDriverType | null, siteKey?: string | null }, api: { __typename?: 'ApiConfig', mutationMaximumRecordAffected: number } } }; | ||||
|  | ||||
| export type SkipSyncEmailOnboardingStepMutationVariables = Exact<{ [key: string]: never; }>; | ||||
|  | ||||
| @@ -2355,6 +2361,9 @@ export const GetClientConfigDocument = gql` | ||||
|       provider | ||||
|       siteKey | ||||
|     } | ||||
|     api { | ||||
|       mutationMaximumRecordAffected | ||||
|     } | ||||
|     chromeExtensionId | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Weiko
					Weiko