ts-openapi-codegen 1.0.0-beta.6 → 1.0.0-beta.7

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 (348) hide show
  1. package/README.md +43 -58
  2. package/dist/cli/chekOpenApiConfig/chekOpenApiConfig.js +2 -2
  3. package/dist/cli/generate/runGenerateOpenApi.js +4 -4
  4. package/dist/cli/index.js +11 -13
  5. package/dist/cli/utils.d.ts +0 -17
  6. package/dist/cli/utils.d.ts.map +1 -1
  7. package/dist/cli/utils.js +0 -20
  8. package/dist/common/Options.d.ts +4 -6
  9. package/dist/common/Options.d.ts.map +1 -1
  10. package/dist/common/Utils.d.ts.map +1 -1
  11. package/dist/common/Utils.js +8 -9
  12. package/dist/common/VersionedSchema/CommonSchemas.d.ts +12 -0
  13. package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
  14. package/dist/common/VersionedSchema/CommonSchemas.js +27 -1
  15. package/dist/common/VersionedSchema/{MultiOptionsMigrationPlan.d.ts → MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts} +1 -1
  16. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -0
  17. package/dist/common/VersionedSchema/{MultiOptionsMigrationPlan.js → MultiOptionsVersioned/MultiOptionsMigrationPlan.js} +18 -7
  18. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +6 -0
  19. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts.map +1 -0
  20. package/dist/common/VersionedSchema/{MultiOptionsSchemaV1.js → MultiOptionsVersioned/MultiOptionsSchemaV1.js} +4 -4
  21. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts +6 -0
  22. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts.map +1 -0
  23. package/dist/common/VersionedSchema/{MultiOptionsSchemaV2.js → MultiOptionsVersioned/MultiOptionsSchemaV2.js} +4 -4
  24. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +5 -0
  25. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -0
  26. package/dist/common/VersionedSchema/{MultiOptionsSchemaV3.js → MultiOptionsVersioned/MultiOptionsSchemaV3.js} +3 -3
  27. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +6 -0
  28. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -0
  29. package/dist/common/VersionedSchema/{MultiOptionsSchemaV4.js → MultiOptionsVersioned/MultiOptionsSchemaV4.js} +4 -4
  30. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +6 -0
  31. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -0
  32. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.js +22 -0
  33. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.d.ts +3 -0
  34. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.d.ts.map +1 -0
  35. package/dist/common/VersionedSchema/{MultiOptionsVersionedSchemas.js → MultiOptionsVersioned/MultiOptionsVersionedSchemas.js} +10 -5
  36. package/dist/common/VersionedSchema/{OptionsMigrationPlans.d.ts → OptionsVersioned/OptionsMigrationPlans.d.ts} +1 -1
  37. package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -0
  38. package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +23 -0
  39. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +6 -0
  40. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -0
  41. package/dist/common/VersionedSchema/{OptionsSchemaV1.js → OptionsVersioned/OptionsSchemaV1.js} +4 -4
  42. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +6 -0
  43. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts.map +1 -0
  44. package/dist/common/VersionedSchema/{OptionsSchemaV2.js → OptionsVersioned/OptionsSchemaV2.js} +4 -4
  45. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +5 -0
  46. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -0
  47. package/dist/common/VersionedSchema/{OptionsSchemaV3.js → OptionsVersioned/OptionsSchemaV3.js} +3 -3
  48. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +6 -0
  49. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -0
  50. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.js +17 -0
  51. package/dist/common/VersionedSchema/OptionsVersioned/OptionsVersionedSchemas.d.ts +3 -0
  52. package/dist/common/VersionedSchema/OptionsVersioned/OptionsVersionedSchemas.d.ts.map +1 -0
  53. package/dist/common/VersionedSchema/{OptionsVersionedSchemas.js → OptionsVersioned/OptionsVersionedSchemas.js} +9 -4
  54. package/dist/common/VersionedSchema/Types.d.ts +0 -4
  55. package/dist/common/VersionedSchema/Types.d.ts.map +1 -1
  56. package/dist/common/__tests__/convertArrayToObject.test.js +62 -59
  57. package/dist/common/__tests__/mergeObjectSchemas.test.js +1 -1
  58. package/dist/common/__tests__/migrationForMultiOptions.test.js +9 -5
  59. package/dist/common/__tests__/migrationForOptions.test.js +17 -8
  60. package/dist/common/defaultOptions.d.ts.map +1 -1
  61. package/dist/common/defaultOptions.js +5 -7
  62. package/dist/core/Context.d.ts +15 -7
  63. package/dist/core/Context.d.ts.map +1 -1
  64. package/dist/core/Context.js +3 -0
  65. package/dist/core/WriteClient.d.ts +43 -45
  66. package/dist/core/WriteClient.d.ts.map +1 -1
  67. package/dist/core/WriteClient.js +156 -81
  68. package/dist/core/__tests__/WriteClient.test.js +12 -8
  69. package/dist/core/api/v2/parser/__tests__/getType.test.js +7 -25
  70. package/dist/core/api/v2/parser/getModel.d.ts.map +1 -1
  71. package/dist/core/api/v2/parser/getModel.js +5 -2
  72. package/dist/core/api/v2/parser/getModelProperties.d.ts.map +1 -1
  73. package/dist/core/api/v2/parser/getModelProperties.js +3 -1
  74. package/dist/core/api/v2/parser/getModels.d.ts.map +1 -1
  75. package/dist/core/api/v2/parser/getModels.js +3 -29
  76. package/dist/core/api/v2/parser/getOperation.d.ts +1 -1
  77. package/dist/core/api/v2/parser/getOperation.d.ts.map +1 -1
  78. package/dist/core/api/v2/parser/getOperation.js +3 -3
  79. package/dist/core/api/v2/parser/getOperationParameter.d.ts +1 -1
  80. package/dist/core/api/v2/parser/getOperationParameter.d.ts.map +1 -1
  81. package/dist/core/api/v2/parser/getOperationParameter.js +4 -2
  82. package/dist/core/api/v2/parser/getOperationParameters.d.ts +1 -1
  83. package/dist/core/api/v2/parser/getOperationParameters.d.ts.map +1 -1
  84. package/dist/core/api/v2/parser/getOperationParameters.js +2 -2
  85. package/dist/core/api/v2/parser/getOperationResponse.d.ts.map +1 -1
  86. package/dist/core/api/v2/parser/getOperationResponse.js +3 -1
  87. package/dist/core/api/v2/parser/getOperationResponses.d.ts +1 -1
  88. package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
  89. package/dist/core/api/v2/parser/getOperationResponses.js +2 -2
  90. package/dist/core/api/v2/parser/getServiceName.d.ts +3 -0
  91. package/dist/core/api/v2/parser/getServiceName.d.ts.map +1 -0
  92. package/dist/core/api/v2/parser/getServiceName.js +8 -0
  93. package/dist/core/api/v2/parser/getServices.d.ts.map +1 -1
  94. package/dist/core/api/v2/parser/getServices.js +21 -32
  95. package/dist/core/api/v2/parser/getType.d.ts.map +1 -1
  96. package/dist/core/api/v2/parser/getType.js +13 -9
  97. package/dist/core/api/v3/parser/__tests__/getType.test.js +6 -24
  98. package/dist/core/api/v3/parser/getModel.d.ts.map +1 -1
  99. package/dist/core/api/v3/parser/getModel.js +5 -2
  100. package/dist/core/api/v3/parser/getModelProperties.d.ts.map +1 -1
  101. package/dist/core/api/v3/parser/getModelProperties.js +3 -1
  102. package/dist/core/api/v3/parser/getModels.d.ts.map +1 -1
  103. package/dist/core/api/v3/parser/getModels.js +3 -29
  104. package/dist/core/api/v3/parser/getOperation.d.ts +1 -1
  105. package/dist/core/api/v3/parser/getOperation.d.ts.map +1 -1
  106. package/dist/core/api/v3/parser/getOperation.js +4 -4
  107. package/dist/core/api/v3/parser/getOperationParameter.d.ts +1 -1
  108. package/dist/core/api/v3/parser/getOperationParameter.d.ts.map +1 -1
  109. package/dist/core/api/v3/parser/getOperationParameter.js +6 -3
  110. package/dist/core/api/v3/parser/getOperationParameters.d.ts +1 -1
  111. package/dist/core/api/v3/parser/getOperationParameters.d.ts.map +1 -1
  112. package/dist/core/api/v3/parser/getOperationParameters.js +2 -2
  113. package/dist/core/api/v3/parser/getOperationRequestBody.d.ts.map +1 -1
  114. package/dist/core/api/v3/parser/getOperationRequestBody.js +3 -1
  115. package/dist/core/api/v3/parser/getOperationResponse.d.ts.map +1 -1
  116. package/dist/core/api/v3/parser/getOperationResponse.js +3 -1
  117. package/dist/core/api/v3/parser/getOperationResponses.d.ts +1 -1
  118. package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
  119. package/dist/core/api/v3/parser/getOperationResponses.js +2 -2
  120. package/dist/core/api/v3/parser/getServiceName.d.ts +3 -0
  121. package/dist/core/api/v3/parser/getServiceName.d.ts.map +1 -0
  122. package/dist/core/api/v3/parser/getServiceName.js +8 -0
  123. package/dist/core/api/v3/parser/getServices.d.ts.map +1 -1
  124. package/dist/core/api/v3/parser/getServices.js +18 -84
  125. package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
  126. package/dist/core/api/v3/parser/getType.js +22 -10
  127. package/dist/core/api/v3/types/OpenApiPath.model.d.ts +2 -1
  128. package/dist/core/api/v3/types/OpenApiPath.model.d.ts.map +1 -1
  129. package/dist/core/index.d.ts +1 -1
  130. package/dist/core/index.d.ts.map +1 -1
  131. package/dist/core/index.js +19 -20
  132. package/dist/core/types/base/ClientArtifacts.model.d.ts +12 -0
  133. package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -0
  134. package/dist/core/types/base/ExportedModel.model.d.ts +17 -0
  135. package/dist/core/types/base/ExportedModel.model.d.ts.map +1 -0
  136. package/dist/core/types/base/ExportedService.model.d.ts +9 -0
  137. package/dist/core/types/base/ExportedService.model.d.ts.map +1 -0
  138. package/dist/core/types/base/ExportedService.model.js +2 -0
  139. package/dist/core/types/base/OutputPaths.model.d.ts +15 -0
  140. package/dist/core/types/base/OutputPaths.model.d.ts.map +1 -0
  141. package/dist/core/types/base/OutputPaths.model.js +2 -0
  142. package/dist/core/types/base/PrefixArtifacts.model.d.ts +6 -0
  143. package/dist/core/types/base/PrefixArtifacts.model.d.ts.map +1 -0
  144. package/dist/core/types/base/PrefixArtifacts.model.js +2 -0
  145. package/dist/core/types/base/PropertyGroup.model.d.ts +4 -0
  146. package/dist/core/types/base/PropertyGroup.model.d.ts.map +1 -0
  147. package/dist/core/types/base/PropertyGroup.model.js +2 -0
  148. package/dist/core/types/base/RefWithtype.model.d.ts +11 -0
  149. package/dist/core/types/base/RefWithtype.model.d.ts.map +1 -0
  150. package/dist/core/types/base/RefWithtype.model.js +2 -0
  151. package/dist/core/types/base/Root.model.d.ts +5 -0
  152. package/dist/core/types/base/Root.model.d.ts.map +1 -0
  153. package/dist/core/types/base/Root.model.js +2 -0
  154. package/dist/core/types/base/SimpleClientArtifacts.model.d.ts +10 -0
  155. package/dist/core/types/base/SimpleClientArtifacts.model.d.ts.map +1 -0
  156. package/dist/core/types/base/SimpleClientArtifacts.model.js +2 -0
  157. package/dist/core/types/enums/HttpClient.enum.d.ts +7 -0
  158. package/dist/core/types/enums/HttpClient.enum.d.ts.map +1 -0
  159. package/dist/core/types/{Enums.js → enums/HttpClient.enum.js} +1 -9
  160. package/dist/core/types/enums/TypeRef.enum.d.ts +8 -0
  161. package/dist/core/types/enums/TypeRef.enum.d.ts.map +1 -0
  162. package/dist/core/types/enums/TypeRef.enum.js +11 -0
  163. package/dist/core/utils/__tests__/getAbsolutePath.test.js +1 -1
  164. package/dist/core/utils/__tests__/getGatheringRefs.test.js +3 -6
  165. package/dist/core/utils/__tests__/getRefFromSchema.test.js +1 -1
  166. package/dist/core/utils/__tests__/pathHelpers.test.js +4 -4
  167. package/dist/core/utils/__tests__/refResolver.test.d.ts +2 -0
  168. package/dist/core/utils/__tests__/refResolver.test.d.ts.map +1 -0
  169. package/dist/core/utils/__tests__/refResolver.test.js +55 -0
  170. package/dist/core/utils/__tests__/registerHandlebarHelpers.test.js +2 -2
  171. package/dist/core/utils/__tests__/registerHandlebarTemplates.test.js +7 -3
  172. package/dist/core/utils/__tests__/resolveRefToImportPath.test.d.ts +2 -0
  173. package/dist/core/utils/__tests__/resolveRefToImportPath.test.d.ts.map +1 -0
  174. package/dist/core/utils/__tests__/resolveRefToImportPath.test.js +67 -0
  175. package/dist/core/utils/__tests__/sortByRequiredExtended.test.js +24 -24
  176. package/dist/core/utils/__tests__/sortByRequiredSimple.test.js +13 -13
  177. package/dist/core/utils/__tests__/writeClientCore.test.js +14 -6
  178. package/dist/core/utils/__tests__/writeClientFullIndex.test.d.ts +2 -0
  179. package/dist/core/utils/__tests__/writeClientFullIndex.test.d.ts.map +1 -0
  180. package/dist/core/utils/__tests__/{writeClientIndex.test.js → writeClientFullIndex.test.js} +15 -7
  181. package/dist/core/utils/__tests__/writeClientModels.test.js +15 -7
  182. package/dist/core/utils/__tests__/writeClientSchemas.test.js +15 -7
  183. package/dist/core/utils/__tests__/writeClientServices.test.js +15 -7
  184. package/dist/core/utils/advancedDeduplicatePath.d.ts +5 -0
  185. package/dist/core/utils/advancedDeduplicatePath.d.ts.map +1 -0
  186. package/dist/core/utils/advancedDeduplicatePath.js +29 -0
  187. package/dist/core/utils/appendUniqueLinesToFile.d.ts +2 -0
  188. package/dist/core/utils/appendUniqueLinesToFile.d.ts.map +1 -0
  189. package/dist/core/utils/appendUniqueLinesToFile.js +24 -0
  190. package/dist/core/utils/createNormalizedRef.d.ts +7 -0
  191. package/dist/core/utils/createNormalizedRef.d.ts.map +1 -0
  192. package/dist/core/utils/createNormalizedRef.js +24 -0
  193. package/dist/core/utils/findCommonParent.d.ts +7 -0
  194. package/dist/core/utils/findCommonParent.d.ts.map +1 -0
  195. package/dist/core/utils/findCommonParent.js +20 -0
  196. package/dist/core/utils/getAbsolutePath.d.ts.map +1 -1
  197. package/dist/core/utils/getAbsolutePath.js +16 -5
  198. package/dist/core/utils/getGatheringRefs.d.ts +2 -2
  199. package/dist/core/utils/getGatheringRefs.d.ts.map +1 -1
  200. package/dist/core/utils/getGatheringRefs.js +26 -17
  201. package/dist/core/utils/getMappedType.d.ts +0 -1
  202. package/dist/core/utils/getMappedType.d.ts.map +1 -1
  203. package/dist/core/utils/getMappedType.js +3 -4
  204. package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
  205. package/dist/core/utils/getOpenApiSpec.js +9 -32
  206. package/dist/core/utils/getOutputPaths.d.ts +2 -2
  207. package/dist/core/utils/getOutputPaths.d.ts.map +1 -1
  208. package/dist/core/utils/getPropertyGroupExtended.d.ts +2 -2
  209. package/dist/core/utils/getPropertyGroupExtended.d.ts.map +1 -1
  210. package/dist/core/utils/getPropertyGroupSimple.d.ts +2 -2
  211. package/dist/core/utils/getPropertyGroupSimple.d.ts.map +1 -1
  212. package/dist/core/utils/getRefFromSchema.js +2 -2
  213. package/dist/core/utils/getRelativeModelImportPath.js +1 -1
  214. package/dist/core/utils/getRelativeModelPath.d.ts.map +1 -1
  215. package/dist/core/utils/getRelativeModelPath.js +5 -0
  216. package/dist/core/utils/isDirectory.d.ts +2 -0
  217. package/dist/core/utils/isDirectory.d.ts.map +1 -0
  218. package/dist/core/utils/isDirectory.js +13 -0
  219. package/dist/core/utils/isFileName.d.ts +7 -0
  220. package/dist/core/utils/isFileName.d.ts.map +1 -0
  221. package/dist/core/utils/isFileName.js +30 -0
  222. package/dist/core/utils/mapPathToTargetDirSafe.d.ts +10 -0
  223. package/dist/core/utils/mapPathToTargetDirSafe.d.ts.map +1 -0
  224. package/dist/core/utils/mapPathToTargetDirSafe.js +49 -0
  225. package/dist/core/utils/modelHelpers.d.ts +28 -0
  226. package/dist/core/utils/modelHelpers.d.ts.map +1 -0
  227. package/dist/core/utils/modelHelpers.js +73 -0
  228. package/dist/core/utils/normalizeAllRefs.d.ts +6 -0
  229. package/dist/core/utils/normalizeAllRefs.d.ts.map +1 -0
  230. package/dist/core/utils/normalizeAllRefs.js +35 -0
  231. package/dist/core/utils/normalizePath.d.ts +5 -0
  232. package/dist/core/utils/normalizePath.d.ts.map +1 -0
  233. package/dist/core/utils/normalizePath.js +19 -0
  234. package/dist/core/utils/normalizeRef.d.ts +5 -0
  235. package/dist/core/utils/normalizeRef.d.ts.map +1 -0
  236. package/dist/core/utils/normalizeRef.js +17 -0
  237. package/dist/core/utils/parseRef.d.ts +18 -0
  238. package/dist/core/utils/parseRef.d.ts.map +1 -0
  239. package/dist/core/utils/parseRef.js +64 -0
  240. package/dist/core/utils/pathHelpers.d.ts +1 -0
  241. package/dist/core/utils/pathHelpers.d.ts.map +1 -1
  242. package/dist/core/utils/pathHelpers.js +23 -3
  243. package/dist/core/utils/prepareAlias.d.ts +2 -6
  244. package/dist/core/utils/prepareAlias.d.ts.map +1 -1
  245. package/dist/core/utils/prepareAlias.js +0 -4
  246. package/dist/core/utils/prepareOptions.d.ts.map +1 -1
  247. package/dist/core/utils/prepareOptions.js +5 -7
  248. package/dist/core/utils/registerHandlebarHelpers.d.ts +1 -1
  249. package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
  250. package/dist/core/utils/registerHandlebarTemplates.d.ts +9 -2
  251. package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
  252. package/dist/core/utils/registerHandlebarTemplates.js +14 -2
  253. package/dist/core/utils/resolveRefPath.d.ts +7 -0
  254. package/dist/core/utils/resolveRefPath.d.ts.map +1 -0
  255. package/dist/core/utils/resolveRefPath.js +34 -0
  256. package/dist/core/utils/resolveRefToImportPath.d.ts +7 -0
  257. package/dist/core/utils/resolveRefToImportPath.d.ts.map +1 -0
  258. package/dist/core/utils/resolveRefToImportPath.js +45 -0
  259. package/dist/core/utils/serviceHelpers.d.ts +41 -0
  260. package/dist/core/utils/serviceHelpers.d.ts.map +1 -0
  261. package/dist/core/utils/serviceHelpers.js +115 -0
  262. package/dist/core/utils/sortModelByName.d.ts +2 -2
  263. package/dist/core/utils/sortModelByName.d.ts.map +1 -1
  264. package/dist/core/utils/writeClientCore.d.ts +4 -2
  265. package/dist/core/utils/writeClientCore.d.ts.map +1 -1
  266. package/dist/core/utils/writeClientCore.js +4 -1
  267. package/dist/core/utils/writeClientCoreIndex.d.ts +11 -0
  268. package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -0
  269. package/dist/core/utils/writeClientCoreIndex.js +16 -0
  270. package/dist/core/utils/writeClientFullIndex.d.ts +9 -0
  271. package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -0
  272. package/dist/core/utils/writeClientFullIndex.js +22 -0
  273. package/dist/core/utils/writeClientModels.d.ts +3 -2
  274. package/dist/core/utils/writeClientModels.d.ts.map +1 -1
  275. package/dist/core/utils/writeClientModels.js +5 -0
  276. package/dist/core/utils/writeClientModelsIndex.d.ts +12 -0
  277. package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -0
  278. package/dist/core/utils/writeClientModelsIndex.js +16 -0
  279. package/dist/core/utils/writeClientSchemas.d.ts +3 -2
  280. package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
  281. package/dist/core/utils/writeClientSchemas.js +5 -0
  282. package/dist/core/utils/writeClientSchemasIndex.d.ts +12 -0
  283. package/dist/core/utils/writeClientSchemasIndex.d.ts.map +1 -0
  284. package/dist/core/utils/writeClientSchemasIndex.js +16 -0
  285. package/dist/core/utils/writeClientServices.d.ts +5 -4
  286. package/dist/core/utils/writeClientServices.d.ts.map +1 -1
  287. package/dist/core/utils/writeClientServices.js +4 -0
  288. package/dist/core/utils/writeClientServicesIndex.d.ts +12 -0
  289. package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -0
  290. package/dist/core/utils/writeClientServicesIndex.js +16 -0
  291. package/dist/core/utils/writeClientSimpleIndex.d.ts +9 -0
  292. package/dist/core/utils/writeClientSimpleIndex.d.ts.map +1 -0
  293. package/dist/core/utils/writeClientSimpleIndex.js +22 -0
  294. package/dist/templatesCompiled/exportModel.js +2 -2
  295. package/dist/templatesCompiled/indexCore.d.ts +9 -0
  296. package/dist/templatesCompiled/indexCore.d.ts.map +1 -0
  297. package/dist/templatesCompiled/indexCore.js +22 -0
  298. package/dist/templatesCompiled/{index.d.ts → indexFull.d.ts} +1 -1
  299. package/dist/templatesCompiled/indexFull.d.ts.map +1 -0
  300. package/dist/templatesCompiled/indexModels.d.ts +15 -0
  301. package/dist/templatesCompiled/indexModels.d.ts.map +1 -0
  302. package/dist/templatesCompiled/indexModels.js +82 -0
  303. package/dist/templatesCompiled/indexServices.d.ts +10 -0
  304. package/dist/templatesCompiled/indexServices.d.ts.map +1 -0
  305. package/dist/templatesCompiled/indexServices.js +35 -0
  306. package/dist/templatesCompiled/indexShemas.d.ts +11 -0
  307. package/dist/templatesCompiled/indexShemas.d.ts.map +1 -0
  308. package/dist/templatesCompiled/indexShemas.js +47 -0
  309. package/dist/templatesCompiled/indexSimple.d.ts +21 -0
  310. package/dist/templatesCompiled/indexSimple.d.ts.map +1 -0
  311. package/dist/templatesCompiled/indexSimple.js +121 -0
  312. package/package.json +7 -4
  313. package/dist/common/VersionedSchema/MultiOptionsMigrationPlan.d.ts.map +0 -1
  314. package/dist/common/VersionedSchema/MultiOptionsSchemaV1.d.ts +0 -6
  315. package/dist/common/VersionedSchema/MultiOptionsSchemaV1.d.ts.map +0 -1
  316. package/dist/common/VersionedSchema/MultiOptionsSchemaV2.d.ts +0 -6
  317. package/dist/common/VersionedSchema/MultiOptionsSchemaV2.d.ts.map +0 -1
  318. package/dist/common/VersionedSchema/MultiOptionsSchemaV3.d.ts +0 -5
  319. package/dist/common/VersionedSchema/MultiOptionsSchemaV3.d.ts.map +0 -1
  320. package/dist/common/VersionedSchema/MultiOptionsSchemaV4.d.ts +0 -6
  321. package/dist/common/VersionedSchema/MultiOptionsSchemaV4.d.ts.map +0 -1
  322. package/dist/common/VersionedSchema/MultiOptionsVersionedSchemas.d.ts +0 -3
  323. package/dist/common/VersionedSchema/MultiOptionsVersionedSchemas.d.ts.map +0 -1
  324. package/dist/common/VersionedSchema/OptionsMigrationPlans.d.ts.map +0 -1
  325. package/dist/common/VersionedSchema/OptionsMigrationPlans.js +0 -15
  326. package/dist/common/VersionedSchema/OptionsSchemaV1.d.ts +0 -6
  327. package/dist/common/VersionedSchema/OptionsSchemaV1.d.ts.map +0 -1
  328. package/dist/common/VersionedSchema/OptionsSchemaV2.d.ts +0 -6
  329. package/dist/common/VersionedSchema/OptionsSchemaV2.d.ts.map +0 -1
  330. package/dist/common/VersionedSchema/OptionsSchemaV3.d.ts +0 -5
  331. package/dist/common/VersionedSchema/OptionsSchemaV3.d.ts.map +0 -1
  332. package/dist/common/VersionedSchema/OptionsVersionedSchemas.d.ts +0 -3
  333. package/dist/common/VersionedSchema/OptionsVersionedSchemas.d.ts.map +0 -1
  334. package/dist/core/types/Enums.d.ts +0 -14
  335. package/dist/core/types/Enums.d.ts.map +0 -1
  336. package/dist/core/types/Models.d.ts +0 -37
  337. package/dist/core/types/Models.d.ts.map +0 -1
  338. package/dist/core/types/shared/ConverterData.model.d.ts +0 -7
  339. package/dist/core/types/shared/ConverterData.model.d.ts.map +0 -1
  340. package/dist/core/utils/__tests__/writeClientIndex.test.d.ts +0 -2
  341. package/dist/core/utils/__tests__/writeClientIndex.test.d.ts.map +0 -1
  342. package/dist/core/utils/writeClientIndex.d.ts +0 -59
  343. package/dist/core/utils/writeClientIndex.d.ts.map +0 -1
  344. package/dist/core/utils/writeClientIndex.js +0 -27
  345. package/dist/templatesCompiled/index.d.ts.map +0 -1
  346. /package/dist/core/types/{Models.js → base/ClientArtifacts.model.js} +0 -0
  347. /package/dist/core/types/{shared/ConverterData.model.js → base/ExportedModel.model.js} +0 -0
  348. /package/dist/templatesCompiled/{index.js → indexFull.js} +0 -0
