ts-openapi-codegen 2.0.0-beta.1 → 2.0.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 (162) hide show
  1. package/README.md +71 -55
  2. package/README.rus.md +71 -54
  3. package/dist/cli/index.js +2 -1
  4. package/dist/common/Consts.d.ts.map +1 -1
  5. package/dist/common/Consts.js +2 -1
  6. package/dist/common/TRawOptions.d.ts +2 -1
  7. package/dist/common/TRawOptions.d.ts.map +1 -1
  8. package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
  9. package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +8 -0
  10. package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.d.ts.map +1 -1
  11. package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.js +7 -1
  12. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -0
  13. package/dist/common/VersionedSchema/{UnifiedOptionsVersioned → AllVersionedSchemas}/UnifiedOptionsSchemaV1.js +2 -2
  14. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +7 -0
  15. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -0
  16. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.js +42 -0
  17. package/dist/common/VersionedSchema/CommonSchemas.d.ts +1 -0
  18. package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
  19. package/dist/common/VersionedSchema/CommonSchemas.js +8 -1
  20. package/dist/common/defaultOptions.d.ts.map +1 -1
  21. package/dist/common/defaultOptions.js +2 -1
  22. package/dist/common/utils/__tests__/convertArrayToObject.test.js +5 -6
  23. package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
  24. package/dist/common/utils/convertArrayToObject.js +1 -2
  25. package/dist/core/OpenApiClient.d.ts.map +1 -1
  26. package/dist/core/OpenApiClient.js +6 -4
  27. package/dist/core/WriteClient.d.ts +3 -12
  28. package/dist/core/WriteClient.d.ts.map +1 -1
  29. package/dist/core/WriteClient.js +20 -22
  30. package/dist/core/__tests__/WriteClient.test.js +6 -1
  31. package/dist/core/types/enums/ValidationLibrary.enum.d.ts +8 -0
  32. package/dist/core/types/enums/ValidationLibrary.enum.d.ts.map +1 -0
  33. package/dist/core/types/enums/ValidationLibrary.enum.js +11 -0
  34. package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
  35. package/dist/core/utils/__mocks__/templates.js +4 -0
  36. package/dist/core/utils/__tests__/writeClientSchemas.test.js +2 -0
  37. package/dist/core/utils/precompileTemplates.js +6 -0
  38. package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
  39. package/dist/core/utils/registerHandlebarHelpers.js +74 -0
  40. package/dist/core/utils/registerHandlebarTemplates.d.ts +6 -0
  41. package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
  42. package/dist/core/utils/registerHandlebarTemplates.js +84 -0
  43. package/dist/core/utils/writeClientSchemas.d.ts +2 -0
  44. package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
  45. package/dist/core/utils/writeClientSchemas.js +14 -2
  46. package/dist/templatesCompiled/client/joi/exportSchema.d.ts +11 -0
  47. package/dist/templatesCompiled/client/joi/exportSchema.d.ts.map +1 -0
  48. package/dist/templatesCompiled/client/joi/exportSchema.js +71 -0
  49. package/dist/templatesCompiled/client/joi/partials/joiSchema.d.ts +22 -0
  50. package/dist/templatesCompiled/client/joi/partials/joiSchema.d.ts.map +1 -0
  51. package/dist/templatesCompiled/client/joi/partials/joiSchema.js +129 -0
  52. package/dist/templatesCompiled/client/joi/partials/joiSchemaArray.d.ts +16 -0
  53. package/dist/templatesCompiled/client/joi/partials/joiSchemaArray.d.ts.map +1 -0
  54. package/dist/templatesCompiled/client/joi/partials/joiSchemaArray.js +84 -0
  55. package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.d.ts +18 -0
  56. package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.d.ts.map +1 -0
  57. package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.js +96 -0
  58. package/dist/templatesCompiled/client/joi/partials/joiSchemaDictionary.d.ts +14 -0
  59. package/dist/templatesCompiled/client/joi/partials/joiSchemaDictionary.d.ts.map +1 -0
  60. package/dist/templatesCompiled/client/joi/partials/joiSchemaDictionary.js +72 -0
  61. package/dist/templatesCompiled/client/joi/partials/joiSchemaEnum.d.ts +14 -0
  62. package/dist/templatesCompiled/client/joi/partials/joiSchemaEnum.d.ts.map +1 -0
  63. package/dist/templatesCompiled/client/joi/partials/joiSchemaEnum.js +74 -0
  64. package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts +35 -0
  65. package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts.map +1 -0
  66. package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.js +201 -0
  67. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts +14 -0
  68. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts.map +1 -0
  69. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.js +50 -0
  70. package/dist/templatesCompiled/client/joi/partials/joiSchemaReference.d.ts +9 -0
  71. package/dist/templatesCompiled/client/joi/partials/joiSchemaReference.d.ts.map +1 -0
  72. package/dist/templatesCompiled/client/joi/partials/joiSchemaReference.js +25 -0
  73. package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts +11 -0
  74. package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts.map +1 -0
  75. package/dist/templatesCompiled/client/jsonschema/exportSchema.js +69 -0
  76. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.d.ts +22 -0
  77. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.d.ts.map +1 -0
  78. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.js +129 -0
  79. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.d.ts +16 -0
  80. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.d.ts.map +1 -0
  81. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.js +74 -0
  82. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.d.ts +16 -0
  83. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.d.ts.map +1 -0
  84. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.js +84 -0
  85. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.d.ts +13 -0
  86. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.d.ts.map +1 -0
  87. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.js +56 -0
  88. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaEnum.d.ts +12 -0
  89. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaEnum.d.ts.map +1 -0
  90. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaEnum.js +49 -0
  91. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaGeneric.d.ts +29 -0
  92. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaGeneric.d.ts.map +1 -0
  93. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaGeneric.js +175 -0
  94. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts +15 -0
  95. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map +1 -0
  96. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.js +63 -0
  97. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaReference.d.ts +9 -0
  98. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaReference.d.ts.map +1 -0
  99. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaReference.js +25 -0
  100. package/dist/templatesCompiled/client/yup/exportSchema.d.ts +11 -0
  101. package/dist/templatesCompiled/client/yup/exportSchema.d.ts.map +1 -0
  102. package/dist/templatesCompiled/client/yup/exportSchema.js +73 -0
  103. package/dist/templatesCompiled/client/yup/partials/yupSchema.d.ts +22 -0
  104. package/dist/templatesCompiled/client/yup/partials/yupSchema.d.ts.map +1 -0
  105. package/dist/templatesCompiled/client/yup/partials/yupSchema.js +129 -0
  106. package/dist/templatesCompiled/client/yup/partials/yupSchemaArray.d.ts +16 -0
  107. package/dist/templatesCompiled/client/yup/partials/yupSchemaArray.d.ts.map +1 -0
  108. package/dist/templatesCompiled/client/yup/partials/yupSchemaArray.js +84 -0
  109. package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.d.ts +18 -0
  110. package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.d.ts.map +1 -0
  111. package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.js +96 -0
  112. package/dist/templatesCompiled/client/yup/partials/yupSchemaDictionary.d.ts +14 -0
  113. package/dist/templatesCompiled/client/yup/partials/yupSchemaDictionary.d.ts.map +1 -0
  114. package/dist/templatesCompiled/client/yup/partials/yupSchemaDictionary.js +72 -0
  115. package/dist/templatesCompiled/client/yup/partials/yupSchemaEnum.d.ts +14 -0
  116. package/dist/templatesCompiled/client/yup/partials/yupSchemaEnum.d.ts.map +1 -0
  117. package/dist/templatesCompiled/client/yup/partials/yupSchemaEnum.js +74 -0
  118. package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts +34 -0
  119. package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts.map +1 -0
  120. package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.js +201 -0
  121. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts +14 -0
  122. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts.map +1 -0
  123. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.js +50 -0
  124. package/dist/templatesCompiled/client/yup/partials/yupSchemaReference.d.ts +9 -0
  125. package/dist/templatesCompiled/client/yup/partials/yupSchemaReference.d.ts.map +1 -0
  126. package/dist/templatesCompiled/client/yup/partials/yupSchemaReference.js +25 -0
  127. package/dist/templatesCompiled/client/zod/exportSchema.d.ts +11 -0
  128. package/dist/templatesCompiled/client/zod/exportSchema.d.ts.map +1 -0
  129. package/dist/templatesCompiled/client/zod/exportSchema.js +67 -0
  130. package/dist/templatesCompiled/client/zod/partials/zodSchema.d.ts +22 -0
  131. package/dist/templatesCompiled/client/zod/partials/zodSchema.d.ts.map +1 -0
  132. package/dist/templatesCompiled/client/zod/partials/zodSchema.js +129 -0
  133. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts +14 -0
  134. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts.map +1 -0
  135. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.js +65 -0
  136. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts +15 -0
  137. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts.map +1 -0
  138. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.js +70 -0
  139. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts +12 -0
  140. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts.map +1 -0
  141. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.js +53 -0
  142. package/dist/templatesCompiled/client/zod/partials/zodSchemaEnum.d.ts +15 -0
  143. package/dist/templatesCompiled/client/zod/partials/zodSchemaEnum.d.ts.map +1 -0
  144. package/dist/templatesCompiled/client/zod/partials/zodSchemaEnum.js +86 -0
  145. package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts +34 -0
  146. package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts.map +1 -0
  147. package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.js +193 -0
  148. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts +14 -0
  149. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts.map +1 -0
  150. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.js +50 -0
  151. package/dist/templatesCompiled/client/zod/partials/zodSchemaReference.d.ts +9 -0
  152. package/dist/templatesCompiled/client/zod/partials/zodSchemaReference.d.ts.map +1 -0
  153. package/dist/templatesCompiled/client/zod/partials/zodSchemaReference.js +25 -0
  154. package/package.json +12 -3
  155. package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.d.ts +0 -3
  156. package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.d.ts.map +0 -1
  157. package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.js +0 -28
  158. package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsSchemaV1.d.ts.map +0 -1
  159. package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.d.ts +0 -3
  160. package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.d.ts.map +0 -1
  161. package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.js +0 -10
  162. /package/dist/common/VersionedSchema/{UnifiedOptionsVersioned → AllVersionedSchemas}/UnifiedOptionsSchemaV1.d.ts +0 -0
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // This is an automatically generated file for the hbs template.
4
+ // You don't need to change it, run npm run build:hbs to update it.
5
+ /* istanbul ignore file */
6
+ /* tslint: disable */
7
+ /* eslint: disable */
8
+ // @ts-nocheck
9
+ exports.default = { "1": function (container, depth0, helpers, partials, data) {
10
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
11
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
12
+ return parent[propertyName];
13
+ }
14
+ return undefined;
15
+ };
16
+ return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 5, "column": 9 } } })) != null ? stack1 : "");
17
+ }, "2": function (container, depth0, helpers, partials, data) {
18
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
19
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
20
+ return parent[propertyName];
21
+ }
22
+ return undefined;
23
+ };
24
+ return " "
25
+ + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 11 } }), depth0)) != null ? stack1 : "")
26
+ + ": "
27
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "zodSchema"), depth0, { "name": "zodSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
28
+ + ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(depth0, "isRequired"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 30 }, "end": { "line": 4, "column": 74 } } })) != null ? stack1 : "")
29
+ + ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 74 }, "end": { "line": 4, "column": 103 } } })) != null ? stack1 : "")
30
+ + "\n";
31
+ }, "3": function (container, depth0, helpers, partials, data) {
32
+ return ".optional()";
33
+ }, "5": function (container, depth0, helpers, partials, data) {
34
+ return ",";
35
+ }, "7": function (container, depth0, helpers, partials, data) {
36
+ return "})\n";
37
+ }, "9": function (container, depth0, helpers, partials, data) {
38
+ return ".nullable()";
39
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
40
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
41
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
42
+ return parent[propertyName];
43
+ }
44
+ return undefined;
45
+ };
46
+ return "z.object({\n"
47
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "properties"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(7, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 8, "column": 7 } } })) != null ? stack1 : "")
48
+ + "})"
49
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 38 } } })) != null ? stack1 : "");
50
+ }, "usePartial": true, "useData": true };
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
3
+ "3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
4
+ compiler: (string | number)[];
5
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
6
+ useData: boolean;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=zodSchemaReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zodSchemaReference.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaReference.ts"],"names":[],"mappings":";;;;;;;AAMA,wBAmBiB"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // This is an automatically generated file for the hbs template.
4
+ // You don't need to change it, run npm run build:hbs to update it.
5
+ /* istanbul ignore file */
6
+ /* tslint: disable */
7
+ /* eslint: disable */
8
+ // @ts-nocheck
9
+ exports.default = { "1": function (container, depth0, helpers, partials, data) {
10
+ var stack1;
11
+ return ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 21 } }), depth0)) != null ? stack1 : "")
12
+ + "Schema";
13
+ }, "3": function (container, depth0, helpers, partials, data) {
14
+ var stack1;
15
+ return ((stack1 = container.lambda(container.strict(depth0, "type", { "start": { "line": 1, "column": 41 }, "end": { "line": 1, "column": 45 } }), depth0)) != null ? stack1 : "")
16
+ + "Schema";
17
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
18
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
19
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
20
+ return parent[propertyName];
21
+ }
22
+ return undefined;
23
+ };
24
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(3, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 61 } } })) != null ? stack1 : "");
25
+ }, "useData": true };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-openapi-codegen",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "Library that generates Typescript clients based on the OpenAPI specification. It bases on openapi-typescript-codegen",
5
5
  "author": "Alexey Zverev",
