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.
Files changed (488) hide show
  1. package/dist/lib/addons/feature-event-formatter-md.d.ts.map +1 -1
  2. package/dist/lib/addons/feature-event-formatter-md.js +5 -3
  3. package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
  4. package/dist/lib/addons/feature-event-formatter-md.test.js +3 -1
  5. package/dist/lib/addons/feature-event-formatter-md.test.js.map +1 -1
  6. package/dist/lib/addons/webhook.d.ts.map +1 -1
  7. package/dist/lib/addons/webhook.js +28 -2
  8. package/dist/lib/addons/webhook.js.map +1 -1
  9. package/dist/lib/addons/webhook.test.js +72 -0
  10. package/dist/lib/addons/webhook.test.js.map +1 -1
  11. package/dist/lib/app.d.ts.map +1 -1
  12. package/dist/lib/app.js +2 -0
  13. package/dist/lib/app.js.map +1 -1
  14. package/dist/lib/create-config.d.ts.map +1 -1
  15. package/dist/lib/create-config.js +1 -0
  16. package/dist/lib/create-config.js.map +1 -1
  17. package/dist/lib/features/context/context-field-store.d.ts +1 -1
  18. package/dist/lib/features/context/context-field-store.d.ts.map +1 -1
  19. package/dist/lib/features/context/context-field-store.js +1 -5
  20. package/dist/lib/features/context/context-field-store.js.map +1 -1
  21. package/dist/lib/features/context/context-service.d.ts +5 -4
  22. package/dist/lib/features/context/context-service.d.ts.map +1 -1
  23. package/dist/lib/features/context/context-service.js +20 -27
  24. package/dist/lib/features/context/context-service.js.map +1 -1
  25. package/dist/lib/features/context/context-service.test.d.ts +2 -0
  26. package/dist/lib/features/context/context-service.test.d.ts.map +1 -0
  27. package/dist/lib/features/context/context-service.test.js +24 -0
  28. package/dist/lib/features/context/context-service.test.js.map +1 -0
  29. package/dist/lib/features/context/context.d.ts +1 -0
  30. package/dist/lib/features/context/context.d.ts.map +1 -1
  31. package/dist/lib/features/context/context.js +22 -10
  32. package/dist/lib/features/context/context.js.map +1 -1
  33. package/dist/lib/features/context/context.test.js +15 -1
  34. package/dist/lib/features/context/context.test.js.map +1 -1
  35. package/dist/lib/features/context/createContextService.d.ts +4 -1
  36. package/dist/lib/features/context/createContextService.d.ts.map +1 -1
  37. package/dist/lib/features/context/createContextService.js +2 -1
  38. package/dist/lib/features/context/createContextService.js.map +1 -1
  39. package/dist/lib/features/context/fake-context-field-store.d.ts +1 -1
  40. package/dist/lib/features/context/fake-context-field-store.d.ts.map +1 -1
  41. package/dist/lib/features/context/fake-context-field-store.js +1 -6
  42. package/dist/lib/features/context/fake-context-field-store.js.map +1 -1
  43. package/dist/lib/features/export-import-toggles/createExportImportService.js +1 -1
  44. package/dist/lib/features/export-import-toggles/createExportImportService.js.map +1 -1
  45. package/dist/lib/features/feature-toggle/converters/feature-toggle-row-converter.d.ts +1 -1
  46. package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.d.ts +2 -1
  47. package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.d.ts.map +1 -1
  48. package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.js +5 -0
  49. package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.js.map +1 -1
  50. package/dist/lib/features/feature-toggle/feature-toggle-controller.d.ts +1 -1
  51. package/dist/lib/features/feature-toggle/feature-toggle-controller.d.ts.map +1 -1
  52. package/dist/lib/features/feature-toggle/feature-toggle-controller.js +22 -2
  53. package/dist/lib/features/feature-toggle/feature-toggle-controller.js.map +1 -1
  54. package/dist/lib/features/feature-toggle/feature-toggle-service.d.ts +3 -2
  55. package/dist/lib/features/feature-toggle/feature-toggle-service.d.ts.map +1 -1
  56. package/dist/lib/features/feature-toggle/feature-toggle-service.js +11 -4
  57. package/dist/lib/features/feature-toggle/feature-toggle-service.js.map +1 -1
  58. package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.d.ts +2 -0
  59. package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.d.ts.map +1 -1
  60. package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.js +7 -0
  61. package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.js.map +1 -1
  62. package/dist/lib/features/feature-toggle/tests/feature-toggles.e2e.test.js +4 -0
  63. package/dist/lib/features/feature-toggle/tests/feature-toggles.e2e.test.js.map +1 -1
  64. package/dist/lib/features/feature-toggle/types/feature-toggle-strategies-store-type.d.ts +6 -0
  65. package/dist/lib/features/feature-toggle/types/feature-toggle-strategies-store-type.d.ts.map +1 -1
  66. package/dist/lib/features/playground/feature-evaluator/constraint.d.ts +2 -0
  67. package/dist/lib/features/playground/feature-evaluator/constraint.d.ts.map +1 -1
  68. package/dist/lib/features/playground/feature-evaluator/constraint.js +11 -1
  69. package/dist/lib/features/playground/feature-evaluator/constraint.js.map +1 -1
  70. package/dist/lib/features/playground/playground.test.js +2 -3
  71. package/dist/lib/features/playground/playground.test.js.map +1 -1
  72. package/dist/lib/features/release-plans/release-plan-template-store.d.ts +4 -0
  73. package/dist/lib/features/release-plans/release-plan-template-store.d.ts.map +1 -1
  74. package/dist/lib/features/release-plans/release-plan-template-store.js +25 -2
  75. package/dist/lib/features/release-plans/release-plan-template-store.js.map +1 -1
  76. package/dist/lib/features/release-plans/release-plan-template-store.test.js +75 -16
  77. package/dist/lib/features/release-plans/release-plan-template-store.test.js.map +1 -1
  78. package/dist/lib/features/release-plans/release-plan-template.d.ts +1 -0
  79. package/dist/lib/features/release-plans/release-plan-template.d.ts.map +1 -1
  80. package/dist/lib/features/scheduler/scheduler-service.test.js +1 -0
  81. package/dist/lib/features/scheduler/scheduler-service.test.js.map +1 -1
  82. package/dist/lib/features/unique-connection/unique-connection-store.e2e.test.js +3 -0
  83. package/dist/lib/features/unique-connection/unique-connection-store.e2e.test.js.map +1 -1
  84. package/dist/lib/middleware/rbac-middleware.d.ts.map +1 -1
  85. package/dist/lib/middleware/rbac-middleware.js +3 -4
  86. package/dist/lib/middleware/rbac-middleware.js.map +1 -1
  87. package/dist/lib/middleware/rbac-middleware.test.js +62 -24
  88. package/dist/lib/middleware/rbac-middleware.test.js.map +1 -1
  89. package/dist/lib/middleware/session-context.d.ts +20 -0
  90. package/dist/lib/middleware/session-context.d.ts.map +1 -0
  91. package/dist/lib/middleware/session-context.js +38 -0
  92. package/dist/lib/middleware/session-context.js.map +1 -0
  93. package/dist/lib/openapi/spec/admin-segment-schema.d.ts +1 -1
  94. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +4 -4
  95. package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +8 -8
  96. package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +17 -17
  97. package/dist/lib/openapi/spec/client-feature-schema.d.ts +2 -2
  98. package/dist/lib/openapi/spec/client-features-delta-schema.d.ts +5 -5
  99. package/dist/lib/openapi/spec/client-features-schema.d.ts +5 -5
  100. package/dist/lib/openapi/spec/client-segment-schema.d.ts +1 -1
  101. package/dist/lib/openapi/spec/constraint-schema.d.ts +2 -2
  102. package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +1 -1
  103. package/dist/lib/openapi/spec/environment-project-schema.d.ts +2 -2
  104. package/dist/lib/openapi/spec/environments-project-schema.d.ts +4 -4
  105. package/dist/lib/openapi/spec/export-result-schema.d.ts +68 -68
  106. package/dist/lib/openapi/spec/feature-environment-schema.d.ts +17 -17
  107. package/dist/lib/openapi/spec/feature-schema.d.ts +34 -34
  108. package/dist/lib/openapi/spec/feature-search-environment-schema.d.ts +34 -34
  109. package/dist/lib/openapi/spec/feature-search-response-schema.d.ts +68 -68
  110. package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +1 -1
  111. package/dist/lib/openapi/spec/health-overview-schema.d.ts +69 -69
  112. package/dist/lib/openapi/spec/health-report-schema.d.ts +69 -69
  113. package/dist/lib/openapi/spec/playground-constraint-schema.d.ts +1 -1
  114. package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.d.ts +4 -0
  115. package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.d.ts.map +1 -0
  116. package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.js +91 -0
  117. package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.js.map +1 -0
  118. package/dist/lib/openapi/spec/playground-feature-schema.d.ts +4 -4
  119. package/dist/lib/openapi/spec/playground-feature-schema.test.d.ts +1 -3
  120. package/dist/lib/openapi/spec/playground-feature-schema.test.d.ts.map +1 -1
  121. package/dist/lib/openapi/spec/playground-feature-schema.test.js +1 -89
  122. package/dist/lib/openapi/spec/playground-feature-schema.test.js.map +1 -1
  123. package/dist/lib/openapi/spec/playground-request-schema.arbitraries.d.ts +4 -0
  124. package/dist/lib/openapi/spec/playground-request-schema.arbitraries.d.ts.map +1 -0
  125. package/dist/lib/openapi/spec/playground-request-schema.arbitraries.js +9 -0
  126. package/dist/lib/openapi/spec/playground-request-schema.arbitraries.js.map +1 -0
  127. package/dist/lib/openapi/spec/playground-request-schema.test.d.ts +1 -3
  128. package/dist/lib/openapi/spec/playground-request-schema.test.d.ts.map +1 -1
  129. package/dist/lib/openapi/spec/playground-request-schema.test.js +1 -8
  130. package/dist/lib/openapi/spec/playground-request-schema.test.js.map +1 -1
  131. package/dist/lib/openapi/spec/playground-response-schema.d.ts +9 -9
  132. package/dist/lib/openapi/spec/playground-response-schema.test.js +2 -3
  133. package/dist/lib/openapi/spec/playground-response-schema.test.js.map +1 -1
  134. package/dist/lib/openapi/spec/playground-segment-schema.d.ts +1 -1
  135. package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +2 -2
  136. package/dist/lib/openapi/spec/profile-schema.d.ts +34 -34
  137. package/dist/lib/openapi/spec/project-environment-schema.d.ts +1 -1
  138. package/dist/lib/openapi/spec/project-overview-schema.d.ts +69 -69
  139. package/dist/lib/openapi/spec/release-plan-milestone-schema.d.ts +4 -4
  140. package/dist/lib/openapi/spec/release-plan-milestone-strategy-schema.d.ts +2 -2
  141. package/dist/lib/openapi/spec/release-plan-schema.d.ts +8 -8
  142. package/dist/lib/openapi/spec/release-plan-template-schema.d.ts +14 -8
  143. package/dist/lib/openapi/spec/release-plan-template-schema.d.ts.map +1 -1
  144. package/dist/lib/openapi/spec/release-plan-template-schema.js +6 -0
  145. package/dist/lib/openapi/spec/release-plan-template-schema.js.map +1 -1
  146. package/dist/lib/openapi/spec/release-plan-templates-schema.d.ts +22 -16
  147. package/dist/lib/openapi/spec/release-plan-templates-schema.d.ts.map +1 -1
  148. package/dist/lib/openapi/spec/release-plans-schema.d.ts +16 -16
  149. package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.d.ts +4 -0
  150. package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.d.ts.map +1 -0
  151. package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.js +12 -0
  152. package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.js.map +1 -0
  153. package/dist/lib/openapi/spec/sdk-context-schema.test.d.ts +1 -3
  154. package/dist/lib/openapi/spec/sdk-context-schema.test.d.ts.map +1 -1
  155. package/dist/lib/openapi/spec/sdk-context-schema.test.js +1 -11
  156. package/dist/lib/openapi/spec/sdk-context-schema.test.js.map +1 -1
  157. package/dist/lib/openapi/spec/search-features-schema.d.ts +104 -104
  158. package/dist/lib/openapi/spec/segment-schema.d.ts +1 -1
  159. package/dist/lib/openapi/spec/segments-schema.d.ts +2 -2
  160. package/dist/lib/openapi/spec/ui-config-schema.d.ts +5 -0
  161. package/dist/lib/openapi/spec/ui-config-schema.d.ts.map +1 -1
  162. package/dist/lib/openapi/spec/ui-config-schema.js +5 -0
  163. package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
  164. package/dist/lib/openapi/spec/update-feature-schema.d.ts +1 -1
  165. package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +1 -1
  166. package/dist/lib/openapi/spec/upsert-segment-schema.d.ts +1 -1
  167. package/dist/lib/schema/feature-schema.test.js +1 -1
  168. package/dist/lib/schema/feature-schema.test.js.map +1 -1
  169. package/dist/lib/schema/html-input.d.ts +1 -1
  170. package/dist/lib/schema/html-input.d.ts.map +1 -1
  171. package/dist/lib/schema/html-input.js +5 -2
  172. package/dist/lib/schema/html-input.js.map +1 -1
  173. package/dist/lib/schema/html-input.test.js +1 -1
  174. package/dist/lib/schema/html-input.test.js.map +1 -1
  175. package/dist/lib/services/feature-tag-service.d.ts +1 -1
  176. package/dist/lib/services/feature-tag-service.d.ts.map +1 -1
  177. package/dist/lib/services/feature-tag-service.js +5 -1
  178. package/dist/lib/services/feature-tag-service.js.map +1 -1
  179. package/dist/lib/services/index.d.ts.map +1 -1
  180. package/dist/lib/services/index.js +1 -1
  181. package/dist/lib/services/index.js.map +1 -1
  182. package/dist/lib/services/project-schema.js +1 -1
  183. package/dist/lib/services/project-schema.js.map +1 -1
  184. package/dist/lib/types/events.d.ts +8 -0
  185. package/dist/lib/types/events.d.ts.map +1 -1
  186. package/dist/lib/types/events.js +4 -0
  187. package/dist/lib/types/events.js.map +1 -1
  188. package/dist/lib/types/experimental.d.ts +1 -1
  189. package/dist/lib/types/experimental.d.ts.map +1 -1
  190. package/dist/lib/types/experimental.js +6 -1
  191. package/dist/lib/types/experimental.js.map +1 -1
  192. package/dist/lib/types/option.d.ts +1 -0
  193. package/dist/lib/types/option.d.ts.map +1 -1
  194. package/dist/lib/types/permissions.d.ts +1 -0
  195. package/dist/lib/types/permissions.d.ts.map +1 -1
  196. package/dist/lib/types/permissions.js +2 -0
  197. package/dist/lib/types/permissions.js.map +1 -1
  198. package/dist/lib/types/stores.d.ts +1 -0
  199. package/dist/lib/types/stores.d.ts.map +1 -1
  200. package/dist/lib/types/stores.js.map +1 -1
  201. package/dist/lib/ui-config/ui-config-controller.d.ts +1 -2
  202. package/dist/lib/ui-config/ui-config-controller.d.ts.map +1 -1
  203. package/dist/lib/ui-config/ui-config-controller.js +3 -1
  204. package/dist/lib/ui-config/ui-config-controller.js.map +1 -1
  205. package/dist/lib/ui-config/ui-config-service.d.ts +3 -2
  206. package/dist/lib/ui-config/ui-config-service.d.ts.map +1 -1
  207. package/dist/lib/ui-config/ui-config-service.js +7 -1
  208. package/dist/lib/ui-config/ui-config-service.js.map +1 -1
  209. package/dist/lib/ui-config/ui-config.test.js +4 -0
  210. package/dist/lib/ui-config/ui-config.test.js.map +1 -1
  211. package/dist/lib/util/constants.d.ts +3 -1
  212. package/dist/lib/util/constants.d.ts.map +1 -1
  213. package/dist/lib/util/constants.js +11 -1
  214. package/dist/lib/util/constants.js.map +1 -1
  215. package/dist/mailtemplates/requested-cr-approval/requested-cr-approval.html.mustache +1 -1
  216. package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.d.ts +3 -0
  217. package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.d.ts.map +1 -0
  218. package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.js +8 -0
  219. package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.js.map +1 -0
  220. package/dist/migrations/20260708100000-add-project-release-template-permission.d.ts +3 -0
  221. package/dist/migrations/20260708100000-add-project-release-template-permission.d.ts.map +1 -0
  222. package/dist/migrations/20260708100000-add-project-release-template-permission.js +15 -0
  223. package/dist/migrations/20260708100000-add-project-release-template-permission.js.map +1 -0
  224. package/dist/server-dev.js +5 -1
  225. package/dist/server-dev.js.map +1 -1
  226. package/dist/test/arbitraries.d.ts +25 -0
  227. package/dist/test/arbitraries.d.ts.map +1 -0
  228. package/dist/test/arbitraries.js +143 -0
  229. package/dist/test/arbitraries.js.map +1 -0
  230. package/dist/test/arbitraries.test.d.ts +1 -24
  231. package/dist/test/arbitraries.test.d.ts.map +1 -1
  232. package/dist/test/arbitraries.test.js +1 -142
  233. package/dist/test/arbitraries.test.js.map +1 -1
  234. package/dist/test/e2e/api/admin/playground.e2e.test.js +2 -2
  235. package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
  236. package/dist/test/e2e/services/playground-service.test.js +2 -2
  237. package/dist/test/e2e/services/playground-service.test.js.map +1 -1
  238. package/dist/test/fixtures/fake-segment-store.d.ts +1 -1
  239. package/dist/test/fixtures/fake-segment-store.d.ts.map +1 -1
  240. package/dist/test/fixtures/fake-segment-store.js +2 -2
  241. package/dist/test/fixtures/fake-segment-store.js.map +1 -1
  242. package/dist/test/prom-last-wins.d.ts +2 -0
  243. package/dist/test/prom-last-wins.d.ts.map +1 -0
  244. package/dist/test/prom-last-wins.js +25 -0
  245. package/dist/test/prom-last-wins.js.map +1 -0
  246. package/dist/test/reset-cross-file-state.d.ts +2 -0
  247. package/dist/test/reset-cross-file-state.d.ts.map +1 -0
  248. package/dist/test/reset-cross-file-state.js +57 -0
  249. package/dist/test/reset-cross-file-state.js.map +1 -0
  250. package/dist/test-setup.d.ts.map +1 -1
  251. package/dist/test-setup.js +4 -0
  252. package/dist/test-setup.js.map +1 -1
  253. package/frontend/build/index.html +1 -1
  254. package/frontend/build/static/AccordionSummary-KVRcLxLK.js +1 -0
  255. package/frontend/build/static/AdvancedPlayground-Cls80com.js +3 -0
  256. package/frontend/build/static/Alert-DQgOzmJF.js +1 -0
  257. package/frontend/build/static/Avatar-xU_puYmY.js +1 -0
  258. package/frontend/build/static/BackendConnections-CkI8tLcv.js +1 -0
  259. package/frontend/build/static/Box-rSzdGLLJ.js +1 -0
  260. package/frontend/build/static/Button-yGjgMTJI.js +1 -0
  261. package/frontend/build/static/Button.story-CBE27I2T.js +1 -0
  262. package/frontend/build/static/CircularProgress-CmGBJn6I.js +124 -0
  263. package/frontend/build/static/Close-DKD1r3T7.js +1 -0
  264. package/frontend/build/static/Close-nISwbNAY.js +1 -0
  265. package/frontend/build/static/CodeRenderer-RNHlNPBl.js +1094 -0
  266. package/frontend/build/static/CodeRenderer.story-Vw214z1Z.js +2 -0
  267. package/frontend/build/static/Collapse-COunT4rQ.js +1 -0
  268. package/frontend/build/static/ConditionallyRender-CEffh9Z-.js +1 -0
  269. package/frontend/build/static/ConnectSdkStep-DnH4iwnu.js +1 -0
  270. package/frontend/build/static/ConnectSdkStep.story-DeWPTOZK.js +1 -0
  271. package/frontend/build/static/CreateProject-eo1TZ1so.js +1 -0
  272. package/frontend/build/static/Dialog-DLpX4v6X.js +1 -0
  273. package/frontend/build/static/DialogWithAside-BxVspeMV.js +1 -0
  274. package/frontend/build/static/DialogWithAside.story-Dqmr9MnM.js +1 -0
  275. package/frontend/build/static/Divider-BYq1CcT0.js +1 -0
  276. package/frontend/build/static/EnterpriseEdge-D-g3JGCd.js +6 -0
  277. package/frontend/build/static/FeatureCard.story-B2Q-SD_-.js +1 -0
  278. package/frontend/build/static/FeatureMetricsChart-ETalRWKx.js +2 -0
  279. package/frontend/build/static/FeatureStaleDialog-CvD9ojNj.js +8 -0
  280. package/frontend/build/static/{FeatureViewLazyExport-8eQKTvdS.js → FeatureViewLazyExport-10Z3_Wda.js} +3 -3
  281. package/frontend/build/static/FileCopy-D1ZqmNek.js +1 -0
  282. package/frontend/build/static/FlagMetricsChart-dLfSDZ_x.js +2 -0
  283. package/frontend/build/static/FlagUsageSnippet-DOGwaqPZ.js +2 -0
  284. package/frontend/build/static/FlagUsageSnippet.story-tfMvt3kG.js +1 -0
  285. package/frontend/build/static/FormControlLabel-BrOlsUbv.js +1 -0
  286. package/frontend/build/static/FormField-CRXe4g4R.js +1 -0
  287. package/frontend/build/static/FrontendNetworkTrafficUsage-DGEwK1Qg.js +1 -0
  288. package/frontend/build/static/GenerateApiKey-C1aJtPh-.js +1 -0
  289. package/frontend/build/static/GenerateApiKey.story-DNMZG0qg.js +1 -0
  290. package/frontend/build/static/GenerateApiKeySummary-DkPI02tH.js +1 -0
  291. package/frontend/build/static/GenerateApiKeySummary.story-CruMFwTQ.js +1 -0
  292. package/frontend/build/static/{GridLayoutWrapper-B_YyjZ7l.js → GridLayoutWrapper-B3BIpxoE.js} +3 -3
  293. package/frontend/build/static/Grow-CuQu7Z-P.js +1 -0
  294. package/frontend/build/static/HelpOutlineOutlined-HDH1hus2.js +1 -0
  295. package/frontend/build/static/HelpResources.story-warJFqf6.js +1 -0
  296. package/frontend/build/static/Highlighter-BS0Ow0vZ.js +1 -0
  297. package/frontend/build/static/HtmlTooltip-3YsoM_F5.js +1 -0
  298. package/frontend/build/static/IconButton-BveFD3PF.js +1 -0
  299. package/frontend/build/static/ImpactMetricsPage-C57istn7.js +1 -0
  300. package/frontend/build/static/ImpactViewsPage-MKEHnt2w.js +1 -0
  301. package/frontend/build/static/LazyAdminExport-DfIYVWQD.js +38 -0
  302. package/frontend/build/static/LazyProjectExport-30GlUH0L.js +46 -0
  303. package/frontend/build/static/LifecycleChartComponent-Tj1pN5Tj.js +2 -0
  304. package/frontend/build/static/LineChartComponent-_RiDjL2-.js +1 -0
  305. package/frontend/build/static/Link-wv6er_Jy.js +1 -0
  306. package/frontend/build/static/Loader-CnLypnQx.js +1 -0
  307. package/frontend/build/static/{LogRocketRunner-Duzg1Kzh.js → LogRocketRunner-BS6AEpSK.js} +1 -1
  308. package/frontend/build/static/MarkCompletedDialogue-BeIA6eMj.js +1 -0
  309. package/frontend/build/static/Menu-DUeb4XP8.js +1 -0
  310. package/frontend/build/static/MenuBook-DZFyn--3.js +1 -0
  311. package/frontend/build/static/MenuItem-DNlBQQYG.js +1 -0
  312. package/frontend/build/static/Modal-DdH902AP.js +1 -0
  313. package/frontend/build/static/NetworkOverview-DF8c0k1P.js +1 -0
  314. package/frontend/build/static/{NetworkPrometheusAPIWarning-Bq62ygkV.js → NetworkPrometheusAPIWarning-B0v-FihJ.js} +1 -1
  315. package/frontend/build/static/NetworkTraffic-C1I4wwcb.js +1 -0
  316. package/frontend/build/static/NetworkTrafficUsage-DkdQx64o.js +1 -0
  317. package/frontend/build/static/NotificationStack.story-CdeU4r0p.js +1 -0
  318. package/frontend/build/static/OnboardingProgress-BuWQ2rjB.js +1 -0
  319. package/frontend/build/static/OnboardingProgress.story-CmQztiFV.js +1 -0
  320. package/frontend/build/static/OpenInNew-CHcHAi4B.js +1 -0
  321. package/frontend/build/static/PageContent-lT51j8jO.js +1 -0
  322. package/frontend/build/static/Paper-BvPQ0Zq6.js +1 -0
  323. package/frontend/build/static/PercentageDonut-CZVWd5fE.js +1 -0
  324. package/frontend/build/static/PermissionButton-Tj54K9Kc.js +1 -0
  325. package/frontend/build/static/Popover-FHiFav9d.js +1 -0
  326. package/frontend/build/static/Popper-Cut-_j4A.js +1 -0
  327. package/frontend/build/static/Portal-kwmlgXGI.js +1 -0
  328. package/frontend/build/static/Radio-Cj82h8o5.js +1 -0
  329. package/frontend/build/static/RadioGroup-BWTZb8iE.js +1 -0
  330. package/frontend/build/static/ReactJSONEditor-D65iiPmM.js +4 -0
  331. package/frontend/build/static/ReactJSONEditor.story-Bt3pxUGO.js +1 -0
  332. package/frontend/build/static/RoleCell-tqHUOlI7.js +1 -0
  333. package/frontend/build/static/RtlProvider-D1AlROju.js +1 -0
  334. package/frontend/build/static/Safeguard-DFEQulxy.js +1 -0
  335. package/frontend/build/static/SdkEvaluationStatus-B1rMywp-.js +17 -0
  336. package/frontend/build/static/SdkEvaluationStatus.story-BxgqLICz.js +1 -0
  337. package/frontend/build/static/Select-DdG1oq6O.js +3 -0
  338. package/frontend/build/static/SelectSdk-Boj2Ug-2.js +1 -0
  339. package/frontend/build/static/SelectSdk-CzRoKDb5.js +1 -0
  340. package/frontend/build/static/SelectSdk.story-BT9ke5Eb.js +1 -0
  341. package/frontend/build/static/SelectSdk.story-CdzotYoq.js +1 -0
  342. package/frontend/build/static/Spacing.story-CB6GkN5Z.js +1 -0
  343. package/frontend/build/static/StoriesPage-luLnHVc2.js +1 -0
  344. package/frontend/build/static/SwitchBase-cxExIOp0.js +1 -0
  345. package/frontend/build/static/TextField-Cf03Ror7.js +1 -0
  346. package/frontend/build/static/ThemeColors.story-Cx9bv5pL.js +1 -0
  347. package/frontend/build/static/TokenExplanation-CJjBSQ07.js +1 -0
  348. package/frontend/build/static/TokenExplanation.story-BoOaHRrQ.js +1 -0
  349. package/frontend/build/static/Tooltip-DPzrXyNS.js +1 -0
  350. package/frontend/build/static/TooltipResolver-CIBfA4vm.js +1 -0
  351. package/frontend/build/static/Truncator-CF0-SVks.js +1 -0
  352. package/frontend/build/static/Typography-nCkGT67u.js +1 -0
  353. package/frontend/build/static/Typography.story-CofmlvJB.js +1 -0
  354. package/frontend/build/static/UIContext-Dsr0TY8K.js +1 -0
  355. package/frontend/build/static/WhatsNewLayout.story-p4Cm8bgx.js +1 -0
  356. package/frontend/build/static/aggregateFeatureMetrics-D7AXsd2U.js +1 -0
  357. package/frontend/build/static/capitalize-DfXJDj8P.js +1 -0
  358. package/frontend/build/static/chartjs-plugin-annotation.esm-tsR8Pv5a.js +1 -0
  359. package/frontend/build/static/chunk-KS7C4IRE-PUpsdS_b.js +3 -0
  360. package/frontend/build/static/code-block-BZePA-4e.js +1 -0
  361. package/frontend/build/static/copy-to-clipboard-BCU4eeSw.js +1 -0
  362. package/frontend/build/static/createBox-DaDvp7MB.js +1 -0
  363. package/frontend/build/static/createSimplePaletteValueFilter-Bt9IjErz.js +1 -0
  364. package/frontend/build/static/createSvgIcon-D-6jHYkf.js +1 -0
  365. package/frontend/build/static/dividerClasses-DcI5JVLQ.js +1 -0
  366. package/frontend/build/static/{enterpriseEdgeCloud-C5u35XAw.js → enterpriseEdgeCloud-qnOcFE1S.js} +1 -1
  367. package/frontend/build/static/esm-DViSjNxt.js +12 -0
  368. package/frontend/build/static/formatAccessText-BhC1wtCg.js +1 -0
  369. package/frontend/build/static/httpErrorResponseHandler-BzpwldnE.js +1 -0
  370. package/frontend/build/static/impact-metrics-DrmGy_gn.png +0 -0
  371. package/frontend/build/static/{impact-metrics-icon-6dt-ye-h.js → impact-metrics-icon-Cg_ki-2e.js} +1 -1
  372. package/frontend/build/static/index-C2zVj2FI.js +287 -0
  373. package/frontend/build/static/{jsx-runtime-BnvnyDTF.js → jsx-runtime-DYfQNk55.js} +1 -1
  374. package/frontend/build/static/mcp-ADx0Sju7.png +0 -0
  375. package/frontend/build/static/{metricsFormatters-DhX-aU17.js → metricsFormatters-BmjW0KTj.js} +1 -1
  376. package/frontend/build/static/milestone-CciNgBhP.png +0 -0
  377. package/frontend/build/static/{mui-CoU2c-id.js → mui-C_omlwxE.js} +1 -1
  378. package/frontend/build/static/networkTrafficUsageHighlightPlugin-DPi6id5j.js +1 -0
  379. package/frontend/build/static/react-Ca03aNmg.js +1 -0
  380. package/frontend/build/static/resolveProps-CAVsjga5.js +1 -0
  381. package/frontend/build/static/servicenow-BmgZtZjb.svg +13 -0
  382. package/frontend/build/static/sharedTypes-CXnpeg4U.js +1 -0
  383. package/frontend/build/static/styled-CY_-vLWk.js +1 -0
  384. package/frontend/build/static/theme-DDCs0xPV.js +1 -0
  385. package/frontend/build/static/{themeStyles-DGVpwkcv.js → themeStyles-B99HStK1.js} +1 -1
  386. package/frontend/build/static/useApi-B7ZLy5tN.js +1 -0
  387. package/frontend/build/static/useApiGetter-C41iZzl2.js +1 -0
  388. package/frontend/build/static/useApiTokens-BQWPDfv2.js +1 -0
  389. package/frontend/build/static/useConditionalSWR-QWHOvx6V.js +1 -0
  390. package/frontend/build/static/useConditionallyHiddenColumns-DbQbB4u7.js +5 -0
  391. package/frontend/build/static/useCustomEvent-BnWpZ2E1.js +1 -0
  392. package/frontend/build/static/useEnhancedEffect-BBMUaXin.js +1 -0
  393. package/frontend/build/static/useEnvironments-Gu7r2cpc.js +2 -0
  394. package/frontend/build/static/useEventTracker-B0ILyjZB.js +1 -0
  395. package/frontend/build/static/useGroupedImpactMetricsData-jQ7IYFK3.js +1 -0
  396. package/frontend/build/static/useId-Bg4oXGUa.js +1 -0
  397. package/frontend/build/static/{useImpactMetrics-9qDSEpTn.js → useImpactMetrics-DXxTQl6p.js} +2 -2
  398. package/frontend/build/static/{useImpactMetricsEnabled-wRNO6-Oh.js → useImpactMetricsEnabled-B3om8V0b.js} +1 -1
  399. package/frontend/build/static/{useInstanceTrafficMetrics-CRCDB4TX.js → useInstanceTrafficMetrics-DkgcWjVM.js} +1 -1
  400. package/frontend/build/static/useLocationSettings-vlEPA_j3.js +1 -0
  401. package/frontend/build/static/useMediaQuery-BFm2lR-0.js +2 -0
  402. package/frontend/build/static/useOptionalPathParam-Cmh3Ejbi.js +1 -0
  403. package/frontend/build/static/{usePageTitle-CHzzFshF.js → usePageTitle-DD1IHvCw.js} +1 -1
  404. package/frontend/build/static/useSlot-Ce59-xJL.js +1 -0
  405. package/frontend/build/static/useSlotProps-v77xI-e5.js +1 -0
  406. package/frontend/build/static/useTheme-CTychWp2.js +10 -0
  407. package/frontend/build/static/useTimeout-B2sc1jSE.js +1 -0
  408. package/frontend/build/static/useToast-BUHn_9TC.js +1 -0
  409. package/frontend/build/static/{useUiConfig-DbVjTDpE.js → useUiConfig-BcfEDPWc.js} +1 -1
  410. package/frontend/build/static/useUiFlag-PbKW1iMa.js +1 -0
  411. package/frontend/package.json +13 -14
  412. package/package.json +6 -5
  413. package/frontend/build/static/AccordionSummary-wye3oOm6.js +0 -1
  414. package/frontend/build/static/AdvancedPlayground-DdeMb-6I.js +0 -3
  415. package/frontend/build/static/Alert-_bLyWbvx.js +0 -1
  416. package/frontend/build/static/BackendConnections-kgR0xyIH.js +0 -1
  417. package/frontend/build/static/Box-BQsxfFmC.js +0 -1
  418. package/frontend/build/static/Button-CebB8EPB.js +0 -1
  419. package/frontend/build/static/CircularProgress-C_LUU3DK.js +0 -101
  420. package/frontend/build/static/Close-DyTASMSq.js +0 -1
  421. package/frontend/build/static/Collapse-DPPTUMpf.js +0 -1
  422. package/frontend/build/static/ConditionallyRender---uTpMBn.js +0 -1
  423. package/frontend/build/static/CreateProject-BSlg0WYM.js +0 -1
  424. package/frontend/build/static/Dialog-C-xQxqWX.js +0 -1
  425. package/frontend/build/static/DialogWithAside-DzCSDyWo.js +0 -1110
  426. package/frontend/build/static/Divider-CsdWvu5F.js +0 -1
  427. package/frontend/build/static/EnterpriseEdge-CjslqYDM.js +0 -6
  428. package/frontend/build/static/FeatureMetricsChart-B4WryxcW.js +0 -2
  429. package/frontend/build/static/FeatureStaleDialog-EzReRTI5.js +0 -8
  430. package/frontend/build/static/FileCopy-B8HZEA83.js +0 -1
  431. package/frontend/build/static/FlagMetricsChart-hNQuwOxW.js +0 -2
  432. package/frontend/build/static/FormControlLabel-F5gDLixN.js +0 -1
  433. package/frontend/build/static/FrontendNetworkTrafficUsage-pcr83PWo.js +0 -1
  434. package/frontend/build/static/Grow-BIbmvKVy.js +0 -1
  435. package/frontend/build/static/HelpOutlineOutlined-CpMsVJZu.js +0 -1
  436. package/frontend/build/static/Highlighter-MomUaQww.js +0 -1
  437. package/frontend/build/static/HtmlTooltip-B9jv1G1R.js +0 -1
  438. package/frontend/build/static/ImpactMetricsPage-DGH_S9oz.js +0 -1
  439. package/frontend/build/static/ImpactViewsPage-DZqKPFvE.js +0 -1
  440. package/frontend/build/static/LazyAdminExport-B1ReAViz.js +0 -38
  441. package/frontend/build/static/LazyProjectExport-BMVcGpNI.js +0 -46
  442. package/frontend/build/static/LifecycleChartComponent-BeoRUO9q.js +0 -2
  443. package/frontend/build/static/LineChartComponent-BbCMbJ-m.js +0 -1
  444. package/frontend/build/static/Link-CfIScd2f.js +0 -1
  445. package/frontend/build/static/Loader-DdgXftPc.js +0 -1
  446. package/frontend/build/static/MarkCompletedDialogue-CcXyp8UE.js +0 -1
  447. package/frontend/build/static/NetworkOverview-0mBnFAZX.js +0 -1
  448. package/frontend/build/static/NetworkTraffic-DmG5Iv25.js +0 -1
  449. package/frontend/build/static/NetworkTrafficUsage-DccaVLYs.js +0 -1
  450. package/frontend/build/static/OnboardingProgress-Bp9sZ-ZM.js +0 -1
  451. package/frontend/build/static/PageContent-c0NDm5oD.js +0 -1
  452. package/frontend/build/static/PercentageDonut-DBDGNJlh.js +0 -1
  453. package/frontend/build/static/PermissionButton-B-IfzChn.js +0 -1
  454. package/frontend/build/static/Popover-CUTnSn2h.js +0 -1
  455. package/frontend/build/static/Radio-DL8ja0ll.js +0 -1
  456. package/frontend/build/static/RadioGroup-Ci3WHaOy.js +0 -1
  457. package/frontend/build/static/ReactJSONEditor-DeBI7JPg.js +0 -4
  458. package/frontend/build/static/RoleCell-DhYvu4YH.js +0 -1
  459. package/frontend/build/static/Safeguard-DErU6fSK.js +0 -1
  460. package/frontend/build/static/SelectSdk-Dr_pzQgX.js +0 -2
  461. package/frontend/build/static/StoriesPage-frGP1Bfr.js +0 -2
  462. package/frontend/build/static/SwitchBase-DWPIxZnN.js +0 -1
  463. package/frontend/build/static/TextField-oipjeg6n.js +0 -3
  464. package/frontend/build/static/Tooltip-BaILXXti.js +0 -1
  465. package/frontend/build/static/TooltipResolver-4A1YhwBy.js +0 -1
  466. package/frontend/build/static/Truncator-D2bO9ub6.js +0 -1
  467. package/frontend/build/static/Typography-BTdLWIUX.js +0 -1
  468. package/frontend/build/static/aggregateFeatureMetrics-B-67HaIZ.js +0 -1
  469. package/frontend/build/static/chartjs-plugin-annotation.esm-DP4wCpdA.js +0 -1
  470. package/frontend/build/static/chunk-QUQL4437-Dr42NpoL.js +0 -3
  471. package/frontend/build/static/createBox-Cf2UJsmc.js +0 -1
  472. package/frontend/build/static/createSimplePaletteValueFilter-BRAMrHWJ.js +0 -1
  473. package/frontend/build/static/dividerClasses-Cc45lyWo.js +0 -1
  474. package/frontend/build/static/esm-DdgY1Q5s.js +0 -12
  475. package/frontend/build/static/httpErrorResponseHandler-FMtt7Zqh.js +0 -1
  476. package/frontend/build/static/index-C04TEs4k.js +0 -290
  477. package/frontend/build/static/networkTrafficUsageHighlightPlugin-DlOtHZg3.js +0 -1
  478. package/frontend/build/static/react-GZhdek4G.js +0 -1
  479. package/frontend/build/static/useApiGetter-7FP8Avm4.js +0 -1
  480. package/frontend/build/static/useApiTokens-C8Dqw_X1.js +0 -1
  481. package/frontend/build/static/useConditionalSWR-DGgzun6i.js +0 -1
  482. package/frontend/build/static/useConditionallyHiddenColumns-C5q9zdfJ.js +0 -5
  483. package/frontend/build/static/useCustomEvent-Dj2V5RVb.js +0 -1
  484. package/frontend/build/static/useEnvironments-CTguhgy0.js +0 -2
  485. package/frontend/build/static/useGroupedImpactMetricsData-CW9qnV2y.js +0 -1
  486. package/frontend/build/static/useMediaQuery-DGx8zAkf.js +0 -2
  487. package/frontend/build/static/useOptionalPathParam-Cx3ru9yC.js +0 -1
  488. 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,4 @@
