ts-openapi-codegen 2.0.0-beta.9 → 2.0.0

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 (183) hide show
  1. package/README.md +88 -18
  2. package/README.rus.md +88 -21
  3. package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
  4. package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +5 -0
  5. package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
  6. package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +20 -8
  7. package/dist/cli/index.js +5 -3
  8. package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
  9. package/dist/cli/previewChanges/previewChanges.js +116 -32
  10. package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -1
  11. package/dist/cli/previewChanges/utils/updateOutputPaths.js +6 -0
  12. package/dist/common/Consts.d.ts.map +1 -1
  13. package/dist/common/Consts.js +4 -1
  14. package/dist/common/LoggerMessages.d.ts +1 -0
  15. package/dist/common/LoggerMessages.d.ts.map +1 -1
  16. package/dist/common/LoggerMessages.js +1 -0
  17. package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts +1 -1
  18. package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
  19. package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +14 -4
  20. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +2 -2
  21. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +2 -2
  22. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +2 -2
  23. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +42 -0
  24. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -0
  25. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.js +38 -0
  26. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +155 -28
  27. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
  28. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +13 -17
  29. package/dist/common/VersionedSchema/CommonSchemas.d.ts +12 -4
  30. package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
  31. package/dist/common/VersionedSchema/CommonSchemas.js +15 -7
  32. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +2 -2
  33. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +2 -2
  34. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +2 -2
  35. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +2 -2
  36. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +2 -2
  37. package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -1
  38. package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +19 -0
  39. package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts +2 -0
  40. package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts.map +1 -0
  41. package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +185 -0
  42. package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.js +20 -3
  43. package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.js +19 -1
  44. package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts +4 -0
  45. package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
  46. package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +68 -23
  47. package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.d.ts +1 -1
  48. package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.js +1 -1
  49. package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts +10 -0
  50. package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
  51. package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +33 -15
  52. package/dist/common/utils/__tests__/convertArrayToObject.test.js +64 -169
  53. package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
  54. package/dist/common/utils/convertArrayToObject.js +51 -14
  55. package/dist/core/OpenApiClient.d.ts.map +1 -1
  56. package/dist/core/OpenApiClient.js +12 -1
  57. package/dist/core/WriteClient.d.ts +8 -1
  58. package/dist/core/WriteClient.d.ts.map +1 -1
  59. package/dist/core/WriteClient.js +48 -7
  60. package/dist/core/__tests__/WriteClient.test.js +2 -0
  61. package/dist/core/api/v2/parser/getType.d.ts.map +1 -1
  62. package/dist/core/api/v2/parser/getType.js +2 -1
  63. package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
  64. package/dist/core/api/v3/parser/getType.js +2 -1
  65. package/dist/core/types/base/Templates.model.d.ts +1 -1
  66. package/dist/core/types/base/Templates.model.d.ts.map +1 -1
  67. package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts +6 -0
  68. package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts.map +1 -0
  69. package/dist/core/types/enums/EmptySchemaStrategy.enum.js +9 -0
  70. package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts +2 -0
  71. package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts.map +1 -0
  72. package/dist/core/utils/__tests__/getRelativeModelPath.test.js +27 -0
  73. package/dist/core/utils/__tests__/modelHelpers.test.d.ts +2 -0
  74. package/dist/core/utils/__tests__/modelHelpers.test.d.ts.map +1 -0
  75. package/dist/core/utils/__tests__/modelHelpers.test.js +151 -0
  76. package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts +2 -0
  77. package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts.map +1 -0
  78. package/dist/core/utils/__tests__/postProcessModelImports.test.js +67 -0
  79. package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts +2 -0
  80. package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts.map +1 -0
  81. package/dist/core/utils/__tests__/postProcessServiceImports.test.js +26 -0
  82. package/dist/core/utils/__tests__/resolveRefPath.test.d.ts +2 -0
  83. package/dist/core/utils/__tests__/resolveRefPath.test.d.ts.map +1 -0
  84. package/dist/core/utils/__tests__/resolveRefPath.test.js +22 -0
  85. package/dist/core/utils/__tests__/serviceHelpers.test.d.ts +2 -0
  86. package/dist/core/utils/__tests__/serviceHelpers.test.d.ts.map +1 -0
  87. package/dist/core/utils/__tests__/serviceHelpers.test.js +121 -0
  88. package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts +2 -0
  89. package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts.map +1 -0
  90. package/dist/core/utils/__tests__/writeClientExecutor.test.js +20 -0
  91. package/dist/core/utils/__tests__/writeClientSchemas.test.js +2 -0
  92. package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
  93. package/dist/core/utils/getOpenApiSpec.js +14 -1
  94. package/dist/core/utils/getRelativeModelPath.d.ts +9 -0
  95. package/dist/core/utils/getRelativeModelPath.d.ts.map +1 -0
  96. package/dist/core/utils/getRelativeModelPath.js +37 -0
  97. package/dist/core/utils/modelHelpers.d.ts.map +1 -1
  98. package/dist/core/utils/modelHelpers.js +37 -3
  99. package/dist/core/utils/postProcessModelImports.d.ts.map +1 -1
  100. package/dist/core/utils/postProcessModelImports.js +14 -1
  101. package/dist/core/utils/postProcessServiceImports.d.ts.map +1 -1
  102. package/dist/core/utils/postProcessServiceImports.js +1 -2
  103. package/dist/core/utils/precompileTemplates.js +1 -0
  104. package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
  105. package/dist/core/utils/registerHandlebarHelpers.js +25 -0
  106. package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
  107. package/dist/core/utils/registerHandlebarTemplates.js +42 -41
  108. package/dist/core/utils/resolveRefPath.d.ts.map +1 -1
  109. package/dist/core/utils/resolveRefPath.js +1 -4
  110. package/dist/core/utils/writeClientExecutor.d.ts +4 -1
  111. package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
  112. package/dist/core/utils/writeClientExecutor.js +17 -2
  113. package/dist/core/utils/writeClientSchemas.d.ts +4 -1
  114. package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
  115. package/dist/core/utils/writeClientSchemas.js +11 -2
  116. package/dist/templatesCompiled/client/core/ApiError.js +1 -1
  117. package/dist/templatesCompiled/client/core/ApiResult.js +1 -1
  118. package/dist/templatesCompiled/client/core/axios/request.js +3 -3
  119. package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -0
  120. package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
  121. package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +13 -8
  122. package/dist/templatesCompiled/client/core/executor/requestExecutor.js +1 -1
  123. package/dist/templatesCompiled/client/core/fetch/request.js +3 -3
  124. package/dist/templatesCompiled/client/core/functions/catchErrors.js +1 -1
  125. package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +1 -1
  126. package/dist/templatesCompiled/client/core/node/request.js +3 -3
  127. package/dist/templatesCompiled/client/core/xhr/request.js +3 -3
  128. package/dist/templatesCompiled/client/exportClient.d.ts +4 -0
  129. package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -1
  130. package/dist/templatesCompiled/client/exportClient.js +51 -13
  131. package/dist/templatesCompiled/client/exportSchema.d.ts +5 -1
  132. package/dist/templatesCompiled/client/exportSchema.d.ts.map +1 -1
  133. package/dist/templatesCompiled/client/exportSchema.js +37 -7
  134. package/dist/templatesCompiled/client/exportService.d.ts +2 -0
  135. package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
  136. package/dist/templatesCompiled/client/exportService.js +70 -30
  137. package/dist/templatesCompiled/client/indexFull.d.ts +1 -0
  138. package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
  139. package/dist/templatesCompiled/client/indexFull.js +4 -1
  140. package/dist/templatesCompiled/client/indexSimple.d.ts +1 -0
  141. package/dist/templatesCompiled/client/indexSimple.d.ts.map +1 -1
  142. package/dist/templatesCompiled/client/indexSimple.js +4 -1
  143. package/dist/templatesCompiled/client/joi/exportSchema.js +5 -5
  144. package/dist/templatesCompiled/client/joi/partials/joiSchema.js +7 -7
  145. package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.js +4 -4
  146. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts +5 -3
  147. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts.map +1 -1
  148. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.js +39 -12
  149. package/dist/templatesCompiled/client/jsonschema/exportSchema.js +5 -5
  150. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.js +7 -7
  151. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.js +5 -5
  152. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.js +2 -2
  153. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.js +5 -5
  154. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts +3 -1
  155. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map +1 -1
  156. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.js +45 -15
  157. package/dist/templatesCompiled/client/yup/exportSchema.js +3 -3
  158. package/dist/templatesCompiled/client/yup/partials/yupSchema.js +7 -7
  159. package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.js +4 -4
  160. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts +5 -3
  161. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts.map +1 -1
  162. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.js +39 -12
  163. package/dist/templatesCompiled/client/zod/exportSchema.js +3 -3
  164. package/dist/templatesCompiled/client/zod/partials/zodSchema.js +7 -7
  165. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts +5 -6
  166. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts.map +1 -1
  167. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.js +14 -28
  168. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts +3 -0
  169. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts.map +1 -1
  170. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.js +32 -8
  171. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts +3 -4
  172. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts.map +1 -1
  173. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.js +9 -23
  174. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts +4 -2
  175. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts.map +1 -1
  176. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.js +18 -7
  177. package/package.json +2 -2
  178. package/dist/common/defaultOptions.d.ts +0 -3
  179. package/dist/common/defaultOptions.d.ts.map +0 -1
  180. package/dist/common/defaultOptions.js +0 -28
  181. package/dist/core/utils/advancedDeduplicatePath.d.ts +0 -5
  182. package/dist/core/utils/advancedDeduplicatePath.d.ts.map +0 -1
  183. package/dist/core/utils/advancedDeduplicatePath.js +0 -29