6
6
  "homepage": "https://github.com/ozonophore/openapi-codegen.git",
@@ -103,6 +103,8 @@
103
103
  "@typescript-eslint/eslint-plugin": "^8.34.1",
104
104
  "@typescript-eslint/parser": "^8.34.1",
105
105
  "abort-controller": "^3.0.0",
106
+ "ajv": "^8.17.1",
107
+ "ajv-formats": "^3.0.1",
106
108
  "axios": "1.8.2",
107
109
  "codecov": "3.8.3",
108
110
  "eslint": "^9.29.0",
@@ -123,10 +125,17 @@
123
125
  "shx": "^0.4.0",
124
126
  "ts-prune": "^0.10.3",
125
127
  "tsx": "^4.20.3",
126
- "typescript": "^5.8.3"
128
+ "typescript": "^5.8.3",
129
+ "yup": "^1.7.1",
130
+ "zod": "^4.3.2"
127
131
  },
128
132
  "peerDependencies": {
133
+ "ajv": ">=8.17.1",
134
+ "ajv-formats": ">=3.0.1",
129
135
  "axios": ">=1.8.2 <=1.9.0",
130
- "prettier": "3.4.2>= <=3.5.3"
136
+ "joi": ">=17.13.3",
137
+ "prettier": "3.4.2>= <=3.5.3",
138
+ "yup": ">=1.7.1",
139
+ "zod": ">=4.3.2"
131
140
  }