@@ -0,0 +1,11 @@
1
+ import { WriteClient } from '../WriteClient';
2
+ import { Templates } from './registerHandlebarTemplates';
3
+ interface IOptionsProps {
4
+ templates: Templates;
5
+ outputCorePath: string;
6
+ useCancelableRequest?: boolean;
7
+ useSeparatedIndexes?: boolean;
8
+ }
9
+ export declare function writeClientCoreIndex(this: WriteClient, options: IOptionsProps): Promise<void>;
10
+ export {};
11
+ //# sourceMappingURL=writeClientCoreIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeClientCoreIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientCoreIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,UAAU,aAAa;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBAcnF"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeClientCoreIndex = writeClientCoreIndex;
4
+ const path_1 = require("path");
5
+ const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
6
+ async function writeClientCoreIndex(options) {
7
+ const { templates, outputCorePath, useCancelableRequest, useSeparatedIndexes } = options;
8
+ if (!useSeparatedIndexes) {
9
+ return;
10
+ }
11
+ const filePath = (0, path_1.resolve)(outputCorePath, 'index.ts');
12
+ this.logger.info(`Data has been written to a file: ${filePath}`);
13
+ const content = templates.indexes.core({ useCancelableRequest });
14
+ await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
15
+ this.logger.info(`Writing to the file is completed: ${filePath}`);
16
+ }
@@ -0,0 +1,9 @@
1
+ import { ClientArtifacts } from '../types/base/ClientArtifacts.model';
2
+ import { WriteClient } from '../WriteClient';
3
+ /**
4
+ * Generate the OpenAPI client index file using the Handlebar template and write it to disk.
5
+ * The index file just contains all the exports you need to use the client as a standalone
6
+ * library. But yuo can also import individual models and services directly.
7
+ */
8
+ export declare function writeClientFullIndex(this: WriteClient, options: ClientArtifacts): Promise<void>;
9
+ //# sourceMappingURL=writeClientFullIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeClientFullIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientFullIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBrG"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeClientFullIndex = writeClientFullIndex;
4
+ const path_1 = require("path");
5
+ const fileSystem_1 = require("./fileSystem");
6
+ /**
7
+ * Generate the OpenAPI client index file using the Handlebar template and write it to disk.
8
+ * The index file just contains all the exports you need to use the client as a standalone
9
+ * library. But yuo can also import individual models and services directly.
10
+ */
11
+ async function writeClientFullIndex(options) {
12
+ const { templates, outputPath, core, models, schemas, services } = options;
13
+ const resolvePathIndex = (0, path_1.resolve)(outputPath, 'index.ts');
14
+ this.logger.info(`Data has been written to a file: ${resolvePathIndex}`);
15
+ await fileSystem_1.fileSystem.writeFile(resolvePathIndex, templates.indexes.full({
16
+ core,
17
+ models,
18
+ schemas,
19
+ services,
20
+ }));
21
+ this.logger.info(`Writing to the file is completed: ${resolvePathIndex}`);
22
+ }
@@ -1,5 +1,6 @@
1
- import { HttpClient } from '../types/Enums';
1
+ import { HttpClient } from '../types/enums/HttpClient.enum';
2
2
  import type { Model } from '../types/shared/Model.model';