@@ -49,7 +49,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
49
49
  return undefined;
50
50
  };
51
51
  return "const "
52
- + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 14, "column": 9 }, "end": { "line": 14, "column": 13 } }), depth0)) != null ? stack1 : "")
52
+ + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 13 } }), depth0)) != null ? stack1 : "")
53
53
  + " = ("
54
54
  + ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
55
55
  + "): RequestConfig => ({\n "
@@ -63,16 +63,16 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
63
63
  return undefined;
64
64
  };
65
65
  return " "
66
- + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 22, "column": 7 }, "end": { "line": 22, "column": 11 } }), depth0)) != null ? stack1 : "")
66
+ + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 23, "column": 7 }, "end": { "line": 23, "column": 11 } }), depth0)) != null ? stack1 : "")
67
67
  + ": ("
68
68
  + ((stack1 = container.invokePartial(lookupProperty(partials, "parametersDefinition"), depth0, { "name": "parametersDefinition", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
69
69
  + ") => RequestConfig;\n";
70
70
  }, "11": function (container, depth0, helpers, partials, data) {
71
71
  var stack1, alias1 = container.strict, alias2 = container.lambda;
72
72
  return " "
73
- + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 28, "column": 7 }, "end": { "line": 28, "column": 11 } }), depth0)) != null ? stack1 : "")
73
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 29, "column": 7 }, "end": { "line": 29, "column": 11 } }), depth0)) != null ? stack1 : "")
74
74
  + ": "