132
141
  }
@@ -1,3 +0,0 @@
1
- import { SchemaMigrationPlan } from "../Types";
2
- export declare const unifiedOptionsMigrationPlan: SchemaMigrationPlan<Record<string, any>, Record<string, any>>[];
3
- //# sourceMappingURL=UnifiedOptionsMigrationPlan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnifiedOptionsMigrationPlan.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,2BAA2B,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAwBtG,CAAC"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unifiedOptionsMigrationPlan = void 0;
4
- exports.unifiedOptionsMigrationPlan = [
5
- // Migration from OPTIONS v4 to UNIFIED_OPTIONS v1
6
- // OPTIONS v4 already has input/output structure, so we just pass it through
7
- // Unified schema supports this format directly
8
- {
9
- fromVersion: 'OPTIONS_v4',
10
- toVersion: 'UNIFIED_v1',
11
- migrate: (oldVersion) => {
12
- // OPTIONS v4 structure is already compatible with unified schema
13
- // Just return as-is, unified schema will handle input/output
14
- return { ...oldVersion };
15
- },
16
- },
17
- // Migration from MULTI_OPTIONS v5 to UNIFIED_OPTIONS v1
18
- // MULTI_OPTIONS v5 has items array, which unified schema also supports
19
- {
20
- fromVersion: 'MULTI_OPTIONS_v5',
21
- toVersion: 'UNIFIED_v1',
22
- migrate: (oldVersion) => {
23
- // MULTI_OPTIONS v5 structure with items is already compatible
24
- // Just return as-is, unified schema will handle items
25
- return { ...oldVersion };
26
- },
27
- },
28
- ];
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnifiedOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AAqBtB;;;GAGG;AACH,eAAO,MAAM,sBAAsB,uBA6BZ,CAAC"}
@@ -1,3 +0,0 @@
1
- import { VersionedSchema } from "../Types";
2
- export declare const unifiedOptionsVersionedSchemas: VersionedSchema<Record<string, any>>[];
3
- //# sourceMappingURL=UnifiedOptionsVersionedSchemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnifiedOptionsVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,eAAO,MAAM,8BAA8B,EAAE,eAAe,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAI/E,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unifiedOptionsVersionedSchemas = void 0;
4
- const Enums_1 = require("../Enums");
5
- const UnifiedOptionsSchemaV1_1 = require("./UnifiedOptionsSchemaV1");
6
- exports.unifiedOptionsVersionedSchemas = [{
7
- version: 'v1',
8
- schema: UnifiedOptionsSchemaV1_1.unifiedOptionsSchemaV1,
9
- type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
10
- }];