3
+ import { WriteClient } from '../WriteClient';
3
4
  import { Templates } from './registerHandlebarTemplates';
4
5
  /**
5
6
  * @param models Array of Models to write
@@ -23,6 +24,6 @@ interface IWriteClientModels {
23
24
  * @param httpClient The selected httpClient (fetch, xhr or node)
24
25
  * @param useUnionTypes Use union types instead of enums
25
26
  */
26
- export declare function writeClientModels(options: IWriteClientModels): Promise<void>;
27
+ export declare function writeClientModels(this: WriteClient, options: IWriteClientModels): Promise<void>;
27
28
  export {};
28
29
  //# sourceMappingURL=writeClientModels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeClientModels.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientModels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;;;;GAMG;AACH,UAAU,kBAAkB;IACxB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBlF"}
1
+ {"version":3,"file":"writeClientModels.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientModels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;;;;GAMG;AACH,UAAU,kBAAkB;IACxB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoCrG"}
@@ -15,6 +15,7 @@ const format_1 = require("./format");
15
15
  */
16
16
  async function writeClientModels(options) {
17
17
  const { models, templates, outputModelsPath, httpClient, useUnionTypes } = options;
18
+ this.logger.info('Recording of model files begins');
18
19
  for (const model of models) {
19
20
  const modelFolderPath = model?.path;
20
21
  if (!modelFolderPath) {
@@ -23,9 +24,11 @@ async function writeClientModels(options) {
23
24
  const dir = (0, pathHelpers_1.dirName)(modelFolderPath);
24
25
  if (dir) {
25
26
  const directory = (0, pathHelpers_1.resolve)(outputModelsPath, dir);
27
+ this.logger.info(`A directory is being created: ${directory}`);
26
28
  (0, fs_1.mkdirSync)(directory, { recursive: true });
27
29
  }
28
30
  const file = (0, pathHelpers_1.resolve)(outputModelsPath, `${modelFolderPath}.ts`);
31
+ this.logger.info(`The recording of the file data begins: ${file}`);
29
32
  const templateResult = templates.exports.model({
30
33
  ...model,
31
34
  httpClient,
@@ -33,5 +36,7 @@ async function writeClientModels(options) {
33
36
  });
34
37
  const formattedValue = await (0, format_1.format)(templateResult);
35
38
  await fileSystem_1.fileSystem.writeFile(file, formattedValue);
39
+ this.logger.info(`File recording completed: ${file}`);
36
40
  }
41
+ this.logger.info('Model file recording completed successfully');
37
42
  }
@@ -0,0 +1,12 @@
1
+ import { Model } from '../types/shared/Model.model';
2
+ import { WriteClient } from '../WriteClient';
3
+ import { Templates } from './registerHandlebarTemplates';
4
+ interface IOptionsProps {
5
+ models: Model[];
6
+ templates: Templates;
7
+ outputModelsPath: string;
8
+ useSeparatedIndexes?: boolean;
9
+ }
10
+ export declare function writeClientModelsIndex(this: WriteClient, options: IOptionsProps): Promise<void>;
11
+ export {};
12
+ //# sourceMappingURL=writeClientModelsIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeClientModelsIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientModelsIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,UAAU,aAAa;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBAcrF"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeClientModelsIndex = writeClientModelsIndex;
4
+ const path_1 = require("path");
5
+ const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
6
+ async function writeClientModelsIndex(options) {
7
+ const { models, templates, outputModelsPath, useSeparatedIndexes } = options;
8
+ if (!useSeparatedIndexes) {
9
+ return;
10
+ }
11
+ const filePath = (0, path_1.resolve)(outputModelsPath, 'index.ts');
12
+ this.logger.info(`Data has been written to a file: ${filePath}`);
13
+ const content = templates.indexes.models({ models });
14
+ await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
15
+ this.logger.info(`Writing to the file is completed: ${filePath}`);
16
+ }
@@ -1,5 +1,6 @@
1
- import { HttpClient } from '../types/Enums';
1
+ import { HttpClient } from '../types/enums/HttpClient.enum';
2
2
  import type { Model } from '../types/shared/Model.model';
3
+ import { WriteClient } from '../WriteClient';
3
4
  import { Templates } from './registerHandlebarTemplates';
4
5
  /**
5
6
  * @param models Array of Models to write
@@ -23,6 +24,6 @@ interface IWriteClientSchemas {
23
24
  * @param httpClient The selected httpClient (fetch, xhr or node)
24
25
  * @param useUnionTypes Use union types instead of enums
25
26
  */
26
- export declare function writeClientSchemas(options: IWriteClientSchemas): Promise<void>;
27
+ export declare function writeClientSchemas(this: WriteClient, options: IWriteClientSchemas): Promise<void>;
27
28
  export {};
28
29
  //# sourceMappingURL=writeClientSchemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeClientSchemas.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;;;;GAMG;AACH,UAAU,mBAAmB;IACzB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkBpF"}
1
+ {"version":3,"file":"writeClientSchemas.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;;;;GAMG;AACH,UAAU,mBAAmB;IACzB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BvG"}
@@ -15,14 +15,17 @@ const format_1 = require("./format");
15
15
  */
16
16
  async function writeClientSchemas(options) {
17
17
  const { models, templates, outputSchemasPath, httpClient, useUnionTypes } = options;
18
+ this.logger.info('The recording of model validation schema files begins.');
18
19
  for (const model of models) {
19
20
  const modelFolderPath = model?.path;
20
21
  const dir = (0, pathHelpers_1.dirName)(modelFolderPath);
21
22
  if (dir) {
22
23
  const directory = (0, pathHelpers_1.resolve)(outputSchemasPath, dir);
24
+ this.logger.info(`A directory is being created: ${directory}`);
23
25
  (0, fs_1.mkdirSync)(directory, { recursive: true });
24
26
  }
25
27
  const file = (0, pathHelpers_1.resolve)(outputSchemasPath, `${modelFolderPath}Schema.ts`);
28
+ this.logger.info(`The recording of the file data begins: ${file}`);
26
29
  const templateResult = templates.exports.schema({
27
30
  ...model,
28
31
  httpClient,
@@ -30,5 +33,7 @@ async function writeClientSchemas(options) {
30
33
  });
31
34
  const formattedValue = await (0, format_1.format)(templateResult);
32
35
  await fileSystem_1.fileSystem.writeFile(file, formattedValue);
36
+ this.logger.info(`File recording completed: ${file}`);
33
37
  }
38
+ this.logger.info('The recording of model validation schema files has been completed successfully');
34
39
  }
@@ -0,0 +1,12 @@
1
+ import { Model } from '../types/shared/Model.model';
2
+ import { WriteClient } from '../WriteClient';
3
+ import { Templates } from './registerHandlebarTemplates';
4
+ interface IOptionsProps {
5
+ models: Model[];
6
+ templates: Templates;
7
+ outputSchemasPath: string;
8
+ useSeparatedIndexes?: boolean;
9
+ }
10
+ export declare function writeClientSchemasIndex(this: WriteClient, options: IOptionsProps): Promise<void>;
11
+ export {};
12
+ //# sourceMappingURL=writeClientSchemasIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeClientSchemasIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemasIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,UAAU,aAAa;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBActF"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeClientSchemasIndex = writeClientSchemasIndex;
4
+ const path_1 = require("path");
5
+ const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
6
+ async function writeClientSchemasIndex(options) {
7
+ const { models, templates, outputSchemasPath, useSeparatedIndexes } = options;
8
+ if (!useSeparatedIndexes) {
9
+ return;
10
+ }
11
+ const filePath = (0, path_1.resolve)(outputSchemasPath, 'index.ts');
12
+ this.logger.info(`Data has been written to a file: ${filePath}`);
13
+ const content = templates.indexes.schemas({ schemas: models });
14
+ await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
15
+ this.logger.info(`Writing to the file is completed: ${filePath}`);
16
+ }
@@ -1,8 +1,9 @@
1
- import { HttpClient } from '../types/Enums';
2
- import { IOutput } from '../types/Models';
1
+ import { OutputPaths } from '../types/base/OutputPaths.model';
2
+ import { HttpClient } from '../types/enums/HttpClient.enum';
3
3
  import type { Service } from '../types/shared/Service.model';
4
+ import { WriteClient } from '../WriteClient';
4
5
  import { Templates } from './registerHandlebarTemplates';
5
- type TServeceOutputsPath = Omit<IOutput, 'output' | 'outputSchemas'>;
6
+ type TServeceOutputsPath = Omit<OutputPaths, 'output' | 'outputSchemas'>;
6
7
  /**
7
8
  * @param services Array of Services to write
8
9
  * @param templates The loaded handlebar templates
@@ -30,6 +31,6 @@ interface IWriteClientServices {
30
31
  * @param useUnionTypes Use union types instead of enums
31
32
  * @param useOptions Use options or arguments functions
32
33
  */
33
- export declare function writeClientServices(options: IWriteClientServices): Promise<void>;
34
+ export declare function writeClientServices(this: WriteClient, options: IWriteClientServices): Promise<void>;
34
35
  export {};
35
36
  //# sourceMappingURL=writeClientServices.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAG7D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,KAAK,mBAAmB,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC;AAErE;;;;;;;;GAQG;AACH,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBtF"}
1
+ {"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,KAAK,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC;AAEzE;;;;;;;;GAQG;AACH,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BzG"}
@@ -15,8 +15,10 @@ const format_1 = require("./format");
15
15
  */
16
16
  async function writeClientServices(options) {
17
17
  const { services, templates, outputPaths, httpClient, useUnionTypes, useOptions, useCancelableRequest } = options;
18
+ this.logger.info('Recording of service files begins');
18
19
  for (const service of services) {
19
20
  const file = (0, path_1.resolve)(outputPaths.outputServices, `${service.name}.ts`);
21
+ this.logger.info(`The recording of the file data begins: ${file}`);
20
22
  const templateResult = templates.exports.service({
21
23
  ...service,
22
24
  httpClient,
@@ -28,5 +30,7 @@ async function writeClientServices(options) {
28
30
  });
29
31
  const formattedValue = await (0, format_1.format)(templateResult);
30
32
  await fileSystem_1.fileSystem.writeFile(file, formattedValue);
33
+ this.logger.info(`File recording completed: ${file}`);
31
34
  }
35
+ this.logger.info('Service file recording completed successfully');
32
36
  }
@@ -0,0 +1,12 @@
1
+ import { Service } from '../types/shared/Service.model';
2
+ import { WriteClient } from '../WriteClient';
3
+ import { Templates } from './registerHandlebarTemplates';
4
+ interface IOptionsProps {
5
+ services: Service[];
6
+ templates: Templates;
7
+ outputServices: string;
8
+ useSeparatedIndexes?: boolean;
9
+ }
10
+ export declare function writeClientServicesIndex(this: WriteClient, options: IOptionsProps): Promise<void>;
11
+ export {};
12
+ //# sourceMappingURL=writeClientServicesIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeClientServicesIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServicesIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,UAAU,aAAa;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBAcvF"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeClientServicesIndex = writeClientServicesIndex;
4
+ const path_1 = require("path");
5
+ const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
6
+ async function writeClientServicesIndex(options) {
7
+ const { services, templates, outputServices, useSeparatedIndexes } = options;
8
+ if (!useSeparatedIndexes) {
9
+ return;
10
+ }
11
+ const filePath = (0, path_1.resolve)(outputServices, 'index.ts');
12
+ this.logger.info(`Data has been written to a file: ${filePath}`);
13
+ const content = templates.indexes.services({ services });
14
+ await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
15
+ this.logger.info(`Writing to the file is completed: ${filePath}`);
16
+ }
@@ -0,0 +1,9 @@
1
+ import { SimpleClientArtifacts } from '../types/base/SimpleClientArtifacts.model';
2
+ import { WriteClient } from '../WriteClient';
3
+ /**
4
+ * Generate the OpenAPI client index file using the Handlebar template and write it to disk.
5
+ * The index file just contains all the exports you need to use the client as a standalone
6
+ * library. But yuo can also import individual models and services directly.
7
+ */
8
+ export declare function writeClientSimpleIndex(this: WriteClient, options: SimpleClientArtifacts): Promise<void>;
9
+ //# sourceMappingURL=writeClientSimpleIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeClientSimpleIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSimpleIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB7G"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeClientSimpleIndex = writeClientSimpleIndex;
4
+ const path_1 = require("path");
5
+ const fileSystem_1 = require("./fileSystem");
6
+ /**
7
+ * Generate the OpenAPI client index file using the Handlebar template and write it to disk.
8
+ * The index file just contains all the exports you need to use the client as a standalone
9
+ * library. But yuo can also import individual models and services directly.
10
+ */
11
+ async function writeClientSimpleIndex(options) {
12
+ const { templates, outputPath, core, models, schemas, services } = options;
13
+ const resolvePathIndex = (0, path_1.resolve)(outputPath, 'index.ts');
14
+ this.logger.info(`The recording of the file data begins: ${resolvePathIndex}`);
15
+ await fileSystem_1.fileSystem.writeFile(resolvePathIndex, templates.indexes.simple({
16
+ core,
17
+ models,
18
+ schemas,
19
+ services,
20
+ }));
21
+ this.logger.info(`File recording completed: ${resolvePathIndex}`);
22
+ }
@@ -25,8 +25,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
25
25
  return "import type { "
26
26
  + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 21 } }), depth0)) != null ? stack1 : "")
