unleash-server 5.4.3 → 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 +109 -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 +61 -1
- package/dist/lib/types/events.js +66 -4
- 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
|
@@ -135,6 +135,13 @@ export declare const clientFeaturesSchema: {
|
|
|
135
135
|
};
|
|
136
136
|
readonly nullable: true;
|
|
137
137
|
};
|
|
138
|
+
readonly dependencies: {
|
|
139
|
+
readonly type: "array";
|
|
140
|
+
readonly description: "Feature dependencies for this toggle";
|
|
141
|
+
readonly items: {
|
|
142
|
+
readonly $ref: "#/components/schemas/dependentFeatureSchema";
|
|
143
|
+
};
|
|
144
|
+
};
|
|
138
145
|
};
|
|
139
146
|
readonly components: {
|
|
140
147
|
readonly schemas: {
|
|
@@ -346,9 +353,9 @@ export declare const clientFeaturesSchema: {
|
|
|
346
353
|
readonly description: "Extra data configured for this variant";
|
|
347
354
|
readonly properties: {
|
|
348
355
|
readonly type: {
|
|
349
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
356
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
350
357
|
readonly type: "string";
|
|
351
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
358
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
352
359
|
};
|
|
353
360
|
readonly value: {
|
|
354
361
|
readonly description: "The actual value of payload";
|
|
@@ -401,9 +408,9 @@ export declare const clientFeaturesSchema: {
|
|
|
401
408
|
readonly description: "Extra data configured for this variant";
|
|
402
409
|
readonly properties: {
|
|
403
410
|
readonly type: {
|
|
404
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
411
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
405
412
|
readonly type: "string";
|
|
406
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
413
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
407
414
|
};
|
|
408
415
|
readonly value: {
|
|
409
416
|
readonly description: "The actual value of payload";
|
|
@@ -454,9 +461,9 @@ export declare const clientFeaturesSchema: {
|
|
|
454
461
|
readonly additionalProperties: false;
|
|
455
462
|
readonly properties: {
|
|
456
463
|
readonly type: {
|
|
457
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
464
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
458
465
|
readonly type: "string";
|
|
459
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
466
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
460
467
|
};
|
|
461
468
|
readonly value: {
|
|
462
469
|
readonly description: "The actual value of payload";
|
|
@@ -527,6 +534,34 @@ export declare const clientFeaturesSchema: {
|
|
|
527
534
|
};
|
|
528
535
|
readonly components: {};
|
|
529
536
|
};
|
|
537
|
+
readonly dependentFeatureSchema: {
|
|
538
|
+
readonly $id: "#/components/schemas/dependentFeatureSchema";
|
|
539
|
+
readonly type: "object";
|
|
540
|
+
readonly description: "Feature dependency on a parent feature in read model";
|
|
541
|
+
readonly required: readonly ["feature"];
|
|
542
|
+
readonly additionalProperties: false;
|
|
543
|
+
readonly properties: {
|
|
544
|
+
readonly feature: {
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
readonly description: "The name of the feature we depend on.";
|
|
547
|
+
readonly example: "parent_feature";
|
|
548
|
+
};
|
|
549
|
+
readonly enabled: {
|
|
550
|
+
readonly type: "boolean";
|
|
551
|
+
readonly description: "Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default.";
|
|
552
|
+
readonly example: false;
|
|
553
|
+
};
|
|
554
|
+
readonly variants: {
|
|
555
|
+
readonly type: "array";
|
|
556
|
+
readonly description: "The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status.";
|
|
557
|
+
readonly items: {
|
|
558
|
+
readonly type: "string";
|
|
559
|
+
};
|
|
560
|
+
readonly example: readonly ["variantA", "variantB"];
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
readonly components: {};
|
|
564
|
+
};
|
|
530
565
|
};
|
|
531
566
|
};
|
|
532
567
|
};
|
|
@@ -890,9 +925,9 @@ export declare const clientFeaturesSchema: {
|
|
|
890
925
|
readonly description: "Extra data configured for this variant";
|
|
891
926
|
readonly properties: {
|
|
892
927
|
readonly type: {
|
|
893
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
928
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
894
929
|
readonly type: "string";
|
|
895
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
930
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
896
931
|
};
|
|
897
932
|
readonly value: {
|
|
898
933
|
readonly description: "The actual value of payload";
|
|
@@ -945,9 +980,9 @@ export declare const clientFeaturesSchema: {
|
|
|
945
980
|
readonly description: "Extra data configured for this variant";
|
|
946
981
|
readonly properties: {
|
|
947
982
|
readonly type: {
|
|
948
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
983
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
949
984
|
readonly type: "string";
|
|
950
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
985
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
951
986
|
};
|
|
952
987
|
readonly value: {
|
|
953
988
|
readonly description: "The actual value of payload";
|
|
@@ -998,9 +1033,9 @@ export declare const clientFeaturesSchema: {
|
|
|
998
1033
|
readonly additionalProperties: false;
|
|
999
1034
|
readonly properties: {
|
|
1000
1035
|
readonly type: {
|
|
1001
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1036
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1002
1037
|
readonly type: "string";
|
|
1003
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1038
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1004
1039
|
};
|
|
1005
1040
|
readonly value: {
|
|
1006
1041
|
readonly description: "The actual value of payload";
|
|
@@ -1048,6 +1083,34 @@ export declare const clientFeaturesSchema: {
|
|
|
1048
1083
|
};
|
|
1049
1084
|
};
|
|
1050
1085
|
};
|
|
1086
|
+
readonly dependentFeatureSchema: {
|
|
1087
|
+
readonly $id: "#/components/schemas/dependentFeatureSchema";
|
|
1088
|
+
readonly type: "object";
|
|
1089
|
+
readonly description: "Feature dependency on a parent feature in read model";
|
|
1090
|
+
readonly required: readonly ["feature"];
|
|
1091
|
+
readonly additionalProperties: false;
|
|
1092
|
+
readonly properties: {
|
|
1093
|
+
readonly feature: {
|
|
1094
|
+
readonly type: "string";
|
|
1095
|
+
readonly description: "The name of the feature we depend on.";
|
|
1096
|
+
readonly example: "parent_feature";
|
|
1097
|
+
};
|
|
1098
|
+
readonly enabled: {
|
|
1099
|
+
readonly type: "boolean";
|
|
1100
|
+
readonly description: "Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default.";
|
|
1101
|
+
readonly example: false;
|
|
1102
|
+
};
|
|
1103
|
+
readonly variants: {
|
|
1104
|
+
readonly type: "array";
|
|
1105
|
+
readonly description: "The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status.";
|
|
1106
|
+
readonly items: {
|
|
1107
|
+
readonly type: "string";
|
|
1108
|
+
};
|
|
1109
|
+
readonly example: readonly ["variantA", "variantB"];
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
readonly components: {};
|
|
1113
|
+
};
|
|
1051
1114
|
};
|
|
1052
1115
|
};
|
|
1053
1116
|
};
|
|
@@ -11,6 +11,7 @@ const feature_strategy_schema_1 = require("./feature-strategy-schema");
|
|
|
11
11
|
const client_feature_schema_1 = require("./client-feature-schema");
|
|
12
12
|
const variant_schema_1 = require("./variant-schema");
|
|
13
13
|
const strategy_variant_schema_1 = require("./strategy-variant-schema");
|
|
14
|
+
const dependent_feature_schema_1 = require("./dependent-feature-schema");
|
|
14
15
|
exports.clientFeaturesSchema = {
|
|
15
16
|
$id: '#/components/schemas/clientFeaturesSchema',
|
|
16
17
|
type: 'object',
|
|
@@ -54,6 +55,7 @@ exports.clientFeaturesSchema = {
|
|
|
54
55
|
featureStrategySchema: feature_strategy_schema_1.featureStrategySchema,
|
|
55
56
|
strategyVariantSchema: strategy_variant_schema_1.strategyVariantSchema,
|
|
56
57
|
variantSchema: variant_schema_1.variantSchema,
|
|
58
|
+
dependentFeatureSchema: dependent_feature_schema_1.dependentFeatureSchema,
|
|
57
59
|
},
|
|
58
60
|
},
|
|
59
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-features-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-features-schema.ts"],"names":[],"mappings":";;;AACA,iFAA2E;AAC3E,mEAA8D;AAC9D,2DAAuD;AACvD,6DAAyD;AACzD,uDAAmD;AACnD,2DAAuD;AACvD,uEAAkE;AAClE,mEAA8D;AAC9D,qDAAiD;AACjD,uEAAkE;
|
|
1
|
+
{"version":3,"file":"client-features-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-features-schema.ts"],"names":[],"mappings":";;;AACA,iFAA2E;AAC3E,mEAA8D;AAC9D,2DAAuD;AACvD,6DAAyD;AACzD,uDAAmD;AACnD,2DAAuD;AACvD,uEAAkE;AAClE,mEAA8D;AAC9D,qDAAiD;AACjD,uEAAkE;AAClE,yEAAoE;AAEvD,QAAA,oBAAoB,GAAG;IAChC,GAAG,EAAE,2CAA2C;IAChD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IACjC,WAAW,EACP,uEAAuE;IAC3E,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,gJAAgJ;YACpJ,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;SACb;QACD,QAAQ,EAAE;YACN,WAAW,EAAE,oDAAoD;YACjE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,0CAA0C;aACnD;SACJ;QACD,QAAQ,EAAE;YACN,WAAW,EACP,0GAA0G;YAC9G,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,0CAA0C;aACnD;SACJ;QACD,KAAK,EAAE;YACH,WAAW,EACP,0HAA0H;YAC9H,IAAI,EAAE,gDAAgD;SACzD;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,oCAAgB;YAChB,mBAAmB,EAAnB,2CAAmB;YACnB,iBAAiB,EAAjB,sCAAiB;YACjB,mBAAmB,EAAnB,2CAAmB;YACnB,yBAAyB,EAAzB,wDAAyB;YACzB,cAAc,EAAd,gCAAc;YACd,gBAAgB,EAAhB,oCAAgB;YAChB,qBAAqB,EAArB,+CAAqB;YACrB,qBAAqB,EAArB,+CAAqB;YACrB,aAAa,EAAb,8BAAa;YACb,sBAAsB,EAAtB,iDAAsB;SACzB;KACJ;CACK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FromSchema } from 'json-schema-to-ts';
|
|
2
2
|
export declare const contextFieldStrategiesSchema: {
|
|
3
|
-
readonly $id: "#/components/schemas/
|
|
3
|
+
readonly $id: "#/components/schemas/contextFieldStrategiesSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly description: "A wrapper object containing all strategies that use a specific context field";
|
|
6
6
|
readonly required: readonly ["strategies"];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.contextFieldStrategiesSchema = void 0;
|
|
4
4
|
exports.contextFieldStrategiesSchema = {
|
|
5
|
-
$id: '#/components/schemas/
|
|
5
|
+
$id: '#/components/schemas/contextFieldStrategiesSchema',
|
|
6
6
|
type: 'object',
|
|
7
7
|
description: 'A wrapper object containing all strategies that use a specific context field',
|
|
8
8
|
required: ['strategies'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-field-strategies-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/context-field-strategies-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG;IACxC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"context-field-strategies-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/context-field-strategies-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG;IACxC,GAAG,EAAE,mDAAmD;IACxD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,8EAA8E;IAClF,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,UAAU,EAAE;QACR,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4CAA4C;YACzD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE;oBACN,IAAI;oBACJ,aAAa;oBACb,WAAW;oBACX,aAAa;oBACb,cAAc;iBACjB;gBACD,UAAU,EAAE;oBACR,EAAE,EAAE;wBACA,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,sCAAsC;wBAC/C,WAAW,EAAE,yBAAyB;qBACzC;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,cAAc;wBACvB,WAAW,EACP,sDAAsD;qBAC7D;oBACD,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,mDAAmD;qBAC1D;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,sDAAsD;qBAC7D;oBACD,YAAY,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2BAA2B;qBAC3C;iBACJ;aACJ;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -3,145 +3,7 @@ export declare const createApiTokenSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/createApiTokenSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly description: "The data required to create an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys).";
|
|
6
|
-
readonly
|
|
7
|
-
readonly expiresAt: {
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
readonly format: "date-time";
|
|
10
|
-
readonly description: "The time when this token should expire.";
|
|
11
|
-
readonly example: "2023-07-04T11:26:24+02:00";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
readonly oneOf: readonly [{
|
|
15
|
-
readonly allOf: readonly [{
|
|
16
|
-
readonly required: readonly ["type"];
|
|
17
|
-
readonly type: "object";
|
|
18
|
-
readonly properties: {
|
|
19
|
-
readonly type: {
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
readonly pattern: "^[Aa][Dd][Mm][Ii][Nn]$";
|
|
22
|
-
readonly description: "An admin token. Must be the string \"admin\" (not case sensitive).";
|
|
23
|
-
readonly example: "admin";
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}, {
|
|
27
|
-
readonly type: "object";
|
|
28
|
-
readonly required: readonly ["tokenName"];
|
|
29
|
-
readonly properties: {
|
|
30
|
-
readonly tokenName: {
|
|
31
|
-
readonly type: "string";
|
|
32
|
-
readonly description: "The name of the token.";
|
|
33
|
-
readonly example: "token-64522";
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}];
|
|
37
|
-
}, {
|
|
38
|
-
readonly allOf: readonly [{
|
|
39
|
-
readonly required: readonly ["type"];
|
|
40
|
-
readonly type: "object";
|
|
41
|
-
readonly properties: {
|
|
42
|
-
readonly type: {
|
|
43
|
-
readonly type: "string";
|
|
44
|
-
readonly pattern: "^[Aa][Dd][Mm][Ii][Nn]$";
|
|
45
|
-
readonly description: "An admin token. Must be the string \"admin\" (not case sensitive).";
|
|
46
|
-
readonly example: "admin";
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}, {
|
|
50
|
-
readonly type: "object";
|
|
51
|
-
readonly required: readonly ["username"];
|
|
52
|
-
readonly properties: {
|
|
53
|
-
readonly username: {
|
|
54
|
-
readonly deprecated: true;
|
|
55
|
-
readonly type: "string";
|
|
56
|
-
readonly description: "The name of the token. This property is deprecated. Use `tokenName` instead.";
|
|
57
|
-
readonly example: "token-64523";
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
}];
|
|
61
|
-
}, {
|
|
62
|
-
readonly allOf: readonly [{
|
|
63
|
-
readonly required: readonly ["type"];
|
|
64
|
-
readonly type: "object";
|
|
65
|
-
readonly properties: {
|
|
66
|
-
readonly type: {
|
|
67
|
-
readonly type: "string";
|
|
68
|
-
readonly pattern: "^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$";
|
|
69
|
-
readonly description: "A client or frontend token. Must be one of the strings \"client\" or \"frontend\" (not case sensitive).";
|
|
70
|
-
readonly example: "frontend";
|
|
71
|
-
};
|
|
72
|
-
readonly environment: {
|
|
73
|
-
readonly type: "string";
|
|
74
|
-
readonly description: "The environment that the token should be valid for. Defaults to \"default\"";
|
|
75
|
-
readonly example: "development";
|
|
76
|
-
};
|
|
77
|
-
readonly project: {
|
|
78
|
-
readonly type: "string";
|
|
79
|
-
readonly description: "The project that the token should be valid for. Defaults to \"*\" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other.";
|
|
80
|
-
readonly example: "project-851";
|
|
81
|
-
};
|
|
82
|
-
readonly projects: {
|
|
83
|
-
readonly type: "array";
|
|
84
|
-
readonly description: "A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other.";
|
|
85
|
-
readonly example: readonly ["project-851", "project-852"];
|
|
86
|
-
readonly items: {
|
|
87
|
-
readonly type: "string";
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
}, {
|
|
92
|
-
readonly type: "object";
|
|
93
|
-
readonly required: readonly ["tokenName"];
|
|
94
|
-
readonly properties: {
|
|
95
|
-
readonly tokenName: {
|
|
96
|
-
readonly type: "string";
|
|
97
|
-
readonly description: "The name of the token.";
|
|
98
|
-
readonly example: "token-64522";
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
}];
|
|
102
|
-
}, {
|
|
103
|
-
readonly allOf: readonly [{
|
|
104
|
-
readonly required: readonly ["type"];
|
|
105
|
-
readonly type: "object";
|
|
106
|
-
readonly properties: {
|
|
107
|
-
readonly type: {
|
|
108
|
-
readonly type: "string";
|
|
109
|
-
readonly pattern: "^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$";
|
|
110
|
-
readonly description: "A client or frontend token. Must be one of the strings \"client\" or \"frontend\" (not case sensitive).";
|
|
111
|
-
readonly example: "frontend";
|
|
112
|
-
};
|
|
113
|
-
readonly environment: {
|
|
114
|
-
readonly type: "string";
|
|
115
|
-
readonly description: "The environment that the token should be valid for. Defaults to \"default\"";
|
|
116
|
-
readonly example: "development";
|
|
117
|
-
};
|
|
118
|
-
readonly project: {
|
|
119
|
-
readonly type: "string";
|
|
120
|
-
readonly description: "The project that the token should be valid for. Defaults to \"*\" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other.";
|
|
121
|
-
readonly example: "project-851";
|
|
122
|
-
};
|
|
123
|
-
readonly projects: {
|
|
124
|
-
readonly type: "array";
|
|
125
|
-
readonly description: "A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other.";
|
|
126
|
-
readonly example: readonly ["project-851", "project-852"];
|
|
127
|
-
readonly items: {
|
|
128
|
-
readonly type: "string";
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
}, {
|
|
133
|
-
readonly type: "object";
|
|
134
|
-
readonly required: readonly ["username"];
|
|
135
|
-
readonly properties: {
|
|
136
|
-
readonly username: {
|
|
137
|
-
readonly deprecated: true;
|
|
138
|
-
readonly type: "string";
|
|
139
|
-
readonly description: "The name of the token. This property is deprecated. Use `tokenName` instead.";
|
|
140
|
-
readonly example: "token-64523";
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
}];
|
|
144
|
-
}];
|
|
6
|
+
readonly oneOf: readonly [import("json-schema-to-ts").JSONSchema7, import("json-schema-to-ts").JSONSchema7, import("json-schema-to-ts").JSONSchema7, import("json-schema-to-ts").JSONSchema7];
|
|
145
7
|
readonly components: {};
|
|
146
8
|
};
|
|
147
9
|
export declare type CreateApiTokenSchema = FromSchema<typeof createApiTokenSchema>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createApiTokenSchema = void 0;
|
|
4
|
+
const all_of_1 = require("../util/all-of");
|
|
4
5
|
const adminSchema = {
|
|
5
6
|
required: ['type'],
|
|
6
7
|
type: 'object',
|
|
@@ -66,6 +67,17 @@ const clientFrontendSchema = {
|
|
|
66
67
|
},
|
|
67
68
|
},
|
|
68
69
|
};
|
|
70
|
+
const expireSchema = {
|
|
71
|
+
type: 'object',
|
|
72
|
+
properties: {
|
|
73
|
+
expiresAt: {
|
|
74
|
+
type: 'string',
|
|
75
|
+
format: 'date-time',
|
|
76
|
+
description: 'The time when this token should expire.',
|
|
77
|
+
example: '2023-07-04T11:26:24+02:00',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
};
|
|
69
81
|
// TODO: (openapi) this schema isn't entirely correct: `project` and `projects`
|
|
70
82
|
// are mutually exclusive.
|
|
71
83
|
//
|
|
@@ -79,27 +91,11 @@ exports.createApiTokenSchema = {
|
|
|
79
91
|
$id: '#/components/schemas/createApiTokenSchema',
|
|
80
92
|
type: 'object',
|
|
81
93
|
description: 'The data required to create an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys).',
|
|
82
|
-
properties: {
|
|
83
|
-
expiresAt: {
|
|
84
|
-
type: 'string',
|
|
85
|
-
format: 'date-time',
|
|
86
|
-
description: 'The time when this token should expire.',
|
|
87
|
-
example: '2023-07-04T11:26:24+02:00',
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
94
|
oneOf: [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
allOf: [adminSchema, usernameSchema],
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
allOf: [clientFrontendSchema, tokenNameSchema],
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
allOf: [clientFrontendSchema, usernameSchema],
|
|
102
|
-
},
|
|
95
|
+
(0, all_of_1.mergeAllOfs)([expireSchema, adminSchema, tokenNameSchema]),
|
|
96
|
+
(0, all_of_1.mergeAllOfs)([expireSchema, adminSchema, usernameSchema]),
|
|
97
|
+
(0, all_of_1.mergeAllOfs)([expireSchema, clientFrontendSchema, tokenNameSchema]),
|
|
98
|
+
(0, all_of_1.mergeAllOfs)([expireSchema, clientFrontendSchema, usernameSchema]),
|
|
103
99
|
],
|
|
104
100
|
components: {},
|
|
105
101
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-api-token-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-api-token-schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"create-api-token-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-api-token-schema.ts"],"names":[],"mappings":";;;AACA,2CAA6C;AAC7C,MAAM,WAAW,GAAG;IAChB,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAwB;YACjC,WAAW,EAAE,kEAAkE;YAC/E,OAAO,EAAE,OAAO;SACnB;KACJ;CACK,CAAC;AAEX,MAAM,eAAe,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,WAAW,CAAC;IACvB,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,OAAO,EAAE,aAAa;SACzB;KACJ;CACK,CAAC;AAEX,MAAM,cAAc,GAAG;IACnB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,8EAA8E;YAClF,OAAO,EAAE,aAAa;SACzB;KACJ;CACK,CAAC;AAEX,MAAM,oBAAoB,GAAG;IACzB,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EACH,+DAA+D;YACnE,WAAW,EAAE,qGAAqG;YAClH,OAAO,EAAE,UAAU;SACtB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,2EAA2E;YAC/E,OAAO,EAAE,aAAa;SACzB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,+MAA+M;YACnN,OAAO,EAAE,aAAa;SACzB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EACP,8KAA8K;YAClL,OAAO,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;YACvC,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACK,CAAC;AAEX,MAAM,YAAY,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,WAAW,EAAE,yCAAyC;YACtD,OAAO,EAAE,2BAA2B;SACvC;KACJ;CACK,CAAC;AAEX,+EAA+E;AAC/E,0BAA0B;AAC1B,EAAE;AACF,wEAAwE;AACxE,8BAA8B;AAC9B,EAAE;AACF,uEAAuE;AACvE,6EAA6E;AAC7E,2BAA2B;AACd,QAAA,oBAAoB,GAAG;IAChC,GAAG,EAAE,2CAA2C;IAChD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,sHAAsH;IAC1H,KAAK,EAAE;QACH,IAAA,oBAAW,EAAC,CAAC,YAAY,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC;QACzD,IAAA,oBAAW,EAAC,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;QACxD,IAAA,oBAAW,EAAC,CAAC,YAAY,EAAE,oBAAoB,EAAE,eAAe,CAAC,CAAC;QAClE,IAAA,oBAAW,EAAC,CAAC,YAAY,EAAE,oBAAoB,EAAE,cAAc,CAAC,CAAC;KACpE;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const createDependentFeatureSchema: {
|
|
3
|
+
readonly $id: "#/components/schemas/createDependentFeatureSchema";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly description: "Feature dependency on a parent feature in write model";
|
|
6
|
+
readonly required: readonly ["feature"];
|
|
7
|
+
readonly properties: {
|
|
8
|
+
readonly feature: {
|
|
9
|
+
readonly type: "string";
|
|
10
|
+
readonly description: "The name of the feature we depend on.";
|
|
11
|
+
readonly example: "parent_feature";
|
|
12
|
+
};
|
|
13
|
+
readonly enabled: {
|
|
14
|
+
readonly type: "boolean";
|
|
15
|
+
readonly description: "Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default.";
|
|
16
|
+
readonly example: false;
|
|
17
|
+
};
|
|
18
|
+
readonly variants: {
|
|
19
|
+
readonly type: "array";
|
|
20
|
+
readonly description: "The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status.";
|
|
21
|
+
readonly items: {
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
};
|
|
24
|
+
readonly example: readonly ["variantA", "variantB"];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly components: {};
|
|
28
|
+
};
|
|
29
|
+
export declare type CreateDependentFeatureSchema = FromSchema<typeof createDependentFeatureSchema>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDependentFeatureSchema = void 0;
|
|
4
|
+
exports.createDependentFeatureSchema = {
|
|
5
|
+
$id: '#/components/schemas/createDependentFeatureSchema',
|
|
6
|
+
type: 'object',
|
|
7
|
+
description: 'Feature dependency on a parent feature in write model',
|
|
8
|
+
required: ['feature'],
|
|
9
|
+
properties: {
|
|
10
|
+
feature: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
description: 'The name of the feature we depend on.',
|
|
13
|
+
example: 'parent_feature',
|
|
14
|
+
},
|
|
15
|
+
enabled: {
|
|
16
|
+
type: 'boolean',
|
|
17
|
+
description: 'Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default.',
|
|
18
|
+
example: false,
|
|
19
|
+
},
|
|
20
|
+
variants: {
|
|
21
|
+
type: 'array',
|
|
22
|
+
description: 'The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status.',
|
|
23
|
+
items: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
example: ['variantA', 'variantB'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
components: {},
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=create-dependent-feature-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-dependent-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-dependent-feature-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG;IACxC,GAAG,EAAE,mDAAmD;IACxD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE,gBAAgB;SAC5B;QACD,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EACP,qGAAqG;YACzG,OAAO,EAAE,KAAK;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EACP,0HAA0H;YAC9H,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;SACpC;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const createFeatureNamingPatternSchema: {
|
|
3
|
+
readonly $id: "#/components/schemas/createFeatureNamingPatternSchema";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly description: "Create a feature naming pattern";
|
|
6
|
+
readonly required: readonly ["pattern"];
|
|
7
|
+
readonly properties: {
|
|
8
|
+
readonly pattern: {
|
|
9
|
+
readonly type: "string";
|
|
10
|
+
readonly nullable: true;
|
|
11
|
+
readonly description: "A JavaScript regular expression pattern, without the start and end delimiters. Optional flags are not allowed.";
|
|
12
|
+
readonly example: "^[A-Za-z]+\\.[A-Za-z]+\\.[A-Za-z0-9-]+$";
|
|
13
|
+
};
|
|
14
|
+
readonly example: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly nullable: true;
|
|
17
|
+
readonly description: "An example of a feature name that matches the pattern. Must itself match the pattern supplied.";
|
|
18
|
+
readonly example: "dx.feature1.1-135";
|
|
19
|
+
};
|
|
20
|
+
readonly description: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly nullable: true;
|
|
23
|
+
readonly description: "A description of the pattern in a human-readable format. Will be shown to users when they create a new feature flag.";
|
|
24
|
+
readonly example: "<project>.<featureName>.<ticket>\n\nThe flag name should contain the project name, the feature name, and the ticket number, each separated by a dot.";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly components: {};
|
|
28
|
+
};
|
|
29
|
+
export declare type CreateFeatureNamingPatternSchema = FromSchema<typeof createFeatureNamingPatternSchema>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createFeatureNamingPatternSchema = void 0;
|
|
4
|
+
exports.createFeatureNamingPatternSchema = {
|
|
5
|
+
$id: '#/components/schemas/createFeatureNamingPatternSchema',
|
|
6
|
+
type: 'object',
|
|
7
|
+
description: 'Create a feature naming pattern',
|
|
8
|
+
required: ['pattern'],
|
|
9
|
+
properties: {
|
|
10
|
+
pattern: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
nullable: true,
|
|
13
|
+
description: 'A JavaScript regular expression pattern, without the start and end delimiters. Optional flags are not allowed.',
|
|
14
|
+
example: '^[A-Za-z]+\\.[A-Za-z]+\\.[A-Za-z0-9-]+$',
|
|
15
|
+
},
|
|
16
|
+
example: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
nullable: true,
|
|
19
|
+
description: 'An example of a feature name that matches the pattern. Must itself match the pattern supplied.',
|
|
20
|
+
example: 'dx.feature1.1-135',
|
|
21
|
+
},
|
|
22
|
+
description: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
nullable: true,
|
|
25
|
+
description: 'A description of the pattern in a human-readable format. Will be shown to users when they create a new feature flag.',
|
|
26
|
+
example: `<project>.<featureName>.<ticket>
|
|
27
|
+
|
|
28
|
+
The flag name should contain the project name, the feature name, and the ticket number, each separated by a dot.`,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
components: {},
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=create-feature-naming-pattern-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-feature-naming-pattern-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-feature-naming-pattern-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,gCAAgC,GAAG;IAC5C,GAAG,EAAE,uDAAuD;IAC5D,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EACP,gHAAgH;YACpH,OAAO,EAAE,yCAAyC;SACrD;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EACP,gGAAgG;YACpG,OAAO,EAAE,mBAAmB;SAC/B;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EACP,sHAAsH;YAC1H,OAAO,EAAE;;iHAE4F;SACxG;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -155,9 +155,9 @@ export declare const createFeatureStrategySchema: {
|
|
|
155
155
|
readonly description: "Extra data configured for this variant";
|
|
156
156
|
readonly properties: {
|
|
157
157
|
readonly type: {
|
|
158
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
158
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
159
159
|
readonly type: "string";
|
|
160
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
160
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
161
161
|
};
|
|
162
162
|
readonly value: {
|
|
163
163
|
readonly description: "The actual value of payload";
|
|
@@ -10,11 +10,26 @@ export declare const createStrategySchema: {
|
|
|
10
10
|
readonly description: "The name of the strategy type. Must be unique.";
|
|
11
11
|
readonly example: "my-custom-strategy";
|
|
12
12
|
};
|
|
13
|
+
readonly title: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly description: "The title of the strategy";
|
|
16
|
+
readonly example: "My awesome strategy";
|
|
17
|
+
};
|
|
13
18
|
readonly description: {
|
|
14
19
|
readonly type: "string";
|
|
15
20
|
readonly description: "A description of the strategy type.";
|
|
16
21
|
readonly example: "Enable the feature for users who have not logged in before.";
|
|
17
22
|
};
|
|
23
|
+
readonly editable: {
|
|
24
|
+
readonly type: "boolean";
|
|
25
|
+
readonly description: "Whether the strategy type is editable or not. Defaults to `true`.";
|
|
26
|
+
readonly example: false;
|
|
27
|
+
};
|
|
28
|
+
readonly deprecated: {
|
|
29
|
+
readonly type: "boolean";
|
|
30
|
+
readonly description: "Whether the strategy type is deprecated or not. Defaults to `false`.";
|
|
31
|
+
readonly example: true;
|
|
32
|
+
};
|
|
18
33
|
readonly parameters: {
|
|
19
34
|
readonly type: "array";
|
|
20
35
|
readonly description: "The parameter list lets you pass arguments to your custom activation strategy. These will be made available to your custom strategy implementation.";
|
|
@@ -12,11 +12,26 @@ exports.createStrategySchema = {
|
|
|
12
12
|
description: 'The name of the strategy type. Must be unique.',
|
|
13
13
|
example: 'my-custom-strategy',
|
|
14
14
|
},
|
|
15
|
+
title: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: 'The title of the strategy',
|
|
18
|
+
example: 'My awesome strategy',
|
|
19
|
+
},
|
|
15
20
|
description: {
|
|
16
21
|
type: 'string',
|
|
17
22
|
description: 'A description of the strategy type.',
|
|
18
23
|
example: 'Enable the feature for users who have not logged in before.',
|
|
19
24
|
},
|
|
25
|
+
editable: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
description: 'Whether the strategy type is editable or not. Defaults to `true`.',
|
|
28
|
+
example: false,
|
|
29
|
+
},
|
|
30
|
+
deprecated: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
description: 'Whether the strategy type is deprecated or not. Defaults to `false`.',
|
|
33
|
+
example: true,
|
|
34
|
+
},
|
|
20
35
|
parameters: {
|
|
21
36
|
type: 'array',
|
|
22
37
|
description: 'The parameter list lets you pass arguments to your custom activation strategy. These will be made available to your custom strategy implementation.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-strategy-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-strategy-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAChC,GAAG,EAAE,2CAA2C;IAChD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,oLAAoL;IACxL,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC;IAChC,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gDAAgD;YAC7D,OAAO,EAAE,oBAAoB;SAChC;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qCAAqC;YAClD,OAAO,EACH,6DAA6D;SACpE;QACD,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EACP,qJAAqJ;YACzJ,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;gBAC1B,UAAU,EAAE;oBACR,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2BAA2B;wBACxC,OAAO,EAAE,oBAAoB;qBAChC;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,gHAAgH;wBACpH,IAAI,EAAE;4BACF,QAAQ;4BACR,YAAY;4BACZ,MAAM;4BACN,QAAQ;4BACR,SAAS;yBACZ;wBACD,OAAO,EAAE,YAAY;qBACxB;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,sGAAsG;wBAC1G,OAAO,EACH,oDAAoD;qBAC3D;oBACD,QAAQ,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,WAAW,EACP,wFAAwF;wBAC5F,OAAO,EAAE,KAAK;qBACjB;iBACJ;aACJ;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-strategy-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-strategy-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAChC,GAAG,EAAE,2CAA2C;IAChD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,oLAAoL;IACxL,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC;IAChC,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gDAAgD;YAC7D,OAAO,EAAE,oBAAoB;SAChC;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2BAA2B;YACxC,OAAO,EAAE,qBAAqB;SACjC;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qCAAqC;YAClD,OAAO,EACH,6DAA6D;SACpE;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,SAAS;YACf,WAAW,EACP,mEAAmE;YACvE,OAAO,EAAE,KAAK;SACjB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EACP,sEAAsE;YAC1E,OAAO,EAAE,IAAI;SAChB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EACP,qJAAqJ;YACzJ,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;gBAC1B,UAAU,EAAE;oBACR,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2BAA2B;wBACxC,OAAO,EAAE,oBAAoB;qBAChC;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,gHAAgH;wBACpH,IAAI,EAAE;4BACF,QAAQ;4BACR,YAAY;4BACZ,MAAM;4BACN,QAAQ;4BACR,SAAS;yBACZ;wBACD,OAAO,EAAE,YAAY;qBACxB;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,sGAAsG;wBAC1G,OAAO,EACH,oDAAoD;qBAC3D;oBACD,QAAQ,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,WAAW,EACP,wFAAwF;wBAC5F,OAAO,EAAE,KAAK;qBACjB;iBACJ;aACJ;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|