75
- + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 28, "column": 19 }, "end": { "line": 28, "column": 23 } }), depth0)) != null ? stack1 : "")
75
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 29, "column": 19 }, "end": { "line": 29, "column": 23 } }), depth0)) != null ? stack1 : "")
76
76
  + ",\n";
77
77
  }, "13": function (container, depth0, helpers, partials, data, blockParams, depths) {
78
78
  var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), alias2 = container.strict, alias3 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
@@ -82,19 +82,29 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
82
82
  return undefined;
83
83
  };
84
84
  return " /**\n"
85
- + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "deprecated"), { "name": "if", "hash": {}, "fn": container.program(14, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 39, "column": 11 } } })) != null ? stack1 : "")
86
- + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "summary"), { "name": "if", "hash": {}, "fn": container.program(16, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 42, "column": 11 } } })) != null ? stack1 : "")
87
- + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(18, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 43, "column": 4 }, "end": { "line": 45, "column": 11 } } })) != null ? stack1 : "")
88
- + ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useOptions"), { "name": "unless", "hash": {}, "fn": container.program(20, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 46, "column": 4 }, "end": { "line": 52, "column": 15 } } })) != null ? stack1 : "")
89
- + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "results"), { "name": "each", "hash": {}, "fn": container.program(24, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 53, "column": 4 }, "end": { "line": 55, "column": 13 } } })) != null ? stack1 : "")
85
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "deprecated"), { "name": "if", "hash": {}, "fn": container.program(14, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 40, "column": 11 } } })) != null ? stack1 : "")
86
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "summary"), { "name": "if", "hash": {}, "fn": container.program(16, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 43, "column": 11 } } })) != null ? stack1 : "")
87
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(18, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 46, "column": 11 } } })) != null ? stack1 : "")
88
+ + ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useOptions"), { "name": "unless", "hash": {}, "fn": container.program(20, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 47, "column": 4 }, "end": { "line": 53, "column": 15 } } })) != null ? stack1 : "")
89
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "results"), { "name": "each", "hash": {}, "fn": container.program(24, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 54, "column": 4 }, "end": { "line": 56, "column": 13 } } })) != null ? stack1 : "")
90
90
  + " * @throws ApiError\n */\n"
91
- + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(26, data, 0, blockParams, depths), "inverse": container.program(28, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 68, "column": 11 } } })) != null ? stack1 : "")
91
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(26, data, 0, blockParams, depths), "inverse": container.program(28, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 59, "column": 4 }, "end": { "line": 69, "column": 11 } } })) != null ? stack1 : "")
92
92
  + " return this.executor.request<"