27
27
  + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "column": 59 } } })) != null ? stack1 : "")
28
- + " } from './"
29
- + ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 6, "column": 73 }, "end": { "line": 6, "column": 77 } }), depth0)) != null ? stack1 : "")
28
+ + " } from '"
29
+ + ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 6, "column": 71 }, "end": { "line": 6, "column": 75 } }), depth0)) != null ? stack1 : "")
30
30
  + "';\n";
31
31
  }, "3": function (container, depth0, helpers, partials, data) {
32
32
  var stack1;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
3
+ compiler: (string | number)[];
4
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
+ usePartial: boolean;
6
+ useData: boolean;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=indexCore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexCore.d.ts","sourceRoot":"","sources":["../../src/templatesCompiled/indexCore.ts"],"names":[],"mappings":";;;;;;;AAMA,wBAcmC"}
@@ -0,0 +1,22 @@
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
+ return "export { CancelablePromise } from './CancelablePromise';\n";
11
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
12
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
13
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
14
+ return parent[propertyName];
15
+ }
16
+ return undefined;
17
+ };
18
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
19
+ + "\nexport { ApiError } from './ApiError';\n"
20
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 7 } } })) != null ? stack1 : "")
21
+ + "export { OpenAPI } from './OpenAPI';\nexport type { TOpenAPIConfig } from './OpenAPI';\n";
22
+ }, "usePartial": true, "useData": true };
@@ -24,4 +24,4 @@ declare const _default: {
24
24
  useDepths: boolean;
25
25
  };
