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,65 @@
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, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(depth0, "link"), "alias"), { "name": "if", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(4, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 96 } } })) != null ? stack1 : "");
17
+ }, "2": 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 = container.lambda(container.strict(lookupProperty(depth0, "link"), "alias", { "start": { "line": 1, "column": 41 }, "end": { "line": 1, "column": 51 } }), depth0)) != null ? stack1 : "")
25
+ + "Schema";
26
+ }, "4": function (container, depth0, helpers, partials, data) {
27
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
28
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
29
+ return parent[propertyName];
30
+ }
31
+ return undefined;
32
+ };
33
+ return ((stack1 = container.lambda(container.strict(lookupProperty(depth0, "link"), "type", { "start": { "line": 1, "column": 71 }, "end": { "line": 1, "column": 80 } }), depth0)) != null ? stack1 : "")
34
+ + "Schema";
35
+ }, "6": function (container, depth0, helpers, partials, data) {
36
+ var stack1;
37
+ return "z."
38
+ + ((stack1 = container.lambda(container.strict(depth0, "base", { "start": { "line": 1, "column": 109 }, "end": { "line": 1, "column": 113 } }), depth0)) != null ? stack1 : "")
39
+ + "()";
40
+ }, "8": function (container, depth0, helpers, partials, data) {
41
+ var stack1;
42
+ return ".min("
43
+ + ((stack1 = container.lambda(container.strict(depth0, "minItems", { "start": { "line": 1, "column": 150 }, "end": { "line": 1, "column": 158 } }), depth0)) != null ? stack1 : "")
44
+ + ")";
45
+ }, "10": function (container, depth0, helpers, partials, data) {
46
+ var stack1;
47
+ return ".max("
48
+ + ((stack1 = container.lambda(container.strict(depth0, "maxItems", { "start": { "line": 1, "column": 193 }, "end": { "line": 1, "column": 201 } }), depth0)) != null ? stack1 : "")
49
+ + ")";
50
+ }, "12": function (container, depth0, helpers, partials, data) {
51
+ return ".nullable()";
52
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
53
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
54
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
55
+ return parent[propertyName];
56
+ }
57
+ return undefined;
58
+ };
59
+ return "z.array("
60
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "link"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 8 }, "end": { "line": 1, "column": 125 } } })) != null ? stack1 : "")
61
+ + ")"
62
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minItems"), { "name": "if", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 1, "column": 126 }, "end": { "line": 1, "column": 169 } } })) != null ? stack1 : "")
63
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxItems"), { "name": "if", "hash": {}, "fn": container.program(10, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 1, "column": 169 }, "end": { "line": 1, "column": 212 } } })) != null ? stack1 : "")
64
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(12, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 1, "column": 212 }, "end": { "line": 1, "column": 248 } } })) != null ? stack1 : "");
65
+ }, "useData": true };
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
3
+ "2": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
4
+ "3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
+ "5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
+ "7": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
7
+ "8": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
8
+ "9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
9
+ compiler: (string | number)[];
10
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
11
+ usePartial: boolean;
12
+ useData: boolean;
13
+ };
14
+ export default _default;
15
+ //# sourceMappingURL=zodSchemaComposition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zodSchemaComposition.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaComposition.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAMA,wBAmEmC"}
@@ -0,0 +1,70 @@
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, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), 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 "z.union(["
17
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 82 } } })) != null ? stack1 : "")
18
+ + "])"
19
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 84 }, "end": { "line": 2, "column": 120 } } })) != null ? stack1 : "")
20
+ + "\n";
21
+ }, "2": function (container, depth0, helpers, partials, data) {
22
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
23
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
24
+ return parent[propertyName];
25
+ }
26
+ return undefined;
27
+ };
28
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "zodSchema"), depth0, { "name": "zodSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
29
+ + ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 43 }, "end": { "line": 2, "column": 73 } } })) != null ? stack1 : "");
30
+ }, "3": function (container, depth0, helpers, partials, data) {
31
+ return ", ";
32
+ }, "5": function (container, depth0, helpers, partials, data) {
33
+ return ".nullable()";
34
+ }, "7": function (container, depth0, helpers, partials, data) {
35
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
36
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
37
+ return parent[propertyName];
38
+ }
39
+ return undefined;
40
+ };
41
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "export"), "any-of", { "name": "equals", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(8, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 7, "column": 0 } } })) != null ? stack1 : "");
42
+ }, "8": function (container, depth0, helpers, partials, data) {
43
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
44
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
45
+ return parent[propertyName];
46
+ }
47
+ return undefined;
48
+ };
49
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "export"), "all-of", { "name": "equals", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 0 } } })) != null ? stack1 : "");
50
+ }, "9": function (container, depth0, helpers, partials, data) {
51
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
52
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
53
+ return parent[propertyName];
54
+ }
55
+ return undefined;
56
+ };
57
+ return "z.intersection("
58
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 88 } } })) != null ? stack1 : "")
59
+ + ")"
60
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 89 }, "end": { "line": 6, "column": 125 } } })) != null ? stack1 : "")
61
+ + "\n";
62
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
63
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
64
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
65
+ return parent[propertyName];
66
+ }
67
+ return undefined;
68
+ };
69
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "export"), "one-of", { "name": "equals", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(7, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 7, "column": 11 } } })) != null ? stack1 : "");
70
+ }, "usePartial": true, "useData": true };
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
3
+ "2": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
4
+ "4": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
+ "6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
+ "8": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
7
+ compiler: (string | number)[];
8
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
9
+ useData: boolean;
10
+ };
11
+ export default _default;
12
+ //# sourceMappingURL=zodSchemaDictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zodSchemaDictionary.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaDictionary.ts"],"names":[],"mappings":";;;;;;;;;;AAMA,wBAiDiB"}
@@ -0,0 +1,53 @@
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, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(depth0, "link"), "alias"), { "name": "if", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(4, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 97 } } })) != null ? stack1 : "");
17
+ }, "2": 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 = container.lambda(container.strict(lookupProperty(depth0, "link"), "alias", { "start": { "line": 1, "column": 42 }, "end": { "line": 1, "column": 52 } }), depth0)) != null ? stack1 : "")
25
+ + "Schema";
26
+ }, "4": function (container, depth0, helpers, partials, data) {
27
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
28
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
29
+ return parent[propertyName];
30
+ }
31
+ return undefined;
32
+ };
33
+ return ((stack1 = container.lambda(container.strict(lookupProperty(depth0, "link"), "type", { "start": { "line": 1, "column": 72 }, "end": { "line": 1, "column": 81 } }), depth0)) != null ? stack1 : "")
34
+ + "Schema";
35
+ }, "6": function (container, depth0, helpers, partials, data) {
36
+ var stack1;
37
+ return "z."
38
+ + ((stack1 = container.lambda(container.strict(depth0, "base", { "start": { "line": 1, "column": 110 }, "end": { "line": 1, "column": 114 } }), depth0)) != null ? stack1 : "")
39
+ + "()";
40
+ }, "8": function (container, depth0, helpers, partials, data) {
41
+ return ".nullable()";
42
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
43
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
44
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
45
+ return parent[propertyName];
46
+ }
47
+ return undefined;
48
+ };
49
+ return "z.record("
50
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "link"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 126 } } })) != null ? stack1 : "")
51
+ + ")"
52
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 1, "column": 127 }, "end": { "line": 1, "column": 163 } } })) != null ? stack1 : "");
53
+ }, "useData": true };
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
3
+ "2": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
4
+ "3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
+ "4": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
+ "6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
7
+ "8": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
8
+ "9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
9
+ "11": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
10
+ compiler: (string | number)[];
11
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
12
+ useData: boolean;
13
+ };
14
+ export default _default;
15
+ //# sourceMappingURL=zodSchemaEnum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zodSchemaEnum.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaEnum.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAMA,wBAoFiB"}
@@ -0,0 +1,86 @@
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, "isNumericEnum").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enum"), { "name": "isNumericEnum", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(8, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 14, "column": 18 } } })) != 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 "z.union([\n"
25
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "enum"), { "name": "each", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 9 } } })) != null ? stack1 : "")
26
+ + "])"
27
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(6, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 7, "column": 2 }, "end": { "line": 7, "column": 38 } } })) != null ? stack1 : "")
28
+ + "\n";
29
+ }, "3": function (container, depth0, helpers, partials, data) {
30
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
31
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
32
+ return parent[propertyName];
33
+ }
34
+ return undefined;
35
+ };
36
+ return " z.literal("
37
+ + ((stack1 = container.lambda(container.strict(depth0, "value", { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 22 } }), depth0)) != null ? stack1 : "")
38
+ + ")"
39
+ + ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 55 } } })) != null ? stack1 : "")
40
+ + "\n";
41
+ }, "4": function (container, depth0, helpers, partials, data) {
42
+ return ",";
43
+ }, "6": function (container, depth0, helpers, partials, data) {
44
+ return ".nullable()";
45
+ }, "8": function (container, depth0, helpers, partials, data) {
46
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
47
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
48
+ return parent[propertyName];
49
+ }
50
+ return undefined;
51
+ };
52
+ return "z.enum([\n"
53
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "enum"), { "name": "each", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 12, "column": 9 } } })) != null ? stack1 : "")
54
+ + "])"
55
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(6, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 13, "column": 2 }, "end": { "line": 13, "column": 38 } } })) != null ? stack1 : "")
56
+ + "\n";
57
+ }, "9": function (container, depth0, helpers, partials, data) {
58
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
59
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
60
+ return parent[propertyName];
61
+ }
62
+ return undefined;
63
+ };
64
+ return " "
65
+ + ((stack1 = container.lambda(container.strict(depth0, "value", { "start": { "line": 11, "column": 7 }, "end": { "line": 11, "column": 12 } }), depth0)) != null ? stack1 : "")
66
+ + ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 44 } } })) != null ? stack1 : "")
67
+ + "\n";
68
+ }, "11": function (container, depth0, helpers, partials, data) {
69
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
70
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
71
+ return parent[propertyName];
72
+ }
73
+ return undefined;
74
+ };
75
+ return "z.any()"
76
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(6, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 43 } } })) != null ? stack1 : "")
77
+ + "\n";
78
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
79
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
80
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
81
+ return parent[propertyName];
82
+ }
83
+ return undefined;
84
+ };
85
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enum"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(11, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 17, "column": 7 } } })) != null ? stack1 : "");
86
+ }, "useData": true };
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
3
+ "2": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
4
+ "4": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
+ "6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
+ "8": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
7
+ "9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
8
+ "11": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
9
+ "12": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
10
+ "14": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
11
+ "15": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
12
+ "17": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
13
+ "18": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
14
+ "20": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
15
+ "21": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
16
+ "23": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
17
+ "25": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
18
+ "26": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
19
+ "27": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
20
+ "29": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
21
+ "31": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
22
+ "33": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
23
+ "34": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
24
+ "36": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
25
+ "37": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
26
+ "39": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
27
+ "40": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
28
+ "42": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
29
+ compiler: (string | number)[];
30
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
31
+ useData: boolean;
32
+ };
33
+ export default _default;
34
+ //# sourceMappingURL=zodSchemaGeneric.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zodSchemaGeneric.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaGeneric.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA6MiB"}
@@ -0,0 +1,193 @@
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, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), 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 "z.string()"
17
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minLength"), { "name": "if", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 10 }, "end": { "line": 2, "column": 55 } } })) != null ? stack1 : "")
18
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxLength"), { "name": "if", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 55 }, "end": { "line": 2, "column": 100 } } })) != null ? stack1 : "")
19
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "pattern"), { "name": "if", "hash": {}, "fn": container.program(6, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 100 }, "end": { "line": 2, "column": 145 } } })) != null ? stack1 : "")
20
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "format"), { "name": "if", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 145 }, "end": { "line": 2, "column": 362 } } })) != null ? stack1 : "")
21
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 362 }, "end": { "line": 2, "column": 398 } } })) != null ? stack1 : "")
22
+ + "\n";
23
+ }, "2": function (container, depth0, helpers, partials, data) {
24
+ var stack1;
25
+ return ".min("
26
+ + ((stack1 = container.lambda(container.strict(depth0, "minLength", { "start": { "line": 2, "column": 35 }, "end": { "line": 2, "column": 44 } }), depth0)) != null ? stack1 : "")
27
+ + ")";
28
+ }, "4": function (container, depth0, helpers, partials, data) {
29
+ var stack1;
30
+ return ".max("
31
+ + ((stack1 = container.lambda(container.strict(depth0, "maxLength", { "start": { "line": 2, "column": 80 }, "end": { "line": 2, "column": 89 } }), depth0)) != null ? stack1 : "")
32
+ + ")";
33
+ }, "6": function (container, depth0, helpers, partials, data) {
34
+ var stack1;
35
+ return ".regex(/"
36
+ + ((stack1 = container.lambda(container.strict(depth0, "pattern", { "start": { "line": 2, "column": 126 }, "end": { "line": 2, "column": 133 } }), depth0)) != null ? stack1 : "")
37
+ + "/)";
38
+ }, "8": function (container, depth0, helpers, partials, data) {
39
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
40
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
41
+ return parent[propertyName];
42
+ }
43
+ return undefined;
44
+ };
45
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date-time", { "name": "equals", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.program(11, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 159 }, "end": { "line": 2, "column": 355 } } })) != null ? stack1 : "");
46
+ }, "9": function (container, depth0, helpers, partials, data) {
47
+ return ".datetime()";
48
+ }, "11": function (container, depth0, helpers, partials, data) {
49
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
50
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
51
+ return parent[propertyName];
52
+ }
53
+ return undefined;
54
+ };
55
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date", { "name": "equals", "hash": {}, "fn": container.program(12, data, 0), "inverse": container.program(14, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 200 }, "end": { "line": 2, "column": 344 } } })) != null ? stack1 : "");
56
+ }, "12": function (container, depth0, helpers, partials, data) {
57
+ return ".date()";
58
+ }, "14": function (container, depth0, helpers, partials, data) {
59
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
60
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
61
+ return parent[propertyName];
62
+ }
63
+ return undefined;
64
+ };
65
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "email", { "name": "equals", "hash": {}, "fn": container.program(15, data, 0), "inverse": container.program(17, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 236 }, "end": { "line": 2, "column": 344 } } })) != null ? stack1 : "");
66
+ }, "15": function (container, depth0, helpers, partials, data) {
67
+ return ".email()";
68
+ }, "17": function (container, depth0, helpers, partials, data) {
69
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
70
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
71
+ return parent[propertyName];
72
+ }
73
+ return undefined;
74
+ };
75
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uri", { "name": "equals", "hash": {}, "fn": container.program(18, data, 0), "inverse": container.program(20, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 274 }, "end": { "line": 2, "column": 344 } } })) != null ? stack1 : "");
76
+ }, "18": function (container, depth0, helpers, partials, data) {
77
+ return ".url()";
78
+ }, "20": function (container, depth0, helpers, partials, data) {
79
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
80
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
81
+ return parent[propertyName];
82
+ }
83
+ return undefined;
84
+ };
85
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uuid", { "name": "equals", "hash": {}, "fn": container.program(21, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 308 }, "end": { "line": 2, "column": 344 } } })) != null ? stack1 : "");
86
+ }, "21": function (container, depth0, helpers, partials, data) {
87
+ return ".uuid()";
88
+ }, "23": function (container, depth0, helpers, partials, data) {
89
+ return ".nullable()";
90
+ }, "25": function (container, depth0, helpers, partials, data) {
91
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
92
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
93
+ return parent[propertyName];
94
+ }
95
+ return undefined;
96
+ };
97
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "number", { "name": "equals", "hash": {}, "fn": container.program(26, data, 0), "inverse": container.program(33, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 13, "column": 0 } } })) != null ? stack1 : "");
98
+ }, "26": function (container, depth0, helpers, partials, data) {
99
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
100
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
101
+ return parent[propertyName];
102
+ }
103
+ return undefined;
104
+ };
105
+ return "z.number()"
106
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 10 }, "end": { "line": 4, "column": 51 } } })) != null ? stack1 : "")
107
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(29, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 51 }, "end": { "line": 4, "column": 92 } } })) != null ? stack1 : "")
108
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(31, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 92 }, "end": { "line": 4, "column": 146 } } })) != null ? stack1 : "")
109
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 146 }, "end": { "line": 4, "column": 182 } } })) != null ? stack1 : "")
110
+ + "\n";
111
+ }, "27": function (container, depth0, helpers, partials, data) {
112
+ var stack1;
113
+ return ".min("
114
+ + ((stack1 = container.lambda(container.strict(depth0, "minimum", { "start": { "line": 4, "column": 33 }, "end": { "line": 4, "column": 40 } }), depth0)) != null ? stack1 : "")
115
+ + ")";
116
+ }, "29": function (container, depth0, helpers, partials, data) {
117
+ var stack1;
118
+ return ".max("
119
+ + ((stack1 = container.lambda(container.strict(depth0, "maximum", { "start": { "line": 4, "column": 74 }, "end": { "line": 4, "column": 81 } }), depth0)) != null ? stack1 : "")
120
+ + ")";
121
+ }, "31": function (container, depth0, helpers, partials, data) {
122
+ var stack1;
123
+ return ".multipleOf("
124
+ + ((stack1 = container.lambda(container.strict(depth0, "multipleOf", { "start": { "line": 4, "column": 125 }, "end": { "line": 4, "column": 135 } }), depth0)) != null ? stack1 : "")
125
+ + ")";
126
+ }, "33": function (container, depth0, helpers, partials, data) {
127
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
128
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
129
+ return parent[propertyName];
130
+ }
131
+ return undefined;
132
+ };
133
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "integer", { "name": "equals", "hash": {}, "fn": container.program(34, data, 0), "inverse": container.program(36, data, 0), "data": data, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 13, "column": 0 } } })) != null ? stack1 : "");
134
+ }, "34": function (container, depth0, helpers, partials, data) {
135
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
136
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
137
+ return parent[propertyName];
138
+ }
139
+ return undefined;
140
+ };
141
+ return "z.number().int()"
142
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 57 } } })) != null ? stack1 : "")
143
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(29, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 57 }, "end": { "line": 6, "column": 98 } } })) != null ? stack1 : "")
144
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(31, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 98 }, "end": { "line": 6, "column": 152 } } })) != null ? stack1 : "")
145
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 152 }, "end": { "line": 6, "column": 188 } } })) != null ? stack1 : "")
146
+ + "\n";
147
+ }, "36": function (container, depth0, helpers, partials, data) {
148
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
149
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
150
+ return parent[propertyName];
151
+ }
152
+ return undefined;
153
+ };
154
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "boolean", { "name": "equals", "hash": {}, "fn": container.program(37, data, 0), "inverse": container.program(39, data, 0), "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 13, "column": 0 } } })) != null ? stack1 : "");
155
+ }, "37": function (container, depth0, helpers, partials, data) {
156
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
157
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
158
+ return parent[propertyName];
159
+ }
160
+ return undefined;
161
+ };
162
+ return "z.boolean()"
163
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 11 }, "end": { "line": 8, "column": 47 } } })) != null ? stack1 : "")
164
+ + "\n";
165
+ }, "39": function (container, depth0, helpers, partials, data) {
166
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
167
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
168
+ return parent[propertyName];
169
+ }
170
+ return undefined;
171
+ };
172
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "null", { "name": "equals", "hash": {}, "fn": container.program(40, data, 0), "inverse": container.program(42, data, 0), "data": data, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 13, "column": 0 } } })) != null ? stack1 : "");
173
+ }, "40": function (container, depth0, helpers, partials, data) {
174
+ return "z.null()\n";
175
+ }, "42": function (container, depth0, helpers, partials, data) {
176
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
177
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
178
+ return parent[propertyName];
179
+ }
180
+ return undefined;
181
+ };
182
+ return "z.any()"
183
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 12, "column": 7 }, "end": { "line": 12, "column": 43 } } })) != null ? stack1 : "")
184
+ + "\n";
185
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
186
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
187
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
188
+ return parent[propertyName];
189
+ }
190
+ return undefined;
191
+ };
192
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "string", { "name": "equals", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(25, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 13, "column": 11 } } })) != null ? stack1 : "");
193
+ }, "useData": true };
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
3
+ "2": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
4
+ "3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
+ "5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
+ "7": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
7
+ "9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
8
+ compiler: (string | number)[];
9
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
10
+ usePartial: boolean;
11
+ useData: boolean;
12
+ };
13
+ export default _default;
14
+ //# sourceMappingURL=zodSchemaInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zodSchemaInterface.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaInterface.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,wBA4CmC"}