93
93
  + ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
94
94
  + ">(\n "
95
- + ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 70, "column": 15 }, "end": { "line": 70, "column": 28 } }), depth0)) != null ? stack1 : "")
95
+ + ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 71, "column": 15 }, "end": { "line": 71, "column": 28 } }), depth0)) != null ? stack1 : "")
96
96
  + "Options."
97
- + ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 70, "column": 42 }, "end": { "line": 70, "column": 46 } }), depth0)) != null ? stack1 : "")
97
+ + ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 71, "column": 42 }, "end": { "line": 71, "column": 46 } }), depth0)) != null ? stack1 : "")
98
+ + "("
99
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
100
+ + "),\n options\n );\n }\n\n"
101
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(30, data, 0, blockParams, depths), "inverse": container.program(32, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 76, "column": 4 }, "end": { "line": 86, "column": 11 } } })) != null ? stack1 : "")
102
+ + " return this.executor.requestRaw<"
103
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
104
+ + ">(\n "
105
+ + ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 88, "column": 15 }, "end": { "line": 88, "column": 28 } }), depth0)) != null ? stack1 : "")
106
+ + "Options."
107
+ + ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 88, "column": 42 }, "end": { "line": 88, "column": 46 } }), depth0)) != null ? stack1 : "")
98
108
  + "("
99
109
  + ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
100
110
  + "),\n options\n );\n }\n";
@@ -103,12 +113,12 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
103
113
  }, "16": function (container, depth0, helpers, partials, data) {
104
114
  var stack1;
105
115
  return " * "
106
- + ((stack1 = container.lambda(container.strict(depth0, "summary", { "start": { "line": 41, "column": 10 }, "end": { "line": 41, "column": 17 } }), depth0)) != null ? stack1 : "")
116
+ + ((stack1 = container.lambda(container.strict(depth0, "summary", { "start": { "line": 42, "column": 10 }, "end": { "line": 42, "column": 17 } }), depth0)) != null ? stack1 : "")
107
117
  + "\n";
108
118
  }, "18": function (container, depth0, helpers, partials, data) {
109
119
  var stack1;
110
120
  return " * "
111
- + ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line": 44, "column": 10 }, "end": { "line": 44, "column": 21 } }), depth0)) != null ? stack1 : "")
121
+ + ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line": 45, "column": 10 }, "end": { "line": 45, "column": 21 } }), depth0)) != null ? stack1 : "")
112
122
  + "\n";
113
123
  }, "20": function (container, depth0, helpers, partials, data) {
114
124
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
@@ -117,7 +127,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
117
127
  }
118
128
  return undefined;
119
129
  };
120
- return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "if", "hash": {}, "fn": container.program(21, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 47, "column": 4 }, "end": { "line": 51, "column": 11 } } })) != null ? stack1 : "");
130
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "if", "hash": {}, "fn": container.program(21, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 52, "column": 11 } } })) != null ? stack1 : "");
121
131
  }, "21": function (container, depth0, helpers, partials, data) {
122
132
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
123
133
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -125,20 +135,20 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
125
135
  }
126
136
  return undefined;
127
137
  };
128
- return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "each", "hash": {}, "fn": container.program(22, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 50, "column": 13 } } })) != null ? stack1 : "");
138
+ return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "each", "hash": {}, "fn": container.program(22, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 51, "column": 13 } } })) != null ? stack1 : "");
129
139
  }, "22": function (container, depth0, helpers, partials, data) {
130
140
  var stack1, alias1 = container.strict, alias2 = container.lambda;
131
141
  return " * @param "
132
- + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 49, "column": 17 }, "end": { "line": 49, "column": 21 } }), depth0)) != null ? stack1 : "")
142
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 50, "column": 17 }, "end": { "line": 50, "column": 21 } }), depth0)) != null ? stack1 : "")
133
143
  + " "
134
- + ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 49, "column": 28 }, "end": { "line": 49, "column": 39 } }), depth0)) != null ? stack1 : "")
144
+ + ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 50, "column": 28 }, "end": { "line": 50, "column": 39 } }), depth0)) != null ? stack1 : "")
135
145
  + "\n";
