unleash-server 8.0.2 → 8.0.3
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/dist/lib/addons/feature-event-formatter-md.d.ts.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.js +5 -3
- package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.test.js +3 -1
- package/dist/lib/addons/feature-event-formatter-md.test.js.map +1 -1
- package/dist/lib/addons/webhook.d.ts.map +1 -1
- package/dist/lib/addons/webhook.js +28 -2
- package/dist/lib/addons/webhook.js.map +1 -1
- package/dist/lib/addons/webhook.test.js +72 -0
- package/dist/lib/addons/webhook.test.js.map +1 -1
- package/dist/lib/app.d.ts.map +1 -1
- package/dist/lib/app.js +2 -0
- package/dist/lib/app.js.map +1 -1
- package/dist/lib/create-config.d.ts.map +1 -1
- package/dist/lib/create-config.js +1 -0
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/features/context/context-field-store.d.ts +1 -1
- package/dist/lib/features/context/context-field-store.d.ts.map +1 -1
- package/dist/lib/features/context/context-field-store.js +1 -5
- package/dist/lib/features/context/context-field-store.js.map +1 -1
- package/dist/lib/features/context/context-service.d.ts +5 -4
- package/dist/lib/features/context/context-service.d.ts.map +1 -1
- package/dist/lib/features/context/context-service.js +20 -27
- package/dist/lib/features/context/context-service.js.map +1 -1
- package/dist/lib/features/context/context-service.test.d.ts +2 -0
- package/dist/lib/features/context/context-service.test.d.ts.map +1 -0
- package/dist/lib/features/context/context-service.test.js +24 -0
- package/dist/lib/features/context/context-service.test.js.map +1 -0
- package/dist/lib/features/context/context.d.ts +1 -0
- package/dist/lib/features/context/context.d.ts.map +1 -1
- package/dist/lib/features/context/context.js +22 -10
- package/dist/lib/features/context/context.js.map +1 -1
- package/dist/lib/features/context/context.test.js +15 -1
- package/dist/lib/features/context/context.test.js.map +1 -1
- package/dist/lib/features/context/createContextService.d.ts +4 -1
- package/dist/lib/features/context/createContextService.d.ts.map +1 -1
- package/dist/lib/features/context/createContextService.js +2 -1
- package/dist/lib/features/context/createContextService.js.map +1 -1
- package/dist/lib/features/context/fake-context-field-store.d.ts +1 -1
- package/dist/lib/features/context/fake-context-field-store.d.ts.map +1 -1
- package/dist/lib/features/context/fake-context-field-store.js +1 -6
- package/dist/lib/features/context/fake-context-field-store.js.map +1 -1
- package/dist/lib/features/export-import-toggles/createExportImportService.js +1 -1
- package/dist/lib/features/export-import-toggles/createExportImportService.js.map +1 -1
- package/dist/lib/features/feature-toggle/converters/feature-toggle-row-converter.d.ts +1 -1
- package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.d.ts +2 -1
- package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.d.ts.map +1 -1
- package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.js +5 -0
- package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.js.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-controller.d.ts +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-controller.d.ts.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-controller.js +22 -2
- package/dist/lib/features/feature-toggle/feature-toggle-controller.js.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-service.d.ts +3 -2
- package/dist/lib/features/feature-toggle/feature-toggle-service.d.ts.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-service.js +11 -4
- package/dist/lib/features/feature-toggle/feature-toggle-service.js.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.d.ts +2 -0
- package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.d.ts.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.js +7 -0
- package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.js.map +1 -1
- package/dist/lib/features/feature-toggle/tests/feature-toggles.e2e.test.js +4 -0
- package/dist/lib/features/feature-toggle/tests/feature-toggles.e2e.test.js.map +1 -1
- package/dist/lib/features/feature-toggle/types/feature-toggle-strategies-store-type.d.ts +6 -0
- package/dist/lib/features/feature-toggle/types/feature-toggle-strategies-store-type.d.ts.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/constraint.d.ts +2 -0
- package/dist/lib/features/playground/feature-evaluator/constraint.d.ts.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/constraint.js +11 -1
- package/dist/lib/features/playground/feature-evaluator/constraint.js.map +1 -1
- package/dist/lib/features/playground/playground.test.js +2 -3
- package/dist/lib/features/playground/playground.test.js.map +1 -1
- package/dist/lib/features/release-plans/release-plan-template-store.d.ts +4 -0
- package/dist/lib/features/release-plans/release-plan-template-store.d.ts.map +1 -1
- package/dist/lib/features/release-plans/release-plan-template-store.js +25 -2
- package/dist/lib/features/release-plans/release-plan-template-store.js.map +1 -1
- package/dist/lib/features/release-plans/release-plan-template-store.test.js +75 -16
- package/dist/lib/features/release-plans/release-plan-template-store.test.js.map +1 -1
- package/dist/lib/features/release-plans/release-plan-template.d.ts +1 -0
- package/dist/lib/features/release-plans/release-plan-template.d.ts.map +1 -1
- package/dist/lib/features/scheduler/scheduler-service.test.js +1 -0
- package/dist/lib/features/scheduler/scheduler-service.test.js.map +1 -1
- package/dist/lib/features/unique-connection/unique-connection-store.e2e.test.js +3 -0
- package/dist/lib/features/unique-connection/unique-connection-store.e2e.test.js.map +1 -1
- package/dist/lib/middleware/rbac-middleware.d.ts.map +1 -1
- package/dist/lib/middleware/rbac-middleware.js +3 -4
- package/dist/lib/middleware/rbac-middleware.js.map +1 -1
- package/dist/lib/middleware/rbac-middleware.test.js +62 -24
- package/dist/lib/middleware/rbac-middleware.test.js.map +1 -1
- package/dist/lib/middleware/session-context.d.ts +20 -0
- package/dist/lib/middleware/session-context.d.ts.map +1 -0
- package/dist/lib/middleware/session-context.js +38 -0
- package/dist/lib/middleware/session-context.js.map +1 -0
- package/dist/lib/openapi/spec/admin-segment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +8 -8
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +17 -17
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/client-features-delta-schema.d.ts +5 -5
- package/dist/lib/openapi/spec/client-features-schema.d.ts +5 -5
- package/dist/lib/openapi/spec/client-segment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/constraint-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/export-result-schema.d.ts +68 -68
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +17 -17
- package/dist/lib/openapi/spec/feature-schema.d.ts +34 -34
- package/dist/lib/openapi/spec/feature-search-environment-schema.d.ts +34 -34
- package/dist/lib/openapi/spec/feature-search-response-schema.d.ts +68 -68
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +69 -69
- package/dist/lib/openapi/spec/health-report-schema.d.ts +69 -69
- package/dist/lib/openapi/spec/playground-constraint-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.d.ts +4 -0
- package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.d.ts.map +1 -0
- package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.js +91 -0
- package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.js.map +1 -0
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/playground-feature-schema.test.d.ts +1 -3
- package/dist/lib/openapi/spec/playground-feature-schema.test.d.ts.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.test.js +1 -89
- package/dist/lib/openapi/spec/playground-feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/playground-request-schema.arbitraries.d.ts +4 -0
- package/dist/lib/openapi/spec/playground-request-schema.arbitraries.d.ts.map +1 -0
- package/dist/lib/openapi/spec/playground-request-schema.arbitraries.js +9 -0
- package/dist/lib/openapi/spec/playground-request-schema.arbitraries.js.map +1 -0
- package/dist/lib/openapi/spec/playground-request-schema.test.d.ts +1 -3
- package/dist/lib/openapi/spec/playground-request-schema.test.d.ts.map +1 -1
- package/dist/lib/openapi/spec/playground-request-schema.test.js +1 -8
- package/dist/lib/openapi/spec/playground-request-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +9 -9
- package/dist/lib/openapi/spec/playground-response-schema.test.js +2 -3
- package/dist/lib/openapi/spec/playground-response-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/playground-segment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/profile-schema.d.ts +34 -34
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +69 -69
- package/dist/lib/openapi/spec/release-plan-milestone-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/release-plan-milestone-strategy-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/release-plan-schema.d.ts +8 -8
- package/dist/lib/openapi/spec/release-plan-template-schema.d.ts +14 -8
- package/dist/lib/openapi/spec/release-plan-template-schema.d.ts.map +1 -1
- package/dist/lib/openapi/spec/release-plan-template-schema.js +6 -0
- package/dist/lib/openapi/spec/release-plan-template-schema.js.map +1 -1
- package/dist/lib/openapi/spec/release-plan-templates-schema.d.ts +22 -16
- package/dist/lib/openapi/spec/release-plan-templates-schema.d.ts.map +1 -1
- package/dist/lib/openapi/spec/release-plans-schema.d.ts +16 -16
- package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.d.ts +4 -0
- package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.d.ts.map +1 -0
- package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.js +12 -0
- package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.js.map +1 -0
- package/dist/lib/openapi/spec/sdk-context-schema.test.d.ts +1 -3
- package/dist/lib/openapi/spec/sdk-context-schema.test.d.ts.map +1 -1
- package/dist/lib/openapi/spec/sdk-context-schema.test.js +1 -11
- package/dist/lib/openapi/spec/sdk-context-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/search-features-schema.d.ts +104 -104
- package/dist/lib/openapi/spec/segment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/segments-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/ui-config-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/ui-config-schema.d.ts.map +1 -1
- package/dist/lib/openapi/spec/ui-config-schema.js +5 -0
- package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/upsert-segment-schema.d.ts +1 -1
- package/dist/lib/schema/feature-schema.test.js +1 -1
- package/dist/lib/schema/feature-schema.test.js.map +1 -1
- package/dist/lib/schema/html-input.d.ts +1 -1
- package/dist/lib/schema/html-input.d.ts.map +1 -1
- package/dist/lib/schema/html-input.js +5 -2
- package/dist/lib/schema/html-input.js.map +1 -1
- package/dist/lib/schema/html-input.test.js +1 -1
- package/dist/lib/schema/html-input.test.js.map +1 -1
- package/dist/lib/services/feature-tag-service.d.ts +1 -1
- package/dist/lib/services/feature-tag-service.d.ts.map +1 -1
- package/dist/lib/services/feature-tag-service.js +5 -1
- package/dist/lib/services/feature-tag-service.js.map +1 -1
- package/dist/lib/services/index.d.ts.map +1 -1
- package/dist/lib/services/index.js +1 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/project-schema.js +1 -1
- package/dist/lib/services/project-schema.js.map +1 -1
- package/dist/lib/types/events.d.ts +8 -0
- package/dist/lib/types/events.d.ts.map +1 -1
- package/dist/lib/types/events.js +4 -0
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.d.ts.map +1 -1
- package/dist/lib/types/experimental.js +6 -1
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/option.d.ts +1 -0
- package/dist/lib/types/option.d.ts.map +1 -1
- package/dist/lib/types/permissions.d.ts +1 -0
- package/dist/lib/types/permissions.d.ts.map +1 -1
- package/dist/lib/types/permissions.js +2 -0
- package/dist/lib/types/permissions.js.map +1 -1
- package/dist/lib/types/stores.d.ts +1 -0
- package/dist/lib/types/stores.d.ts.map +1 -1
- package/dist/lib/types/stores.js.map +1 -1
- package/dist/lib/ui-config/ui-config-controller.d.ts +1 -2
- package/dist/lib/ui-config/ui-config-controller.d.ts.map +1 -1
- package/dist/lib/ui-config/ui-config-controller.js +3 -1
- package/dist/lib/ui-config/ui-config-controller.js.map +1 -1
- package/dist/lib/ui-config/ui-config-service.d.ts +3 -2
- package/dist/lib/ui-config/ui-config-service.d.ts.map +1 -1
- package/dist/lib/ui-config/ui-config-service.js +7 -1
- package/dist/lib/ui-config/ui-config-service.js.map +1 -1
- package/dist/lib/ui-config/ui-config.test.js +4 -0
- package/dist/lib/ui-config/ui-config.test.js.map +1 -1
- package/dist/lib/util/constants.d.ts +3 -1
- package/dist/lib/util/constants.d.ts.map +1 -1
- package/dist/lib/util/constants.js +11 -1
- package/dist/lib/util/constants.js.map +1 -1
- package/dist/mailtemplates/requested-cr-approval/requested-cr-approval.html.mustache +1 -1
- package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.d.ts +3 -0
- package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.d.ts.map +1 -0
- package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.js +8 -0
- package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.js.map +1 -0
- package/dist/migrations/20260708100000-add-project-release-template-permission.d.ts +3 -0
- package/dist/migrations/20260708100000-add-project-release-template-permission.d.ts.map +1 -0
- package/dist/migrations/20260708100000-add-project-release-template-permission.js +15 -0
- package/dist/migrations/20260708100000-add-project-release-template-permission.js.map +1 -0
- package/dist/server-dev.js +5 -1
- package/dist/server-dev.js.map +1 -1
- package/dist/test/arbitraries.d.ts +25 -0
- package/dist/test/arbitraries.d.ts.map +1 -0
- package/dist/test/arbitraries.js +143 -0
- package/dist/test/arbitraries.js.map +1 -0
- package/dist/test/arbitraries.test.d.ts +1 -24
- package/dist/test/arbitraries.test.d.ts.map +1 -1
- package/dist/test/arbitraries.test.js +1 -142
- package/dist/test/arbitraries.test.js.map +1 -1
- package/dist/test/e2e/api/admin/playground.e2e.test.js +2 -2
- package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/playground-service.test.js +2 -2
- package/dist/test/e2e/services/playground-service.test.js.map +1 -1
- package/dist/test/fixtures/fake-segment-store.d.ts +1 -1
- package/dist/test/fixtures/fake-segment-store.d.ts.map +1 -1
- package/dist/test/fixtures/fake-segment-store.js +2 -2
- package/dist/test/fixtures/fake-segment-store.js.map +1 -1
- package/dist/test/prom-last-wins.d.ts +2 -0
- package/dist/test/prom-last-wins.d.ts.map +1 -0
- package/dist/test/prom-last-wins.js +25 -0
- package/dist/test/prom-last-wins.js.map +1 -0
- package/dist/test/reset-cross-file-state.d.ts +2 -0
- package/dist/test/reset-cross-file-state.d.ts.map +1 -0
- package/dist/test/reset-cross-file-state.js +57 -0
- package/dist/test/reset-cross-file-state.js.map +1 -0
- package/dist/test-setup.d.ts.map +1 -1
- package/dist/test-setup.js +4 -0
- package/dist/test-setup.js.map +1 -1
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/AccordionSummary-KVRcLxLK.js +1 -0
- package/frontend/build/static/AdvancedPlayground-Cls80com.js +3 -0
- package/frontend/build/static/Alert-DQgOzmJF.js +1 -0
- package/frontend/build/static/Avatar-xU_puYmY.js +1 -0
- package/frontend/build/static/BackendConnections-CkI8tLcv.js +1 -0
- package/frontend/build/static/Box-rSzdGLLJ.js +1 -0
- package/frontend/build/static/Button-yGjgMTJI.js +1 -0
- package/frontend/build/static/Button.story-CBE27I2T.js +1 -0
- package/frontend/build/static/CircularProgress-CmGBJn6I.js +124 -0
- package/frontend/build/static/Close-DKD1r3T7.js +1 -0
- package/frontend/build/static/Close-nISwbNAY.js +1 -0
- package/frontend/build/static/CodeRenderer-RNHlNPBl.js +1094 -0
- package/frontend/build/static/CodeRenderer.story-Vw214z1Z.js +2 -0
- package/frontend/build/static/Collapse-COunT4rQ.js +1 -0
- package/frontend/build/static/ConditionallyRender-CEffh9Z-.js +1 -0
- package/frontend/build/static/ConnectSdkStep-DnH4iwnu.js +1 -0
- package/frontend/build/static/ConnectSdkStep.story-DeWPTOZK.js +1 -0
- package/frontend/build/static/CreateProject-eo1TZ1so.js +1 -0
- package/frontend/build/static/Dialog-DLpX4v6X.js +1 -0
- package/frontend/build/static/DialogWithAside-BxVspeMV.js +1 -0
- package/frontend/build/static/DialogWithAside.story-Dqmr9MnM.js +1 -0
- package/frontend/build/static/Divider-BYq1CcT0.js +1 -0
- package/frontend/build/static/EnterpriseEdge-D-g3JGCd.js +6 -0
- package/frontend/build/static/FeatureCard.story-B2Q-SD_-.js +1 -0
- package/frontend/build/static/FeatureMetricsChart-ETalRWKx.js +2 -0
- package/frontend/build/static/FeatureStaleDialog-CvD9ojNj.js +8 -0
- package/frontend/build/static/{FeatureViewLazyExport-8eQKTvdS.js → FeatureViewLazyExport-10Z3_Wda.js} +3 -3
- package/frontend/build/static/FileCopy-D1ZqmNek.js +1 -0
- package/frontend/build/static/FlagMetricsChart-dLfSDZ_x.js +2 -0
- package/frontend/build/static/FlagUsageSnippet-DOGwaqPZ.js +2 -0
- package/frontend/build/static/FlagUsageSnippet.story-tfMvt3kG.js +1 -0
- package/frontend/build/static/FormControlLabel-BrOlsUbv.js +1 -0
- package/frontend/build/static/FormField-CRXe4g4R.js +1 -0
- package/frontend/build/static/FrontendNetworkTrafficUsage-DGEwK1Qg.js +1 -0
- package/frontend/build/static/GenerateApiKey-C1aJtPh-.js +1 -0
- package/frontend/build/static/GenerateApiKey.story-DNMZG0qg.js +1 -0
- package/frontend/build/static/GenerateApiKeySummary-DkPI02tH.js +1 -0
- package/frontend/build/static/GenerateApiKeySummary.story-CruMFwTQ.js +1 -0
- package/frontend/build/static/{GridLayoutWrapper-B_YyjZ7l.js → GridLayoutWrapper-B3BIpxoE.js} +3 -3
- package/frontend/build/static/Grow-CuQu7Z-P.js +1 -0
- package/frontend/build/static/HelpOutlineOutlined-HDH1hus2.js +1 -0
- package/frontend/build/static/HelpResources.story-warJFqf6.js +1 -0
- package/frontend/build/static/Highlighter-BS0Ow0vZ.js +1 -0
- package/frontend/build/static/HtmlTooltip-3YsoM_F5.js +1 -0
- package/frontend/build/static/IconButton-BveFD3PF.js +1 -0
- package/frontend/build/static/ImpactMetricsPage-C57istn7.js +1 -0
- package/frontend/build/static/ImpactViewsPage-MKEHnt2w.js +1 -0
- package/frontend/build/static/LazyAdminExport-DfIYVWQD.js +38 -0
- package/frontend/build/static/LazyProjectExport-30GlUH0L.js +46 -0
- package/frontend/build/static/LifecycleChartComponent-Tj1pN5Tj.js +2 -0
- package/frontend/build/static/LineChartComponent-_RiDjL2-.js +1 -0
- package/frontend/build/static/Link-wv6er_Jy.js +1 -0
- package/frontend/build/static/Loader-CnLypnQx.js +1 -0
- package/frontend/build/static/{LogRocketRunner-Duzg1Kzh.js → LogRocketRunner-BS6AEpSK.js} +1 -1
- package/frontend/build/static/MarkCompletedDialogue-BeIA6eMj.js +1 -0
- package/frontend/build/static/Menu-DUeb4XP8.js +1 -0
- package/frontend/build/static/MenuBook-DZFyn--3.js +1 -0
- package/frontend/build/static/MenuItem-DNlBQQYG.js +1 -0
- package/frontend/build/static/Modal-DdH902AP.js +1 -0
- package/frontend/build/static/NetworkOverview-DF8c0k1P.js +1 -0
- package/frontend/build/static/{NetworkPrometheusAPIWarning-Bq62ygkV.js → NetworkPrometheusAPIWarning-B0v-FihJ.js} +1 -1
- package/frontend/build/static/NetworkTraffic-C1I4wwcb.js +1 -0
- package/frontend/build/static/NetworkTrafficUsage-DkdQx64o.js +1 -0
- package/frontend/build/static/NotificationStack.story-CdeU4r0p.js +1 -0
- package/frontend/build/static/OnboardingProgress-BuWQ2rjB.js +1 -0
- package/frontend/build/static/OnboardingProgress.story-CmQztiFV.js +1 -0
- package/frontend/build/static/OpenInNew-CHcHAi4B.js +1 -0
- package/frontend/build/static/PageContent-lT51j8jO.js +1 -0
- package/frontend/build/static/Paper-BvPQ0Zq6.js +1 -0
- package/frontend/build/static/PercentageDonut-CZVWd5fE.js +1 -0
- package/frontend/build/static/PermissionButton-Tj54K9Kc.js +1 -0
- package/frontend/build/static/Popover-FHiFav9d.js +1 -0
- package/frontend/build/static/Popper-Cut-_j4A.js +1 -0
- package/frontend/build/static/Portal-kwmlgXGI.js +1 -0
- package/frontend/build/static/Radio-Cj82h8o5.js +1 -0
- package/frontend/build/static/RadioGroup-BWTZb8iE.js +1 -0
- package/frontend/build/static/ReactJSONEditor-D65iiPmM.js +4 -0
- package/frontend/build/static/ReactJSONEditor.story-Bt3pxUGO.js +1 -0
- package/frontend/build/static/RoleCell-tqHUOlI7.js +1 -0
- package/frontend/build/static/RtlProvider-D1AlROju.js +1 -0
- package/frontend/build/static/Safeguard-DFEQulxy.js +1 -0
- package/frontend/build/static/SdkEvaluationStatus-B1rMywp-.js +17 -0
- package/frontend/build/static/SdkEvaluationStatus.story-BxgqLICz.js +1 -0
- package/frontend/build/static/Select-DdG1oq6O.js +3 -0
- package/frontend/build/static/SelectSdk-Boj2Ug-2.js +1 -0
- package/frontend/build/static/SelectSdk-CzRoKDb5.js +1 -0
- package/frontend/build/static/SelectSdk.story-BT9ke5Eb.js +1 -0
- package/frontend/build/static/SelectSdk.story-CdzotYoq.js +1 -0
- package/frontend/build/static/Spacing.story-CB6GkN5Z.js +1 -0
- package/frontend/build/static/StoriesPage-luLnHVc2.js +1 -0
- package/frontend/build/static/SwitchBase-cxExIOp0.js +1 -0
- package/frontend/build/static/TextField-Cf03Ror7.js +1 -0
- package/frontend/build/static/ThemeColors.story-Cx9bv5pL.js +1 -0
- package/frontend/build/static/TokenExplanation-CJjBSQ07.js +1 -0
- package/frontend/build/static/TokenExplanation.story-BoOaHRrQ.js +1 -0
- package/frontend/build/static/Tooltip-DPzrXyNS.js +1 -0
- package/frontend/build/static/TooltipResolver-CIBfA4vm.js +1 -0
- package/frontend/build/static/Truncator-CF0-SVks.js +1 -0
- package/frontend/build/static/Typography-nCkGT67u.js +1 -0
- package/frontend/build/static/Typography.story-CofmlvJB.js +1 -0
- package/frontend/build/static/UIContext-Dsr0TY8K.js +1 -0
- package/frontend/build/static/WhatsNewLayout.story-p4Cm8bgx.js +1 -0
- package/frontend/build/static/aggregateFeatureMetrics-D7AXsd2U.js +1 -0
- package/frontend/build/static/capitalize-DfXJDj8P.js +1 -0
- package/frontend/build/static/chartjs-plugin-annotation.esm-tsR8Pv5a.js +1 -0
- package/frontend/build/static/chunk-KS7C4IRE-PUpsdS_b.js +3 -0
- package/frontend/build/static/code-block-BZePA-4e.js +1 -0
- package/frontend/build/static/copy-to-clipboard-BCU4eeSw.js +1 -0
- package/frontend/build/static/createBox-DaDvp7MB.js +1 -0
- package/frontend/build/static/createSimplePaletteValueFilter-Bt9IjErz.js +1 -0
- package/frontend/build/static/createSvgIcon-D-6jHYkf.js +1 -0
- package/frontend/build/static/dividerClasses-DcI5JVLQ.js +1 -0
- package/frontend/build/static/{enterpriseEdgeCloud-C5u35XAw.js → enterpriseEdgeCloud-qnOcFE1S.js} +1 -1
- package/frontend/build/static/esm-DViSjNxt.js +12 -0
- package/frontend/build/static/formatAccessText-BhC1wtCg.js +1 -0
- package/frontend/build/static/httpErrorResponseHandler-BzpwldnE.js +1 -0
- package/frontend/build/static/impact-metrics-DrmGy_gn.png +0 -0
- package/frontend/build/static/{impact-metrics-icon-6dt-ye-h.js → impact-metrics-icon-Cg_ki-2e.js} +1 -1
- package/frontend/build/static/index-C2zVj2FI.js +287 -0
- package/frontend/build/static/{jsx-runtime-BnvnyDTF.js → jsx-runtime-DYfQNk55.js} +1 -1
- package/frontend/build/static/mcp-ADx0Sju7.png +0 -0
- package/frontend/build/static/{metricsFormatters-DhX-aU17.js → metricsFormatters-BmjW0KTj.js} +1 -1
- package/frontend/build/static/milestone-CciNgBhP.png +0 -0
- package/frontend/build/static/{mui-CoU2c-id.js → mui-C_omlwxE.js} +1 -1
- package/frontend/build/static/networkTrafficUsageHighlightPlugin-DPi6id5j.js +1 -0
- package/frontend/build/static/react-Ca03aNmg.js +1 -0
- package/frontend/build/static/resolveProps-CAVsjga5.js +1 -0
- package/frontend/build/static/servicenow-BmgZtZjb.svg +13 -0
- package/frontend/build/static/sharedTypes-CXnpeg4U.js +1 -0
- package/frontend/build/static/styled-CY_-vLWk.js +1 -0
- package/frontend/build/static/theme-DDCs0xPV.js +1 -0
- package/frontend/build/static/{themeStyles-DGVpwkcv.js → themeStyles-B99HStK1.js} +1 -1
- package/frontend/build/static/useApi-B7ZLy5tN.js +1 -0
- package/frontend/build/static/useApiGetter-C41iZzl2.js +1 -0
- package/frontend/build/static/useApiTokens-BQWPDfv2.js +1 -0
- package/frontend/build/static/useConditionalSWR-QWHOvx6V.js +1 -0
- package/frontend/build/static/useConditionallyHiddenColumns-DbQbB4u7.js +5 -0
- package/frontend/build/static/useCustomEvent-BnWpZ2E1.js +1 -0
- package/frontend/build/static/useEnhancedEffect-BBMUaXin.js +1 -0
- package/frontend/build/static/useEnvironments-Gu7r2cpc.js +2 -0
- package/frontend/build/static/useEventTracker-B0ILyjZB.js +1 -0
- package/frontend/build/static/useGroupedImpactMetricsData-jQ7IYFK3.js +1 -0
- package/frontend/build/static/useId-Bg4oXGUa.js +1 -0
- package/frontend/build/static/{useImpactMetrics-9qDSEpTn.js → useImpactMetrics-DXxTQl6p.js} +2 -2
- package/frontend/build/static/{useImpactMetricsEnabled-wRNO6-Oh.js → useImpactMetricsEnabled-B3om8V0b.js} +1 -1
- package/frontend/build/static/{useInstanceTrafficMetrics-CRCDB4TX.js → useInstanceTrafficMetrics-DkgcWjVM.js} +1 -1
- package/frontend/build/static/useLocationSettings-vlEPA_j3.js +1 -0
- package/frontend/build/static/useMediaQuery-BFm2lR-0.js +2 -0
- package/frontend/build/static/useOptionalPathParam-Cmh3Ejbi.js +1 -0
- package/frontend/build/static/{usePageTitle-CHzzFshF.js → usePageTitle-DD1IHvCw.js} +1 -1
- package/frontend/build/static/useSlot-Ce59-xJL.js +1 -0
- package/frontend/build/static/useSlotProps-v77xI-e5.js +1 -0
- package/frontend/build/static/useTheme-CTychWp2.js +10 -0
- package/frontend/build/static/useTimeout-B2sc1jSE.js +1 -0
- package/frontend/build/static/useToast-BUHn_9TC.js +1 -0
- package/frontend/build/static/{useUiConfig-DbVjTDpE.js → useUiConfig-BcfEDPWc.js} +1 -1
- package/frontend/build/static/useUiFlag-PbKW1iMa.js +1 -0
- package/frontend/package.json +13 -14
- package/package.json +6 -5
- package/frontend/build/static/AccordionSummary-wye3oOm6.js +0 -1
- package/frontend/build/static/AdvancedPlayground-DdeMb-6I.js +0 -3
- package/frontend/build/static/Alert-_bLyWbvx.js +0 -1
- package/frontend/build/static/BackendConnections-kgR0xyIH.js +0 -1
- package/frontend/build/static/Box-BQsxfFmC.js +0 -1
- package/frontend/build/static/Button-CebB8EPB.js +0 -1
- package/frontend/build/static/CircularProgress-C_LUU3DK.js +0 -101
- package/frontend/build/static/Close-DyTASMSq.js +0 -1
- package/frontend/build/static/Collapse-DPPTUMpf.js +0 -1
- package/frontend/build/static/ConditionallyRender---uTpMBn.js +0 -1
- package/frontend/build/static/CreateProject-BSlg0WYM.js +0 -1
- package/frontend/build/static/Dialog-C-xQxqWX.js +0 -1
- package/frontend/build/static/DialogWithAside-DzCSDyWo.js +0 -1110
- package/frontend/build/static/Divider-CsdWvu5F.js +0 -1
- package/frontend/build/static/EnterpriseEdge-CjslqYDM.js +0 -6
- package/frontend/build/static/FeatureMetricsChart-B4WryxcW.js +0 -2
- package/frontend/build/static/FeatureStaleDialog-EzReRTI5.js +0 -8
- package/frontend/build/static/FileCopy-B8HZEA83.js +0 -1
- package/frontend/build/static/FlagMetricsChart-hNQuwOxW.js +0 -2
- package/frontend/build/static/FormControlLabel-F5gDLixN.js +0 -1
- package/frontend/build/static/FrontendNetworkTrafficUsage-pcr83PWo.js +0 -1
- package/frontend/build/static/Grow-BIbmvKVy.js +0 -1
- package/frontend/build/static/HelpOutlineOutlined-CpMsVJZu.js +0 -1
- package/frontend/build/static/Highlighter-MomUaQww.js +0 -1
- package/frontend/build/static/HtmlTooltip-B9jv1G1R.js +0 -1
- package/frontend/build/static/ImpactMetricsPage-DGH_S9oz.js +0 -1
- package/frontend/build/static/ImpactViewsPage-DZqKPFvE.js +0 -1
- package/frontend/build/static/LazyAdminExport-B1ReAViz.js +0 -38
- package/frontend/build/static/LazyProjectExport-BMVcGpNI.js +0 -46
- package/frontend/build/static/LifecycleChartComponent-BeoRUO9q.js +0 -2
- package/frontend/build/static/LineChartComponent-BbCMbJ-m.js +0 -1
- package/frontend/build/static/Link-CfIScd2f.js +0 -1
- package/frontend/build/static/Loader-DdgXftPc.js +0 -1
- package/frontend/build/static/MarkCompletedDialogue-CcXyp8UE.js +0 -1
- package/frontend/build/static/NetworkOverview-0mBnFAZX.js +0 -1
- package/frontend/build/static/NetworkTraffic-DmG5Iv25.js +0 -1
- package/frontend/build/static/NetworkTrafficUsage-DccaVLYs.js +0 -1
- package/frontend/build/static/OnboardingProgress-Bp9sZ-ZM.js +0 -1
- package/frontend/build/static/PageContent-c0NDm5oD.js +0 -1
- package/frontend/build/static/PercentageDonut-DBDGNJlh.js +0 -1
- package/frontend/build/static/PermissionButton-B-IfzChn.js +0 -1
- package/frontend/build/static/Popover-CUTnSn2h.js +0 -1
- package/frontend/build/static/Radio-DL8ja0ll.js +0 -1
- package/frontend/build/static/RadioGroup-Ci3WHaOy.js +0 -1
- package/frontend/build/static/ReactJSONEditor-DeBI7JPg.js +0 -4
- package/frontend/build/static/RoleCell-DhYvu4YH.js +0 -1
- package/frontend/build/static/Safeguard-DErU6fSK.js +0 -1
- package/frontend/build/static/SelectSdk-Dr_pzQgX.js +0 -2
- package/frontend/build/static/StoriesPage-frGP1Bfr.js +0 -2
- package/frontend/build/static/SwitchBase-DWPIxZnN.js +0 -1
- package/frontend/build/static/TextField-oipjeg6n.js +0 -3
- package/frontend/build/static/Tooltip-BaILXXti.js +0 -1
- package/frontend/build/static/TooltipResolver-4A1YhwBy.js +0 -1
- package/frontend/build/static/Truncator-D2bO9ub6.js +0 -1
- package/frontend/build/static/Typography-BTdLWIUX.js +0 -1
- package/frontend/build/static/aggregateFeatureMetrics-B-67HaIZ.js +0 -1
- package/frontend/build/static/chartjs-plugin-annotation.esm-DP4wCpdA.js +0 -1
- package/frontend/build/static/chunk-QUQL4437-Dr42NpoL.js +0 -3
- package/frontend/build/static/createBox-Cf2UJsmc.js +0 -1
- package/frontend/build/static/createSimplePaletteValueFilter-BRAMrHWJ.js +0 -1
- package/frontend/build/static/dividerClasses-Cc45lyWo.js +0 -1
- package/frontend/build/static/esm-DdgY1Q5s.js +0 -12
- package/frontend/build/static/httpErrorResponseHandler-FMtt7Zqh.js +0 -1
- package/frontend/build/static/index-C04TEs4k.js +0 -290
- package/frontend/build/static/networkTrafficUsageHighlightPlugin-DlOtHZg3.js +0 -1
- package/frontend/build/static/react-GZhdek4G.js +0 -1
- package/frontend/build/static/useApiGetter-7FP8Avm4.js +0 -1
- package/frontend/build/static/useApiTokens-C8Dqw_X1.js +0 -1
- package/frontend/build/static/useConditionalSWR-DGgzun6i.js +0 -1
- package/frontend/build/static/useConditionallyHiddenColumns-C5q9zdfJ.js +0 -5
- package/frontend/build/static/useCustomEvent-Dj2V5RVb.js +0 -1
- package/frontend/build/static/useEnvironments-CTguhgy0.js +0 -2
- package/frontend/build/static/useGroupedImpactMetricsData-CW9qnV2y.js +0 -1
- package/frontend/build/static/useMediaQuery-DGx8zAkf.js +0 -2
- package/frontend/build/static/useOptionalPathParam-Cx3ru9yC.js +0 -1
- package/frontend/build/static/useTheme-CQqAmDLr.js +0 -9
|
@@ -14,7 +14,7 @@ export declare const playgroundConstraintSchema: {
|
|
|
14
14
|
readonly operator: {
|
|
15
15
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
16
16
|
readonly type: "string";
|
|
17
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
17
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
18
18
|
readonly example: "IN";
|
|
19
19
|
};
|
|
20
20
|
readonly caseInsensitive: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playground-feature-schema.arbitraries.d.ts","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-feature-schema.arbitraries.ts"],"names":[],"mappings":"AAAA,OAAW,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAOhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AA8F9E,eAAO,MAAM,QAAQ,QAAO,SAAS,CAAC,uBAAuB,CA6EnD,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import fc from 'fast-check';
|
|
2
|
+
import { strategyConstraint, urlFriendlyString, variants, } from '../../../test/arbitraries.js';
|
|
3
|
+
import { playgroundStrategyEvaluation, } from './playground-strategy-schema.js';
|
|
4
|
+
const playgroundStrategyConstraint = () => fc
|
|
5
|
+
.tuple(fc.boolean(), strategyConstraint())
|
|
6
|
+
.map(([result, constraint]) => ({
|
|
7
|
+
...constraint,
|
|
8
|
+
result,
|
|
9
|
+
}));
|
|
10
|
+
const playgroundStrategyConstraints = () => fc.array(playgroundStrategyConstraint());
|
|
11
|
+
const playgroundSegment = () => fc.record({
|
|
12
|
+
name: fc.string({ minLength: 1 }),
|
|
13
|
+
id: fc.nat(),
|
|
14
|
+
result: fc.boolean(),
|
|
15
|
+
constraints: playgroundStrategyConstraints(),
|
|
16
|
+
});
|
|
17
|
+
const playgroundStrategy = (name, parameters) => fc.record({
|
|
18
|
+
id: fc.uuid(),
|
|
19
|
+
name: fc.constant(name),
|
|
20
|
+
result: fc.oneof(fc.record({
|
|
21
|
+
evaluationStatus: fc.constant(playgroundStrategyEvaluation.evaluationComplete),
|
|
22
|
+
enabled: fc.boolean(),
|
|
23
|
+
}), fc.record({
|
|
24
|
+
evaluationStatus: fc.constant(playgroundStrategyEvaluation.evaluationIncomplete),
|
|
25
|
+
enabled: fc.constantFrom(playgroundStrategyEvaluation.unknownResult, false),
|
|
26
|
+
})),
|
|
27
|
+
parameters,
|
|
28
|
+
constraints: playgroundStrategyConstraints(),
|
|
29
|
+
segments: fc.array(playgroundSegment()),
|
|
30
|
+
disabled: fc.boolean(),
|
|
31
|
+
links: fc.constant({
|
|
32
|
+
edit: '/projects/some-project/features/some-feature/strategies/edit?environmentId=some-env&strategyId=some-strat',
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
const playgroundStrategies = () => fc.array(fc.oneof(playgroundStrategy('default', fc.constant({})), playgroundStrategy('flexibleRollout', fc.record({
|
|
36
|
+
groupId: fc.lorem({ maxCount: 1 }),
|
|
37
|
+
rollout: fc.nat({ max: 100 }).map(String),
|
|
38
|
+
stickiness: fc.constantFrom('default', 'userId', 'sessionId'),
|
|
39
|
+
})), playgroundStrategy('applicationHostname', fc.record({
|
|
40
|
+
hostNames: fc
|
|
41
|
+
.uniqueArray(fc.domain())
|
|
42
|
+
.map((domains) => domains.join(',')),
|
|
43
|
+
})), playgroundStrategy('remoteAddress', fc.record({
|
|
44
|
+
IPs: fc.uniqueArray(fc.ipV4()).map((ips) => ips.join(',')),
|
|
45
|
+
}))));
|
|
46
|
+
export const generate = () => fc
|
|
47
|
+
.tuple(variants(), fc.nat(), fc.record({
|
|
48
|
+
isEnabledInCurrentEnvironment: fc.boolean(),
|
|
49
|
+
projectId: urlFriendlyString(),
|
|
50
|
+
name: urlFriendlyString(),
|
|
51
|
+
strategies: playgroundStrategies(),
|
|
52
|
+
}))
|
|
53
|
+
.map(([generatedVariants, activeVariantIndex, feature]) => {
|
|
54
|
+
const strategyResult = () => {
|
|
55
|
+
const { strategies } = feature;
|
|
56
|
+
if (strategies.some((strategy) => strategy.result.enabled === true)) {
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
if (strategies.some((strategy) => strategy.result.enabled === 'unknown')) {
|
|
60
|
+
return 'unknown';
|
|
61
|
+
}
|
|
62
|
+
return false;
|
|
63
|
+
};
|
|
64
|
+
const isEnabled = feature.isEnabledInCurrentEnvironment &&
|
|
65
|
+
strategyResult() === true;
|
|
66
|
+
// the active variant is the disabled variant if the feature is
|
|
67
|
+
// disabled or has no variants.
|
|
68
|
+
let activeVariant = { name: 'disabled', enabled: false };
|
|
69
|
+
if (generatedVariants.length && isEnabled) {
|
|
70
|
+
const targetVariant = generatedVariants[activeVariantIndex % generatedVariants.length];
|
|
71
|
+
const targetPayload = targetVariant.payload
|
|
72
|
+
? targetVariant.payload
|
|
73
|
+
: undefined;
|
|
74
|
+
activeVariant = {
|
|
75
|
+
enabled: true,
|
|
76
|
+
name: targetVariant.name,
|
|
77
|
+
payload: targetPayload,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
...feature,
|
|
82
|
+
isEnabled,
|
|
83
|
+
strategies: {
|
|
84
|
+
result: strategyResult(),
|
|
85
|
+
data: feature.strategies,
|
|
86
|
+
},
|
|
87
|
+
variants: generatedVariants,
|
|
88
|
+
variant: activeVariant,
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=playground-feature-schema.arbitraries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playground-feature-schema.arbitraries.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-feature-schema.arbitraries.ts"],"names":[],"mappings":"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"}
|
|
@@ -278,7 +278,7 @@ export declare const playgroundFeatureSchema: {
|
|
|
278
278
|
readonly operator: {
|
|
279
279
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
280
280
|
readonly type: "string";
|
|
281
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
281
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
282
282
|
readonly example: "IN";
|
|
283
283
|
};
|
|
284
284
|
readonly caseInsensitive: {
|
|
@@ -356,7 +356,7 @@ export declare const playgroundFeatureSchema: {
|
|
|
356
356
|
readonly operator: {
|
|
357
357
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
358
358
|
readonly type: "string";
|
|
359
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
359
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
360
360
|
readonly example: "IN";
|
|
361
361
|
};
|
|
362
362
|
readonly caseInsensitive: {
|
|
@@ -528,7 +528,7 @@ export declare const playgroundFeatureSchema: {
|
|
|
528
528
|
readonly operator: {
|
|
529
529
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
530
530
|
readonly type: "string";
|
|
531
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
531
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
532
532
|
readonly example: "IN";
|
|
533
533
|
};
|
|
534
534
|
readonly caseInsensitive: {
|
|
@@ -606,7 +606,7 @@ export declare const playgroundFeatureSchema: {
|
|
|
606
606
|
readonly operator: {
|
|
607
607
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
608
608
|
readonly type: "string";
|
|
609
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
609
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
610
610
|
readonly example: "IN";
|
|
611
611
|
};
|
|
612
612
|
readonly caseInsensitive: {
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type PlaygroundFeatureSchema } from './playground-feature-schema.js';
|
|
3
|
-
export declare const generate: () => Arbitrary<PlaygroundFeatureSchema>;
|
|
1
|
+
export {};
|
|
4
2
|
//# sourceMappingURL=playground-feature-schema.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground-feature-schema.test.d.ts","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-feature-schema.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playground-feature-schema.test.d.ts","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-feature-schema.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,95 +1,7 @@
|
|
|
1
1
|
import fc from 'fast-check';
|
|
2
|
-
import { strategyConstraint, urlFriendlyString, variants, } from '../../../test/arbitraries.test.js';
|
|
3
2
|
import { validateSchema } from '../validate.js';
|
|
4
3
|
import { playgroundFeatureSchema, } from './playground-feature-schema.js';
|
|
5
|
-
import {
|
|
6
|
-
const playgroundStrategyConstraint = () => fc
|
|
7
|
-
.tuple(fc.boolean(), strategyConstraint())
|
|
8
|
-
.map(([result, constraint]) => ({
|
|
9
|
-
...constraint,
|
|
10
|
-
result,
|
|
11
|
-
}));
|
|
12
|
-
const playgroundStrategyConstraints = () => fc.array(playgroundStrategyConstraint());
|
|
13
|
-
const playgroundSegment = () => fc.record({
|
|
14
|
-
name: fc.string({ minLength: 1 }),
|
|
15
|
-
id: fc.nat(),
|
|
16
|
-
result: fc.boolean(),
|
|
17
|
-
constraints: playgroundStrategyConstraints(),
|
|
18
|
-
});
|
|
19
|
-
const playgroundStrategy = (name, parameters) => fc.record({
|
|
20
|
-
id: fc.uuid(),
|
|
21
|
-
name: fc.constant(name),
|
|
22
|
-
result: fc.oneof(fc.record({
|
|
23
|
-
evaluationStatus: fc.constant(playgroundStrategyEvaluation.evaluationComplete),
|
|
24
|
-
enabled: fc.boolean(),
|
|
25
|
-
}), fc.record({
|
|
26
|
-
evaluationStatus: fc.constant(playgroundStrategyEvaluation.evaluationIncomplete),
|
|
27
|
-
enabled: fc.constantFrom(playgroundStrategyEvaluation.unknownResult, false),
|
|
28
|
-
})),
|
|
29
|
-
parameters,
|
|
30
|
-
constraints: playgroundStrategyConstraints(),
|
|
31
|
-
segments: fc.array(playgroundSegment()),
|
|
32
|
-
disabled: fc.boolean(),
|
|
33
|
-
links: fc.constant({
|
|
34
|
-
edit: '/projects/some-project/features/some-feature/strategies/edit?environmentId=some-env&strategyId=some-strat',
|
|
35
|
-
}),
|
|
36
|
-
});
|
|
37
|
-
const playgroundStrategies = () => fc.array(fc.oneof(playgroundStrategy('default', fc.constant({})), playgroundStrategy('flexibleRollout', fc.record({
|
|
38
|
-
groupId: fc.lorem({ maxCount: 1 }),
|
|
39
|
-
rollout: fc.nat({ max: 100 }).map(String),
|
|
40
|
-
stickiness: fc.constantFrom('default', 'userId', 'sessionId'),
|
|
41
|
-
})), playgroundStrategy('applicationHostname', fc.record({
|
|
42
|
-
hostNames: fc
|
|
43
|
-
.uniqueArray(fc.domain())
|
|
44
|
-
.map((domains) => domains.join(',')),
|
|
45
|
-
})), playgroundStrategy('remoteAddress', fc.record({
|
|
46
|
-
IPs: fc.uniqueArray(fc.ipV4()).map((ips) => ips.join(',')),
|
|
47
|
-
}))));
|
|
48
|
-
export const generate = () => fc
|
|
49
|
-
.tuple(variants(), fc.nat(), fc.record({
|
|
50
|
-
isEnabledInCurrentEnvironment: fc.boolean(),
|
|
51
|
-
projectId: urlFriendlyString(),
|
|
52
|
-
name: urlFriendlyString(),
|
|
53
|
-
strategies: playgroundStrategies(),
|
|
54
|
-
}))
|
|
55
|
-
.map(([generatedVariants, activeVariantIndex, feature]) => {
|
|
56
|
-
const strategyResult = () => {
|
|
57
|
-
const { strategies } = feature;
|
|
58
|
-
if (strategies.some((strategy) => strategy.result.enabled === true)) {
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
if (strategies.some((strategy) => strategy.result.enabled === 'unknown')) {
|
|
62
|
-
return 'unknown';
|
|
63
|
-
}
|
|
64
|
-
return false;
|
|
65
|
-
};
|
|
66
|
-
const isEnabled = feature.isEnabledInCurrentEnvironment &&
|
|
67
|
-
strategyResult() === true;
|
|
68
|
-
// the active variant is the disabled variant if the feature is
|
|
69
|
-
// disabled or has no variants.
|
|
70
|
-
let activeVariant = { name: 'disabled', enabled: false };
|
|
71
|
-
if (generatedVariants.length && isEnabled) {
|
|
72
|
-
const targetVariant = generatedVariants[activeVariantIndex % generatedVariants.length];
|
|
73
|
-
const targetPayload = targetVariant.payload
|
|
74
|
-
? targetVariant.payload
|
|
75
|
-
: undefined;
|
|
76
|
-
activeVariant = {
|
|
77
|
-
enabled: true,
|
|
78
|
-
name: targetVariant.name,
|
|
79
|
-
payload: targetPayload,
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
...feature,
|
|
84
|
-
isEnabled,
|
|
85
|
-
strategies: {
|
|
86
|
-
result: strategyResult(),
|
|
87
|
-
data: feature.strategies,
|
|
88
|
-
},
|
|
89
|
-
variants: generatedVariants,
|
|
90
|
-
variant: activeVariant,
|
|
91
|
-
};
|
|
92
|
-
});
|
|
4
|
+
import { generate } from './playground-feature-schema.arbitraries.js';
|
|
93
5
|
test('playgroundFeatureSchema', () => fc.assert(fc.property(generate(), fc.context(), (data, ctx) => {
|
|
94
6
|
const results = validateSchema(playgroundFeatureSchema.$id, data);
|
|
95
7
|
ctx.log(JSON.stringify(results));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground-feature-schema.test.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-feature-schema.test.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"playground-feature-schema.test.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-feature-schema.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EACH,uBAAuB,GAE1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAEtE,IAAI,CAAC,yBAAyB,EAAE,GAAG,EAAE,CACjC,EAAE,CAAC,MAAM,CACL,EAAE,CAAC,QAAQ,CACP,QAAQ,EAAE,EACV,EAAE,CAAC,OAAO,EAAE,EACZ,CAAC,IAA6B,EAAE,GAAG,EAAE,EAAE;IACnC,MAAM,OAAO,GAAG,cAAc,CAC1B,uBAAuB,CAAC,GAAG,EAC3B,IAAI,CACP,CAAC;IACF,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;IACjC,OAAO,OAAO,KAAK,SAAS,CAAC;AACjC,CAAC,CACJ,CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playground-request-schema.arbitraries.d.ts","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-request-schema.arbitraries.ts"],"names":[],"mappings":"AAAA,OAAW,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAG9E,eAAO,MAAM,QAAQ,QAAO,SAAS,CAAC,uBAAuB,CAavD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import fc from 'fast-check';
|
|
2
|
+
import { urlFriendlyString } from '../../../test/arbitraries.js';
|
|
3
|
+
import { generate as generateContext } from './sdk-context-schema.arbitraries.js';
|
|
4
|
+
export const generate = () => fc.record({
|
|
5
|
+
environment: fc.oneof(fc.constantFrom('development', 'production', 'default'), fc.lorem({ maxCount: 1 })),
|
|
6
|
+
projects: fc.oneof(fc.uniqueArray(fc.oneof(fc.lorem({ maxCount: 1 }), urlFriendlyString())), fc.constant('*')),
|
|
7
|
+
context: generateContext(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=playground-request-schema.arbitraries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playground-request-schema.arbitraries.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-request-schema.arbitraries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAElF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAuC,EAAE,CAC7D,EAAE,CAAC,MAAM,CAAC;IACN,WAAW,EAAE,EAAE,CAAC,KAAK,CACjB,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,YAAY,EAAE,SAAS,CAAC,EACvD,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAC5B;IACD,QAAQ,EAAE,EAAE,CAAC,KAAK,CACd,EAAE,CAAC,WAAW,CACV,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAC3D,EACD,EAAE,CAAC,QAAQ,CAAC,GAAY,CAAC,CAC5B;IACD,OAAO,EAAE,eAAe,EAAE;CAC7B,CAAC,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type PlaygroundRequestSchema } from '../../../lib/openapi/spec/playground-request-schema.js';
|
|
3
|
-
export declare const generate: () => Arbitrary<PlaygroundRequestSchema>;
|
|
1
|
+
export {};
|
|
4
2
|
//# sourceMappingURL=playground-request-schema.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground-request-schema.test.d.ts","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-request-schema.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playground-request-schema.test.d.ts","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-request-schema.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import fc from 'fast-check';
|
|
2
|
-
import { urlFriendlyString } from '../../../test/arbitraries.test.js';
|
|
3
2
|
import { playgroundRequestSchema, } from '../../../lib/openapi/spec/playground-request-schema.js';
|
|
4
3
|
import { validateSchema } from '../validate.js';
|
|
5
|
-
import { generate
|
|
6
|
-
import { test } from '@fast-check/vitest';
|
|
7
|
-
export const generate = () => fc.record({
|
|
8
|
-
environment: fc.oneof(fc.constantFrom('development', 'production', 'default'), fc.lorem({ maxCount: 1 })),
|
|
9
|
-
projects: fc.oneof(fc.uniqueArray(fc.oneof(fc.lorem({ maxCount: 1 }), urlFriendlyString())), fc.constant('*')),
|
|
10
|
-
context: generateContext(),
|
|
11
|
-
});
|
|
4
|
+
import { generate } from './playground-request-schema.arbitraries.js';
|
|
12
5
|
test('playgroundRequestSchema', () => fc.assert(fc.property(generate(), (data) => validateSchema(playgroundRequestSchema.$id, data) === undefined)));
|
|
13
6
|
//# sourceMappingURL=playground-request-schema.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground-request-schema.test.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-request-schema.test.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"playground-request-schema.test.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-request-schema.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EACH,uBAAuB,GAE1B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAEtE,IAAI,CAAC,yBAAyB,EAAE,GAAG,EAAE,CACjC,EAAE,CAAC,MAAM,CACL,EAAE,CAAC,QAAQ,CACP,QAAQ,EAAE,EACV,CAAC,IAA6B,EAAE,EAAE,CAC9B,cAAc,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,SAAS,CACtE,CACJ,CAAC,CAAC"}
|
|
@@ -33,7 +33,7 @@ export declare const playgroundResponseSchema: {
|
|
|
33
33
|
readonly operator: {
|
|
34
34
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
35
35
|
readonly type: "string";
|
|
36
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
36
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
37
37
|
readonly example: "IN";
|
|
38
38
|
};
|
|
39
39
|
readonly caseInsensitive: {
|
|
@@ -88,7 +88,7 @@ export declare const playgroundResponseSchema: {
|
|
|
88
88
|
readonly operator: {
|
|
89
89
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
90
90
|
readonly type: "string";
|
|
91
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
91
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
92
92
|
readonly example: "IN";
|
|
93
93
|
};
|
|
94
94
|
readonly caseInsensitive: {
|
|
@@ -399,7 +399,7 @@ export declare const playgroundResponseSchema: {
|
|
|
399
399
|
readonly operator: {
|
|
400
400
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
401
401
|
readonly type: "string";
|
|
402
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
402
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
403
403
|
readonly example: "IN";
|
|
404
404
|
};
|
|
405
405
|
readonly caseInsensitive: {
|
|
@@ -477,7 +477,7 @@ export declare const playgroundResponseSchema: {
|
|
|
477
477
|
readonly operator: {
|
|
478
478
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
479
479
|
readonly type: "string";
|
|
480
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
480
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
481
481
|
readonly example: "IN";
|
|
482
482
|
};
|
|
483
483
|
readonly caseInsensitive: {
|
|
@@ -649,7 +649,7 @@ export declare const playgroundResponseSchema: {
|
|
|
649
649
|
readonly operator: {
|
|
650
650
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
651
651
|
readonly type: "string";
|
|
652
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
652
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
653
653
|
readonly example: "IN";
|
|
654
654
|
};
|
|
655
655
|
readonly caseInsensitive: {
|
|
@@ -727,7 +727,7 @@ export declare const playgroundResponseSchema: {
|
|
|
727
727
|
readonly operator: {
|
|
728
728
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
729
729
|
readonly type: "string";
|
|
730
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
730
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
731
731
|
readonly example: "IN";
|
|
732
732
|
};
|
|
733
733
|
readonly caseInsensitive: {
|
|
@@ -1023,7 +1023,7 @@ export declare const playgroundResponseSchema: {
|
|
|
1023
1023
|
readonly operator: {
|
|
1024
1024
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
1025
1025
|
readonly type: "string";
|
|
1026
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
1026
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
1027
1027
|
readonly example: "IN";
|
|
1028
1028
|
};
|
|
1029
1029
|
readonly caseInsensitive: {
|
|
@@ -1223,7 +1223,7 @@ export declare const playgroundResponseSchema: {
|
|
|
1223
1223
|
readonly operator: {
|
|
1224
1224
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
1225
1225
|
readonly type: "string";
|
|
1226
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
1226
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
1227
1227
|
readonly example: "IN";
|
|
1228
1228
|
};
|
|
1229
1229
|
readonly caseInsensitive: {
|
|
@@ -1301,7 +1301,7 @@ export declare const playgroundResponseSchema: {
|
|
|
1301
1301
|
readonly operator: {
|
|
1302
1302
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
1303
1303
|
readonly type: "string";
|
|
1304
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
1304
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
1305
1305
|
readonly example: "IN";
|
|
1306
1306
|
};
|
|
1307
1307
|
readonly caseInsensitive: {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import fc from 'fast-check';
|
|
2
2
|
import { playgroundResponseSchema, } from '../../../lib/openapi/spec/playground-response-schema.js';
|
|
3
3
|
import { validateSchema } from '../validate.js';
|
|
4
|
-
import { generate as generateInput } from './playground-request-schema.
|
|
5
|
-
import { generate as generateFeature } from './playground-feature-schema.
|
|
6
|
-
import { test } from '@fast-check/vitest';
|
|
4
|
+
import { generate as generateInput } from './playground-request-schema.arbitraries.js';
|
|
5
|
+
import { generate as generateFeature } from './playground-feature-schema.arbitraries.js';
|
|
7
6
|
const generate = () => fc.record({
|
|
8
7
|
input: generateInput(),
|
|
9
8
|
features: fc.uniqueArray(generateFeature(), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground-response-schema.test.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-response-schema.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,MAAM,YAAY,CAAC;AAChD,OAAO,EACH,wBAAwB,GAE3B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"playground-response-schema.test.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-response-schema.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,MAAM,YAAY,CAAC;AAChD,OAAO,EACH,wBAAwB,GAE3B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,4CAA4C,CAAC;AACzF,MAAM,QAAQ,GAAG,GAAwC,EAAE,CACvD,EAAE,CAAC,MAAM,CAAC;IACN,KAAK,EAAE,aAAa,EAAE;IACtB,QAAQ,EAAE,EAAE,CAAC,WAAW,CAAC,eAAe,EAAE,EAAE;QACxC,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI;KACtC,CAAC;CACL,CAAC,CAAC;AAEP,IAAI,CACA,0BAA0B,EAC1B,GAAG,EAAE,CACD,EAAE,CAAC,MAAM,CACL,EAAE,CAAC,QAAQ,CACP,QAAQ,EAAE,EACV,CAAC,IAA8B,EAAE,EAAE,CAC/B,cAAc,CAAC,wBAAwB,CAAC,GAAG,EAAE,IAAI,CAAC;IAClD,SAAS,CAChB,CACJ,EACL,KAAK,CACR,CAAC"}
|
|
@@ -44,7 +44,7 @@ export declare const playgroundSegmentSchema: {
|
|
|
44
44
|
readonly operator: {
|
|
45
45
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
46
46
|
readonly type: "string";
|
|
47
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
47
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
48
48
|
readonly example: "IN";
|
|
49
49
|
};
|
|
50
50
|
readonly caseInsensitive: {
|
|
@@ -255,7 +255,7 @@ export declare const playgroundStrategySchema: {
|
|
|
255
255
|
readonly operator: {
|
|
256
256
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
257
257
|
readonly type: "string";
|
|
258
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
258
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
259
259
|
readonly example: "IN";
|
|
260
260
|
};
|
|
261
261
|
readonly caseInsensitive: {
|
|
@@ -333,7 +333,7 @@ export declare const playgroundStrategySchema: {
|
|
|
333
333
|
readonly operator: {
|
|
334
334
|
readonly description: "The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/concepts/activation-strategies#constraint-operators).";
|
|
335
335
|
readonly type: "string";
|
|
336
|
-
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "REGEX"];
|
|
336
|
+
readonly enum: readonly ["NOT_IN", "IN", "STR_ENDS_WITH", "STR_STARTS_WITH", "STR_CONTAINS", "NUM_EQ", "NUM_GT", "NUM_GTE", "NUM_LT", "NUM_LTE", "DATE_AFTER", "DATE_BEFORE", "SEMVER_EQ", "SEMVER_GT", "SEMVER_LT", "SEMVER_GTE", "SEMVER_LTE", "REGEX"];
|
|
337
337
|
readonly example: "IN";
|
|
338
338
|
};
|
|
339
339
|
readonly caseInsensitive: {
|