unleash-server 4.11.2 → 4.12.0-beta.2

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 (157) hide show
  1. package/README.md +4 -1
  2. package/dist/lib/db/access-store.js +1 -0
  3. package/dist/lib/db/access-store.js.map +1 -1
  4. package/dist/lib/db/feature-environment-store.d.ts +1 -1
  5. package/dist/lib/db/feature-environment-store.js +6 -3
  6. package/dist/lib/db/feature-environment-store.js.map +1 -1
  7. package/dist/lib/db/feature-strategy-store.d.ts +2 -2
  8. package/dist/lib/db/feature-strategy-store.js +7 -6
  9. package/dist/lib/db/feature-strategy-store.js.map +1 -1
  10. package/dist/lib/db/feature-toggle-client-store.d.ts +3 -3
  11. package/dist/lib/db/feature-toggle-client-store.js +4 -4
  12. package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
  13. package/dist/lib/db/project-store.js +4 -1
  14. package/dist/lib/db/project-store.js.map +1 -1
  15. package/dist/lib/metrics.d.ts +1 -0
  16. package/dist/lib/openapi/index.js +23 -5
  17. package/dist/lib/openapi/index.js.map +1 -1
  18. package/dist/lib/openapi/spec/clone-feature-request.d.ts +2 -0
  19. package/dist/lib/openapi/spec/clone-feature-request.js +14 -0
  20. package/dist/lib/openapi/spec/clone-feature-request.js.map +1 -0
  21. package/dist/lib/openapi/spec/clone-feature-schema.d.ts +29 -0
  22. package/dist/lib/openapi/spec/clone-feature-schema.js +19 -0
  23. package/dist/lib/openapi/spec/clone-feature-schema.js.map +1 -0
  24. package/dist/lib/openapi/spec/constraint-schema.d.ts +6 -2
  25. package/dist/lib/openapi/spec/constraint-schema.js +3 -0
  26. package/dist/lib/openapi/spec/constraint-schema.js.map +1 -1
  27. package/dist/lib/openapi/spec/create-feature-schema.d.ts +4 -2
  28. package/dist/lib/openapi/spec/create-feature-schema.js +1 -0
  29. package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
  30. package/dist/lib/openapi/spec/create-strategy-schema.d.ts +82 -58
  31. package/dist/lib/openapi/spec/create-strategy-schema.js +11 -2
  32. package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -1
  33. package/dist/lib/openapi/spec/create-tag-request.d.ts +2 -0
  34. package/dist/lib/openapi/spec/create-tag-request.js +14 -0
  35. package/dist/lib/openapi/spec/create-tag-request.js.map +1 -0
  36. package/dist/lib/openapi/spec/empty-response-schema.d.ts +13 -0
  37. package/dist/lib/openapi/spec/empty-response-schema.js +11 -0
  38. package/dist/lib/openapi/spec/empty-response-schema.js.map +1 -0
  39. package/dist/lib/openapi/spec/empty-response.d.ts +2 -0
  40. package/dist/lib/openapi/spec/empty-response.js +14 -0
  41. package/dist/lib/openapi/spec/empty-response.js.map +1 -0
  42. package/dist/lib/openapi/spec/feature-environment-response.d.ts +2 -0
  43. package/dist/lib/openapi/spec/feature-environment-response.js +14 -0
  44. package/dist/lib/openapi/spec/feature-environment-response.js.map +1 -0
  45. package/dist/lib/openapi/spec/feature-environment-schema.d.ts +293 -0
  46. package/dist/lib/openapi/spec/feature-environment-schema.js +39 -0
  47. package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -0
  48. package/dist/lib/openapi/spec/feature-schema.d.ts +760 -108
  49. package/dist/lib/openapi/spec/feature-schema.js +30 -3
  50. package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
  51. package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +164 -0
  52. package/dist/lib/openapi/spec/feature-strategy-schema.js +61 -0
  53. package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -0
  54. package/dist/lib/openapi/spec/features-schema.d.ts +1654 -192
  55. package/dist/lib/openapi/spec/features-schema.js +20 -1
  56. package/dist/lib/openapi/spec/features-schema.js.map +1 -1
  57. package/dist/lib/openapi/spec/override-schema.d.ts +4 -2
  58. package/dist/lib/openapi/spec/override-schema.js +1 -0
  59. package/dist/lib/openapi/spec/override-schema.js.map +1 -1
  60. package/dist/lib/openapi/spec/parameters-schema.d.ts +4 -2
  61. package/dist/lib/openapi/spec/parameters-schema.js +1 -0
  62. package/dist/lib/openapi/spec/parameters-schema.js.map +1 -1
  63. package/dist/lib/openapi/spec/patch-operation-schema.d.ts +39 -0
  64. package/dist/lib/openapi/spec/patch-operation-schema.js +24 -0
  65. package/dist/lib/openapi/spec/patch-operation-schema.js.map +1 -0
  66. package/dist/lib/openapi/spec/patch-request.d.ts +2 -0
  67. package/dist/lib/openapi/spec/patch-request.js +17 -0
  68. package/dist/lib/openapi/spec/patch-request.js.map +1 -0
  69. package/dist/lib/openapi/spec/strategies-response.d.ts +2 -0
  70. package/dist/lib/openapi/spec/strategies-response.js +17 -0
  71. package/dist/lib/openapi/spec/strategies-response.js.map +1 -0
  72. package/dist/lib/openapi/spec/strategy-response.js +1 -1
  73. package/dist/lib/openapi/spec/strategy-response.js.map +1 -1
  74. package/dist/lib/openapi/spec/strategy-schema.d.ts +90 -63
  75. package/dist/lib/openapi/spec/strategy-schema.js +17 -6
  76. package/dist/lib/openapi/spec/strategy-schema.js.map +1 -1
  77. package/dist/lib/openapi/spec/tag-response.d.ts +2 -0
  78. package/dist/lib/openapi/spec/tag-response.js +14 -0
  79. package/dist/lib/openapi/spec/tag-response.js.map +1 -0
  80. package/dist/lib/openapi/spec/tag-schema.d.ts +31 -0
  81. package/dist/lib/openapi/spec/tag-schema.js +20 -0
  82. package/dist/lib/openapi/spec/tag-schema.js.map +1 -0
  83. package/dist/lib/openapi/spec/tags-response-schema.d.ts +67 -0
  84. package/dist/lib/openapi/spec/tags-response-schema.js +26 -0
  85. package/dist/lib/openapi/spec/tags-response-schema.js.map +1 -0
  86. package/dist/lib/openapi/spec/tags-response.d.ts +2 -0
  87. package/dist/lib/openapi/spec/tags-response.js +14 -0
  88. package/dist/lib/openapi/spec/tags-response.js.map +1 -0
  89. package/dist/lib/openapi/spec/update-feature-request.d.ts +2 -0
  90. package/dist/lib/openapi/spec/update-feature-request.js +14 -0
  91. package/dist/lib/openapi/spec/update-feature-request.js.map +1 -0
  92. package/dist/lib/openapi/spec/update-strategy-request.d.ts +2 -0
  93. package/dist/lib/openapi/spec/update-strategy-request.js +14 -0
  94. package/dist/lib/openapi/spec/update-strategy-request.js.map +1 -0
  95. package/dist/lib/openapi/spec/update-strategy-schema.d.ts +131 -0
  96. package/dist/lib/openapi/spec/update-strategy-schema.js +11 -0
  97. package/dist/lib/openapi/spec/update-strategy-schema.js.map +1 -0
  98. package/dist/lib/openapi/spec/updateFeatureSchema.d.ts +135 -0
  99. package/dist/lib/openapi/spec/updateFeatureSchema.js +44 -0
  100. package/dist/lib/openapi/spec/updateFeatureSchema.js.map +1 -0
  101. package/dist/lib/openapi/spec/variant-schema.d.ts +60 -30
  102. package/dist/lib/openapi/spec/variant-schema.js +15 -1
  103. package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
  104. package/dist/lib/openapi/types.d.ts +17 -2
  105. package/dist/lib/openapi/types.js +6 -1
  106. package/dist/lib/openapi/types.js.map +1 -1
  107. package/dist/lib/routes/admin-api/archive.d.ts +1 -1
  108. package/dist/lib/routes/admin-api/archive.js +4 -3
  109. package/dist/lib/routes/admin-api/archive.js.map +1 -1
  110. package/dist/lib/routes/admin-api/feature.d.ts +17 -5
  111. package/dist/lib/routes/admin-api/feature.js +62 -6
  112. package/dist/lib/routes/admin-api/feature.js.map +1 -1
  113. package/dist/lib/routes/admin-api/project/features.d.ts +24 -20
  114. package/dist/lib/routes/admin-api/project/features.js +174 -17
  115. package/dist/lib/routes/admin-api/project/features.js.map +1 -1
  116. package/dist/lib/routes/controller.d.ts +1 -1
  117. package/dist/lib/services/feature-toggle-service.d.ts +2 -3
  118. package/dist/lib/services/feature-toggle-service.js +1 -2
  119. package/dist/lib/services/feature-toggle-service.js.map +1 -1
  120. package/dist/lib/services/project-service.d.ts +3 -3
  121. package/dist/lib/services/project-service.js +2 -1
  122. package/dist/lib/services/project-service.js.map +1 -1
  123. package/dist/lib/services/segment-service.d.ts +1 -1
  124. package/dist/lib/services/segment-service.js +3 -3
  125. package/dist/lib/services/segment-service.js.map +1 -1
  126. package/dist/lib/types/allowed-strings.d.ts +1 -0
  127. package/dist/lib/types/allowed-strings.js +3 -0
  128. package/dist/lib/types/allowed-strings.js.map +1 -0
  129. package/dist/lib/types/core.d.ts +2 -0
  130. package/dist/lib/types/model.d.ts +6 -3
  131. package/dist/lib/types/model.js.map +1 -1
  132. package/dist/lib/util/arraysHaveSameItems.d.ts +1 -0
  133. package/dist/lib/util/arraysHaveSameItems.js +15 -0
  134. package/dist/lib/util/arraysHaveSameItems.js.map +1 -0
  135. package/dist/lib/util/{serialize-dates.test.d.ts → arraysHaveSameItems.test.d.ts} +0 -0
  136. package/dist/lib/util/arraysHaveSameItems.test.js +19 -0
  137. package/dist/lib/util/arraysHaveSameItems.test.js.map +1 -0
  138. package/dist/lib/util/constants.d.ts +1 -1
  139. package/dist/lib/util/constants.js.map +1 -1
  140. package/dist/test/e2e/api/admin/feature.e2e.test.js +8 -1
  141. package/dist/test/e2e/api/admin/feature.e2e.test.js.map +1 -1
  142. package/dist/test/e2e/api/admin/project/features.e2e.test.js +18 -0
  143. package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
  144. package/dist/test/e2e/services/access-service.e2e.test.js +21 -0
  145. package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
  146. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
  147. package/dist/test/e2e/services/project-service.e2e.test.js +68 -25
  148. package/dist/test/e2e/services/project-service.e2e.test.js.map +1 -1
  149. package/dist/test/fixtures/fake-feature-strategies-store.d.ts +1 -1
  150. package/dist/test/fixtures/fake-feature-toggle-store.d.ts +2 -2
  151. package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
  152. package/package.json +12 -12
  153. package/dist/lib/util/serialize-dates.d.ts +0 -6
  154. package/dist/lib/util/serialize-dates.js +0 -17
  155. package/dist/lib/util/serialize-dates.js.map +0 -1
  156. package/dist/lib/util/serialize-dates.test.js +0 -17
  157. package/dist/lib/util/serialize-dates.test.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"create-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-feature-schema.ts"],"names":[],"mappings":";;;AAAA,oCAAgE;AAEhE,MAAM,MAAM,GAAG;IACX,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;SACjB;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,SAAS;SAClB;KACJ;CACK,CAAC;AAIE,QAAA,mBAAmB,GAAG,IAAA,0BAAkB,EAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"create-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-feature-schema.ts"],"names":[],"mappings":";;;AAAA,oCAAgE;AAEhE,MAAM,MAAM,GAAG;IACX,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;SACjB;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,oBAAoB,EAAE,EAAE;CAClB,CAAC;AAIE,QAAA,mBAAmB,GAAG,IAAA,0BAAkB,EAAC,MAAM,CAAC,CAAC"}