136
146
  }, "24": function (container, depth0, helpers, partials, data) {
137
147
  var stack1, alias1 = container.strict, alias2 = container.lambda;
138
148
  return " * @returns "
139
- + ((stack1 = alias2(alias1(depth0, "type", { "start": { "line": 54, "column": 19 }, "end": { "line": 54, "column": 23 } }), depth0)) != null ? stack1 : "")
149
+ + ((stack1 = alias2(alias1(depth0, "type", { "start": { "line": 55, "column": 19 }, "end": { "line": 55, "column": 23 } }), depth0)) != null ? stack1 : "")
140
150
  + " "
141
- + ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 54, "column": 30 }, "end": { "line": 54, "column": 41 } }), depth0)) != null ? stack1 : "")
151
+ + ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 55, "column": 30 }, "end": { "line": 55, "column": 41 } }), depth0)) != null ? stack1 : "")
142
152
  + "\n";
143
153
  }, "26": function (container, depth0, helpers, partials, data) {
144
154
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
@@ -148,7 +158,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
148
158
  return undefined;
149
159
  };
150
160
  return " public "
151
- + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 18 } }), depth0)) != null ? stack1 : "")
161
+ + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 60, "column": 14 }, "end": { "line": 60, "column": 18 } }), depth0)) != null ? stack1 : "")
152
162
  + "(\n "
153
163
  + ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
154
164
  + " options?: TOptions,\n ): CancelablePromise<"
@@ -162,12 +172,40 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
162
172
  return undefined;
163
173
  };
164
174
  return " public "
165
- + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 64, "column": 14 }, "end": { "line": 64, "column": 18 } }), depth0)) != null ? stack1 : "")
175
+ + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 65, "column": 14 }, "end": { "line": 65, "column": 18 } }), depth0)) != null ? stack1 : "")
166
176
  + "(\n "
167
177
  + ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
168
178
  + " options?: TOptions,\n ): Promise<"
169
179
  + ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
170
180
  + "> {\n";
181
+ }, "30": function (container, depth0, helpers, partials, data) {
182
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
183
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
184
+ return parent[propertyName];
185
+ }
186
+ return undefined;
187
+ };
188
+ return " public "
189
+ + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 77, "column": 14 }, "end": { "line": 77, "column": 18 } }), depth0)) != null ? stack1 : "")
190
+ + "Raw(\n "
191
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
192
+ + " options?: TOptions,\n ): CancelablePromise<ApiResult<"
193
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
194
+ + ">> {\n";
195
+ }, "32": function (container, depth0, helpers, partials, data) {
196
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
197
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
198
+ return parent[propertyName];
199
+ }
200
+ return undefined;
201
+ };
202
+ return " public "
203
+ + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 82, "column": 14 }, "end": { "line": 82, "column": 18 } }), depth0)) != null ? stack1 : "")
204
+ + "Raw(\n "
205
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
206
+ + " options?: TOptions,\n ): Promise<ApiResult<"
207
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
208
+ + ">> {\n";
171
209
  }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data, blockParams, depths) {
172
210
  var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), alias2 = container.strict, alias3 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
173
211
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -181,21 +219,23 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
181
219
  + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 7 } } })) != null ? stack1 : "")
182
220
  + "import type { RequestExecutor, RequestConfig } from '"
183
221
  + ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "./executor/requestExecutor", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 11, "column": 53 }, "end": { "line": 11, "column": 113 } } })) != null ? stack1 : "")
222
+ + "';\nimport type { ApiResult } from '"
223
+ + ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "ApiResult", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 12, "column": 32 }, "end": { "line": 12, "column": 75 } } })) != null ? stack1 : "")
184
224
  + "';\n\n"
185
- + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(7, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 18, "column": 9 } } })) != null ? stack1 : "")
225
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(7, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 9 } } })) != null ? stack1 : "")
186
226
  + "\nexport type T"
187
- + ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 26 } }), depth0)) != null ? stack1 : "")
227
+ + ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 21, "column": 16 }, "end": { "line": 21, "column": 26 } }), depth0)) != null ? stack1 : "")
188
228
  + "Options = {\n"
189
- + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 21, "column": 0 }, "end": { "line": 23, "column": 9 } } })) != null ? stack1 : "")
229
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 24, "column": 9 } } })) != null ? stack1 : "")
190
230
  + "};\n\nexport const "
191
- + ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 26, "column": 16 }, "end": { "line": 26, "column": 26 } }), depth0)) != null ? stack1 : "")
231
+ + ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 26 } }), depth0)) != null ? stack1 : "")
192
232
  + "Options: T"
193
- + ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 26, "column": 42 }, "end": { "line": 26, "column": 52 } }), depth0)) != null ? stack1 : "")
233
+ + ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 27, "column": 42 }, "end": { "line": 27, "column": 52 } }), depth0)) != null ? stack1 : "")
194
234
  + "Options = {\n"
