unleash-server 5.4.4 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/lib/addons/addon-schema.js +2 -1
- package/dist/lib/addons/addon-schema.js.map +1 -1
- package/dist/lib/addons/datadog-definition.js +22 -7
- package/dist/lib/addons/datadog-definition.js.map +1 -1
- package/dist/lib/addons/datadog.d.ts +7 -1
- package/dist/lib/addons/datadog.js +16 -3
- package/dist/lib/addons/datadog.js.map +1 -1
- package/dist/lib/addons/datadog.test.js +62 -0
- package/dist/lib/addons/datadog.test.js.map +1 -1
- package/dist/lib/addons/index.js +3 -11
- package/dist/lib/addons/index.js.map +1 -1
- package/dist/lib/addons/slack-app-definition.js +5 -24
- package/dist/lib/addons/slack-app-definition.js.map +1 -1
- package/dist/lib/addons/slack-app.d.ts +0 -1
- package/dist/lib/addons/slack-app.js +5 -17
- package/dist/lib/addons/slack-app.js.map +1 -1
- package/dist/lib/addons/slack-app.test.js +39 -25
- package/dist/lib/addons/slack-app.test.js.map +1 -1
- package/dist/lib/addons/slack-definition.js +11 -4
- package/dist/lib/addons/slack-definition.js.map +1 -1
- package/dist/lib/addons/teams-definition.js +5 -4
- package/dist/lib/addons/teams-definition.js.map +1 -1
- package/dist/lib/addons/webhook-definition.js +10 -12
- package/dist/lib/addons/webhook-definition.js.map +1 -1
- package/dist/lib/create-config.js +13 -1
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/create-config.test.js +14 -0
- package/dist/lib/create-config.test.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +23 -5
- package/dist/lib/db/access-store.js +263 -17
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/access-store.test.js +83 -0
- package/dist/lib/db/access-store.test.js.map +1 -0
- package/dist/lib/db/client-applications-store.d.ts +1 -3
- package/dist/lib/db/client-applications-store.js +13 -24
- package/dist/lib/db/client-applications-store.js.map +1 -1
- package/dist/lib/db/event-store.js +1 -0
- package/dist/lib/db/event-store.js.map +1 -1
- package/dist/lib/db/feature-toggle-client-store.js +17 -4
- package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
- package/dist/lib/db/feature-toggle-store.js +1 -1
- package/dist/lib/db/feature-toggle-store.js.map +1 -1
- package/dist/lib/db/group-store.d.ts +4 -2
- package/dist/lib/db/group-store.js +24 -0
- package/dist/lib/db/group-store.js.map +1 -1
- package/dist/lib/db/index.d.ts +1 -2
- package/dist/lib/db/index.js +5 -1
- package/dist/lib/db/index.js.map +1 -1
- package/dist/lib/db/project-stats-store.d.ts +2 -0
- package/dist/lib/db/project-stats-store.js +27 -0
- package/dist/lib/db/project-stats-store.js.map +1 -1
- package/dist/lib/db/project-store.d.ts +7 -1
- package/dist/lib/db/project-store.js +34 -1
- package/dist/lib/db/project-store.js.map +1 -1
- package/dist/lib/error/bad-data-error.d.ts +1 -1
- package/dist/lib/error/index.d.ts +2 -1
- package/dist/lib/error/index.js +3 -1
- package/dist/lib/error/index.js.map +1 -1
- package/dist/lib/error/pattern-error.d.ts +10 -0
- package/dist/lib/error/pattern-error.js +20 -0
- package/dist/lib/error/pattern-error.js.map +1 -0
- package/dist/lib/features/dependent-features/createDependentFeaturesService.d.ts +3 -0
- package/dist/lib/features/dependent-features/createDependentFeaturesService.js +11 -0
- package/dist/lib/features/dependent-features/createDependentFeaturesService.js.map +1 -0
- package/dist/lib/features/dependent-features/dependent-features-controller.d.ts +28 -0
- package/dist/lib/features/dependent-features/dependent-features-controller.js +151 -0
- package/dist/lib/features/dependent-features/dependent-features-controller.js.map +1 -0
- package/dist/lib/features/dependent-features/dependent-features-service.d.ts +11 -0
- package/dist/lib/features/dependent-features/dependent-features-service.js +40 -0
- package/dist/lib/features/dependent-features/dependent-features-service.js.map +1 -0
- package/dist/lib/features/dependent-features/dependent-features-store-type.d.ts +8 -0
- package/dist/lib/features/dependent-features/dependent-features-store-type.js +3 -0
- package/dist/lib/features/dependent-features/dependent-features-store-type.js.map +1 -0
- package/dist/lib/features/dependent-features/dependent-features-store.d.ts +12 -0
- package/dist/lib/features/dependent-features/dependent-features-store.js +56 -0
- package/dist/lib/features/dependent-features/dependent-features-store.js.map +1 -0
- package/dist/lib/features/dependent-features/dependent-features.d.ts +14 -0
- package/dist/lib/features/dependent-features/dependent-features.js +3 -0
- package/dist/lib/features/dependent-features/dependent-features.js.map +1 -0
- package/dist/lib/features/dependent-features/dependent.features.e2e.test.d.ts +1 -0
- package/dist/lib/features/dependent-features/dependent.features.e2e.test.js +82 -0
- package/dist/lib/features/dependent-features/dependent.features.e2e.test.js.map +1 -0
- package/dist/lib/features/dependent-features/fake-dependent-features-store.d.ts +8 -0
- package/dist/lib/features/dependent-features/fake-dependent-features-store.js +22 -0
- package/dist/lib/features/dependent-features/fake-dependent-features-store.js.map +1 -0
- package/dist/lib/features/export-import-toggles/createExportImportService.js +6 -3
- package/dist/lib/features/export-import-toggles/createExportImportService.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-service.d.ts +9 -3
- package/dist/lib/features/export-import-toggles/export-import-service.js +51 -21
- package/dist/lib/features/export-import-toggles/export-import-service.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import.e2e.test.js +120 -50
- package/dist/lib/features/export-import-toggles/export-import.e2e.test.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.d.ts +1 -2
- package/dist/lib/features/export-import-toggles/import-toggles-store-type.d.ts +6 -0
- package/dist/lib/features/export-import-toggles/import-toggles-store.d.ts +2 -1
- package/dist/lib/features/export-import-toggles/import-toggles-store.js +25 -0
- package/dist/lib/features/export-import-toggles/import-toggles-store.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-validation-messages.d.ts +18 -2
- package/dist/lib/features/export-import-toggles/import-validation-messages.js +27 -11
- package/dist/lib/features/export-import-toggles/import-validation-messages.js.map +1 -1
- package/dist/lib/features/feature-naming-pattern/feature-naming-validation.d.ts +14 -0
- package/dist/lib/features/feature-naming-pattern/feature-naming-validation.js +46 -0
- package/dist/lib/features/feature-naming-pattern/feature-naming-validation.js.map +1 -0
- package/dist/lib/features/feature-naming-pattern/feature-naming-validation.test.d.ts +1 -0
- package/dist/lib/features/feature-naming-pattern/feature-naming-validation.test.js +116 -0
- package/dist/lib/features/feature-naming-pattern/feature-naming-validation.test.js.map +1 -0
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +11 -2
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/instance-stats/getActiveUsers.d.ts +9 -0
- package/dist/lib/features/instance-stats/getActiveUsers.e2e.test.d.ts +1 -0
- package/dist/lib/features/instance-stats/getActiveUsers.e2e.test.js +141 -0
- package/dist/lib/features/instance-stats/getActiveUsers.e2e.test.js.map +1 -0
- package/dist/lib/features/instance-stats/getActiveUsers.js +33 -0
- package/dist/lib/features/instance-stats/getActiveUsers.js.map +1 -0
- package/dist/lib/{services → features/instance-stats}/instance-stats-service.d.ts +13 -7
- package/dist/lib/{services → features/instance-stats}/instance-stats-service.js +16 -7
- package/dist/lib/features/instance-stats/instance-stats-service.js.map +1 -0
- package/dist/lib/features/instance-stats/instance-stats-service.test.d.ts +1 -0
- package/dist/lib/{services → features/instance-stats}/instance-stats-service.test.js +6 -5
- package/dist/lib/features/instance-stats/instance-stats-service.test.js.map +1 -0
- package/dist/lib/features/playground/advanced-playground.test.js +2 -3
- package/dist/lib/features/playground/advanced-playground.test.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/variant.d.ts +1 -1
- package/dist/lib/features/playground/generateObjectCombinations.d.ts +1 -1
- package/dist/lib/features/playground/generateObjectCombinations.js +14 -4
- package/dist/lib/features/playground/generateObjectCombinations.js.map +1 -1
- package/dist/lib/features/playground/generateObjectCombinations.test.js +21 -0
- package/dist/lib/features/playground/generateObjectCombinations.test.js.map +1 -1
- package/dist/lib/features/playground/playground-service.d.ts +5 -3
- package/dist/lib/features/playground/playground-service.js +18 -3
- package/dist/lib/features/playground/playground-service.js.map +1 -1
- package/dist/lib/features/playground/playground.d.ts +2 -1
- package/dist/lib/features/playground/playground.js +2 -1
- package/dist/lib/features/playground/playground.js.map +1 -1
- package/dist/lib/features/private-project/createPrivateProjectChecker.d.ts +5 -0
- package/dist/lib/features/private-project/createPrivateProjectChecker.js +22 -0
- package/dist/lib/features/private-project/createPrivateProjectChecker.js.map +1 -0
- package/dist/lib/features/private-project/fakePrivateProjectChecker.d.ts +7 -0
- package/dist/lib/features/private-project/fakePrivateProjectChecker.js +15 -0
- package/dist/lib/features/private-project/fakePrivateProjectChecker.js.map +1 -0
- package/dist/lib/features/private-project/privateProjectChecker.d.ts +10 -0
- package/dist/lib/features/private-project/privateProjectChecker.js +22 -0
- package/dist/lib/features/private-project/privateProjectChecker.js.map +1 -0
- package/dist/lib/features/private-project/privateProjectCheckerType.d.ts +5 -0
- package/dist/lib/features/private-project/privateProjectCheckerType.js +3 -0
- package/dist/lib/features/private-project/privateProjectCheckerType.js.map +1 -0
- package/dist/lib/features/private-project/privateProjectStore.d.ts +18 -0
- package/dist/lib/features/private-project/privateProjectStore.js +70 -0
- package/dist/lib/features/private-project/privateProjectStore.js.map +1 -0
- package/dist/lib/features/private-project/privateProjectStoreType.d.ts +4 -0
- package/dist/lib/features/private-project/privateProjectStoreType.js +3 -0
- package/dist/lib/features/private-project/privateProjectStoreType.js.map +1 -0
- package/dist/lib/features/project/createProjectService.js +5 -8
- package/dist/lib/features/project/createProjectService.js.map +1 -1
- package/dist/lib/features/segment/createSegmentService.js +5 -2
- package/dist/lib/features/segment/createSegmentService.js.map +1 -1
- package/dist/lib/features/segment/segment-controller.d.ts +39 -0
- package/dist/lib/features/segment/segment-controller.js +291 -0
- package/dist/lib/features/segment/segment-controller.js.map +1 -0
- package/dist/lib/metrics.d.ts +1 -1
- package/dist/lib/metrics.js +30 -1
- package/dist/lib/metrics.js.map +1 -1
- package/dist/lib/metrics.test.js +3 -2
- package/dist/lib/metrics.test.js.map +1 -1
- package/dist/lib/middleware/rbac-middleware.d.ts +2 -0
- package/dist/lib/middleware/rbac-middleware.js +2 -0
- package/dist/lib/middleware/rbac-middleware.js.map +1 -1
- package/dist/lib/middleware/secure-headers.js +18 -0
- package/dist/lib/middleware/secure-headers.js.map +1 -1
- package/dist/lib/openapi/index.js +13 -0
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +14 -4
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/addon-type-schema.d.ts +6 -1
- package/dist/lib/openapi/spec/addon-type-schema.js +6 -1
- package/dist/lib/openapi/spec/addon-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/addons-schema.d.ts +8 -3
- package/dist/lib/openapi/spec/addons-schema.js +8 -3
- package/dist/lib/openapi/spec/addons-schema.js.map +1 -1
- package/dist/lib/openapi/spec/admin-segment-schema.d.ts +115 -0
- package/dist/lib/openapi/spec/admin-segment-schema.js +75 -0
- package/dist/lib/openapi/spec/admin-segment-schema.js.map +1 -0
- package/dist/lib/openapi/spec/admin-segment-schema.test.d.ts +1 -0
- package/dist/lib/openapi/spec/admin-segment-schema.test.js +39 -0
- package/dist/lib/openapi/spec/admin-segment-schema.test.js.map +1 -0
- package/dist/lib/openapi/spec/admin-strategies-schema.d.ts +46 -0
- package/dist/lib/openapi/spec/admin-strategies-schema.js +54 -0
- package/dist/lib/openapi/spec/admin-strategies-schema.js.map +1 -0
- package/dist/lib/openapi/spec/admin-strategies-schema.test.d.ts +1 -0
- package/dist/lib/openapi/spec/admin-strategies-schema.test.js +40 -0
- package/dist/lib/openapi/spec/admin-strategies-schema.test.js.map +1 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +51 -6
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +3 -1
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +101 -11
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.js +2 -0
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-request-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +203 -22
- package/dist/lib/openapi/spec/advanced-playground-response-schema.js +2 -0
- package/dist/lib/openapi/spec/advanced-playground-response-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +41 -6
- package/dist/lib/openapi/spec/client-feature-schema.js +9 -0
- package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.d.ts +75 -12
- package/dist/lib/openapi/spec/client-features-schema.js +2 -0
- package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-api-token-schema.d.ts +1 -139
- package/dist/lib/openapi/spec/create-api-token-schema.js +16 -20
- package/dist/lib/openapi/spec/create-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-dependent-feature-schema.d.ts +29 -0
- package/dist/lib/openapi/spec/create-dependent-feature-schema.js +31 -0
- package/dist/lib/openapi/spec/create-dependent-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-feature-naming-pattern-schema.d.ts +29 -0
- package/dist/lib/openapi/spec/create-feature-naming-pattern-schema.js +33 -0
- package/dist/lib/openapi/spec/create-feature-naming-pattern-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/create-strategy-schema.d.ts +15 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js +15 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js +2 -2
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/dependent-feature-schema.d.ts +30 -0
- package/dist/lib/openapi/spec/dependent-feature-schema.js +14 -0
- package/dist/lib/openapi/spec/dependent-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/dora-features-schema.d.ts +20 -0
- package/dist/lib/openapi/spec/dora-features-schema.js +22 -0
- package/dist/lib/openapi/spec/dora-features-schema.js.map +1 -0
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/event-schema.d.ts +3 -3
- package/dist/lib/openapi/spec/events-schema.d.ts +3 -3
- package/dist/lib/openapi/spec/export-query-schema.d.ts +22 -15
- package/dist/lib/openapi/spec/export-query-schema.js +16 -15
- package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +26 -26
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +6 -6
- package/dist/lib/openapi/spec/feature-events-schema.d.ts +3 -3
- package/dist/lib/openapi/spec/feature-schema.d.ts +12 -12
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/feature-variants-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/features-schema.d.ts +24 -24
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +63 -33
- package/dist/lib/openapi/spec/health-overview-schema.js +6 -1
- package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-report-schema.d.ts +63 -33
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +52 -52
- package/dist/lib/openapi/spec/index.d.ts +9 -0
- package/dist/lib/openapi/spec/index.js +9 -0
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/instance-admin-stats-schema.d.ts +42 -0
- package/dist/lib/openapi/spec/instance-admin-stats-schema.js +42 -0
- package/dist/lib/openapi/spec/instance-admin-stats-schema.js.map +1 -1
- package/dist/lib/openapi/spec/parent-feature-options-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/parent-feature-options-schema.js +13 -0
- package/dist/lib/openapi/spec/parent-feature-options-schema.js.map +1 -0
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +5 -5
- package/dist/lib/openapi/spec/playground-request-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +12 -10
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/playground-strategy-schema.js +1 -1
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +12 -12
- package/dist/lib/openapi/spec/project-dora-metrics-schema.d.ts +44 -0
- package/dist/lib/openapi/spec/project-dora-metrics-schema.js +28 -0
- package/dist/lib/openapi/spec/project-dora-metrics-schema.js.map +1 -0
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +63 -33
- package/dist/lib/openapi/spec/project-overview-schema.js +6 -1
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/project-schema.js +1 -1
- package/dist/lib/openapi/spec/project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/projects-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/sdk-context-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/sdk-context-schema.js +1 -0
- package/dist/lib/openapi/spec/sdk-context-schema.js.map +1 -1
- package/dist/lib/openapi/spec/sdk-flat-context-schema.d.ts +46 -0
- package/dist/lib/openapi/spec/sdk-flat-context-schema.js +15 -0
- package/dist/lib/openapi/spec/sdk-flat-context-schema.js.map +1 -0
- package/dist/lib/openapi/spec/search-events-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/segments-schema.d.ts +177 -0
- package/dist/lib/openapi/spec/segments-schema.js +26 -0
- package/dist/lib/openapi/spec/segments-schema.js.map +1 -0
- package/dist/lib/openapi/spec/segments-schema.test.d.ts +1 -0
- package/dist/lib/openapi/spec/segments-schema.test.js +16 -0
- package/dist/lib/openapi/spec/segments-schema.test.js.map +1 -0
- package/dist/lib/openapi/spec/state-schema.d.ts +23 -23
- package/dist/lib/openapi/spec/strategy-variant-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/update-feature-strategy-segments-schema.d.ts +35 -0
- package/dist/lib/openapi/spec/update-feature-strategy-segments-schema.js +37 -0
- package/dist/lib/openapi/spec/update-feature-strategy-segments-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-feature-strategy-segments-schema.test.d.ts +1 -0
- package/dist/lib/openapi/spec/update-feature-strategy-segments-schema.test.js +19 -0
- package/dist/lib/openapi/spec/update-feature-strategy-segments-schema.test.js.map +1 -0
- package/dist/lib/openapi/spec/upsert-segment-schema.d.ts +8 -15
- package/dist/lib/openapi/spec/upsert-segment-schema.js +8 -17
- package/dist/lib/openapi/spec/upsert-segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/upsert-segment-schema.test.d.ts +1 -0
- package/dist/lib/openapi/spec/upsert-segment-schema.test.js +35 -0
- package/dist/lib/openapi/spec/upsert-segment-schema.test.js.map +1 -0
- package/dist/lib/openapi/spec/validate-feature-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js +6 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/variant-schema.js +2 -2
- package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +2 -2
- package/dist/lib/openapi/util/all-of.d.ts +3 -0
- package/dist/lib/openapi/util/all-of.js +34 -0
- package/dist/lib/openapi/util/all-of.js.map +1 -0
- package/dist/lib/openapi/util/openapi-tags.d.ts +46 -58
- package/dist/lib/openapi/util/openapi-tags.js +27 -34
- package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
- package/dist/lib/openapi/util/openapi-tags.test.d.ts +1 -0
- package/dist/lib/openapi/util/openapi-tags.test.js +15 -0
- package/dist/lib/openapi/util/openapi-tags.test.js.map +1 -0
- package/dist/lib/openapi/validate.js +0 -1
- package/dist/lib/openapi/validate.js.map +1 -1
- package/dist/lib/routes/admin-api/archive.d.ts +1 -1
- package/dist/lib/routes/admin-api/archive.js +3 -2
- package/dist/lib/routes/admin-api/archive.js.map +1 -1
- package/dist/lib/routes/admin-api/context.js +2 -1
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/feature.js +2 -1
- package/dist/lib/routes/admin-api/feature.js.map +1 -1
- package/dist/lib/routes/admin-api/index.js +2 -0
- package/dist/lib/routes/admin-api/index.js.map +1 -1
- package/dist/lib/routes/admin-api/instance-admin.d.ts +2 -2
- package/dist/lib/routes/admin-api/instance-admin.js +7 -1
- package/dist/lib/routes/admin-api/instance-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/metrics.d.ts +2 -1
- package/dist/lib/routes/admin-api/metrics.js +2 -1
- package/dist/lib/routes/admin-api/metrics.js.map +1 -1
- package/dist/lib/routes/admin-api/project/api-token.d.ts +2 -1
- package/dist/lib/routes/admin-api/project/api-token.js +12 -3
- package/dist/lib/routes/admin-api/project/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/project/environments.d.ts +2 -1
- package/dist/lib/routes/admin-api/project/environments.js +3 -1
- package/dist/lib/routes/admin-api/project/environments.js.map +1 -1
- package/dist/lib/routes/admin-api/project/index.d.ts +2 -1
- package/dist/lib/routes/admin-api/project/index.js +31 -0
- package/dist/lib/routes/admin-api/project/index.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.d.ts +1 -1
- package/dist/lib/routes/admin-api/strategy.js.map +1 -1
- package/dist/lib/routes/client-api/metrics.js +14 -8
- package/dist/lib/routes/client-api/metrics.js.map +1 -1
- package/dist/lib/routes/client-api/metrics.test.js +27 -0
- package/dist/lib/routes/client-api/metrics.test.js.map +1 -1
- package/dist/lib/routes/controller.d.ts +1 -1
- package/dist/lib/routes/controller.js +17 -10
- package/dist/lib/routes/controller.js.map +1 -1
- package/dist/lib/routes/proxy-api/index.js +5 -0
- package/dist/lib/routes/proxy-api/index.js.map +1 -1
- package/dist/lib/schema/role-schema.js +3 -1
- package/dist/lib/schema/role-schema.js.map +1 -1
- package/dist/lib/schema/role-schema.test.js +1 -1
- package/dist/lib/schema/role-schema.test.js.map +1 -1
- package/dist/lib/segments/segment-service-interface.d.ts +1 -1
- package/dist/lib/services/access-service.d.ts +29 -11
- package/dist/lib/services/access-service.js +53 -10
- package/dist/lib/services/access-service.js.map +1 -1
- package/dist/lib/services/access-service.test.js +2 -1
- package/dist/lib/services/access-service.test.js.map +1 -1
- package/dist/lib/services/addon-service.js +4 -2
- package/dist/lib/services/addon-service.js.map +1 -1
- package/dist/lib/services/addon-service.test.js +65 -0
- package/dist/lib/services/addon-service.test.js.map +1 -1
- package/dist/lib/services/client-metrics/instance-service.d.ts +5 -2
- package/dist/lib/services/client-metrics/instance-service.js +22 -3
- package/dist/lib/services/client-metrics/instance-service.js.map +1 -1
- package/dist/lib/services/client-metrics/instance-service.test.js +5 -4
- package/dist/lib/services/client-metrics/instance-service.test.js.map +1 -1
- package/dist/lib/services/context-service.d.ts +6 -2
- package/dist/lib/services/context-service.js +16 -2
- package/dist/lib/services/context-service.js.map +1 -1
- package/dist/lib/services/feature-service-potentially-stale.test.js +1 -1
- package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -1
- package/dist/lib/services/feature-toggle-service.d.ts +20 -7
- package/dist/lib/services/feature-toggle-service.js +105 -41
- package/dist/lib/services/feature-toggle-service.js.map +1 -1
- package/dist/lib/services/group-service.d.ts +4 -4
- package/dist/lib/services/group-service.js +17 -16
- package/dist/lib/services/group-service.js.map +1 -1
- package/dist/lib/services/index.d.ts +3 -2
- package/dist/lib/services/index.js +31 -17
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/project-schema.js +9 -1
- package/dist/lib/services/project-schema.js.map +1 -1
- package/dist/lib/services/project-service.d.ts +16 -12
- package/dist/lib/services/project-service.js +127 -17
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/services/scheduler-service.d.ts +1 -1
- package/dist/lib/services/scheduler-service.js +3 -3
- package/dist/lib/services/scheduler-service.js.map +1 -1
- package/dist/lib/services/scheduler-service.test.js +15 -15
- package/dist/lib/services/scheduler-service.test.js.map +1 -1
- package/dist/lib/services/segment-service.d.ts +4 -2
- package/dist/lib/services/segment-service.js +17 -10
- package/dist/lib/services/segment-service.js.map +1 -1
- package/dist/lib/services/state-service.test.js +13 -3
- package/dist/lib/services/state-service.test.js.map +1 -1
- package/dist/lib/services/version-service.test.js +3 -0
- package/dist/lib/services/version-service.test.js.map +1 -1
- package/dist/lib/types/events.d.ts +60 -1
- package/dist/lib/types/events.js +65 -3
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +9 -5
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/group.d.ts +2 -2
- package/dist/lib/types/model.d.ts +31 -2
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/no-auth-user.d.ts +1 -0
- package/dist/lib/types/no-auth-user.js +3 -1
- package/dist/lib/types/no-auth-user.js.map +1 -1
- package/dist/lib/types/option.d.ts +7 -0
- package/dist/lib/types/services.d.ts +6 -1
- package/dist/lib/types/stores/access-store.d.ts +23 -4
- package/dist/lib/types/stores/feature-strategies-store.d.ts +2 -1
- package/dist/lib/types/stores/group-store.d.ts +4 -2
- package/dist/lib/types/stores/project-stats-store-type.d.ts +2 -0
- package/dist/lib/types/stores/project-store.d.ts +7 -14
- package/dist/lib/types/stores/strategy-store.d.ts +3 -17
- package/dist/lib/types/stores.d.ts +5 -1
- package/dist/lib/util/findDuplicates.d.ts +1 -0
- package/dist/lib/util/findDuplicates.js +18 -0
- package/dist/lib/util/findDuplicates.js.map +1 -0
- package/dist/lib/util/findDuplicates.test.d.ts +1 -0
- package/dist/lib/util/findDuplicates.test.js +23 -0
- package/dist/lib/util/findDuplicates.test.js.map +1 -0
- package/dist/migrations/20230830121352-update-client-applications-usage-table.d.ts +2 -0
- package/dist/migrations/20230830121352-update-client-applications-usage-table.js +16 -0
- package/dist/migrations/20230830121352-update-client-applications-usage-table.js.map +1 -0
- package/dist/migrations/20230905122605-add-feature-naming-description.d.ts +2 -0
- package/dist/migrations/20230905122605-add-feature-naming-description.js +13 -0
- package/dist/migrations/20230905122605-add-feature-naming-description.js.map +1 -0
- package/dist/migrations/20230919104006-dependent-features.d.ts +2 -0
- package/dist/migrations/20230919104006-dependent-features.js +21 -0
- package/dist/migrations/20230919104006-dependent-features.js.map +1 -0
- package/dist/migrations/20230927071830-reset-pnps-feedback.d.ts +2 -0
- package/dist/migrations/20230927071830-reset-pnps-feedback.js +10 -0
- package/dist/migrations/20230927071830-reset-pnps-feedback.js.map +1 -0
- package/dist/server-dev.js +7 -4
- package/dist/server-dev.js.map +1 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js +0 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js +8 -12
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/event.e2e.test.js +9 -2
- package/dist/test/e2e/api/admin/event.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/metrics.e2e.test.js +2 -10
- package/dist/test/e2e/api/admin/metrics.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/environments.e2e.test.js +8 -0
- package/dist/test/e2e/api/admin/project/environments.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +41 -15
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/project.api.tokens.e2e.test.js +30 -3
- package/dist/test/e2e/api/admin/project/project.api.tokens.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/segment.e2e.test.d.ts +1 -0
- package/dist/test/e2e/api/admin/segment.e2e.test.js +272 -0
- package/dist/test/e2e/api/admin/segment.e2e.test.js.map +1 -0
- package/dist/test/e2e/api/admin/state.e2e.test.js +0 -11
- package/dist/test/e2e/api/admin/state.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/strategy.e2e.test.js +1 -1
- package/dist/test/e2e/api/client/feature.e2e.test.js +27 -3
- package/dist/test/e2e/api/client/feature.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/client/feature.token.access.e2e.test.js +2 -2
- package/dist/test/e2e/api/client/feature.token.access.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/client/segment.e2e.test.js +1 -1
- package/dist/test/e2e/api/client/segment.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/proxy/proxy.e2e.test.js +34 -9
- package/dist/test/e2e/api/proxy/proxy.e2e.test.js.map +1 -1
- package/dist/test/e2e/helpers/app.utils.d.ts +6 -0
- package/dist/test/e2e/helpers/app.utils.js +16 -0
- package/dist/test/e2e/helpers/app.utils.js.map +1 -0
- package/dist/test/e2e/helpers/database.json +24 -0
- package/dist/test/e2e/services/access-service.e2e.test.js +549 -135
- package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/api-token-service.e2e.test.js +4 -2
- package/dist/test/e2e/services/api-token-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/client-metrics-service.e2e.test.js +2 -1
- package/dist/test/e2e/services/client-metrics-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +38 -5
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/group-service.e2e.test.js +16 -11
- package/dist/test/e2e/services/group-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/playground-service.test.js +5 -2
- package/dist/test/e2e/services/playground-service.test.js.map +1 -1
- package/dist/test/e2e/services/project-health-service.e2e.test.js +4 -2
- package/dist/test/e2e/services/project-health-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/project-service.e2e.test.js +242 -60
- package/dist/test/e2e/services/project-service.e2e.test.js.map +1 -1
- package/dist/test/fixtures/access-service-mock.d.ts +3 -4
- package/dist/test/fixtures/access-service-mock.js.map +1 -1
- package/dist/test/fixtures/fake-access-store.d.ts +15 -5
- package/dist/test/fixtures/fake-access-store.js +30 -3
- package/dist/test/fixtures/fake-access-store.js.map +1 -1
- package/dist/test/fixtures/fake-group-store.d.ts +4 -2
- package/dist/test/fixtures/fake-group-store.js +3 -0
- package/dist/test/fixtures/fake-group-store.js.map +1 -1
- package/dist/test/fixtures/fake-project-stats-store.d.ts +1 -0
- package/dist/test/fixtures/fake-project-stats-store.js +3 -0
- package/dist/test/fixtures/fake-project-stats-store.js.map +1 -1
- package/dist/test/fixtures/fake-project-store.d.ts +2 -1
- package/dist/test/fixtures/fake-project-store.js +3 -0
- package/dist/test/fixtures/fake-project-store.js.map +1 -1
- package/dist/test/fixtures/no-logger.d.ts +2 -1
- package/dist/test/fixtures/no-logger.js +8 -4
- package/dist/test/fixtures/no-logger.js.map +1 -1
- package/dist/test/fixtures/store.js +3 -0
- package/dist/test/fixtures/store.js.map +1 -1
- package/frontend/README.md +7 -1
- package/frontend/build/index.html +2 -2
- package/frontend/build/static/{AdvancedPlayground-1748fcdd.js → AdvancedPlayground-20059178.js} +11 -11
- package/frontend/build/static/CreateProject-6955728f.js +4 -0
- package/frontend/build/static/{Error-cbce6b64.js → Error-f56339ab.js} +1 -1
- package/frontend/build/static/FeatureArchiveDialog-33dc3a5b.js +10 -0
- package/frontend/build/static/{FeatureMetricsChart-8fd8a304.js → FeatureMetricsChart-5ad514bc.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-85a68ed0.js +7 -0
- package/frontend/build/static/LazyAdminExport-e2677758.js +35 -0
- package/frontend/build/static/LazyProjectExport-969bb54e.js +24 -0
- package/frontend/build/static/Logo-android-218bddbb.svg +1 -0
- package/frontend/build/static/Logo-flutter-cc3c706f.svg +1 -0
- package/frontend/build/static/Logo-go-02475b3d.svg +1 -0
- package/frontend/build/static/Logo-java-6e556b26.svg +1 -0
- package/frontend/build/static/Logo-javascript-caebc06e.svg +1 -0
- package/frontend/build/static/Logo-net-0a33abee.svg +1 -0
- package/frontend/build/static/Logo-node-318ed025.svg +1 -0
- package/frontend/build/static/Logo-php-201f18c3.svg +1 -0
- package/frontend/build/static/Logo-python-4305760e.svg +1 -0
- package/frontend/build/static/Logo-react-18e98687.svg +1 -0
- package/frontend/build/static/Logo-ruby-58f46832.svg +1 -0
- package/frontend/build/static/Logo-rust-c83a80f9.svg +1 -0
- package/frontend/build/static/Logo-svelte-97dcb624.svg +1 -0
- package/frontend/build/static/Logo-swift-315f842b.svg +5 -0
- package/frontend/build/static/Logo-vue-0de73099.svg +1 -0
- package/frontend/build/static/{NetworkOverview-349a7bdd.js → NetworkOverview-894877e6.js} +2 -2
- package/frontend/build/static/{NetworkTraffic-60478e50.js → NetworkTraffic-81eff1ae.js} +1 -1
- package/frontend/build/static/ReactJSONEditor-59c8a094.js +129 -0
- package/frontend/build/static/RoleCell-35857d41.js +1 -0
- package/frontend/build/static/{StrategyItemContainer-a4caeace.js → StrategyItemContainer-b250f2d4.js} +1 -1
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-03d2fbea.js → chartjs-adapter-date-fns.esm-c51fe022.js} +1 -1
- package/frontend/build/static/cr-db7653ac.png +0 -0
- package/frontend/build/static/datadog-543762b6.svg +5 -0
- package/frontend/build/static/edge-daisy-chaining-012bfdef.svg +48 -0
- package/frontend/build/static/edge-mode-5d25949b.svg +22 -0
- package/frontend/build/static/edge-offline-f6a0f761.svg +19 -0
- package/frontend/build/static/{flowchart-elk-definition-170a3958-fc100c77.js → flowchart-elk-definition-170a3958-a8c4a86a.js} +1 -1
- package/frontend/build/static/{index-866f9bf9.js → index-0515f416.js} +1 -1
- package/frontend/build/static/index-942e9eeb.js +463 -0
- package/frontend/build/static/{index-3c63138f.js → index-a59b2d65.js} +1 -1
- package/frontend/build/static/{is_dark-31c253e9.js → is_dark-464961a8.js} +1 -1
- package/frontend/build/static/jira-1abe7cbf.svg +17 -0
- package/frontend/build/static/{mindmap-definition-44684416-398682f9.js → mindmap-definition-44684416-3a71a9a5.js} +1 -1
- package/frontend/build/static/slack-36ce798a.svg +18 -0
- package/frontend/build/static/style-97d3ef98.css +1 -0
- package/frontend/build/static/teams-4e30b51f.svg +45 -0
- package/frontend/build/static/{timeline-definition-8e5a9bc6-04a0ae08.js → timeline-definition-8e5a9bc6-da4ebc88.js} +1 -1
- package/frontend/build/static/{unknownify-b8618d88.js → unknownify-3563456b.js} +1 -1
- package/frontend/build/static/unleash-integration-949d8966.svg +1 -0
- package/frontend/build/static/webhooks-b1b44207.svg +16 -0
- package/frontend/package.json +20 -18
- package/package.json +23 -23
- package/dist/lib/services/instance-stats-service.js.map +0 -1
- package/dist/lib/services/instance-stats-service.test.js.map +0 -1
- package/frontend/build/static/CreateProject-972fa820.js +0 -4
- package/frontend/build/static/FeatureArchiveDialog-8a281845.js +0 -10
- package/frontend/build/static/FeatureViewLazyExport-a215d53b.js +0 -7
- package/frontend/build/static/LazyAdminExport-ba7d55ca.js +0 -35
- package/frontend/build/static/LazyProjectExport-12bccd40.js +0 -17
- package/frontend/build/static/RoleCell-144e7eca.js +0 -1
- package/frontend/build/static/datadog-591b6a73.svg +0 -1
- package/frontend/build/static/index-17d74ac9.js +0 -454
- package/frontend/build/static/slack-c0af31c6.svg +0 -1
- package/frontend/build/static/style-770afaee.css +0 -1
- package/frontend/build/static/teams-62e72076.svg +0 -26
- package/frontend/build/static/webhooks-ffa904ac.svg +0 -1
- /package/dist/lib/{services/instance-stats-service.test.d.ts → db/access-store.test.d.ts} +0 -0
- /package/frontend/build/static/{jira-d9eb9af9.svg → jira-comment-d9eb9af9.svg} +0 -0
|
@@ -42,6 +42,7 @@ export declare const advancedPlaygroundRequestSchema: {
|
|
|
42
42
|
readonly description: "The Unleash context as modeled in client SDKs";
|
|
43
43
|
readonly type: "object";
|
|
44
44
|
readonly required: readonly ["appName"];
|
|
45
|
+
readonly additionalProperties: true;
|
|
45
46
|
readonly properties: {
|
|
46
47
|
readonly appName: {
|
|
47
48
|
readonly type: "string";
|
|
@@ -170,7 +170,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
170
170
|
};
|
|
171
171
|
readonly context: {
|
|
172
172
|
readonly description: "The context to use when evaluating toggles";
|
|
173
|
-
readonly $ref: "#/components/schemas/
|
|
173
|
+
readonly $ref: "#/components/schemas/sdkFlatContextSchema";
|
|
174
174
|
};
|
|
175
175
|
readonly projectId: {
|
|
176
176
|
readonly type: "string";
|
|
@@ -340,7 +340,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
340
340
|
readonly type: {
|
|
341
341
|
readonly description: "The format of the payload.";
|
|
342
342
|
readonly type: "string";
|
|
343
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
343
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
344
344
|
};
|
|
345
345
|
readonly value: {
|
|
346
346
|
readonly type: "string";
|
|
@@ -582,9 +582,9 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
582
582
|
readonly additionalProperties: false;
|
|
583
583
|
readonly properties: {
|
|
584
584
|
readonly type: {
|
|
585
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
585
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
586
586
|
readonly type: "string";
|
|
587
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
587
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
588
588
|
};
|
|
589
589
|
readonly value: {
|
|
590
590
|
readonly description: "The actual value of payload";
|
|
@@ -832,9 +832,9 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
832
832
|
readonly additionalProperties: false;
|
|
833
833
|
readonly properties: {
|
|
834
834
|
readonly type: {
|
|
835
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
835
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
836
836
|
readonly type: "string";
|
|
837
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
837
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
838
838
|
};
|
|
839
839
|
readonly value: {
|
|
840
840
|
readonly description: "The actual value of payload";
|
|
@@ -905,11 +905,56 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
905
905
|
};
|
|
906
906
|
readonly components: {};
|
|
907
907
|
};
|
|
908
|
+
readonly sdkFlatContextSchema: {
|
|
909
|
+
readonly $id: "#/components/schemas/sdkFlatContextSchema";
|
|
910
|
+
readonly description: "The Unleash context with flattened properties";
|
|
911
|
+
readonly type: "object";
|
|
912
|
+
readonly required: readonly ["appName"];
|
|
913
|
+
readonly additionalProperties: {
|
|
914
|
+
readonly type: "string";
|
|
915
|
+
};
|
|
916
|
+
readonly properties: {
|
|
917
|
+
appName: {
|
|
918
|
+
readonly type: "string";
|
|
919
|
+
readonly minLength: 1;
|
|
920
|
+
readonly example: "My cool application.";
|
|
921
|
+
readonly description: "The name of the application.";
|
|
922
|
+
};
|
|
923
|
+
currentTime: {
|
|
924
|
+
readonly type: "string";
|
|
925
|
+
readonly format: "date-time";
|
|
926
|
+
readonly example: "2022-07-05T12:56:41+02:00";
|
|
927
|
+
readonly description: "A DateTime (or similar) data class instance or a string in an RFC3339-compatible format. Defaults to the current time if not set by the user.";
|
|
928
|
+
};
|
|
929
|
+
environment: {
|
|
930
|
+
readonly type: "string";
|
|
931
|
+
readonly deprecated: true;
|
|
932
|
+
readonly description: "The environment the app is running in.";
|
|
933
|
+
};
|
|
934
|
+
remoteAddress: {
|
|
935
|
+
readonly type: "string";
|
|
936
|
+
readonly example: "192.168.1.1";
|
|
937
|
+
readonly description: "The app's IP address";
|
|
938
|
+
};
|
|
939
|
+
sessionId: {
|
|
940
|
+
readonly type: "string";
|
|
941
|
+
readonly example: "b65e7b23-fec0-4814-a129-0e9861ef18fc";
|
|
942
|
+
readonly description: "An identifier for the current session";
|
|
943
|
+
};
|
|
944
|
+
userId: {
|
|
945
|
+
readonly type: "string";
|
|
946
|
+
readonly example: "username@provider.com";
|
|
947
|
+
readonly description: "An identifier for the current user";
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
readonly components: {};
|
|
951
|
+
};
|
|
908
952
|
readonly sdkContextSchema: {
|
|
909
953
|
readonly $id: "#/components/schemas/sdkContextSchema";
|
|
910
954
|
readonly description: "The Unleash context as modeled in client SDKs";
|
|
911
955
|
readonly type: "object";
|
|
912
956
|
readonly required: readonly ["appName"];
|
|
957
|
+
readonly additionalProperties: true;
|
|
913
958
|
readonly properties: {
|
|
914
959
|
readonly appName: {
|
|
915
960
|
readonly type: "string";
|
|
@@ -1047,7 +1092,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1047
1092
|
readonly type: {
|
|
1048
1093
|
readonly description: "The format of the payload.";
|
|
1049
1094
|
readonly type: "string";
|
|
1050
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1095
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1051
1096
|
};
|
|
1052
1097
|
readonly value: {
|
|
1053
1098
|
readonly type: "string";
|
|
@@ -1289,9 +1334,9 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1289
1334
|
readonly additionalProperties: false;
|
|
1290
1335
|
readonly properties: {
|
|
1291
1336
|
readonly type: {
|
|
1292
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1337
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1293
1338
|
readonly type: "string";
|
|
1294
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1339
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1295
1340
|
};
|
|
1296
1341
|
readonly value: {
|
|
1297
1342
|
readonly description: "The actual value of payload";
|
|
@@ -1539,9 +1584,9 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1539
1584
|
readonly additionalProperties: false;
|
|
1540
1585
|
readonly properties: {
|
|
1541
1586
|
readonly type: {
|
|
1542
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1587
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1543
1588
|
readonly type: "string";
|
|
1544
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1589
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1545
1590
|
};
|
|
1546
1591
|
readonly value: {
|
|
1547
1592
|
readonly description: "The actual value of payload";
|
|
@@ -1617,6 +1662,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1617
1662
|
readonly description: "The Unleash context as modeled in client SDKs";
|
|
1618
1663
|
readonly type: "object";
|
|
1619
1664
|
readonly required: readonly ["appName"];
|
|
1665
|
+
readonly additionalProperties: true;
|
|
1620
1666
|
readonly properties: {
|
|
1621
1667
|
readonly appName: {
|
|
1622
1668
|
readonly type: "string";
|
|
@@ -1664,6 +1710,50 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1664
1710
|
};
|
|
1665
1711
|
readonly components: {};
|
|
1666
1712
|
};
|
|
1713
|
+
readonly sdkFlatContextSchema: {
|
|
1714
|
+
readonly $id: "#/components/schemas/sdkFlatContextSchema";
|
|
1715
|
+
readonly description: "The Unleash context with flattened properties";
|
|
1716
|
+
readonly type: "object";
|
|
1717
|
+
readonly required: readonly ["appName"];
|
|
1718
|
+
readonly additionalProperties: {
|
|
1719
|
+
readonly type: "string";
|
|
1720
|
+
};
|
|
1721
|
+
readonly properties: {
|
|
1722
|
+
appName: {
|
|
1723
|
+
readonly type: "string";
|
|
1724
|
+
readonly minLength: 1;
|
|
1725
|
+
readonly example: "My cool application.";
|
|
1726
|
+
readonly description: "The name of the application.";
|
|
1727
|
+
};
|
|
1728
|
+
currentTime: {
|
|
1729
|
+
readonly type: "string";
|
|
1730
|
+
readonly format: "date-time";
|
|
1731
|
+
readonly example: "2022-07-05T12:56:41+02:00";
|
|
1732
|
+
readonly description: "A DateTime (or similar) data class instance or a string in an RFC3339-compatible format. Defaults to the current time if not set by the user.";
|
|
1733
|
+
};
|
|
1734
|
+
environment: {
|
|
1735
|
+
readonly type: "string";
|
|
1736
|
+
readonly deprecated: true;
|
|
1737
|
+
readonly description: "The environment the app is running in.";
|
|
1738
|
+
};
|
|
1739
|
+
remoteAddress: {
|
|
1740
|
+
readonly type: "string";
|
|
1741
|
+
readonly example: "192.168.1.1";
|
|
1742
|
+
readonly description: "The app's IP address";
|
|
1743
|
+
};
|
|
1744
|
+
sessionId: {
|
|
1745
|
+
readonly type: "string";
|
|
1746
|
+
readonly example: "b65e7b23-fec0-4814-a129-0e9861ef18fc";
|
|
1747
|
+
readonly description: "An identifier for the current session";
|
|
1748
|
+
};
|
|
1749
|
+
userId: {
|
|
1750
|
+
readonly type: "string";
|
|
1751
|
+
readonly example: "username@provider.com";
|
|
1752
|
+
readonly description: "An identifier for the current user";
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1755
|
+
readonly components: {};
|
|
1756
|
+
};
|
|
1667
1757
|
};
|
|
1668
1758
|
};
|
|
1669
1759
|
};
|
|
@@ -1686,7 +1776,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1686
1776
|
};
|
|
1687
1777
|
readonly context: {
|
|
1688
1778
|
readonly description: "The context to use when evaluating toggles";
|
|
1689
|
-
readonly $ref: "#/components/schemas/
|
|
1779
|
+
readonly $ref: "#/components/schemas/sdkFlatContextSchema";
|
|
1690
1780
|
};
|
|
1691
1781
|
readonly projectId: {
|
|
1692
1782
|
readonly type: "string";
|
|
@@ -1856,7 +1946,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1856
1946
|
readonly type: {
|
|
1857
1947
|
readonly description: "The format of the payload.";
|
|
1858
1948
|
readonly type: "string";
|
|
1859
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1949
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1860
1950
|
};
|
|
1861
1951
|
readonly value: {
|
|
1862
1952
|
readonly type: "string";
|
|
@@ -2098,9 +2188,9 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2098
2188
|
readonly additionalProperties: false;
|
|
2099
2189
|
readonly properties: {
|
|
2100
2190
|
readonly type: {
|
|
2101
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
2191
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
2102
2192
|
readonly type: "string";
|
|
2103
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
2193
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
2104
2194
|
};
|
|
2105
2195
|
readonly value: {
|
|
2106
2196
|
readonly description: "The actual value of payload";
|
|
@@ -2348,9 +2438,9 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2348
2438
|
readonly additionalProperties: false;
|
|
2349
2439
|
readonly properties: {
|
|
2350
2440
|
readonly type: {
|
|
2351
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
2441
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
2352
2442
|
readonly type: "string";
|
|
2353
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
2443
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
2354
2444
|
};
|
|
2355
2445
|
readonly value: {
|
|
2356
2446
|
readonly description: "The actual value of payload";
|
|
@@ -2421,11 +2511,56 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2421
2511
|
};
|
|
2422
2512
|
readonly components: {};
|
|
2423
2513
|
};
|
|
2514
|
+
readonly sdkFlatContextSchema: {
|
|
2515
|
+
readonly $id: "#/components/schemas/sdkFlatContextSchema";
|
|
2516
|
+
readonly description: "The Unleash context with flattened properties";
|
|
2517
|
+
readonly type: "object";
|
|
2518
|
+
readonly required: readonly ["appName"];
|
|
2519
|
+
readonly additionalProperties: {
|
|
2520
|
+
readonly type: "string";
|
|
2521
|
+
};
|
|
2522
|
+
readonly properties: {
|
|
2523
|
+
appName: {
|
|
2524
|
+
readonly type: "string";
|
|
2525
|
+
readonly minLength: 1;
|
|
2526
|
+
readonly example: "My cool application.";
|
|
2527
|
+
readonly description: "The name of the application.";
|
|
2528
|
+
};
|
|
2529
|
+
currentTime: {
|
|
2530
|
+
readonly type: "string";
|
|
2531
|
+
readonly format: "date-time";
|
|
2532
|
+
readonly example: "2022-07-05T12:56:41+02:00";
|
|
2533
|
+
readonly description: "A DateTime (or similar) data class instance or a string in an RFC3339-compatible format. Defaults to the current time if not set by the user.";
|
|
2534
|
+
};
|
|
2535
|
+
environment: {
|
|
2536
|
+
readonly type: "string";
|
|
2537
|
+
readonly deprecated: true;
|
|
2538
|
+
readonly description: "The environment the app is running in.";
|
|
2539
|
+
};
|
|
2540
|
+
remoteAddress: {
|
|
2541
|
+
readonly type: "string";
|
|
2542
|
+
readonly example: "192.168.1.1";
|
|
2543
|
+
readonly description: "The app's IP address";
|
|
2544
|
+
};
|
|
2545
|
+
sessionId: {
|
|
2546
|
+
readonly type: "string";
|
|
2547
|
+
readonly example: "b65e7b23-fec0-4814-a129-0e9861ef18fc";
|
|
2548
|
+
readonly description: "An identifier for the current session";
|
|
2549
|
+
};
|
|
2550
|
+
userId: {
|
|
2551
|
+
readonly type: "string";
|
|
2552
|
+
readonly example: "username@provider.com";
|
|
2553
|
+
readonly description: "An identifier for the current user";
|
|
2554
|
+
};
|
|
2555
|
+
};
|
|
2556
|
+
readonly components: {};
|
|
2557
|
+
};
|
|
2424
2558
|
readonly sdkContextSchema: {
|
|
2425
2559
|
readonly $id: "#/components/schemas/sdkContextSchema";
|
|
2426
2560
|
readonly description: "The Unleash context as modeled in client SDKs";
|
|
2427
2561
|
readonly type: "object";
|
|
2428
2562
|
readonly required: readonly ["appName"];
|
|
2563
|
+
readonly additionalProperties: true;
|
|
2429
2564
|
readonly properties: {
|
|
2430
2565
|
readonly appName: {
|
|
2431
2566
|
readonly type: "string";
|
|
@@ -2525,6 +2660,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2525
2660
|
readonly description: "The Unleash context as modeled in client SDKs";
|
|
2526
2661
|
readonly type: "object";
|
|
2527
2662
|
readonly required: readonly ["appName"];
|
|
2663
|
+
readonly additionalProperties: true;
|
|
2528
2664
|
readonly properties: {
|
|
2529
2665
|
readonly appName: {
|
|
2530
2666
|
readonly type: "string";
|
|
@@ -2737,7 +2873,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2737
2873
|
readonly type: {
|
|
2738
2874
|
readonly description: "The format of the payload.";
|
|
2739
2875
|
readonly type: "string";
|
|
2740
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
2876
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
2741
2877
|
};
|
|
2742
2878
|
readonly value: {
|
|
2743
2879
|
readonly type: "string";
|
|
@@ -2979,9 +3115,9 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2979
3115
|
readonly additionalProperties: false;
|
|
2980
3116
|
readonly properties: {
|
|
2981
3117
|
readonly type: {
|
|
2982
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
3118
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
2983
3119
|
readonly type: "string";
|
|
2984
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
3120
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
2985
3121
|
};
|
|
2986
3122
|
readonly value: {
|
|
2987
3123
|
readonly description: "The actual value of payload";
|
|
@@ -3060,6 +3196,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
3060
3196
|
readonly description: "The Unleash context as modeled in client SDKs";
|
|
3061
3197
|
readonly type: "object";
|
|
3062
3198
|
readonly required: readonly ["appName"];
|
|
3199
|
+
readonly additionalProperties: true;
|
|
3063
3200
|
readonly properties: {
|
|
3064
3201
|
readonly appName: {
|
|
3065
3202
|
readonly type: "string";
|
|
@@ -3107,6 +3244,50 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
3107
3244
|
};
|
|
3108
3245
|
readonly components: {};
|
|
3109
3246
|
};
|
|
3247
|
+
readonly sdkFlatContextSchema: {
|
|
3248
|
+
readonly $id: "#/components/schemas/sdkFlatContextSchema";
|
|
3249
|
+
readonly description: "The Unleash context with flattened properties";
|
|
3250
|
+
readonly type: "object";
|
|
3251
|
+
readonly required: readonly ["appName"];
|
|
3252
|
+
readonly additionalProperties: {
|
|
3253
|
+
readonly type: "string";
|
|
3254
|
+
};
|
|
3255
|
+
readonly properties: {
|
|
3256
|
+
appName: {
|
|
3257
|
+
readonly type: "string";
|
|
3258
|
+
readonly minLength: 1;
|
|
3259
|
+
readonly example: "My cool application.";
|
|
3260
|
+
readonly description: "The name of the application.";
|
|
3261
|
+
};
|
|
3262
|
+
currentTime: {
|
|
3263
|
+
readonly type: "string";
|
|
3264
|
+
readonly format: "date-time";
|
|
3265
|
+
readonly example: "2022-07-05T12:56:41+02:00";
|
|
3266
|
+
readonly description: "A DateTime (or similar) data class instance or a string in an RFC3339-compatible format. Defaults to the current time if not set by the user.";
|
|
3267
|
+
};
|
|
3268
|
+
environment: {
|
|
3269
|
+
readonly type: "string";
|
|
3270
|
+
readonly deprecated: true;
|
|
3271
|
+
readonly description: "The environment the app is running in.";
|
|
3272
|
+
};
|
|
3273
|
+
remoteAddress: {
|
|
3274
|
+
readonly type: "string";
|
|
3275
|
+
readonly example: "192.168.1.1";
|
|
3276
|
+
readonly description: "The app's IP address";
|
|
3277
|
+
};
|
|
3278
|
+
sessionId: {
|
|
3279
|
+
readonly type: "string";
|
|
3280
|
+
readonly example: "b65e7b23-fec0-4814-a129-0e9861ef18fc";
|
|
3281
|
+
readonly description: "An identifier for the current session";
|
|
3282
|
+
};
|
|
3283
|
+
userId: {
|
|
3284
|
+
readonly type: "string";
|
|
3285
|
+
readonly example: "username@provider.com";
|
|
3286
|
+
readonly description: "An identifier for the current user";
|
|
3287
|
+
};
|
|
3288
|
+
};
|
|
3289
|
+
readonly components: {};
|
|
3290
|
+
};
|
|
3110
3291
|
readonly variantSchema: {
|
|
3111
3292
|
readonly $id: "#/components/schemas/variantSchema";
|
|
3112
3293
|
readonly type: "object";
|
|
@@ -3143,9 +3324,9 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
3143
3324
|
readonly additionalProperties: false;
|
|
3144
3325
|
readonly properties: {
|
|
3145
3326
|
readonly type: {
|
|
3146
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
3327
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
3147
3328
|
readonly type: "string";
|
|
3148
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
3329
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
3149
3330
|
};
|
|
3150
3331
|
readonly value: {
|
|
3151
3332
|
readonly description: "The actual value of payload";
|
|
@@ -12,6 +12,7 @@ const playground_strategy_schema_1 = require("./playground-strategy-schema");
|
|
|
12
12
|
const advanced_playground_request_schema_1 = require("./advanced-playground-request-schema");
|
|
13
13
|
const advanced_playground_feature_schema_1 = require("./advanced-playground-feature-schema");
|
|
14
14
|
const advanced_playground_environment_feature_schema_1 = require("./advanced-playground-environment-feature-schema");
|
|
15
|
+
const sdk_flat_context_schema_1 = require("./sdk-flat-context-schema");
|
|
15
16
|
exports.advancedPlaygroundResponseSchema = {
|
|
16
17
|
$id: '#/components/schemas/advancedPlaygroundResponseSchema',
|
|
17
18
|
description: 'The state of all features given the provided input.',
|
|
@@ -42,6 +43,7 @@ exports.advancedPlaygroundResponseSchema = {
|
|
|
42
43
|
playgroundSegmentSchema: playground_segment_schema_1.playgroundSegmentSchema,
|
|
43
44
|
playgroundStrategySchema: playground_strategy_schema_1.playgroundStrategySchema,
|
|
44
45
|
sdkContextSchema: sdk_context_schema_1.sdkContextSchema,
|
|
46
|
+
sdkFlatContextSchema: sdk_flat_context_schema_1.sdkFlatContextSchema,
|
|
45
47
|
variantSchema: variant_schema_1.variantSchema,
|
|
46
48
|
overrideSchema: override_schema_1.overrideSchema,
|
|
47
49
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-playground-response-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/advanced-playground-response-schema.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AACxD,2DAAuD;AACvD,2DAAuD;AACvD,qDAAiD;AACjD,uDAAmD;AACnD,iFAA4E;AAC5E,2EAAsE;AACtE,6EAAwE;AACxE,6FAAuF;AACvF,6FAAuF;AACvF,qHAA8G;
|
|
1
|
+
{"version":3,"file":"advanced-playground-response-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/advanced-playground-response-schema.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AACxD,2DAAuD;AACvD,2DAAuD;AACvD,qDAAiD;AACjD,uDAAmD;AACnD,iFAA4E;AAC5E,2EAAsE;AACtE,6EAAwE;AACxE,6FAAuF;AACvF,6FAAuF;AACvF,qHAA8G;AAC9G,uEAAiE;AAEpD,QAAA,gCAAgC,GAAG;IAC5C,GAAG,EAAE,uDAAuD;IAC5D,WAAW,EAAE,qDAAqD;IAClE,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,UAAU,EAAE;QACR,KAAK,EAAE;YACH,WAAW,EAAE,gDAAgD;YAC7D,IAAI,EAAE,oEAA+B,CAAC,GAAG;SAC5C;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gDAAgD;YAC7D,KAAK,EAAE;gBACH,IAAI,EAAE,oEAA+B,CAAC,GAAG;aAC5C;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,oCAAgB;YAChB,gBAAgB,EAAhB,oCAAgB;YAChB,0BAA0B,EAA1B,yDAA0B;YAC1B,+BAA+B,EAA/B,oEAA+B;YAC/B,0CAA0C,EAA1C,2FAA0C;YAC1C,+BAA+B,EAA/B,oEAA+B;YAC/B,uBAAuB,EAAvB,mDAAuB;YACvB,wBAAwB,EAAxB,qDAAwB;YACxB,gBAAgB,EAAhB,qCAAgB;YAChB,oBAAoB,EAApB,8CAAoB;YACpB,aAAa,EAAb,8BAAa;YACb,cAAc,EAAd,gCAAc;SACjB;KACJ;CACK,CAAC"}
|
|
@@ -58,6 +58,13 @@ export declare const clientFeatureSchema: {
|
|
|
58
58
|
};
|
|
59
59
|
readonly nullable: true;
|
|
60
60
|
};
|
|
61
|
+
readonly dependencies: {
|
|
62
|
+
readonly type: "array";
|
|
63
|
+
readonly description: "Feature dependencies for this toggle";
|
|
64
|
+
readonly items: {
|
|
65
|
+
readonly $ref: "#/components/schemas/dependentFeatureSchema";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
61
68
|
};
|
|
62
69
|
readonly components: {
|
|
63
70
|
readonly schemas: {
|
|
@@ -269,9 +276,9 @@ export declare const clientFeatureSchema: {
|
|
|
269
276
|
readonly description: "Extra data configured for this variant";
|
|
270
277
|
readonly properties: {
|
|
271
278
|
readonly type: {
|
|
272
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
279
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
273
280
|
readonly type: "string";
|
|
274
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
281
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
275
282
|
};
|
|
276
283
|
readonly value: {
|
|
277
284
|
readonly description: "The actual value of payload";
|
|
@@ -324,9 +331,9 @@ export declare const clientFeatureSchema: {
|
|
|
324
331
|
readonly description: "Extra data configured for this variant";
|
|
325
332
|
readonly properties: {
|
|
326
333
|
readonly type: {
|
|
327
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
334
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
328
335
|
readonly type: "string";
|
|
329
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
336
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
330
337
|
};
|
|
331
338
|
readonly value: {
|
|
332
339
|
readonly description: "The actual value of payload";
|
|
@@ -377,9 +384,9 @@ export declare const clientFeatureSchema: {
|
|
|
377
384
|
readonly additionalProperties: false;
|
|
378
385
|
readonly properties: {
|
|
379
386
|
readonly type: {
|
|
380
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
387
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
381
388
|
readonly type: "string";
|
|
382
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
389
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
383
390
|
};
|
|
384
391
|
readonly value: {
|
|
385
392
|
readonly description: "The actual value of payload";
|
|
@@ -450,6 +457,34 @@ export declare const clientFeatureSchema: {
|
|
|
450
457
|
};
|
|
451
458
|
readonly components: {};
|
|
452
459
|
};
|
|
460
|
+
readonly dependentFeatureSchema: {
|
|
461
|
+
readonly $id: "#/components/schemas/dependentFeatureSchema";
|
|
462
|
+
readonly type: "object";
|
|
463
|
+
readonly description: "Feature dependency on a parent feature in read model";
|
|
464
|
+
readonly required: readonly ["feature"];
|
|
465
|
+
readonly additionalProperties: false;
|
|
466
|
+
readonly properties: {
|
|
467
|
+
readonly feature: {
|
|
468
|
+
readonly type: "string";
|
|
469
|
+
readonly description: "The name of the feature we depend on.";
|
|
470
|
+
readonly example: "parent_feature";
|
|
471
|
+
};
|
|
472
|
+
readonly enabled: {
|
|
473
|
+
readonly type: "boolean";
|
|
474
|
+
readonly description: "Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default.";
|
|
475
|
+
readonly example: false;
|
|
476
|
+
};
|
|
477
|
+
readonly variants: {
|
|
478
|
+
readonly type: "array";
|
|
479
|
+
readonly description: "The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status.";
|
|
480
|
+
readonly items: {
|
|
481
|
+
readonly type: "string";
|
|
482
|
+
};
|
|
483
|
+
readonly example: readonly ["variantA", "variantB"];
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
readonly components: {};
|
|
487
|
+
};
|
|
453
488
|
};
|
|
454
489
|
};
|
|
455
490
|
};
|
|
@@ -7,6 +7,7 @@ const feature_strategy_schema_1 = require("./feature-strategy-schema");
|
|
|
7
7
|
const variant_schema_1 = require("./variant-schema");
|
|
8
8
|
const override_schema_1 = require("./override-schema");
|
|
9
9
|
const strategy_variant_schema_1 = require("./strategy-variant-schema");
|
|
10
|
+
const dependent_feature_schema_1 = require("./dependent-feature-schema");
|
|
10
11
|
exports.clientFeatureSchema = {
|
|
11
12
|
$id: '#/components/schemas/clientFeatureSchema',
|
|
12
13
|
type: 'object',
|
|
@@ -66,6 +67,13 @@ exports.clientFeatureSchema = {
|
|
|
66
67
|
},
|
|
67
68
|
nullable: true,
|
|
68
69
|
},
|
|
70
|
+
dependencies: {
|
|
71
|
+
type: 'array',
|
|
72
|
+
description: 'Feature dependencies for this toggle',
|
|
73
|
+
items: {
|
|
74
|
+
$ref: '#/components/schemas/dependentFeatureSchema',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
69
77
|
},
|
|
70
78
|
components: {
|
|
71
79
|
schemas: {
|
|
@@ -75,6 +83,7 @@ exports.clientFeatureSchema = {
|
|
|
75
83
|
strategyVariantSchema: strategy_variant_schema_1.strategyVariantSchema,
|
|
76
84
|
variantSchema: variant_schema_1.variantSchema,
|
|
77
85
|
overrideSchema: override_schema_1.overrideSchema,
|
|
86
|
+
dependentFeatureSchema: dependent_feature_schema_1.dependentFeatureSchema,
|
|
78
87
|
},
|
|
79
88
|
},
|
|
80
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-feature-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,2DAAuD;AACvD,uEAAkE;AAClE,qDAAiD;AACjD,uDAAmD;AACnD,uEAAkE;
|
|
1
|
+
{"version":3,"file":"client-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-feature-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,2DAAuD;AACvD,uEAAkE;AAClE,qDAAiD;AACjD,uDAAmD;AACnD,uEAAkE;AAClE,yEAAoE;AAEvD,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC7B,WAAW,EACP,yEAAyE;IAC7E,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,8EAA8E;YAClF,OAAO,EAAE,yBAAyB;SACrC;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,yKAAyK;YAC7K,OAAO,EAAE,SAAS;SACrB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,kBAAkB;SAC9B;QACD,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EACP,uMAAuM;YAC3M,OAAO,EAAE,IAAI;SAChB;QACD,KAAK,EAAE;YACH,WAAW,EACP,qIAAqI;YACzI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB;QACD,cAAc,EAAE;YACZ,WAAW,EACP,4IAA4I;YAChJ,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;SACjB;QACD,OAAO,EAAE;YACL,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;SAC9B;QACD,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EACP,oGAAoG;YACxG,KAAK,EAAE;gBACH,IAAI,EAAE,4CAA4C;aACrD;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EACP,uHAAuH;YAC3H,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;YACD,QAAQ,EAAE,IAAI;SACjB;QACD,YAAY,EAAE;YACV,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,sCAAsC;YACnD,KAAK,EAAE;gBACH,IAAI,EAAE,6CAA6C;aACtD;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,oCAAgB;YAChB,gBAAgB,EAAhB,oCAAgB;YAChB,qBAAqB,EAArB,+CAAqB;YACrB,qBAAqB,EAArB,+CAAqB;YACrB,aAAa,EAAb,8BAAa;YACb,cAAc,EAAd,gCAAc;YACd,sBAAsB,EAAtB,iDAAsB;SACzB;KACJ;CACK,CAAC"}
|