1
+ import { type Arbitrary } from 'fast-check';
2
+ import type { PlaygroundFeatureSchema } from './playground-feature-schema.js';
3
+ export declare const generate: () => Arbitrary<PlaygroundFeatureSchema>;
4
+ //# sourceMappingURL=playground-feature-schema.arbitraries.d.ts.map
@@ -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":"AAAA,OAAO,EAAsB,MAAM,YAAY,CAAC;AAChD,OAAO,EACH,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,GACX,MAAM,8BAA8B,CAAC;AAItC,OAAO,EACH,4BAA4B,GAE/B,MAAM,iCAAiC,CAAC;AACzC,MAAM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AAC,CAAC,SAAS,CAAC;QAEhB,aAAa,GAAG;YACZ,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,aAAa,CAAC,IAAI;YACxB,OAAO,EAAE,aAAa;SACzB,CAAC;IACN,CAAC;IAED,OAAO;QACH,GAAG,OAAO;QACV,SAAS;QACT,UAAU,EAAE;YACR,MAAM,EAAE,cAAc,EAAE;YACxB,IAAI,EAAE,OAAO,CAAC,UAAU;SAC3B;QACD,QAAQ,EAAE,iBAAiB;QAC3B,OAAO,EAAE,aAAa;KACzB,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -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
- import { type Arbitrary } from 'fast-check';
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":"AAAA,OAAW,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQhD,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,gCAAgC,CAAC;AA+FxC,eAAO,MAAM,QAAQ,QAAO,SAAS,CAAC,uBAAuB,CA6EnD,CAAC"}
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 { playgroundStrategyEvaluation, } from './playground-strategy-schema.js';
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,EAAsB,MAAM,YAAY,CAAC;AAChD,OAAO,EACH,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,GACX,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EACH,uBAAuB,GAE1B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACH,4BAA4B,GAE/B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,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AC,CAAC,SAAS,CAAC;QAEhB,aAAa,GAAG;YACZ,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,aAAa,CAAC,IAAI;YACxB,OAAO,EAAE,aAAa;SACzB,CAAC;IACN,CAAC;IAED,OAAO;QACH,GAAG,OAAO;QACV,SAAS;QACT,UAAU,EAAE;YACR,MAAM,EAAE,cAAc,EAAE;YACxB,IAAI,EAAE,OAAO,CAAC,UAAU;SAC3B;QACD,QAAQ,EAAE,iBAAiB;QAC3B,OAAO,EAAE,aAAa;KACzB,CAAC;AACN,CAAC,CAAC,CAAC;AAEX,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"}
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,4 @@
1
+ import { type Arbitrary } from 'fast-check';
2
+ import type { PlaygroundRequestSchema } from './playground-request-schema.js';
3
+ export declare const generate: () => Arbitrary<PlaygroundRequestSchema>;
4
+ //# sourceMappingURL=playground-request-schema.arbitraries.d.ts.map
@@ -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
- import { type Arbitrary } from 'fast-check';
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":"AAAA,OAAW,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,wDAAwD,CAAC;AAKhE,eAAO,MAAM,QAAQ,QAAO,SAAS,CAAC,uBAAuB,CAavD,CAAC"}
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 as generateContext } from './sdk-context-schema.test.js';
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,EAAsB,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EACH,uBAAuB,GAE1B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,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;AAEP,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"}
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.test.js';
5
- import { generate as generateFeature } from './playground-feature-schema.test.js';
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,qCAAqC,CAAC;AAChF,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,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"}
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: {