26
26
  export default _default;
27
- //# sourceMappingURL=index.d.ts.map
27
+ //# sourceMappingURL=indexFull.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexFull.d.ts","sourceRoot":"","sources":["../../src/templatesCompiled/indexFull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA8LoD"}
@@ -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
+ "4": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
+ "6": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
7
+ "7": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
8
+ "9": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
9
+ compiler: (string | number)[];
10
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
11
+ usePartial: boolean;
12
+ useData: boolean;
13
+ };
14
+ export default _default;
15
+ //# sourceMappingURL=indexModels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexModels.d.ts","sourceRoot":"","sources":["../../src/templatesCompiled/indexModels.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAMA,wBAiFmC"}
@@ -0,0 +1,82 @@
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 "\n"
17
+ + ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "models"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 15, "column": 9 } } })) != null ? stack1 : "");
18
+ }, "2": function (container, depth0, helpers, partials, data) {
19
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
20
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
21
+ return parent[propertyName];
22
+ }
23
+ return undefined;
24
+ };
25
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enum"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 14, "column": 7 } } })) != null ? stack1 : "");
26
+ }, "3": function (container, depth0, helpers, partials, data) {
27
+ var stack1, alias1 = container.strict, alias2 = container.lambda, 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 "export { "
34
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 16 } }), depth0)) != null ? stack1 : "")
35
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 55 } } })) != null ? stack1 : "")
36
+ + " } from './"
37
+ + ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 7, "column": 69 }, "end": { "line": 7, "column": 73 } }), depth0)) != null ? stack1 : "")
38
+ + "';\n";
39
+ }, "4": function (container, depth0, helpers, partials, data) {
40
+ var stack1;
41
+ return " as "
42
+ + ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line": 7, "column": 40 }, "end": { "line": 7, "column": 45 } }), depth0)) != null ? stack1 : "");
43
+ }, "6": function (container, depth0, helpers, partials, data) {
44
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
45
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
46
+ return parent[propertyName];
47
+ }
48
+ return undefined;
49
+ };
50
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "useUnionTypes"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.program(9, data, 0), "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 14, "column": 0 } } })) != null ? stack1 : "");
51
+ }, "7": function (container, depth0, helpers, partials, data) {
52
+ var stack1, alias1 = container.strict, alias2 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
53
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
54
+ return parent[propertyName];
55
+ }
56
+ return undefined;
57
+ };
58
+ return "export type { "
59
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 21 } }), depth0)) != null ? stack1 : "")
60
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 9, "column": 24 }, "end": { "line": 9, "column": 60 } } })) != null ? stack1 : "")
61
+ + " } from './"
62
+ + ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 9, "column": 74 }, "end": { "line": 9, "column": 78 } }), depth0)) != null ? stack1 : "")
63
+ + "';\n";
64
+ }, "9": function (container, depth0, helpers, partials, data) {
65
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
66
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
67
+ return parent[propertyName];
68
+ }
69
+ return undefined;
70
+ };
71
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enums"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.program(7, data, 0), "data": data, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 14, "column": 0 } } })) != null ? stack1 : "");
72
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
73
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
74
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
75
+ return parent[propertyName];
76
+ }
77
+ return undefined;
78
+ };
79
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
80
+ + "\n"
81
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "models"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 16, "column": 7 } } })) != null ? stack1 : "");
82
+ }, "usePartial": true, "useData": true };
@@ -0,0 +1,10 @@
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
+ compiler: (string | number)[];
5
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
+ usePartial: boolean;
7
+ useData: boolean;
8
+ };
9
+ export default _default;
10
+ //# sourceMappingURL=indexServices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexServices.d.ts","sourceRoot":"","sources":["../../src/templatesCompiled/indexServices.ts"],"names":[],"mappings":";;;;;;;;AAMA,wBA6BmC"}
@@ -0,0 +1,35 @@
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 "\n"
17
+ + ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "services"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 9 } } })) != null ? stack1 : "");
18
+ }, "2": function (container, depth0, helpers, partials, data) {
19
+ var stack1, alias1 = container.strict, alias2 = container.lambda;
20
+ return "export { "
21
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 16 } }), depth0)) != null ? stack1 : "")
22
+ + " } from './"
23
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 37 } }), depth0)) != null ? stack1 : "")
24
+ + "';\n";
25
+ }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
26
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
27
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
28
+ return parent[propertyName];
29
+ }
30
+ return undefined;
31
+ };
32
+ return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
33
+ + "\n"
34
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "services"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 8, "column": 7 } } })) != null ? stack1 : "");
35
+ }, "usePartial": true, "useData": true };
@@ -0,0 +1,11 @@
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
+ "3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
+ compiler: (string | number)[];
6
+ main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
7
+ usePartial: boolean;
8
+ useData: boolean;
9
+ };
10
+ export default _default;
11
+ //# sourceMappingURL=indexShemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexShemas.d.ts","sourceRoot":"","sources":["../../src/templatesCompiled/indexShemas.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBA0CmC"}