195
- + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(11, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 29, "column": 9 } } })) != null ? stack1 : "")
235
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(11, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 28, "column": 0 }, "end": { "line": 30, "column": 9 } } })) != null ? stack1 : "")
196
236
  + "};\n\nexport class "
197
- + ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 32, "column": 16 }, "end": { "line": 32, "column": 20 } }), depth0)) != null ? stack1 : "")
237
+ + ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 33, "column": 16 }, "end": { "line": 33, "column": 20 } }), depth0)) != null ? stack1 : "")
198
238
  + "<TOptions = unknown> {\n constructor(private readonly executor: RequestExecutor<TOptions>) {}\n\n"
199
- + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 74, "column": 13 } } })) != null ? stack1 : "")
239
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 92, "column": 13 } } })) != null ? stack1 : "")
200
240
  + "}\n";
201
241
  }, "usePartial": true, "useData": true, "useDepths": true };
@@ -20,6 +20,7 @@ declare const _default: {
20
20
  "29": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
21
21
  "31": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
22
22
  "32": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
23
+ "34": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
23
24
  compiler: (string | number)[];
24
25
  main: (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
25
26
  usePartial: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"indexFull.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexFull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA8NoD"}
1
+ {"version":3,"file":"indexFull.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexFull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAiOoD"}
@@ -193,6 +193,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
193
193
  + " } from './"
194
194
  + ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "package"), lookupProperty(depth0, "name"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 38, "column": 30 }, "end": { "line": 38, "column": 57 } } })) != null ? stack1 : "")
195
195
  + "';\n";
196
+ }, "34": function (container, depth0, helpers, partials, data) {
197
+ return "export { ClientOptions, createClient } from './createClient';\n";
196
198
  }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data, blockParams, depths) {
197
199
  var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
198
200
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -205,5 +207,6 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
205
207
  + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "models"), { "name": "if", "hash": {}, "fn": container.program(17, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 28, "column": 7 } } })) != null ? stack1 : "")
206
208
  + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "schemas"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 29, "column": 0 }, "end": { "line": 34, "column": 7 } } })) != null ? stack1 : "")
207
209
  + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "services"), { "name": "if", "hash": {}, "fn": container.program(31, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 35, "column": 0 }, "end": { "line": 40, "column": 7 } } })) != null ? stack1 : "")
208
- + "\nexport { ClientOptions, createClient } from './createClient';\n";
210
+ + "\n"
211
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "core"), { "name": "if", "hash": {}, "fn": container.program(34, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 42, "column": 0 }, "end": { "line": 44, "column": 7 } } })) != null ? stack1 : "");
209
212
  }, "usePartial": true, "useData": true, "useDepths": true };
@@ -11,6 +11,7 @@ declare const _default: {
11
11
  "13": (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => any;
12
12
  "14": (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
13
13
  "15": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
14
+ "17": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
14
15
  compiler: (string | number)[];
15
16
  main: (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
16
17
  usePartial: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"indexSimple.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexSimple.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,wBA8HoD"}
1
+ {"version":3,"file":"indexSimple.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexSimple.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAMA,wBAiIoD"}
@@ -102,6 +102,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
102
102
  var stack1;
103
103
  return " as Services$"
104
104
  + ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line": 24, "column": 59 }, "end": { "line": 24, "column": 65 } }), depth0)) != null ? stack1 : "");
105
+ }, "17": function (container, depth0, helpers, partials, data) {
106
+ return "export { ClientOptions, createClient } from './createClient';\n";
105
107
  }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data, blockParams, depths) {
106
108
  var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
107
109
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -118,5 +120,6 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
118
120
  + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "schemas"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 20, "column": 7 } } })) != null ? stack1 : "")
119
121
  + "\n"
120
122
  + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "services"), { "name": "if", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 26, "column": 7 } } })) != null ? stack1 : "")
121
- + "\nexport { ClientOptions, createClient } from './createClient';\n";
123
+ + "\n"
124
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "core"), { "name": "if", "hash": {}, "fn": container.program(17, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 28, "column": 0 }, "end": { "line": 30, "column": 7 } } })) != null ? stack1 : "");
122
125
  }, "usePartial": true, "useData": true, "useDepths": true };
@@ -27,7 +27,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
27
27
  + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 66 } } })) != null ? stack1 : "")
28
28
  + " } from '"
29
29
  + ((stack1 = lookupProperty(helpers, "normalizePath").call(alias1, lookupProperty(depth0, "path"), { "name": "normalizePath", "hash": {}, "data": data, "loc": { "start": { "line": 5, "column": 75 }, "end": { "line": 5, "column": 99 } } })) != null ? stack1 : "")
