From 43b013ff2f12493b2c84943a304ee8df240ba57f Mon Sep 17 00:00:00 2001 From: Simon Hornby Date: Tue, 27 Feb 2024 14:33:57 +0200 Subject: [PATCH] chore: add a flag for scim (#6361) --- src/lib/__snapshots__/create-config.test.ts.snap | 1 + src/lib/types/experimental.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 860648aa2a..f573a3a4a2 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -134,6 +134,7 @@ exports[`should create default config 1`] = ` "proPlanAutoCharge": false, "responseTimeWithAppNameKillSwitch": false, "scheduledConfigurationChanges": false, + "scimApi": false, "sdkReporting": false, "showInactiveUsers": false, "strictSchemaValidation": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 2d11ebe6f0..ff019e0920 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -51,7 +51,8 @@ export type IFlagKey = | 'userAccessUIEnabled' | 'disableUpdateMaxRevisionId' | 'disablePublishUnannouncedEvents' - | 'sdkReporting'; + | 'sdkReporting' + | 'scimApi'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -252,6 +253,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_DISABLE_SCHEDULED_CACHES, false, ), + scimApi: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_SCIM_API, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = {