mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
New strategy: - add settings field on FieldMetadata. Contains a boolean isIdField and for numbers, a precision - if idField, the graphql scalar returned will be a GraphQL id. This will allow the app to work even for ids that are not uuid - remove globals dateScalar and numberScalar modes. These were not used - set limit as Integer - check manually in query runner mutations that we send a valid id Todo left: - remove WorkspaceBuildSchemaOptions since this is not used anymore. Will do in another PR --------- Co-authored-by: Thomas Trompette <thomast@twenty.com> Co-authored-by: Weiko <corentin@twenty.com>
42 lines
980 B
TypeScript
42 lines
980 B
TypeScript
import { CaptchaDriverType } from '~/generated/graphql';
|
|
import { ClientConfig } from '~/generated-metadata/graphql';
|
|
|
|
export const mockedClientConfig: ClientConfig = {
|
|
signInPrefilled: true,
|
|
signUpDisabled: false,
|
|
debugMode: false,
|
|
authProviders: {
|
|
google: true,
|
|
password: true,
|
|
magicLink: false,
|
|
microsoft: false,
|
|
__typename: 'AuthProviders',
|
|
},
|
|
telemetry: {
|
|
enabled: false,
|
|
anonymizationEnabled: true,
|
|
__typename: 'Telemetry',
|
|
},
|
|
support: {
|
|
supportDriver: 'front',
|
|
supportFrontChatId: null,
|
|
__typename: 'Support',
|
|
},
|
|
sentry: {
|
|
dsn: 'MOCKED_DSN',
|
|
release: 'MOCKED_RELEASE',
|
|
environment: 'MOCKED_ENVIRONMENT',
|
|
__typename: 'Sentry',
|
|
},
|
|
billing: {
|
|
isBillingEnabled: true,
|
|
billingUrl: '',
|
|
billingFreeTrialDurationInDays: 10,
|
|
__typename: 'Billing',
|
|
},
|
|
captcha: {
|
|
provider: CaptchaDriverType.GoogleRecatpcha,
|
|
siteKey: 'MOCKED_SITE_KEY',
|
|
__typename: 'Captcha',
|
|
},
|
|
};
|