30
- + "';\n";
30
+ + "Schema';\n";
31
31
  }, "3": function (container, depth0, helpers, partials, data) {
32
32
  var stack1;
33
33
  return " as "
@@ -46,11 +46,11 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
46
46
  + "\nimport Joi from 'joi';\n\nexport const "
47
47
  + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 20 } }), depth0)) != null ? stack1 : "")
48
48
  + "Schema = "
49
- + ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchema"), depth0, { "name": "joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
49
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchema"), depth0, { "name": "joi/joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
50
50
  + ";\n\nexport type "
51
51
  + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 19 } }), depth0)) != null ? stack1 : "")
52
- + " = Joi.SchemaValue<typeof "
53
- + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 13, "column": 51 }, "end": { "line": 13, "column": 55 } }), depth0)) != null ? stack1 : "")
52
+ + " = Joi.Schema<typeof "
53
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 13, "column": 46 }, "end": { "line": 13, "column": 50 } }), depth0)) != null ? stack1 : "")
54
54
  + "Schema>;\n\nexport function validate"
55
55
  + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 15, "column": 27 }, "end": { "line": 15, "column": 31 } }), depth0)) != null ? stack1 : "")
56
56
  + "(data: unknown): { value: "
@@ -67,5 +67,5 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
67
67
  + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 24, "column": 32 }, "end": { "line": 24, "column": 36 } }), depth0)) != null ? stack1 : "")
68
68
  + "Schema.validate(data);\n if (error) {\n throw error;\n }\n return value as "
69
69
  + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 28, "column": 23 }, "end": { "line": 28, "column": 27 } }), depth0)) != null ? stack1 : "")
70
- + ";\n}";
70
+ + ";\n}\n";
71
71
  }, "usePartial": true, "useData": true };
@@ -13,7 +13,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
13
13
  }
14
14
  return undefined;
15
15
  };
16
- return ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchemaInterface"), depth0, { "name": "joiSchemaInterface", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
16
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchemaInterface"), depth0, { "name": "joi/joiSchemaInterface", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
17
17
  }, "3": function (container, depth0, helpers, partials, data) {
18
18
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
19
19
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -29,7 +29,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
29
29
  }
30
30
  return undefined;
31
31
  };
32
- return ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchemaEnum"), depth0, { "name": "joiSchemaEnum", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
32
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchemaEnum"), depth0, { "name": "joi/joiSchemaEnum", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
33
33
  }, "6": function (container, depth0, helpers, partials, data) {
34
34
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
35
35
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -45,7 +45,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
45
45
  }
46
46
  return undefined;
47
47
  };
48
- return ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchemaArray"), depth0, { "name": "joiSchemaArray", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
48
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchemaArray"), depth0, { "name": "joi/joiSchemaArray", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
49
49
  }, "9": function (container, depth0, helpers, partials, data) {
50
50
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
51
51
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -61,7 +61,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
61
61
  }
62
62
  return undefined;
63
63
  };
64
- return ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchemaDictionary"), depth0, { "name": "joiSchemaDictionary", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
64
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchemaDictionary"), depth0, { "name": "joi/joiSchemaDictionary", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
65
65
  }, "12": function (container, depth0, helpers, partials, data) {
66
66
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
67
67
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -77,7 +77,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
77
77
  }
78
78
  return undefined;
79
79
  };
80
- return ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchemaComposition"), depth0, { "name": "joiSchemaComposition", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
80
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchemaComposition"), depth0, { "name": "joi/joiSchemaComposition", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
81
81
  }, "15": function (container, depth0, helpers, partials, data) {
82
82
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
83
83
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -109,7 +109,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
109
109
  }
110
110
  return undefined;
111
111
  };
112
- return ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchemaReference"), depth0, { "name": "joiSchemaReference", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
112
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchemaReference"), depth0, { "name": "joi/joiSchemaReference", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
113
113
  }, "20": function (container, depth0, helpers, partials, data) {
114
114
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
115
115
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -117,7 +117,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
117
117
  }
118
118
  return undefined;
119
119
  };
120
- return ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchemaGeneric"), depth0, { "name": "joiSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
120
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchemaGeneric"), depth0, { "name": "joi/joiSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
121
121
  }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
122
122
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
123
123
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -26,8 +26,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
26
26
  return undefined;
27
27
  };
28
28
  return " "