@@ -2,6 +2,7 @@ import { CreateSchemaType } from '../types';
2
2
  declare const schema: {
3
3
  readonly type: "object";
4
4
  readonly additionalProperties: false;
5
+ readonly required: readonly ["name"];
5
6
  readonly properties: {
6
7
  readonly name: {
7
8
  readonly type: "string";
@@ -11,47 +12,59 @@ declare const schema: {
11
12
  };
12
13
  readonly constraints: {
13
14
  readonly type: "array";
14
- readonly items: import("../../types/mutable").DeepMutable<{
15
- readonly type: "object";
16
- readonly additionalProperties: false;
17
- readonly required: readonly ["contextName", "operator"];
18
- readonly properties: {
19
- readonly contextName: {
20
- readonly type: "string";
21
- };
22
- readonly operator: {
23
- readonly type: "string";
24
- };
25
- readonly caseInsensitive: {
26
- readonly type: "boolean";
27
- };
28
- readonly inverted: {
29
- readonly type: "boolean";
30
- };
31
- readonly values: {
32
- readonly type: "array";
33
- readonly items: {
34
- readonly type: "string";
35
- };
36
- };
37
- readonly value: {
15
+ readonly items: {
16
+ readonly $ref: "#/components/schemas/constraintSchema";
17
+ };
18
+ };
19
+ readonly parameters: {
20
+ readonly $ref: "#/components/schemas/parametersSchema";
21
+ };
22
+ };
23
+ readonly 'components/schemas': {
24
+ readonly constraintSchema: import("../../types/mutable").DeepMutable<Omit<{
25
+ readonly type: "object";
26
+ readonly additionalProperties: false;
27
+ readonly required: readonly ["contextName", "operator"];
28
+ readonly properties: {
29
+ readonly contextName: {
30
+ readonly type: "string";
31
+ };
32
+ readonly operator: {
33
+ readonly type: "string";
34
+ 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"];
35
+ };
36
+ readonly caseInsensitive: {
37
+ readonly type: "boolean";
38
+ };
39
+ readonly inverted: {
40
+ readonly type: "boolean";
41
+ };
42
+ readonly values: {
43
+ readonly type: "array";
44
+ readonly items: {
38
45
  readonly type: "string";
39
46
  };
40
47
  };
41
- }>;
42
- };
43
- readonly parameters: import("../../types/mutable").DeepMutable<{
48
+ readonly value: {
49
+ readonly type: "string";
50
+ };
51
+ };
52
+ readonly 'components/schemas': {};
53
+ }, "components/schemas">>;
54
+ readonly parametersSchema: import("../../types/mutable").DeepMutable<Omit<{
44
55
  readonly type: "object";
45
56
  readonly additionalProperties: {
46
57
  readonly type: "string";
47
58
  };
48
- }>;
59
+ readonly 'components/schemas': {};
60
+ }, "components/schemas">>;
49
61
  };
50
62
  };
51
63
  export declare type CreateStrategySchema = CreateSchemaType<typeof schema>;
52
- export declare const createStrategySchema: import("../../types/mutable").DeepMutable<{
64
+ export declare const createStrategySchema: import("../../types/mutable").DeepMutable<Omit<{
53
65
  readonly type: "object";
54
66
  readonly additionalProperties: false;
67
+ readonly required: readonly ["name"];
55
68
  readonly properties: {
56
69
  readonly name: {
57
70
  readonly type: "string";
@@ -61,41 +74,52 @@ export declare const createStrategySchema: import("../../types/mutable").DeepMut
61
74
  };
62
75
  readonly constraints: {
63
76
  readonly type: "array";
64
- readonly items: import("../../types/mutable").DeepMutable<{
65
- readonly type: "object";
66
- readonly additionalProperties: false;
67
- readonly required: readonly ["contextName", "operator"];
68
- readonly properties: {
69
- readonly contextName: {
70
- readonly type: "string";
71
- };
72
- readonly operator: {
73
- readonly type: "string";
74
- };
75
- readonly caseInsensitive: {
76
- readonly type: "boolean";
77
- };
78
- readonly inverted: {
79
- readonly type: "boolean";
80
- };
81
- readonly values: {
82
- readonly type: "array";
83
- readonly items: {
84
- readonly type: "string";
85
- };
86
- };
87
- readonly value: {
77
+ readonly items: {
78
+ readonly $ref: "#/components/schemas/constraintSchema";
79
+ };
80
+ };
81
+ readonly parameters: {
82
+ readonly $ref: "#/components/schemas/parametersSchema";
83
+ };
84
+ };
85
+ readonly 'components/schemas': {
86
+ readonly constraintSchema: import("../../types/mutable").DeepMutable<Omit<{
87
+ readonly type: "object";
88
+ readonly additionalProperties: false;
89
+ readonly required: readonly ["contextName", "operator"];
90
+ readonly properties: {
91
+ readonly contextName: {
92
+ readonly type: "string";
93
+ };
94
+ readonly operator: {
95
+ readonly type: "string";
96
+ 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"];
97
+ };
98
+ readonly caseInsensitive: {
99
+ readonly type: "boolean";
100
+ };
101
+ readonly inverted: {
102
+ readonly type: "boolean";
103
+ };
104
+ readonly values: {
105
+ readonly type: "array";
106
+ readonly items: {
88
107
  readonly type: "string";
89
108
  };
90
109
  };
91
- }>;
92
- };
93
- readonly parameters: import("../../types/mutable").DeepMutable<{
110
+ readonly value: {
111
+ readonly type: "string";
112
+ };
113
+ };
114
+ readonly 'components/schemas': {};
115
+ }, "components/schemas">>;
116
+ readonly parametersSchema: import("../../types/mutable").DeepMutable<Omit<{
94
117
  readonly type: "object";
95
118
  readonly additionalProperties: {
96
119
  readonly type: "string";
97
120
  };
98
- }>;
121
+ readonly 'components/schemas': {};
122
+ }, "components/schemas">>;
99
123
  };
100
- }>;
124
+ }, "components/schemas">>;
101
125
  export {};
@@ -7,6 +7,7 @@ const constraint_schema_1 = require("./constraint-schema");
7
7
  const schema = {
8
8
  type: 'object',
9
9
  additionalProperties: false,
10
+ required: ['name'],
10
11
  properties: {
11
12
  name: {
12
13
  type: 'string',
@@ -16,9 +17,17 @@ const schema = {
16
17
  },
17
18
  constraints: {
18
19
  type: 'array',
19
- items: constraint_schema_1.constraintSchema,
20
+ items: {
21
+ $ref: '#/components/schemas/constraintSchema',
22
+ },
20
23
  },
21
- parameters: parameters_schema_1.parametersSchema,
24
+ parameters: {
25
+ $ref: '#/components/schemas/parametersSchema',
26
+ },
27
+ },
28
+ 'components/schemas': {
29
+ constraintSchema: constraint_schema_1.constraintSchema,
30
+ parametersSchema: parameters_schema_1.parametersSchema,
22
31
  },
23
32
  };
24
33
  exports.createStrategySchema = (0, types_1.createSchemaObject)(schema);
@@ -1 +1 @@
1
- {"version":3,"file":"create-strategy-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-strategy-schema.ts"],"names":[],"mappings":";;;AAAA,oCAAgE;AAChE,2DAAuD;AACvD,2DAAuD;AAEvD,MAAM,MAAM,GAAG;IACX,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,oCAAgB;SAC1B;QACD,UAAU,EAAE,oCAAgB;KAC/B;CACK,CAAC;AAIE,QAAA,oBAAoB,GAAG,IAAA,0BAAkB,EAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"create-strategy-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-strategy-schema.ts"],"names":[],"mappings":";;;AAAA,oCAAgE;AAChE,2DAAuD;AACvD,2DAAuD;AAEvD,MAAM,MAAM,GAAG;IACX,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,uCAAuC;aAChD;SACJ;QACD,UAAU,EAAE;YACR,IAAI,EAAE,uCAAuC;SAChD;KACJ;IACD,oBAAoB,EAAE;QAClB,gBAAgB,EAAhB,oCAAgB;QAChB,gBAAgB,EAAhB,oCAAgB;KACnB;CACK,CAAC;AAIE,QAAA,oBAAoB,GAAG,IAAA,0BAAkB,EAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { OpenAPIV3 } from 'openapi-types';
2
+ export declare const createTagRequest: OpenAPIV3.RequestBodyObject;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createTagRequest = void 0;
4
+ exports.createTagRequest = {
5
+ required: true,
6
+ content: {
7
+ 'application/json': {
8
+ schema: {
9
+ $ref: '#/components/schemas/tagSchema',
10
+ },
11
+ },
12
+ },
13
+ };
14
+ //# sourceMappingURL=create-tag-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-tag-request.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-tag-request.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAgC;IACzD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,kBAAkB,EAAE;YAChB,MAAM,EAAE;gBACJ,IAAI,EAAE,gCAAgC;aACzC;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CreateSchemaType } from '../types';
2
+ declare const schema: {
3
+ readonly type: "object";
4
+ readonly description: "OK";
5
+ readonly 'components/schemas': {};
6
+ };
7
+ export declare type EmptyResponseSchema = CreateSchemaType<typeof schema>;
8
+ export declare const emptyResponseSchema: import("../../types/mutable").DeepMutable<Omit<{
9
+ readonly type: "object";
10
+ readonly description: "OK";
11
+ readonly 'components/schemas': {};
12
+ }, "components/schemas">>;
13
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emptyResponseSchema = void 0;
4
+ const types_1 = require("../types");
5
+ const schema = {
6
+ type: 'object',
7
+ description: 'OK',
8
+ 'components/schemas': {},
9
+ };
10
+ exports.emptyResponseSchema = (0, types_1.createSchemaObject)(schema);
11
+ //# sourceMappingURL=empty-response-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-response-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/empty-response-schema.ts"],"names":[],"mappings":";;;AAAA,oCAAgE;AAEhE,MAAM,MAAM,GAAG;IACX,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,EAAE;CAClB,CAAC;AAIE,QAAA,mBAAmB,GAAG,IAAA,0BAAkB,EAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { OpenAPIV3 } from 'openapi-types';
2
+ export declare const emptyResponse: OpenAPIV3.ResponseObject;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emptyResponse = void 0;
4
+ exports.emptyResponse = {
5
+ description: 'emptyResponse',
6
+ content: {
7
+ 'application/json': {
8
+ schema: {
9
+ $ref: '#/components/schemas/emptyResponseSchema',
10
+ },
11
+ },
12
+ },
13
+ };
14
+ //# sourceMappingURL=empty-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-response.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/empty-response.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAA6B;IACnD,WAAW,EAAE,eAAe;IAC5B,OAAO,EAAE;QACL,kBAAkB,EAAE;YAChB,MAAM,EAAE;gBACJ,IAAI,EAAE,0CAA0C;aACnD;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { OpenAPIV3 } from 'openapi-types';
2
+ export declare const featureEnvironmentResponse: OpenAPIV3.ResponseObject;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.featureEnvironmentResponse = void 0;
4
+ exports.featureEnvironmentResponse = {
5
+ description: 'featureEnvironmentResponse',
6
+ content: {
7
+ 'application/json': {
8
+ schema: {
9
+ $ref: '#/components/schemas/featureEnvironmentSchema',
10
+ },
11
+ },
12
+ },
13
+ };
14
+ //# sourceMappingURL=feature-environment-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-environment-response.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/feature-environment-response.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAA6B;IAChE,WAAW,EAAE,4BAA4B;IACzC,OAAO,EAAE;QACL,kBAAkB,EAAE;YAChB,MAAM,EAAE;gBACJ,IAAI,EAAE,+CAA+C;aACxD;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,293 @@
1
+ import { CreateSchemaType } from '../types';
2
+ declare let schema: {
3
+ readonly type: "object";
4
+ readonly additionalProperties: false;
5
+ readonly required: readonly ["name", "enabled"];
6
+ readonly properties: {
7
+ readonly name: {
8
+ readonly type: "string";
9
+ };
10
+ readonly environment: {
11
+ readonly type: "string";
12
+ };
13
+ readonly type: {
14
+ readonly type: "string";
15
+ };
16
+ readonly enabled: {
17
+ readonly type: "boolean";
18
+ };
19
+ readonly strategies: {
20
+ readonly type: "array";
21
+ readonly items: {
22
+ readonly $ref: "#/components/schemas/featureStrategySchema";
23
+ };
24
+ };
25
+ };
26
+ readonly 'components/schemas': {
27
+ readonly featureStrategySchema: import("../../types/mutable").DeepMutable<Omit<{
28
+ readonly type: "object";
29
+ readonly additionalProperties: false;
30
+ readonly required: readonly ["id", "featureName", "strategyName", "constraints", "parameters", "environment"];
31
+ readonly properties: {
32
+ readonly id: {
33
+ readonly type: "string";
34
+ };
35
+ readonly name: {
36
+ readonly type: "string";
37
+ };
38
+ readonly createdAt: {
39
+ readonly type: "string";
40
+ readonly format: "date";
41
+ readonly nullable: true;
42
+ };
43
+ readonly featureName: {
44
+ readonly type: "string";
45
+ };
46
+ readonly projectId: {
47
+ readonly type: "string";
48
+ };
49
+ readonly environment: {
50
+ readonly type: "string";
51
+ };
52
+ readonly strategyName: {
53
+ readonly type: "string";
54
+ };
55
+ readonly sortOrder: {
56
+ readonly type: "number";
57
+ };
58
+ readonly constraints: {
59
+ readonly type: "array";
60
+ readonly items: {
61
+ readonly $ref: "#/components/schemas/constraintSchema";
62
+ };
63
+ };
64
+ readonly parameters: {
65
+ readonly $ref: "#/components/schemas/parametersSchema";
66
+ };
67
+ };
68
+ readonly 'components/schemas': {
69
+ readonly constraintSchema: import("../../types/mutable").DeepMutable<Omit<{
70
+ readonly type: "object";
71
+ readonly additionalProperties: false;
72
+ readonly required: readonly ["contextName", "operator"];
73
+ readonly properties: {
74
+ readonly contextName: {
75
+ readonly type: "string";
76
+ };
77
+ readonly operator: {
78
+ readonly type: "string";
79
+ 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"];
80
+ };
81
+ readonly caseInsensitive: {
82
+ readonly type: "boolean";
83
+ };
84
+ readonly inverted: {
85
+ readonly type: "boolean";
86
+ };
87
+ readonly values: {
88
+ readonly type: "array";
89
+ readonly items: {
90
+ readonly type: "string";
91
+ };
92
+ };
93
+ readonly value: {
94
+ readonly type: "string";
95
+ };
96
+ };
97
+ readonly 'components/schemas': {};
98
+ }, "components/schemas">>;
99
+ readonly parametersSchema: import("../../types/mutable").DeepMutable<Omit<{
100
+ readonly type: "object";
101
+ readonly additionalProperties: {
102
+ readonly type: "string";
103
+ };
104
+ readonly 'components/schemas': {};
105
+ }, "components/schemas">>;
106
+ };
107
+ }, "components/schemas">>;
108
+ readonly constraintSchema: import("../../types/mutable").DeepMutable<Omit<{
109
+ readonly type: "object";
110
+ readonly additionalProperties: false;
111
+ readonly required: readonly ["contextName", "operator"];
112
+ readonly properties: {
113
+ readonly contextName: {
114
+ readonly type: "string";
115
+ };
116
+ readonly operator: {
117
+ readonly type: "string";
118
+ 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"];
119
+ };
120
+ readonly caseInsensitive: {
121
+ readonly type: "boolean";
122
+ };
123
+ readonly inverted: {
124
+ readonly type: "boolean";
125
+ };
126
+ readonly values: {
127
+ readonly type: "array";
128
+ readonly items: {
129
+ readonly type: "string";
130
+ };
131
+ };
132
+ readonly value: {
133
+ readonly type: "string";
134
+ };
135
+ };
136
+ readonly 'components/schemas': {};
137
+ }, "components/schemas">>;
138
+ readonly parametersSchema: import("../../types/mutable").DeepMutable<Omit<{
139
+ readonly type: "object";
140
+ readonly additionalProperties: {
141
+ readonly type: "string";
142
+ };
143
+ readonly 'components/schemas': {};
144
+ }, "components/schemas">>;
145
+ };
146
+ };
147
+ export declare type FeatureEnvironmentSchema = CreateSchemaType<typeof schema>;
148
+ export declare const featureEnvironmentSchema: import("../../types/mutable").DeepMutable<Omit<{
149
+ readonly type: "object";
150
+ readonly additionalProperties: false;
151
+ readonly required: readonly ["name", "enabled"];
152
+ readonly properties: {
153
+ readonly name: {
154
+ readonly type: "string";
155
+ };
156
+ readonly environment: {
157
+ readonly type: "string";
158
+ };
159
+ readonly type: {
160
+ readonly type: "string";
161
+ };
162
+ readonly enabled: {
163
+ readonly type: "boolean";
164
+ };
165
+ readonly strategies: {
166
+ readonly type: "array";
167
+ readonly items: {
168
+ readonly $ref: "#/components/schemas/featureStrategySchema";
169
+ };
170
+ };
171
+ };
172
+ readonly 'components/schemas': {
173
+ readonly featureStrategySchema: import("../../types/mutable").DeepMutable<Omit<{
174
+ readonly type: "object";
175
+ readonly additionalProperties: false;
176
+ readonly required: readonly ["id", "featureName", "strategyName", "constraints", "parameters", "environment"];
177
+ readonly properties: {
178
+ readonly id: {
179
+ readonly type: "string";
180
+ };
181
+ readonly name: {
182
+ readonly type: "string";
183
+ };
184
+ readonly createdAt: {
185
+ readonly type: "string";
186
+ readonly format: "date";
187
+ readonly nullable: true;
188
+ };
189
+ readonly featureName: {
190
+ readonly type: "string";
191
+ };
192
+ readonly projectId: {
193
+ readonly type: "string";
194
+ };
195
+ readonly environment: {
196
+ readonly type: "string";
197
+ };
198
+ readonly strategyName: {
199
+ readonly type: "string";
200
+ };
201
+ readonly sortOrder: {
202
+ readonly type: "number";
203
+ };
204
+ readonly constraints: {
205
+ readonly type: "array";
206
+ readonly items: {
207
+ readonly $ref: "#/components/schemas/constraintSchema";
208
+ };
209
+ };
210
+ readonly parameters: {
211
+ readonly $ref: "#/components/schemas/parametersSchema";
212
+ };
213
+ };
214
+ readonly 'components/schemas': {
215
+ readonly constraintSchema: import("../../types/mutable").DeepMutable<Omit<{
216
+ readonly type: "object";
217
+ readonly additionalProperties: false;
218
+ readonly required: readonly ["contextName", "operator"];
219
+ readonly properties: {
220
+ readonly contextName: {
221
+ readonly type: "string";
222
+ };
223
+ readonly operator: {
224
+ readonly type: "string";
225
+ 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"];
226
+ };
227
+ readonly caseInsensitive: {
228
+ readonly type: "boolean";
229
+ };
230
+ readonly inverted: {
231
+ readonly type: "boolean";
232
+ };
233
+ readonly values: {
234
+ readonly type: "array";
235
+ readonly items: {
236
+ readonly type: "string";
237
+ };
238
+ };
239
+ readonly value: {
240
+ readonly type: "string";
241
+ };
242
+ };
243
+ readonly 'components/schemas': {};
244
+ }, "components/schemas">>;
245
+ readonly parametersSchema: import("../../types/mutable").DeepMutable<Omit<{
246
+ readonly type: "object";
247
+ readonly additionalProperties: {
248
+ readonly type: "string";
249
+ };
250
+ readonly 'components/schemas': {};
251
+ }, "components/schemas">>;
252
+ };
253
+ }, "components/schemas">>;
254
+ readonly constraintSchema: import("../../types/mutable").DeepMutable<Omit<{
255
+ readonly type: "object";
256
+ readonly additionalProperties: false;
257
+ readonly required: readonly ["contextName", "operator"];
258
+ readonly properties: {
259
+ readonly contextName: {
260
+ readonly type: "string";
261
+ };
262
+ readonly operator: {
263
+ readonly type: "string";
264
+ 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"];
265
+ };
266
+ readonly caseInsensitive: {
267
+ readonly type: "boolean";
268
+ };
269
+ readonly inverted: {
270
+ readonly type: "boolean";
271
+ };
272
+ readonly values: {
273
+ readonly type: "array";
274
+ readonly items: {
275
+ readonly type: "string";
276
+ };
277
+ };
278
+ readonly value: {
279
+ readonly type: "string";
280
+ };
281
+ };
282
+ readonly 'components/schemas': {};
283
+ }, "components/schemas">>;
284
+ readonly parametersSchema: import("../../types/mutable").DeepMutable<Omit<{
285
+ readonly type: "object";
286
+ readonly additionalProperties: {
287
+ readonly type: "string";
288
+ };
289
+ readonly 'components/schemas': {};
290
+ }, "components/schemas">>;
291
+ };
292
+ }, "components/schemas">>;
293
+ export {};
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.featureEnvironmentSchema = void 0;
4
+ const types_1 = require("../types");
5
+ const feature_strategy_schema_1 = require("./feature-strategy-schema");
6
+ const constraint_schema_1 = require("./constraint-schema");
7
+ const parameters_schema_1 = require("./parameters-schema");
8
+ let schema = {
9
+ type: 'object',
10
+ additionalProperties: false,
11
+ required: ['name', 'enabled'],
12
+ properties: {
13
+ name: {
14
+ type: 'string',
15
+ },
16
+ environment: {
17
+ type: 'string',
18
+ },
19
+ type: {
20
+ type: 'string',
21
+ },
22
+ enabled: {
23
+ type: 'boolean',
24
+ },
25
+ strategies: {
26
+ type: 'array',
27
+ items: {
28
+ $ref: '#/components/schemas/featureStrategySchema',
29
+ },
30
+ },
31
+ },
32
+ 'components/schemas': {
33
+ featureStrategySchema: feature_strategy_schema_1.featureStrategySchema,
34
+ constraintSchema: constraint_schema_1.constraintSchema,
35
+ parametersSchema: parameters_schema_1.parametersSchema,
36
+ },
37
+ };
38
+ exports.featureEnvironmentSchema = (0, types_1.createSchemaObject)(schema);
39
+ //# sourceMappingURL=feature-environment-schema.js.map