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
|
@@ -33,9 +33,9 @@ export declare const createStrategyVariantSchema: {
|
|
|
33
33
|
readonly description: "Extra data configured for this variant";
|
|
34
34
|
readonly properties: {
|
|
35
35
|
readonly type: {
|
|
36
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
36
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
37
37
|
readonly type: "string";
|
|
38
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
38
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
39
39
|
};
|
|
40
40
|
readonly value: {
|
|
41
41
|
readonly description: "The actual value of payload";
|
|
@@ -35,9 +35,9 @@ exports.createStrategyVariantSchema = {
|
|
|
35
35
|
description: 'Extra data configured for this variant',
|
|
36
36
|
properties: {
|
|
37
37
|
type: {
|
|
38
|
-
description: 'The type of the value. Commonly used types are string, json and csv.',
|
|
38
|
+
description: 'The type of the value. Commonly used types are string, number, json and csv.',
|
|
39
39
|
type: 'string',
|
|
40
|
-
enum: ['json', 'csv', 'string'],
|
|
40
|
+
enum: ['json', 'csv', 'string', 'number'],
|
|
41
41
|
},
|
|
42
42
|
value: {
|
|
43
43
|
description: 'The actual value of payload',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-strategy-variant-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-strategy-variant-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAG;IACvC,GAAG,EAAE,kDAAkD;IACvD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,kRAAkR;IACtR,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC;IACxD,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,0DAA0D;YAC9D,OAAO,EAAE,YAAY;SACxB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EACP,gPAAgP;YACpP,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,IAAI;SAChB;QACD,UAAU,EAAE;YACR,WAAW,EACP,kTAAkT;YACtT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC;SAC5B;QACD,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,qOAAqO;YACzO,OAAO,EAAE,sBAAsB;SAClC;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;YAC3B,WAAW,EAAE,wCAAwC;YACrD,UAAU,EAAE;gBACR,IAAI,EAAE;oBACF,WAAW,EACP,
|
|
1
|
+
{"version":3,"file":"create-strategy-variant-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-strategy-variant-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAG;IACvC,GAAG,EAAE,kDAAkD;IACvD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,kRAAkR;IACtR,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC;IACxD,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,0DAA0D;YAC9D,OAAO,EAAE,YAAY;SACxB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EACP,gPAAgP;YACpP,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,IAAI;SAChB;QACD,UAAU,EAAE;YACR,WAAW,EACP,kTAAkT;YACtT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC;SAC5B;QACD,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,qOAAqO;YACzO,OAAO,EAAE,sBAAsB;SAClC;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;YAC3B,WAAW,EAAE,wCAAwC;YACrD,UAAU,EAAE;gBACR,IAAI,EAAE;oBACF,WAAW,EACP,8EAA8E;oBAClF,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC;iBAC5C;gBACD,KAAK,EAAE;oBACH,WAAW,EAAE,6BAA6B;oBAC1C,IAAI,EAAE,QAAQ;iBACjB;aACJ;YACD,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,EAAE;SACvD;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const dependentFeatureSchema: {
|
|
3
|
+
readonly $id: "#/components/schemas/dependentFeatureSchema";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly description: "Feature dependency on a parent feature in read model";
|
|
6
|
+
readonly required: readonly ["feature"];
|
|
7
|
+
readonly additionalProperties: false;
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly feature: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly description: "The name of the feature we depend on.";
|
|
12
|
+
readonly example: "parent_feature";
|
|
13
|
+
};
|
|
14
|
+
readonly enabled: {
|
|
15
|
+
readonly type: "boolean";
|
|
16
|
+
readonly description: "Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default.";
|
|
17
|
+
readonly example: false;
|
|
18
|
+
};
|
|
19
|
+
readonly variants: {
|
|
20
|
+
readonly type: "array";
|
|
21
|
+
readonly description: "The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status.";
|
|
22
|
+
readonly items: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
};
|
|
25
|
+
readonly example: readonly ["variantA", "variantB"];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly components: {};
|
|
29
|
+
};
|
|
30
|
+
export declare type DependentFeatureSchema = FromSchema<typeof dependentFeatureSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dependentFeatureSchema = void 0;
|
|
4
|
+
const create_dependent_feature_schema_1 = require("./create-dependent-feature-schema");
|
|
5
|
+
exports.dependentFeatureSchema = {
|
|
6
|
+
$id: '#/components/schemas/dependentFeatureSchema',
|
|
7
|
+
type: 'object',
|
|
8
|
+
description: 'Feature dependency on a parent feature in read model',
|
|
9
|
+
required: ['feature'],
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
properties: create_dependent_feature_schema_1.createDependentFeatureSchema.properties,
|
|
12
|
+
components: {},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=dependent-feature-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependent-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/dependent-feature-schema.ts"],"names":[],"mappings":";;;AACA,uFAAiF;AAEpE,QAAA,sBAAsB,GAAG;IAClC,GAAG,EAAE,6CAA6C;IAClD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE,8DAA4B,CAAC,UAAU;IACnD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const doraFeaturesSchema: {
|
|
3
|
+
readonly $id: "#/components/schemas/doraFeaturesSchema";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly additionalProperties: false;
|
|
6
|
+
readonly required: readonly ["name", "timeToProduction"];
|
|
7
|
+
readonly description: "The representation of a dora time to production feature metric";
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly name: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly description: "The name of a feature toggle";
|
|
12
|
+
};
|
|
13
|
+
readonly timeToProduction: {
|
|
14
|
+
readonly type: "number";
|
|
15
|
+
readonly description: "The average number of days it takes a feature toggle to get into production";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly components: {};
|
|
19
|
+
};
|
|
20
|
+
export declare type DoraFeaturesSchema = FromSchema<typeof doraFeaturesSchema>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.doraFeaturesSchema = void 0;
|
|
4
|
+
exports.doraFeaturesSchema = {
|
|
5
|
+
$id: '#/components/schemas/doraFeaturesSchema',
|
|
6
|
+
type: 'object',
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
required: ['name', 'timeToProduction'],
|
|
9
|
+
description: 'The representation of a dora time to production feature metric',
|
|
10
|
+
properties: {
|
|
11
|
+
name: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: 'The name of a feature toggle',
|
|
14
|
+
},
|
|
15
|
+
timeToProduction: {
|
|
16
|
+
type: 'number',
|
|
17
|
+
description: 'The average number of days it takes a feature toggle to get into production',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
components: {},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=dora-features-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dora-features-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/dora-features-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACtC,WAAW,EACP,gEAAgE;IACpE,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;SAC9C;QACD,gBAAgB,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,6EAA6E;SACpF;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -206,9 +206,9 @@ export declare const environmentProjectSchema: {
|
|
|
206
206
|
readonly description: "Extra data configured for this variant";
|
|
207
207
|
readonly properties: {
|
|
208
208
|
readonly type: {
|
|
209
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
209
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
210
210
|
readonly type: "string";
|
|
211
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
211
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
212
212
|
};
|
|
213
213
|
readonly value: {
|
|
214
214
|
readonly description: "The actual value of payload";
|
|
@@ -260,9 +260,9 @@ export declare const environmentProjectSchema: {
|
|
|
260
260
|
readonly description: "Extra data configured for this variant";
|
|
261
261
|
readonly properties: {
|
|
262
262
|
readonly type: {
|
|
263
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
263
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
264
264
|
readonly type: "string";
|
|
265
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
265
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
266
266
|
};
|
|
267
267
|
readonly value: {
|
|
268
268
|
readonly description: "The actual value of payload";
|
|
@@ -228,9 +228,9 @@ export declare const environmentsProjectSchema: {
|
|
|
228
228
|
readonly description: "Extra data configured for this variant";
|
|
229
229
|
readonly properties: {
|
|
230
230
|
readonly type: {
|
|
231
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
231
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
232
232
|
readonly type: "string";
|
|
233
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
233
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
234
234
|
};
|
|
235
235
|
readonly value: {
|
|
236
236
|
readonly description: "The actual value of payload";
|
|
@@ -282,9 +282,9 @@ export declare const environmentsProjectSchema: {
|
|
|
282
282
|
readonly description: "Extra data configured for this variant";
|
|
283
283
|
readonly properties: {
|
|
284
284
|
readonly type: {
|
|
285
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
285
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
286
286
|
readonly type: "string";
|
|
287
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
287
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
288
288
|
};
|
|
289
289
|
readonly value: {
|
|
290
290
|
readonly description: "The actual value of payload";
|
|
@@ -20,7 +20,7 @@ export declare const eventSchema: {
|
|
|
20
20
|
readonly type: {
|
|
21
21
|
readonly type: "string";
|
|
22
22
|
readonly description: "What [type](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#event-type-description) of event this is";
|
|
23
|
-
readonly enum: readonly ["application-created", "feature-created", "feature-deleted", "feature-updated", "feature-metadata-updated", "feature-variants-updated", "feature-environment-variants-updated", "feature-project-change", "feature-archived", "feature-revived", "feature-import", "feature-tagged", "feature-tag-import", "feature-strategy-update", "feature-strategy-add", "feature-strategy-remove", "strategy-order-changed", "drop-feature-tags", "feature-untagged", "feature-stale-on", "feature-stale-off", "drop-features", "feature-environment-enabled", "feature-environment-disabled", "strategy-created", "strategy-deleted", "strategy-deprecated", "strategy-reactivated", "strategy-updated", "strategy-import", "drop-strategies", "context-field-created", "context-field-updated", "context-field-deleted", "project-access-added", "project-created", "project-updated", "project-deleted", "project-import", "project-user-added", "project-user-removed", "project-user-role-changed", "project-group-role-changed", "project-group-added", "project-group-removed", "drop-projects", "tag-created", "tag-deleted", "tag-import", "drop-tags", "tag-type-created", "tag-type-deleted", "tag-type-updated", "tag-type-import", "drop-tag-types", "addon-config-created", "addon-config-updated", "addon-config-deleted", "db-pool-update", "user-created", "user-updated", "user-deleted", "drop-environments", "environment-import", "segment-created", "segment-updated", "segment-deleted", "group-created", "group-updated", "setting-created", "setting-updated", "setting-deleted", "client-metrics", "client-register", "pat-created", "pat-deleted", "public-signup-token-created", "public-signup-token-user-added", "public-signup-token-updated", "change-request-created", "change-request-discarded", "change-added", "change-discarded", "change-edited", "change-request-rejected", "change-request-approved", "change-request-approval-added", "change-request-cancelled", "change-request-sent-to-review", "change-request-applied", "api-token-created", "api-token-updated", "api-token-deleted", "feature-favorited", "feature-unfavorited", "project-favorited", "project-unfavorited", "features-exported", "features-imported", "service-account-created", "service-account-deleted", "service-account-updated", "feature-potentially-stale-on"];
|
|
23
|
+
readonly enum: readonly ["application-created", "feature-created", "feature-deleted", "feature-updated", "feature-metadata-updated", "feature-variants-updated", "feature-environment-variants-updated", "feature-project-change", "feature-archived", "feature-revived", "feature-import", "feature-tagged", "feature-tag-import", "feature-strategy-update", "feature-strategy-add", "feature-strategy-remove", "strategy-order-changed", "drop-feature-tags", "feature-untagged", "feature-stale-on", "feature-stale-off", "drop-features", "feature-environment-enabled", "feature-environment-disabled", "strategy-created", "strategy-deleted", "strategy-deprecated", "strategy-reactivated", "strategy-updated", "strategy-import", "drop-strategies", "context-field-created", "context-field-updated", "context-field-deleted", "project-access-added", "project-access-user-roles-updated", "project-access-group-roles-updated", "project-access-user-roles-deleted", "project-access-group-roles-deleted", "project-created", "project-updated", "project-deleted", "project-import", "project-user-added", "project-user-removed", "project-user-role-changed", "project-group-role-changed", "project-group-added", "project-group-removed", "drop-projects", "tag-created", "tag-deleted", "tag-import", "drop-tags", "tag-type-created", "tag-type-deleted", "tag-type-updated", "tag-type-import", "drop-tag-types", "addon-config-created", "addon-config-updated", "addon-config-deleted", "db-pool-update", "user-created", "user-updated", "user-deleted", "drop-environments", "environment-import", "segment-created", "segment-updated", "segment-deleted", "group-created", "group-updated", "group-deleted", "setting-created", "setting-updated", "setting-deleted", "client-metrics", "client-register", "pat-created", "pat-deleted", "public-signup-token-created", "public-signup-token-user-added", "public-signup-token-updated", "change-request-created", "change-request-discarded", "change-added", "change-discarded", "change-edited", "change-request-rejected", "change-request-approved", "change-request-approval-added", "change-request-cancelled", "change-request-sent-to-review", "change-request-applied", "api-token-created", "api-token-updated", "api-token-deleted", "feature-favorited", "feature-unfavorited", "project-favorited", "project-unfavorited", "features-exported", "features-imported", "service-account-created", "service-account-deleted", "service-account-updated", "feature-potentially-stale-on"];
|
|
24
24
|
readonly example: "feature-created";
|
|
25
25
|
};
|
|
26
26
|
readonly createdBy: {
|
|
@@ -152,9 +152,9 @@ export declare const eventSchema: {
|
|
|
152
152
|
readonly additionalProperties: false;
|
|
153
153
|
readonly properties: {
|
|
154
154
|
readonly type: {
|
|
155
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
155
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
156
156
|
readonly type: "string";
|
|
157
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
157
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
158
158
|
};
|
|
159
159
|
readonly value: {
|
|
160
160
|
readonly description: "The actual value of payload";
|
|
@@ -50,7 +50,7 @@ export declare const eventsSchema: {
|
|
|
50
50
|
readonly type: {
|
|
51
51
|
readonly type: "string";
|
|
52
52
|
readonly description: "What [type](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#event-type-description) of event this is";
|
|
53
|
-
readonly enum: readonly ["application-created", "feature-created", "feature-deleted", "feature-updated", "feature-metadata-updated", "feature-variants-updated", "feature-environment-variants-updated", "feature-project-change", "feature-archived", "feature-revived", "feature-import", "feature-tagged", "feature-tag-import", "feature-strategy-update", "feature-strategy-add", "feature-strategy-remove", "strategy-order-changed", "drop-feature-tags", "feature-untagged", "feature-stale-on", "feature-stale-off", "drop-features", "feature-environment-enabled", "feature-environment-disabled", "strategy-created", "strategy-deleted", "strategy-deprecated", "strategy-reactivated", "strategy-updated", "strategy-import", "drop-strategies", "context-field-created", "context-field-updated", "context-field-deleted", "project-access-added", "project-created", "project-updated", "project-deleted", "project-import", "project-user-added", "project-user-removed", "project-user-role-changed", "project-group-role-changed", "project-group-added", "project-group-removed", "drop-projects", "tag-created", "tag-deleted", "tag-import", "drop-tags", "tag-type-created", "tag-type-deleted", "tag-type-updated", "tag-type-import", "drop-tag-types", "addon-config-created", "addon-config-updated", "addon-config-deleted", "db-pool-update", "user-created", "user-updated", "user-deleted", "drop-environments", "environment-import", "segment-created", "segment-updated", "segment-deleted", "group-created", "group-updated", "setting-created", "setting-updated", "setting-deleted", "client-metrics", "client-register", "pat-created", "pat-deleted", "public-signup-token-created", "public-signup-token-user-added", "public-signup-token-updated", "change-request-created", "change-request-discarded", "change-added", "change-discarded", "change-edited", "change-request-rejected", "change-request-approved", "change-request-approval-added", "change-request-cancelled", "change-request-sent-to-review", "change-request-applied", "api-token-created", "api-token-updated", "api-token-deleted", "feature-favorited", "feature-unfavorited", "project-favorited", "project-unfavorited", "features-exported", "features-imported", "service-account-created", "service-account-deleted", "service-account-updated", "feature-potentially-stale-on"];
|
|
53
|
+
readonly enum: readonly ["application-created", "feature-created", "feature-deleted", "feature-updated", "feature-metadata-updated", "feature-variants-updated", "feature-environment-variants-updated", "feature-project-change", "feature-archived", "feature-revived", "feature-import", "feature-tagged", "feature-tag-import", "feature-strategy-update", "feature-strategy-add", "feature-strategy-remove", "strategy-order-changed", "drop-feature-tags", "feature-untagged", "feature-stale-on", "feature-stale-off", "drop-features", "feature-environment-enabled", "feature-environment-disabled", "strategy-created", "strategy-deleted", "strategy-deprecated", "strategy-reactivated", "strategy-updated", "strategy-import", "drop-strategies", "context-field-created", "context-field-updated", "context-field-deleted", "project-access-added", "project-access-user-roles-updated", "project-access-group-roles-updated", "project-access-user-roles-deleted", "project-access-group-roles-deleted", "project-created", "project-updated", "project-deleted", "project-import", "project-user-added", "project-user-removed", "project-user-role-changed", "project-group-role-changed", "project-group-added", "project-group-removed", "drop-projects", "tag-created", "tag-deleted", "tag-import", "drop-tags", "tag-type-created", "tag-type-deleted", "tag-type-updated", "tag-type-import", "drop-tag-types", "addon-config-created", "addon-config-updated", "addon-config-deleted", "db-pool-update", "user-created", "user-updated", "user-deleted", "drop-environments", "environment-import", "segment-created", "segment-updated", "segment-deleted", "group-created", "group-updated", "group-deleted", "setting-created", "setting-updated", "setting-deleted", "client-metrics", "client-register", "pat-created", "pat-deleted", "public-signup-token-created", "public-signup-token-user-added", "public-signup-token-updated", "change-request-created", "change-request-discarded", "change-added", "change-discarded", "change-edited", "change-request-rejected", "change-request-approved", "change-request-approval-added", "change-request-cancelled", "change-request-sent-to-review", "change-request-applied", "api-token-created", "api-token-updated", "api-token-deleted", "feature-favorited", "feature-unfavorited", "project-favorited", "project-unfavorited", "features-exported", "features-imported", "service-account-created", "service-account-deleted", "service-account-updated", "feature-potentially-stale-on"];
|
|
54
54
|
readonly example: "feature-created";
|
|
55
55
|
};
|
|
56
56
|
readonly createdBy: {
|
|
@@ -182,9 +182,9 @@ export declare const eventsSchema: {
|
|
|
182
182
|
readonly additionalProperties: false;
|
|
183
183
|
readonly properties: {
|
|
184
184
|
readonly type: {
|
|
185
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
185
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
186
186
|
readonly type: "string";
|
|
187
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
187
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
188
188
|
};
|
|
189
189
|
readonly value: {
|
|
190
190
|
readonly description: "The actual value of payload";
|
|
@@ -2,22 +2,9 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const exportQuerySchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/exportQuerySchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly required: readonly ["environment"];
|
|
6
5
|
readonly description: "Available query parameters for the [deprecated export/import](https://docs.getunleash.io/reference/deploy/import-export) functionality.";
|
|
7
|
-
readonly properties: {
|
|
8
|
-
readonly environment: {
|
|
9
|
-
readonly type: "string";
|
|
10
|
-
readonly example: "development";
|
|
11
|
-
readonly description: "The environment to export from";
|
|
12
|
-
};
|
|
13
|
-
readonly downloadFile: {
|
|
14
|
-
readonly type: "boolean";
|
|
15
|
-
readonly example: true;
|
|
16
|
-
readonly description: "Whether to return a downloadable file";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
6
|
readonly oneOf: readonly [{
|
|
20
|
-
readonly required: readonly ["features"];
|
|
7
|
+
readonly required: readonly ["environment", "features"];
|
|
21
8
|
readonly properties: {
|
|
22
9
|
readonly features: {
|
|
23
10
|
readonly type: "array";
|
|
@@ -28,15 +15,35 @@ export declare const exportQuerySchema: {
|
|
|
28
15
|
};
|
|
29
16
|
readonly description: "Selects features to export by name.";
|
|
30
17
|
};
|
|
18
|
+
readonly environment: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly example: "development";
|
|
21
|
+
readonly description: "The environment to export from";
|
|
22
|
+
};
|
|
23
|
+
readonly downloadFile: {
|
|
24
|
+
readonly type: "boolean";
|
|
25
|
+
readonly example: true;
|
|
26
|
+
readonly description: "Whether to return a downloadable file";
|
|
27
|
+
};
|
|
31
28
|
};
|
|
32
29
|
}, {
|
|
33
|
-
readonly required: readonly ["tag"];
|
|
30
|
+
readonly required: readonly ["environment", "tag"];
|
|
34
31
|
readonly properties: {
|
|
35
32
|
readonly tag: {
|
|
36
33
|
readonly type: "string";
|
|
37
34
|
readonly example: "release";
|
|
38
35
|
readonly description: "Selects features to export by tag. Takes precedence over the features field.";
|
|
39
36
|
};
|
|
37
|
+
readonly environment: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
readonly example: "development";
|
|
40
|
+
readonly description: "The environment to export from";
|
|
41
|
+
};
|
|
42
|
+
readonly downloadFile: {
|
|
43
|
+
readonly type: "boolean";
|
|
44
|
+
readonly example: true;
|
|
45
|
+
readonly description: "Whether to return a downloadable file";
|
|
46
|
+
};
|
|
40
47
|
};
|
|
41
48
|
}];
|
|
42
49
|
readonly components: {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.exportQuerySchema = void 0;
|
|
4
|
+
const commonProps = {
|
|
5
|
+
environment: {
|
|
6
|
+
type: 'string',
|
|
7
|
+
example: 'development',
|
|
8
|
+
description: 'The environment to export from',
|
|
9
|
+
},
|
|
10
|
+
downloadFile: {
|
|
11
|
+
type: 'boolean',
|
|
12
|
+
example: true,
|
|
13
|
+
description: 'Whether to return a downloadable file',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
4
16
|
exports.exportQuerySchema = {
|
|
5
17
|
$id: '#/components/schemas/exportQuerySchema',
|
|
6
18
|
type: 'object',
|
|
7
|
-
required: ['environment'],
|
|
8
19
|
description: 'Available query parameters for the [deprecated export/import](https://docs.getunleash.io/reference/deploy/import-export) functionality.',
|
|
9
|
-
properties: {
|
|
10
|
-
environment: {
|
|
11
|
-
type: 'string',
|
|
12
|
-
example: 'development',
|
|
13
|
-
description: 'The environment to export from',
|
|
14
|
-
},
|
|
15
|
-
downloadFile: {
|
|
16
|
-
type: 'boolean',
|
|
17
|
-
example: true,
|
|
18
|
-
description: 'Whether to return a downloadable file',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
20
|
oneOf: [
|
|
22
21
|
{
|
|
23
|
-
required: ['features'],
|
|
22
|
+
required: ['environment', 'features'],
|
|
24
23
|
properties: {
|
|
24
|
+
...commonProps,
|
|
25
25
|
features: {
|
|
26
26
|
type: 'array',
|
|
27
27
|
example: ['MyAwesomeFeature'],
|
|
@@ -34,8 +34,9 @@ exports.exportQuerySchema = {
|
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
required: ['tag'],
|
|
37
|
+
required: ['environment', 'tag'],
|
|
38
38
|
properties: {
|
|
39
|
+
...commonProps,
|
|
39
40
|
tag: {
|
|
40
41
|
type: 'string',
|
|
41
42
|
example: 'release',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-query-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/export-query-schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"export-query-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/export-query-schema.ts"],"names":[],"mappings":";;;AAEA,MAAM,WAAW,GAAG;IAChB,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,aAAa;QACtB,WAAW,EAAE,gCAAgC;KAChD;IACD,YAAY,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,uCAAuC;KACvD;CACK,CAAC;AAEE,QAAA,iBAAiB,GAAG;IAC7B,GAAG,EAAE,wCAAwC;IAC7C,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,0IAA0I;IAC9I,KAAK,EAAE;QACH;YACI,QAAQ,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC;YACrC,UAAU,EAAE;gBACR,GAAG,WAAW;gBACd,QAAQ,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,CAAC;qBACf;oBACD,WAAW,EAAE,qCAAqC;iBACrD;aACJ;SACJ;QACD;YACI,QAAQ,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC;YAChC,UAAU,EAAE;gBACR,GAAG,WAAW;gBACd,GAAG,EAAE;oBACD,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,SAAS;oBAClB,WAAW,EACP,8EAA8E;iBACrF;aACJ;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE,EAAE;KACd;CACK,CAAC"}
|
|
@@ -557,9 +557,9 @@ export declare const exportResultSchema: {
|
|
|
557
557
|
readonly description: "Extra data configured for this variant";
|
|
558
558
|
readonly properties: {
|
|
559
559
|
readonly type: {
|
|
560
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
560
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
561
561
|
readonly type: "string";
|
|
562
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
562
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
563
563
|
};
|
|
564
564
|
readonly value: {
|
|
565
565
|
readonly description: "The actual value of payload";
|
|
@@ -612,9 +612,9 @@ export declare const exportResultSchema: {
|
|
|
612
612
|
readonly description: "Extra data configured for this variant";
|
|
613
613
|
readonly properties: {
|
|
614
614
|
readonly type: {
|
|
615
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
615
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
616
616
|
readonly type: "string";
|
|
617
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
617
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
618
618
|
};
|
|
619
619
|
readonly value: {
|
|
620
620
|
readonly description: "The actual value of payload";
|
|
@@ -665,9 +665,9 @@ export declare const exportResultSchema: {
|
|
|
665
665
|
readonly additionalProperties: false;
|
|
666
666
|
readonly properties: {
|
|
667
667
|
readonly type: {
|
|
668
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
668
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
669
669
|
readonly type: "string";
|
|
670
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
670
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
671
671
|
};
|
|
672
672
|
readonly value: {
|
|
673
673
|
readonly description: "The actual value of payload";
|
|
@@ -873,9 +873,9 @@ export declare const exportResultSchema: {
|
|
|
873
873
|
readonly description: "Extra data configured for this variant";
|
|
874
874
|
readonly properties: {
|
|
875
875
|
readonly type: {
|
|
876
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
876
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
877
877
|
readonly type: "string";
|
|
878
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
878
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
879
879
|
};
|
|
880
880
|
readonly value: {
|
|
881
881
|
readonly description: "The actual value of payload";
|
|
@@ -928,9 +928,9 @@ export declare const exportResultSchema: {
|
|
|
928
928
|
readonly description: "Extra data configured for this variant";
|
|
929
929
|
readonly properties: {
|
|
930
930
|
readonly type: {
|
|
931
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
931
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
932
932
|
readonly type: "string";
|
|
933
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
933
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
934
934
|
};
|
|
935
935
|
readonly value: {
|
|
936
936
|
readonly description: "The actual value of payload";
|
|
@@ -1013,9 +1013,9 @@ export declare const exportResultSchema: {
|
|
|
1013
1013
|
readonly additionalProperties: false;
|
|
1014
1014
|
readonly properties: {
|
|
1015
1015
|
readonly type: {
|
|
1016
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1016
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1017
1017
|
readonly type: "string";
|
|
1018
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1018
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1019
1019
|
};
|
|
1020
1020
|
readonly value: {
|
|
1021
1021
|
readonly description: "The actual value of payload";
|
|
@@ -1246,9 +1246,9 @@ export declare const exportResultSchema: {
|
|
|
1246
1246
|
readonly description: "Extra data configured for this variant";
|
|
1247
1247
|
readonly properties: {
|
|
1248
1248
|
readonly type: {
|
|
1249
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1249
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1250
1250
|
readonly type: "string";
|
|
1251
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1251
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1252
1252
|
};
|
|
1253
1253
|
readonly value: {
|
|
1254
1254
|
readonly description: "The actual value of payload";
|
|
@@ -1301,9 +1301,9 @@ export declare const exportResultSchema: {
|
|
|
1301
1301
|
readonly description: "Extra data configured for this variant";
|
|
1302
1302
|
readonly properties: {
|
|
1303
1303
|
readonly type: {
|
|
1304
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1304
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1305
1305
|
readonly type: "string";
|
|
1306
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1306
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1307
1307
|
};
|
|
1308
1308
|
readonly value: {
|
|
1309
1309
|
readonly description: "The actual value of payload";
|
|
@@ -1591,9 +1591,9 @@ export declare const exportResultSchema: {
|
|
|
1591
1591
|
readonly description: "Extra data configured for this variant";
|
|
1592
1592
|
readonly properties: {
|
|
1593
1593
|
readonly type: {
|
|
1594
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1594
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1595
1595
|
readonly type: "string";
|
|
1596
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1596
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1597
1597
|
};
|
|
1598
1598
|
readonly value: {
|
|
1599
1599
|
readonly description: "The actual value of payload";
|
|
@@ -1646,9 +1646,9 @@ export declare const exportResultSchema: {
|
|
|
1646
1646
|
readonly description: "Extra data configured for this variant";
|
|
1647
1647
|
readonly properties: {
|
|
1648
1648
|
readonly type: {
|
|
1649
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1649
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1650
1650
|
readonly type: "string";
|
|
1651
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1651
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1652
1652
|
};
|
|
1653
1653
|
readonly value: {
|
|
1654
1654
|
readonly description: "The actual value of payload";
|
|
@@ -1699,9 +1699,9 @@ export declare const exportResultSchema: {
|
|
|
1699
1699
|
readonly additionalProperties: false;
|
|
1700
1700
|
readonly properties: {
|
|
1701
1701
|
readonly type: {
|
|
1702
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1702
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1703
1703
|
readonly type: "string";
|
|
1704
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1704
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1705
1705
|
};
|
|
1706
1706
|
readonly value: {
|
|
1707
1707
|
readonly description: "The actual value of payload";
|
|
@@ -1914,9 +1914,9 @@ export declare const exportResultSchema: {
|
|
|
1914
1914
|
readonly additionalProperties: false;
|
|
1915
1915
|
readonly properties: {
|
|
1916
1916
|
readonly type: {
|
|
1917
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1917
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
1918
1918
|
readonly type: "string";
|
|
1919
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1919
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
1920
1920
|
};
|
|
1921
1921
|
readonly value: {
|
|
1922
1922
|
readonly description: "The actual value of payload";
|
|
@@ -2026,9 +2026,9 @@ export declare const exportResultSchema: {
|
|
|
2026
2026
|
readonly additionalProperties: false;
|
|
2027
2027
|
readonly properties: {
|
|
2028
2028
|
readonly type: {
|
|
2029
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
2029
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
2030
2030
|
readonly type: "string";
|
|
2031
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
2031
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
2032
2032
|
};
|
|
2033
2033
|
readonly value: {
|
|
2034
2034
|
readonly description: "The actual value of payload";
|
|
@@ -272,9 +272,9 @@ export declare const featureEnvironmentSchema: {
|
|
|
272
272
|
readonly description: "Extra data configured for this variant";
|
|
273
273
|
readonly properties: {
|
|
274
274
|
readonly type: {
|
|
275
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
275
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
276
276
|
readonly type: "string";
|
|
277
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
277
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
278
278
|
};
|
|
279
279
|
readonly value: {
|
|
280
280
|
readonly description: "The actual value of payload";
|
|
@@ -327,9 +327,9 @@ export declare const featureEnvironmentSchema: {
|
|
|
327
327
|
readonly description: "Extra data configured for this variant";
|
|
328
328
|
readonly properties: {
|
|
329
329
|
readonly type: {
|
|
330
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
330
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
331
331
|
readonly type: "string";
|
|
332
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
332
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
333
333
|
};
|
|
334
334
|
readonly value: {
|
|
335
335
|
readonly description: "The actual value of payload";
|
|
@@ -380,9 +380,9 @@ export declare const featureEnvironmentSchema: {
|
|
|
380
380
|
readonly additionalProperties: false;
|
|
381
381
|
readonly properties: {
|
|
382
382
|
readonly type: {
|
|
383
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
383
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
384
384
|
readonly type: "string";
|
|
385
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
385
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
386
386
|
};
|
|
387
387
|
readonly value: {
|
|
388
388
|
readonly description: "The actual value of payload";
|
|
@@ -55,7 +55,7 @@ export declare const featureEventsSchema: {
|
|
|
55
55
|
readonly type: {
|
|
56
56
|
readonly type: "string";
|
|
57
57
|
readonly description: "What [type](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#event-type-description) of event this is";
|
|
58
|
-
readonly enum: readonly ["application-created", "feature-created", "feature-deleted", "feature-updated", "feature-metadata-updated", "feature-variants-updated", "feature-environment-variants-updated", "feature-project-change", "feature-archived", "feature-revived", "feature-import", "feature-tagged", "feature-tag-import", "feature-strategy-update", "feature-strategy-add", "feature-strategy-remove", "strategy-order-changed", "drop-feature-tags", "feature-untagged", "feature-stale-on", "feature-stale-off", "drop-features", "feature-environment-enabled", "feature-environment-disabled", "strategy-created", "strategy-deleted", "strategy-deprecated", "strategy-reactivated", "strategy-updated", "strategy-import", "drop-strategies", "context-field-created", "context-field-updated", "context-field-deleted", "project-access-added", "project-created", "project-updated", "project-deleted", "project-import", "project-user-added", "project-user-removed", "project-user-role-changed", "project-group-role-changed", "project-group-added", "project-group-removed", "drop-projects", "tag-created", "tag-deleted", "tag-import", "drop-tags", "tag-type-created", "tag-type-deleted", "tag-type-updated", "tag-type-import", "drop-tag-types", "addon-config-created", "addon-config-updated", "addon-config-deleted", "db-pool-update", "user-created", "user-updated", "user-deleted", "drop-environments", "environment-import", "segment-created", "segment-updated", "segment-deleted", "group-created", "group-updated", "setting-created", "setting-updated", "setting-deleted", "client-metrics", "client-register", "pat-created", "pat-deleted", "public-signup-token-created", "public-signup-token-user-added", "public-signup-token-updated", "change-request-created", "change-request-discarded", "change-added", "change-discarded", "change-edited", "change-request-rejected", "change-request-approved", "change-request-approval-added", "change-request-cancelled", "change-request-sent-to-review", "change-request-applied", "api-token-created", "api-token-updated", "api-token-deleted", "feature-favorited", "feature-unfavorited", "project-favorited", "project-unfavorited", "features-exported", "features-imported", "service-account-created", "service-account-deleted", "service-account-updated", "feature-potentially-stale-on"];
|
|
58
|
+
readonly enum: readonly ["application-created", "feature-created", "feature-deleted", "feature-updated", "feature-metadata-updated", "feature-variants-updated", "feature-environment-variants-updated", "feature-project-change", "feature-archived", "feature-revived", "feature-import", "feature-tagged", "feature-tag-import", "feature-strategy-update", "feature-strategy-add", "feature-strategy-remove", "strategy-order-changed", "drop-feature-tags", "feature-untagged", "feature-stale-on", "feature-stale-off", "drop-features", "feature-environment-enabled", "feature-environment-disabled", "strategy-created", "strategy-deleted", "strategy-deprecated", "strategy-reactivated", "strategy-updated", "strategy-import", "drop-strategies", "context-field-created", "context-field-updated", "context-field-deleted", "project-access-added", "project-access-user-roles-updated", "project-access-group-roles-updated", "project-access-user-roles-deleted", "project-access-group-roles-deleted", "project-created", "project-updated", "project-deleted", "project-import", "project-user-added", "project-user-removed", "project-user-role-changed", "project-group-role-changed", "project-group-added", "project-group-removed", "drop-projects", "tag-created", "tag-deleted", "tag-import", "drop-tags", "tag-type-created", "tag-type-deleted", "tag-type-updated", "tag-type-import", "drop-tag-types", "addon-config-created", "addon-config-updated", "addon-config-deleted", "db-pool-update", "user-created", "user-updated", "user-deleted", "drop-environments", "environment-import", "segment-created", "segment-updated", "segment-deleted", "group-created", "group-updated", "group-deleted", "setting-created", "setting-updated", "setting-deleted", "client-metrics", "client-register", "pat-created", "pat-deleted", "public-signup-token-created", "public-signup-token-user-added", "public-signup-token-updated", "change-request-created", "change-request-discarded", "change-added", "change-discarded", "change-edited", "change-request-rejected", "change-request-approved", "change-request-approval-added", "change-request-cancelled", "change-request-sent-to-review", "change-request-applied", "api-token-created", "api-token-updated", "api-token-deleted", "feature-favorited", "feature-unfavorited", "project-favorited", "project-unfavorited", "features-exported", "features-imported", "service-account-created", "service-account-deleted", "service-account-updated", "feature-potentially-stale-on"];
|
|
59
59
|
readonly example: "feature-created";
|
|
60
60
|
};
|
|
61
61
|
readonly createdBy: {
|
|
@@ -187,9 +187,9 @@ export declare const featureEventsSchema: {
|
|
|
187
187
|
readonly additionalProperties: false;
|
|
188
188
|
readonly properties: {
|
|
189
189
|
readonly type: {
|
|
190
|
-
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
190
|
+
readonly description: "The type of the value. Commonly used types are string, number, json and csv.";
|
|
191
191
|
readonly type: "string";
|
|
192
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
192
|
+
readonly enum: readonly ["json", "csv", "string", "number"];
|
|
193
193
|
};
|
|
194
194
|
readonly value: {
|
|
195
195
|
readonly description: "The actual value of payload";
|