29
- + ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchema"), depth0, { "name": "joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
30
- + ((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": 4, "column": 18 }, "end": { "line": 4, "column": 47 } } })) != null ? stack1 : "")
29
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchema"), depth0, { "name": "joi/joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
30
+ + ((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": 4, "column": 22 }, "end": { "line": 4, "column": 51 } } })) != null ? stack1 : "")
31
31
  + "\n";
32
32
  }, "3": function (container, depth0, helpers, partials, data) {
33
33
  return ",";
@@ -74,7 +74,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
74
74
  }
75
75
  return undefined;
76
76
  };
77
- return ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchema"), depth0, { "name": "joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
77
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchema"), depth0, { "name": "joi/joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
78
78
  }, "13": function (container, depth0, helpers, partials, data) {
79
79
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
80
80
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -83,7 +83,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
83
83
  return undefined;
84
84
  };
85
85
  return ".concat("
86
- + ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchema"), depth0, { "name": "joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
86
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchema"), depth0, { "name": "joi/joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
87
87
  + ")\n";
88
88
  }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
89
89
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
@@ -1,12 +1,14 @@
1
1
  declare const _default: {
2
- "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
2
+ "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
3
3
  "2": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
4
4
  "3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
5
  "5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
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;
7
+ "9": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
8
+ "10": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
9
+ "12": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
8
10
  compiler: (string | number)[];
9
- main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
11
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
10
12
  usePartial: boolean;
11
13
  useData: boolean;
12
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"joiSchemaInterface.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/joi/partials/joiSchemaInterface.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,wBA4CmC"}
1
+ {"version":3,"file":"joiSchemaInterface.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/joi/partials/joiSchemaInterface.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAMA,wBA0EmC"}
@@ -7,13 +7,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  /* eslint: disable */
8
8
  // @ts-nocheck
9
9
  exports.default = { "1": function (container, depth0, helpers, partials, data) {
10
- var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
10
+ var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
11
11
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
12
12
  return parent[propertyName];
13
13
  }
14
14
  return undefined;
15
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 : "");
16
+ return "Joi.object({\n"
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": 3, "column": 0 }, "end": { "line": 5, "column": 9 } } })) != null ? stack1 : "")
18
+ + "})"
19
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 39 } } })) != null ? stack1 : "")
20
+ + "\n";
17
21
  }, "2": function (container, depth0, helpers, partials, data) {
18
22
  var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
19
23
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -24,27 +28,50 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
24
28
  return " "
25
29
  + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 11 } }), depth0)) != null ? stack1 : "")
26
30
  + ": "
27
- + ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchema"), depth0, { "name": "joiSchema", "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 : "")
31
+ + ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchema"), depth0, { "name": "joi/joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
32
+ + ((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": 34 }, "end": { "line": 4, "column": 78 } } })) != null ? stack1 : "")
33
+ + ((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": 78 }, "end": { "line": 4, "column": 107 } } })) != null ? stack1 : "")
30
34
  + "\n";
31
35
  }, "3": function (container, depth0, helpers, partials, data) {
32
36
  return ".optional()";
33
37
  }, "5": function (container, depth0, helpers, partials, data) {
34
38
  return ",";
35
39
  }, "7": function (container, depth0, helpers, partials, data) {
36
- return "})\n";
37
- }, "9": function (container, depth0, helpers, partials, data) {
38
40
  return ".allow(null)";
41
+ }, "9": function (container, depth0, helpers, partials, data) {
42
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
43
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
44
+ return parent[propertyName];
45
+ }
46
+ return undefined;
47
+ };
48
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "emptySchemaStrategy"), "semantic", { "name": "equals", "hash": {}, "fn": container.program(10, data, 0), "inverse": container.program(12, data, 0), "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 12, "column": 11 } } })) != null ? stack1 : "");
49
+ }, "10": function (container, depth0, helpers, partials, data) {
50
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
51
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
52
+ return parent[propertyName];
53
+ }
54
+ return undefined;
55
+ };
56
+ return "Joi.object().unknown(true)"
57
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 9, "column": 26 }, "end": { "line": 9, "column": 63 } } })) != null ? stack1 : "")
58
+ + "\n";
59
+ }, "12": function (container, depth0, helpers, partials, data) {
60
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
61
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
62
+ return parent[propertyName];
63
+ }
64
+ return undefined;
65
+ };
66
+ return "Joi.object({})"
67
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 51 } } })) != null ? stack1 : "")
68
+ + "\n";
39
69
  }, "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) {
70
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
41
71
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
42
72
  return parent[propertyName];
43
73
  }
44
74
  return undefined;
45
75
  };
46
- return "Joi.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": 39 } } })) != null ? stack1 : "");
76
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "properties"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(9, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 13, "column": 7 } } })) != null ? stack1 : "");
50
77
  }, "usePartial": true, "useData": true };