@tsed/schema 7.70.1 → 7.71.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 (530) hide show
  1. package/.barrelsby.json +1 -1
  2. package/jest.config.js +2 -0
  3. package/lib/browser/schema.umd.min.js +1 -1
  4. package/lib/browser/schema.umd.min.js.map +1 -1
  5. package/lib/cjs/components/async-api/channelsMapper.js +13 -13
  6. package/lib/cjs/components/async-api/channelsMapper.js.map +1 -1
  7. package/lib/cjs/components/async-api/generate.js +4 -4
  8. package/lib/cjs/components/async-api/generate.js.map +1 -1
  9. package/lib/cjs/components/async-api/messageMapper.js +11 -11
  10. package/lib/cjs/components/async-api/messageMapper.js.map +1 -1
  11. package/lib/cjs/components/async-api/payloadMapper.js +14 -14
  12. package/lib/cjs/components/async-api/payloadMapper.js.map +1 -1
  13. package/lib/cjs/components/async-api/responseMapper.js +7 -7
  14. package/lib/cjs/components/async-api/responseMapper.js.map +1 -1
  15. package/lib/cjs/components/default/anyMapper.js +14 -14
  16. package/lib/cjs/components/default/anyMapper.js.map +1 -1
  17. package/lib/cjs/components/default/classMapper.js +13 -13
  18. package/lib/cjs/components/default/classMapper.js.map +1 -1
  19. package/lib/cjs/components/default/genericsMapper.js +10 -10
  20. package/lib/cjs/components/default/genericsMapper.js.map +1 -1
  21. package/lib/cjs/components/default/inheritedClassMapper.js +5 -5
  22. package/lib/cjs/components/default/inheritedClassMapper.js.map +1 -1
  23. package/lib/cjs/components/default/itemMapper.js +3 -3
  24. package/lib/cjs/components/default/itemMapper.js.map +1 -1
  25. package/lib/cjs/components/default/lazyRefMapper.js +7 -7
  26. package/lib/cjs/components/default/lazyRefMapper.js.map +1 -1
  27. package/lib/cjs/components/default/mapMapper.js +5 -5
  28. package/lib/cjs/components/default/mapMapper.js.map +1 -1
  29. package/lib/cjs/components/default/objectMapper.js +7 -7
  30. package/lib/cjs/components/default/objectMapper.js.map +1 -1
  31. package/lib/cjs/components/default/ofMapper.js +5 -5
  32. package/lib/cjs/components/default/ofMapper.js.map +1 -1
  33. package/lib/cjs/components/default/propertiesMapper.js +13 -13
  34. package/lib/cjs/components/default/propertiesMapper.js.map +1 -1
  35. package/lib/cjs/components/default/schemaMapper.js +22 -22
  36. package/lib/cjs/components/default/schemaMapper.js.map +1 -1
  37. package/lib/cjs/components/index.js +29 -29
  38. package/lib/cjs/components/index.js.map +1 -1
  39. package/lib/cjs/components/open-spec/generate.js +6 -6
  40. package/lib/cjs/components/open-spec/generate.js.map +1 -1
  41. package/lib/cjs/components/open-spec/operationInFilesMapper.js +2 -2
  42. package/lib/cjs/components/open-spec/operationInFilesMapper.js.map +1 -1
  43. package/lib/cjs/components/open-spec/operationInParameterMapper.js +10 -10
  44. package/lib/cjs/components/open-spec/operationInParameterMapper.js.map +1 -1
  45. package/lib/cjs/components/open-spec/operationInParametersMapper.js +3 -3
  46. package/lib/cjs/components/open-spec/operationInParametersMapper.js.map +1 -1
  47. package/lib/cjs/components/open-spec/operationInQueryMapper.js +4 -4
  48. package/lib/cjs/components/open-spec/operationInQueryMapper.js.map +1 -1
  49. package/lib/cjs/components/open-spec/operationMapper.js +10 -10
  50. package/lib/cjs/components/open-spec/operationMapper.js.map +1 -1
  51. package/lib/cjs/components/open-spec/operationMediaMapper.js +3 -3
  52. package/lib/cjs/components/open-spec/operationMediaMapper.js.map +1 -1
  53. package/lib/cjs/components/open-spec/operationRequestBodyMapper.js +8 -8
  54. package/lib/cjs/components/open-spec/operationRequestBodyMapper.js.map +1 -1
  55. package/lib/cjs/components/open-spec/operationResponseMapper.js +3 -3
  56. package/lib/cjs/components/open-spec/operationResponseMapper.js.map +1 -1
  57. package/lib/cjs/components/open-spec/pathsMapper.js +27 -27
  58. package/lib/cjs/components/open-spec/pathsMapper.js.map +1 -1
  59. package/lib/cjs/decorators/class/children.js +2 -2
  60. package/lib/cjs/decorators/class/children.js.map +1 -1
  61. package/lib/cjs/decorators/class/discriminatorValue.js +2 -2
  62. package/lib/cjs/decorators/class/discriminatorValue.js.map +1 -1
  63. package/lib/cjs/decorators/collections/collectionContains.js +2 -2
  64. package/lib/cjs/decorators/collections/collectionContains.js.map +1 -1
  65. package/lib/cjs/decorators/collections/collectionOf.js +2 -2
  66. package/lib/cjs/decorators/collections/collectionOf.js.map +1 -1
  67. package/lib/cjs/decorators/collections/maxItems.js +4 -4
  68. package/lib/cjs/decorators/collections/maxItems.js.map +1 -1
  69. package/lib/cjs/decorators/collections/maxProperties.js +4 -4
  70. package/lib/cjs/decorators/collections/maxProperties.js.map +1 -1
  71. package/lib/cjs/decorators/collections/minItems.js +4 -4
  72. package/lib/cjs/decorators/collections/minItems.js.map +1 -1
  73. package/lib/cjs/decorators/collections/minProperties.js +4 -4
  74. package/lib/cjs/decorators/collections/minProperties.js.map +1 -1
  75. package/lib/cjs/decorators/collections/uniqueItems.js +4 -4
  76. package/lib/cjs/decorators/collections/uniqueItems.js.map +1 -1
  77. package/lib/cjs/decorators/common/additionalProperties.js +2 -2
  78. package/lib/cjs/decorators/common/additionalProperties.js.map +1 -1
  79. package/lib/cjs/decorators/common/allOf.js +2 -2
  80. package/lib/cjs/decorators/common/allOf.js.map +1 -1
  81. package/lib/cjs/decorators/common/allow.js +3 -3
  82. package/lib/cjs/decorators/common/allow.js.map +1 -1
  83. package/lib/cjs/decorators/common/any.js +2 -2
  84. package/lib/cjs/decorators/common/any.js.map +1 -1
  85. package/lib/cjs/decorators/common/anyOf.js +2 -2
  86. package/lib/cjs/decorators/common/anyOf.js.map +1 -1
  87. package/lib/cjs/decorators/common/const.js +2 -2
  88. package/lib/cjs/decorators/common/const.js.map +1 -1
  89. package/lib/cjs/decorators/common/customKey.js +3 -3
  90. package/lib/cjs/decorators/common/customKey.js.map +1 -1
  91. package/lib/cjs/decorators/common/default.js +2 -2
  92. package/lib/cjs/decorators/common/default.js.map +1 -1
  93. package/lib/cjs/decorators/common/defaultMsg.js +2 -2
  94. package/lib/cjs/decorators/common/defaultMsg.js.map +1 -1
  95. package/lib/cjs/decorators/common/description.js +2 -2
  96. package/lib/cjs/decorators/common/description.js.map +1 -1
  97. package/lib/cjs/decorators/common/discriminatorKey.js +3 -3
  98. package/lib/cjs/decorators/common/discriminatorKey.js.map +1 -1
  99. package/lib/cjs/decorators/common/enum.js +4 -4
  100. package/lib/cjs/decorators/common/enum.js.map +1 -1
  101. package/lib/cjs/decorators/common/errorMsg.js +2 -2
  102. package/lib/cjs/decorators/common/errorMsg.js.map +1 -1
  103. package/lib/cjs/decorators/common/example.js +2 -2
  104. package/lib/cjs/decorators/common/example.js.map +1 -1
  105. package/lib/cjs/decorators/common/examples.js +2 -2
  106. package/lib/cjs/decorators/common/examples.js.map +1 -1
  107. package/lib/cjs/decorators/common/exclusiveMaximum.js +4 -4
  108. package/lib/cjs/decorators/common/exclusiveMaximum.js.map +1 -1
  109. package/lib/cjs/decorators/common/exclusiveMinimum.js +4 -4
  110. package/lib/cjs/decorators/common/exclusiveMinimum.js.map +1 -1
  111. package/lib/cjs/decorators/common/format.js +17 -17
  112. package/lib/cjs/decorators/common/format.js.map +1 -1
  113. package/lib/cjs/decorators/common/forwardGroups.js +2 -2
  114. package/lib/cjs/decorators/common/forwardGroups.js.map +1 -1
  115. package/lib/cjs/decorators/common/groups.js +4 -4
  116. package/lib/cjs/decorators/common/groups.js.map +1 -1
  117. package/lib/cjs/decorators/common/ignore.js +3 -3
  118. package/lib/cjs/decorators/common/ignore.js.map +1 -1
  119. package/lib/cjs/decorators/common/integer.js +2 -2
  120. package/lib/cjs/decorators/common/integer.js.map +1 -1
  121. package/lib/cjs/decorators/common/jsonEntityFn.js +2 -2
  122. package/lib/cjs/decorators/common/jsonEntityFn.js.map +1 -1
  123. package/lib/cjs/decorators/common/maxLength.js +4 -4
  124. package/lib/cjs/decorators/common/maxLength.js.map +1 -1
  125. package/lib/cjs/decorators/common/maximum.js +4 -4
  126. package/lib/cjs/decorators/common/maximum.js.map +1 -1
  127. package/lib/cjs/decorators/common/minLength.js +4 -4
  128. package/lib/cjs/decorators/common/minLength.js.map +1 -1
  129. package/lib/cjs/decorators/common/minimum.js +4 -4
  130. package/lib/cjs/decorators/common/minimum.js.map +1 -1
  131. package/lib/cjs/decorators/common/multipleOf.js +4 -4
  132. package/lib/cjs/decorators/common/multipleOf.js.map +1 -1
  133. package/lib/cjs/decorators/common/name.js +2 -2
  134. package/lib/cjs/decorators/common/name.js.map +1 -1
  135. package/lib/cjs/decorators/common/nullable.js +3 -3
  136. package/lib/cjs/decorators/common/nullable.js.map +1 -1
  137. package/lib/cjs/decorators/common/oneOf.js +2 -2
  138. package/lib/cjs/decorators/common/oneOf.js.map +1 -1
  139. package/lib/cjs/decorators/common/optional.js +2 -2
  140. package/lib/cjs/decorators/common/optional.js.map +1 -1
  141. package/lib/cjs/decorators/common/pattern.js +4 -4
  142. package/lib/cjs/decorators/common/pattern.js.map +1 -1
  143. package/lib/cjs/decorators/common/property.js +2 -2
  144. package/lib/cjs/decorators/common/property.js.map +1 -1
  145. package/lib/cjs/decorators/common/readOnly.js +2 -2
  146. package/lib/cjs/decorators/common/readOnly.js.map +1 -1
  147. package/lib/cjs/decorators/common/recordOf.js +2 -2
  148. package/lib/cjs/decorators/common/recordOf.js.map +1 -1
  149. package/lib/cjs/decorators/common/required.js +5 -5
  150. package/lib/cjs/decorators/common/required.js.map +1 -1
  151. package/lib/cjs/decorators/common/requiredGroups.js +4 -4
  152. package/lib/cjs/decorators/common/requiredGroups.js.map +1 -1
  153. package/lib/cjs/decorators/common/schema.js +3 -3
  154. package/lib/cjs/decorators/common/schema.js.map +1 -1
  155. package/lib/cjs/decorators/common/title.js +2 -2
  156. package/lib/cjs/decorators/common/title.js.map +1 -1
  157. package/lib/cjs/decorators/common/typeError.js +3 -3
  158. package/lib/cjs/decorators/common/typeError.js.map +1 -1
  159. package/lib/cjs/decorators/common/writeOnly.js +2 -2
  160. package/lib/cjs/decorators/common/writeOnly.js.map +1 -1
  161. package/lib/cjs/decorators/config/jsonEntityComponent.js +2 -2
  162. package/lib/cjs/decorators/config/jsonEntityComponent.js.map +1 -1
  163. package/lib/cjs/decorators/generics/genericOf.js +4 -4
  164. package/lib/cjs/decorators/generics/genericOf.js.map +1 -1
  165. package/lib/cjs/decorators/generics/generics.js +2 -2
  166. package/lib/cjs/decorators/generics/generics.js.map +1 -1
  167. package/lib/cjs/decorators/operations/acceptMime.js +2 -2
  168. package/lib/cjs/decorators/operations/acceptMime.js.map +1 -1
  169. package/lib/cjs/decorators/operations/consumes.js +2 -2
  170. package/lib/cjs/decorators/operations/consumes.js.map +1 -1
  171. package/lib/cjs/decorators/operations/contentType.js +2 -2
  172. package/lib/cjs/decorators/operations/contentType.js.map +1 -1
  173. package/lib/cjs/decorators/operations/deprecated.js +2 -2
  174. package/lib/cjs/decorators/operations/deprecated.js.map +1 -1
  175. package/lib/cjs/decorators/operations/header.js +2 -2
  176. package/lib/cjs/decorators/operations/header.js.map +1 -1
  177. package/lib/cjs/decorators/operations/in.js +7 -7
  178. package/lib/cjs/decorators/operations/in.js.map +1 -1
  179. package/lib/cjs/decorators/operations/inFile.js +6 -6
  180. package/lib/cjs/decorators/operations/inFile.js.map +1 -1
  181. package/lib/cjs/decorators/operations/location.js +2 -2
  182. package/lib/cjs/decorators/operations/location.js.map +1 -1
  183. package/lib/cjs/decorators/operations/operation.js +6 -6
  184. package/lib/cjs/decorators/operations/operation.js.map +1 -1
  185. package/lib/cjs/decorators/operations/operationId.js +2 -2
  186. package/lib/cjs/decorators/operations/operationId.js.map +1 -1
  187. package/lib/cjs/decorators/operations/operationPath.js +2 -2
  188. package/lib/cjs/decorators/operations/operationPath.js.map +1 -1
  189. package/lib/cjs/decorators/operations/partial.js +2 -2
  190. package/lib/cjs/decorators/operations/partial.js.map +1 -1
  191. package/lib/cjs/decorators/operations/path.js +2 -2
  192. package/lib/cjs/decorators/operations/path.js.map +1 -1
  193. package/lib/cjs/decorators/operations/produces.js +2 -2
  194. package/lib/cjs/decorators/operations/produces.js.map +1 -1
  195. package/lib/cjs/decorators/operations/publish.js +3 -3
  196. package/lib/cjs/decorators/operations/publish.js.map +1 -1
  197. package/lib/cjs/decorators/operations/redirect.js +3 -3
  198. package/lib/cjs/decorators/operations/redirect.js.map +1 -1
  199. package/lib/cjs/decorators/operations/returns.js +20 -20
  200. package/lib/cjs/decorators/operations/returns.js.map +1 -1
  201. package/lib/cjs/decorators/operations/route.js +11 -11
  202. package/lib/cjs/decorators/operations/route.js.map +1 -1
  203. package/lib/cjs/decorators/operations/security.js +2 -2
  204. package/lib/cjs/decorators/operations/security.js.map +1 -1
  205. package/lib/cjs/decorators/operations/status.js +2 -2
  206. package/lib/cjs/decorators/operations/status.js.map +1 -1
  207. package/lib/cjs/decorators/operations/subscribe.js +3 -3
  208. package/lib/cjs/decorators/operations/subscribe.js.map +1 -1
  209. package/lib/cjs/decorators/operations/summary.js +2 -2
  210. package/lib/cjs/decorators/operations/summary.js.map +1 -1
  211. package/lib/cjs/decorators/operations/tags.js +2 -2
  212. package/lib/cjs/decorators/operations/tags.js.map +1 -1
  213. package/lib/cjs/domain/DecoratorContext.js +2 -2
  214. package/lib/cjs/domain/DecoratorContext.js.map +1 -1
  215. package/lib/cjs/domain/JsonClassStore.js +6 -6
  216. package/lib/cjs/domain/JsonClassStore.js.map +1 -1
  217. package/lib/cjs/domain/JsonEntityStore.js.map +1 -1
  218. package/lib/cjs/domain/JsonLazyRef.js +2 -2
  219. package/lib/cjs/domain/JsonLazyRef.js.map +1 -1
  220. package/lib/cjs/domain/JsonMap.js +2 -2
  221. package/lib/cjs/domain/JsonMap.js.map +1 -1
  222. package/lib/cjs/domain/JsonMedia.js +2 -2
  223. package/lib/cjs/domain/JsonMedia.js.map +1 -1
  224. package/lib/cjs/domain/JsonMethodStore.js +10 -10
  225. package/lib/cjs/domain/JsonMethodStore.js.map +1 -1
  226. package/lib/cjs/domain/JsonOperation.js +8 -8
  227. package/lib/cjs/domain/JsonOperation.js.map +1 -1
  228. package/lib/cjs/domain/JsonOperationRoute.js +2 -2
  229. package/lib/cjs/domain/JsonOperationRoute.js.map +1 -1
  230. package/lib/cjs/domain/JsonParameter.js +6 -6
  231. package/lib/cjs/domain/JsonParameter.js.map +1 -1
  232. package/lib/cjs/domain/JsonParameterStore.js +13 -13
  233. package/lib/cjs/domain/JsonParameterStore.js.map +1 -1
  234. package/lib/cjs/domain/JsonPropertyStore.js +8 -8
  235. package/lib/cjs/domain/JsonPropertyStore.js.map +1 -1
  236. package/lib/cjs/domain/JsonRequestBody.js +5 -5
  237. package/lib/cjs/domain/JsonRequestBody.js.map +1 -1
  238. package/lib/cjs/domain/JsonResponse.js +8 -8
  239. package/lib/cjs/domain/JsonResponse.js.map +1 -1
  240. package/lib/cjs/domain/JsonSchema.js +28 -28
  241. package/lib/cjs/domain/JsonSchema.js.map +1 -1
  242. package/lib/cjs/index.js +180 -179
  243. package/lib/cjs/index.js.map +1 -1
  244. package/lib/cjs/utils/from.js +18 -18
  245. package/lib/cjs/utils/from.js.map +1 -1
  246. package/lib/cjs/utils/generateSpec.js +12 -12
  247. package/lib/cjs/utils/generateSpec.js.map +1 -1
  248. package/lib/cjs/utils/getInheritedStores.js +3 -3
  249. package/lib/cjs/utils/getInheritedStores.js.map +1 -1
  250. package/lib/cjs/utils/getJsonEntityStore.js +10 -10
  251. package/lib/cjs/utils/getJsonEntityStore.js.map +1 -1
  252. package/lib/cjs/utils/getJsonSchema.js +7 -7
  253. package/lib/cjs/utils/getJsonSchema.js.map +1 -1
  254. package/lib/cjs/utils/getOperationsRoutes.js +8 -8
  255. package/lib/cjs/utils/getOperationsRoutes.js.map +1 -1
  256. package/lib/cjs/utils/getOperationsStores.js +8 -8
  257. package/lib/cjs/utils/getOperationsStores.js.map +1 -1
  258. package/lib/cjs/utils/getPropertiesStores.js +6 -6
  259. package/lib/cjs/utils/getPropertiesStores.js.map +1 -1
  260. package/lib/cjs/utils/getRequiredProperties.js +2 -2
  261. package/lib/cjs/utils/getRequiredProperties.js.map +1 -1
  262. package/lib/cjs/utils/getSpec.js +10 -10
  263. package/lib/cjs/utils/getSpec.js.map +1 -1
  264. package/lib/cjs/utils/getSpecType.js +3 -3
  265. package/lib/cjs/utils/getSpecType.js.map +1 -1
  266. package/lib/cjs/utils/mapNullableType.js +3 -3
  267. package/lib/cjs/utils/mapNullableType.js.map +1 -1
  268. package/lib/cjs/utils/mapOpenSpec.js +13 -13
  269. package/lib/cjs/utils/mapOpenSpec.js.map +1 -1
  270. package/lib/cjs/utils/mapOpenSpec2.js +2 -2
  271. package/lib/cjs/utils/mapOpenSpec2.js.map +1 -1
  272. package/lib/cjs/utils/mapOpenSpec3.js +2 -2
  273. package/lib/cjs/utils/mapOpenSpec3.js.map +1 -1
  274. package/lib/cjs/utils/mapOperationOptions.js +3 -3
  275. package/lib/cjs/utils/mapOperationOptions.js.map +1 -1
  276. package/lib/cjs/utils/ref.js +4 -4
  277. package/lib/cjs/utils/ref.js.map +1 -1
  278. package/lib/cjs/utils/toJsonMapCollection.js +3 -3
  279. package/lib/cjs/utils/toJsonMapCollection.js.map +1 -1
  280. package/lib/cjs/utils/withErrorMsg.js +2 -2
  281. package/lib/cjs/utils/withErrorMsg.js.map +1 -1
  282. package/lib/esm/components/async-api/channelsMapper.js.map +1 -1
  283. package/lib/esm/components/async-api/generate.js.map +1 -1
  284. package/lib/esm/components/async-api/messageMapper.js.map +1 -1
  285. package/lib/esm/components/async-api/payloadMapper.js.map +1 -1
  286. package/lib/esm/components/async-api/responseMapper.js.map +1 -1
  287. package/lib/esm/components/default/anyMapper.js.map +1 -1
  288. package/lib/esm/components/default/classMapper.js.map +1 -1
  289. package/lib/esm/components/default/genericsMapper.js.map +1 -1
  290. package/lib/esm/components/default/inheritedClassMapper.js.map +1 -1
  291. package/lib/esm/components/default/itemMapper.js.map +1 -1
  292. package/lib/esm/components/default/lazyRefMapper.js.map +1 -1
  293. package/lib/esm/components/default/mapMapper.js.map +1 -1
  294. package/lib/esm/components/default/objectMapper.js.map +1 -1
  295. package/lib/esm/components/default/ofMapper.js.map +1 -1
  296. package/lib/esm/components/default/propertiesMapper.js.map +1 -1
  297. package/lib/esm/components/default/schemaMapper.js.map +1 -1
  298. package/lib/esm/components/index.js +1 -1
  299. package/lib/esm/components/index.js.map +1 -1
  300. package/lib/esm/components/open-spec/generate.js.map +1 -1
  301. package/lib/esm/components/open-spec/operationInFilesMapper.js.map +1 -1
  302. package/lib/esm/components/open-spec/operationInParameterMapper.js.map +1 -1
  303. package/lib/esm/components/open-spec/operationInParametersMapper.js.map +1 -1
  304. package/lib/esm/components/open-spec/operationInQueryMapper.js.map +1 -1
  305. package/lib/esm/components/open-spec/operationMapper.js.map +1 -1
  306. package/lib/esm/components/open-spec/operationMediaMapper.js.map +1 -1
  307. package/lib/esm/components/open-spec/operationRequestBodyMapper.js.map +1 -1
  308. package/lib/esm/components/open-spec/operationResponseMapper.js.map +1 -1
  309. package/lib/esm/components/open-spec/pathsMapper.js.map +1 -1
  310. package/lib/esm/decorators/class/children.js.map +1 -1
  311. package/lib/esm/decorators/class/discriminatorValue.js.map +1 -1
  312. package/lib/esm/decorators/collections/collectionContains.js.map +1 -1
  313. package/lib/esm/decorators/collections/collectionOf.js.map +1 -1
  314. package/lib/esm/decorators/collections/maxItems.js.map +1 -1
  315. package/lib/esm/decorators/collections/maxProperties.js.map +1 -1
  316. package/lib/esm/decorators/collections/minItems.js.map +1 -1
  317. package/lib/esm/decorators/collections/minProperties.js.map +1 -1
  318. package/lib/esm/decorators/collections/uniqueItems.js.map +1 -1
  319. package/lib/esm/decorators/common/additionalProperties.js.map +1 -1
  320. package/lib/esm/decorators/common/allOf.js.map +1 -1
  321. package/lib/esm/decorators/common/allow.js.map +1 -1
  322. package/lib/esm/decorators/common/any.js.map +1 -1
  323. package/lib/esm/decorators/common/anyOf.js.map +1 -1
  324. package/lib/esm/decorators/common/const.js.map +1 -1
  325. package/lib/esm/decorators/common/customKey.js.map +1 -1
  326. package/lib/esm/decorators/common/default.js.map +1 -1
  327. package/lib/esm/decorators/common/defaultMsg.js.map +1 -1
  328. package/lib/esm/decorators/common/description.js.map +1 -1
  329. package/lib/esm/decorators/common/discriminatorKey.js.map +1 -1
  330. package/lib/esm/decorators/common/enum.js.map +1 -1
  331. package/lib/esm/decorators/common/errorMsg.js.map +1 -1
  332. package/lib/esm/decorators/common/example.js.map +1 -1
  333. package/lib/esm/decorators/common/examples.js.map +1 -1
  334. package/lib/esm/decorators/common/exclusiveMaximum.js.map +1 -1
  335. package/lib/esm/decorators/common/exclusiveMinimum.js.map +1 -1
  336. package/lib/esm/decorators/common/format.js.map +1 -1
  337. package/lib/esm/decorators/common/forwardGroups.js.map +1 -1
  338. package/lib/esm/decorators/common/groups.js.map +1 -1
  339. package/lib/esm/decorators/common/ignore.js +1 -1
  340. package/lib/esm/decorators/common/ignore.js.map +1 -1
  341. package/lib/esm/decorators/common/integer.js.map +1 -1
  342. package/lib/esm/decorators/common/jsonEntityFn.js.map +1 -1
  343. package/lib/esm/decorators/common/maxLength.js.map +1 -1
  344. package/lib/esm/decorators/common/maximum.js.map +1 -1
  345. package/lib/esm/decorators/common/minLength.js.map +1 -1
  346. package/lib/esm/decorators/common/minimum.js.map +1 -1
  347. package/lib/esm/decorators/common/multipleOf.js.map +1 -1
  348. package/lib/esm/decorators/common/name.js.map +1 -1
  349. package/lib/esm/decorators/common/nullable.js.map +1 -1
  350. package/lib/esm/decorators/common/oneOf.js.map +1 -1
  351. package/lib/esm/decorators/common/optional.js.map +1 -1
  352. package/lib/esm/decorators/common/pattern.js.map +1 -1
  353. package/lib/esm/decorators/common/property.js.map +1 -1
  354. package/lib/esm/decorators/common/readOnly.js.map +1 -1
  355. package/lib/esm/decorators/common/recordOf.js.map +1 -1
  356. package/lib/esm/decorators/common/required.js.map +1 -1
  357. package/lib/esm/decorators/common/requiredGroups.js.map +1 -1
  358. package/lib/esm/decorators/common/schema.js.map +1 -1
  359. package/lib/esm/decorators/common/title.js.map +1 -1
  360. package/lib/esm/decorators/common/typeError.js.map +1 -1
  361. package/lib/esm/decorators/common/writeOnly.js.map +1 -1
  362. package/lib/esm/decorators/config/jsonEntityComponent.js.map +1 -1
  363. package/lib/esm/decorators/generics/genericOf.js.map +1 -1
  364. package/lib/esm/decorators/generics/generics.js.map +1 -1
  365. package/lib/esm/decorators/operations/acceptMime.js.map +1 -1
  366. package/lib/esm/decorators/operations/consumes.js.map +1 -1
  367. package/lib/esm/decorators/operations/contentType.js.map +1 -1
  368. package/lib/esm/decorators/operations/deprecated.js.map +1 -1
  369. package/lib/esm/decorators/operations/header.js.map +1 -1
  370. package/lib/esm/decorators/operations/in.js +1 -1
  371. package/lib/esm/decorators/operations/in.js.map +1 -1
  372. package/lib/esm/decorators/operations/inFile.js.map +1 -1
  373. package/lib/esm/decorators/operations/location.js.map +1 -1
  374. package/lib/esm/decorators/operations/operation.js.map +1 -1
  375. package/lib/esm/decorators/operations/operationId.js.map +1 -1
  376. package/lib/esm/decorators/operations/operationPath.js.map +1 -1
  377. package/lib/esm/decorators/operations/partial.js.map +1 -1
  378. package/lib/esm/decorators/operations/path.js.map +1 -1
  379. package/lib/esm/decorators/operations/produces.js.map +1 -1
  380. package/lib/esm/decorators/operations/publish.js.map +1 -1
  381. package/lib/esm/decorators/operations/redirect.js.map +1 -1
  382. package/lib/esm/decorators/operations/returns.js.map +1 -1
  383. package/lib/esm/decorators/operations/route.js.map +1 -1
  384. package/lib/esm/decorators/operations/security.js.map +1 -1
  385. package/lib/esm/decorators/operations/status.js.map +1 -1
  386. package/lib/esm/decorators/operations/subscribe.js.map +1 -1
  387. package/lib/esm/decorators/operations/summary.js.map +1 -1
  388. package/lib/esm/decorators/operations/tags.js.map +1 -1
  389. package/lib/esm/domain/DecoratorContext.js.map +1 -1
  390. package/lib/esm/domain/JsonClassStore.js.map +1 -1
  391. package/lib/esm/domain/JsonEntityStore.js.map +1 -1
  392. package/lib/esm/domain/JsonLazyRef.js.map +1 -1
  393. package/lib/esm/domain/JsonMap.js.map +1 -1
  394. package/lib/esm/domain/JsonMedia.js.map +1 -1
  395. package/lib/esm/domain/JsonMethodStore.js.map +1 -1
  396. package/lib/esm/domain/JsonOperation.js.map +1 -1
  397. package/lib/esm/domain/JsonOperationRoute.js.map +1 -1
  398. package/lib/esm/domain/JsonParameter.js.map +1 -1
  399. package/lib/esm/domain/JsonParameterStore.js.map +1 -1
  400. package/lib/esm/domain/JsonPropertyStore.js.map +1 -1
  401. package/lib/esm/domain/JsonRequestBody.js.map +1 -1
  402. package/lib/esm/domain/JsonResponse.js.map +1 -1
  403. package/lib/esm/domain/JsonSchema.js.map +1 -1
  404. package/lib/esm/index.js +6 -5
  405. package/lib/esm/index.js.map +1 -1
  406. package/lib/esm/utils/from.js.map +1 -1
  407. package/lib/esm/utils/generateSpec.js.map +1 -1
  408. package/lib/esm/utils/getInheritedStores.js.map +1 -1
  409. package/lib/esm/utils/getJsonEntityStore.js.map +1 -1
  410. package/lib/esm/utils/getJsonSchema.js.map +1 -1
  411. package/lib/esm/utils/getOperationsRoutes.js.map +1 -1
  412. package/lib/esm/utils/getOperationsStores.js.map +1 -1
  413. package/lib/esm/utils/getPropertiesStores.js.map +1 -1
  414. package/lib/esm/utils/getRequiredProperties.js.map +1 -1
  415. package/lib/esm/utils/getSpec.js.map +1 -1
  416. package/lib/esm/utils/getSpecType.js.map +1 -1
  417. package/lib/esm/utils/mapNullableType.js.map +1 -1
  418. package/lib/esm/utils/mapOpenSpec.js.map +1 -1
  419. package/lib/esm/utils/mapOpenSpec2.js.map +1 -1
  420. package/lib/esm/utils/mapOpenSpec3.js.map +1 -1
  421. package/lib/esm/utils/mapOperationOptions.js.map +1 -1
  422. package/lib/esm/utils/ref.js.map +1 -1
  423. package/lib/esm/utils/toJsonMapCollection.js.map +1 -1
  424. package/lib/esm/utils/withErrorMsg.js.map +1 -1
  425. package/lib/types/components/async-api/channelsMapper.d.ts +1 -1
  426. package/lib/types/components/async-api/messageMapper.d.ts +3 -3
  427. package/lib/types/components/async-api/payloadMapper.d.ts +3 -3
  428. package/lib/types/components/async-api/responseMapper.d.ts +3 -3
  429. package/lib/types/components/default/anyMapper.d.ts +1 -1
  430. package/lib/types/components/default/classMapper.d.ts +2 -2
  431. package/lib/types/components/default/genericsMapper.d.ts +1 -1
  432. package/lib/types/components/default/inheritedClassMapper.d.ts +1 -1
  433. package/lib/types/components/default/itemMapper.d.ts +1 -1
  434. package/lib/types/components/default/lazyRefMapper.d.ts +2 -2
  435. package/lib/types/components/default/mapMapper.d.ts +1 -1
  436. package/lib/types/components/default/objectMapper.d.ts +1 -1
  437. package/lib/types/components/default/ofMapper.d.ts +2 -2
  438. package/lib/types/components/default/propertiesMapper.d.ts +2 -2
  439. package/lib/types/components/default/schemaMapper.d.ts +2 -2
  440. package/lib/types/components/index.d.ts +27 -27
  441. package/lib/types/components/open-spec/operationInFilesMapper.d.ts +1 -1
  442. package/lib/types/components/open-spec/operationInParameterMapper.d.ts +2 -2
  443. package/lib/types/components/open-spec/operationInParametersMapper.d.ts +2 -2
  444. package/lib/types/components/open-spec/operationInQueryMapper.d.ts +1 -1
  445. package/lib/types/components/open-spec/operationMapper.d.ts +2 -2
  446. package/lib/types/components/open-spec/operationMediaMapper.d.ts +2 -2
  447. package/lib/types/components/open-spec/operationRequestBodyMapper.d.ts +2 -2
  448. package/lib/types/components/open-spec/operationResponseMapper.d.ts +2 -2
  449. package/lib/types/components/open-spec/pathsMapper.d.ts +1 -1
  450. package/lib/types/decorators/collections/collectionContains.d.ts +1 -1
  451. package/lib/types/decorators/collections/maxItems.d.ts +1 -1
  452. package/lib/types/decorators/collections/maxProperties.d.ts +1 -1
  453. package/lib/types/decorators/collections/minItems.d.ts +1 -1
  454. package/lib/types/decorators/collections/minProperties.d.ts +1 -1
  455. package/lib/types/decorators/collections/uniqueItems.d.ts +1 -1
  456. package/lib/types/decorators/common/additionalProperties.d.ts +1 -1
  457. package/lib/types/decorators/common/allOf.d.ts +1 -1
  458. package/lib/types/decorators/common/anyOf.d.ts +1 -1
  459. package/lib/types/decorators/common/enum.d.ts +1 -1
  460. package/lib/types/decorators/common/exclusiveMaximum.d.ts +1 -1
  461. package/lib/types/decorators/common/exclusiveMinimum.d.ts +1 -1
  462. package/lib/types/decorators/common/format.d.ts +8 -8
  463. package/lib/types/decorators/common/ignore.d.ts +2 -2
  464. package/lib/types/decorators/common/jsonEntityFn.d.ts +1 -1
  465. package/lib/types/decorators/common/maxLength.d.ts +1 -1
  466. package/lib/types/decorators/common/maximum.d.ts +2 -2
  467. package/lib/types/decorators/common/minLength.d.ts +1 -1
  468. package/lib/types/decorators/common/minimum.d.ts +2 -2
  469. package/lib/types/decorators/common/multipleOf.d.ts +1 -1
  470. package/lib/types/decorators/common/oneOf.d.ts +1 -1
  471. package/lib/types/decorators/common/pattern.d.ts +1 -1
  472. package/lib/types/decorators/common/required.d.ts +1 -1
  473. package/lib/types/decorators/common/schema.d.ts +2 -2
  474. package/lib/types/decorators/config/jsonEntityComponent.d.ts +1 -1
  475. package/lib/types/decorators/generics/genericOf.d.ts +1 -1
  476. package/lib/types/decorators/operations/contentType.d.ts +1 -1
  477. package/lib/types/decorators/operations/header.d.ts +1 -1
  478. package/lib/types/decorators/operations/in.d.ts +3 -3
  479. package/lib/types/decorators/operations/location.d.ts +2 -2
  480. package/lib/types/decorators/operations/operation.d.ts +1 -1
  481. package/lib/types/decorators/operations/operationPath.d.ts +1 -1
  482. package/lib/types/decorators/operations/publish.d.ts +1 -1
  483. package/lib/types/decorators/operations/redirect.d.ts +1 -1
  484. package/lib/types/decorators/operations/returns.d.ts +3 -3
  485. package/lib/types/decorators/operations/route.d.ts +9 -9
  486. package/lib/types/decorators/operations/status.d.ts +1 -1
  487. package/lib/types/decorators/operations/subscribe.d.ts +1 -1
  488. package/lib/types/domain/DecoratorContext.d.ts +1 -1
  489. package/lib/types/domain/JsonClassStore.d.ts +3 -3
  490. package/lib/types/domain/JsonEntityStore.d.ts +5 -5
  491. package/lib/types/domain/JsonLazyRef.d.ts +1 -1
  492. package/lib/types/domain/JsonMap.d.ts +1 -1
  493. package/lib/types/domain/JsonMedia.d.ts +2 -2
  494. package/lib/types/domain/JsonMethodStore.d.ts +5 -5
  495. package/lib/types/domain/JsonOperation.d.ts +5 -5
  496. package/lib/types/domain/JsonOperationPathsMap.d.ts +1 -1
  497. package/lib/types/domain/JsonOperationRoute.d.ts +3 -3
  498. package/lib/types/domain/JsonParameter.d.ts +4 -4
  499. package/lib/types/domain/JsonParameterStore.d.ts +4 -4
  500. package/lib/types/domain/JsonPropertyStore.d.ts +2 -2
  501. package/lib/types/domain/JsonRequestBody.d.ts +2 -2
  502. package/lib/types/domain/JsonResponse.d.ts +4 -4
  503. package/lib/types/domain/JsonSchema.d.ts +7 -7
  504. package/lib/types/hooks/alterOneOf.d.ts +2 -2
  505. package/lib/types/hooks/alterRequiredGroups.d.ts +2 -2
  506. package/lib/types/index.d.ts +178 -177
  507. package/lib/types/interfaces/IgnoreCallback.d.ts +1 -1
  508. package/lib/types/interfaces/JsonSchemaOptions.d.ts +1 -1
  509. package/lib/types/registries/JsonSchemaMapperContainer.d.ts +1 -1
  510. package/lib/types/registries/enumRegistries.d.ts +1 -1
  511. package/lib/types/utils/from.d.ts +1 -1
  512. package/lib/types/utils/generateSpec.d.ts +1 -1
  513. package/lib/types/utils/generics.d.ts +1 -1
  514. package/lib/types/utils/getInheritedStores.d.ts +1 -1
  515. package/lib/types/utils/getJsonEntityStore.d.ts +5 -5
  516. package/lib/types/utils/getJsonSchema.d.ts +1 -1
  517. package/lib/types/utils/getOperationsRoutes.d.ts +3 -3
  518. package/lib/types/utils/getOperationsStores.d.ts +1 -1
  519. package/lib/types/utils/getPropertiesStores.d.ts +1 -1
  520. package/lib/types/utils/getRequiredProperties.d.ts +2 -2
  521. package/lib/types/utils/getSpec.d.ts +1 -1
  522. package/lib/types/utils/getSpecType.d.ts +1 -1
  523. package/lib/types/utils/inlineEnums.d.ts +2 -2
  524. package/lib/types/utils/mapHeaders.d.ts +1 -1
  525. package/lib/types/utils/mapNullableType.d.ts +2 -2
  526. package/lib/types/utils/operationIdFormatter.d.ts +1 -1
  527. package/lib/types/utils/ref.d.ts +2 -2
  528. package/lib/types/utils/removeHiddenOperation.d.ts +1 -1
  529. package/lib/types/utils/toJsonMapCollection.d.ts +1 -1
  530. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"operationMediaMapper.js","sourceRoot":"","sources":["../../../../src/components/open-spec/operationMediaMapper.ts"],"names":[],"mappings":";;;AAEA,0FAAgG;AAEhG,SAAgB,oBAAoB,CAAC,SAAoB,EAAE,OAA0B;IACnF,IAAI,MAAM,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC;IAE3C,OAAO,IAAA,sCAAU,EAAC,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,EAAC,GAAG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,EAAC,CAAC,CAAC;AAChG,CAAC;AAJD,oDAIC;AAED,IAAA,oDAAwB,EAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"operationMediaMapper.js","sourceRoot":"","sources":["../../../../src/components/open-spec/operationMediaMapper.ts"],"names":[],"mappings":";;;AAEA,gGAAmG;AAEnG,SAAgB,oBAAoB,CAAC,SAAoB,EAAE,OAA0B;IACnF,IAAI,MAAM,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC;IAE3C,OAAO,IAAA,yCAAU,EAAC,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,EAAC,GAAG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,EAAC,CAAC,CAAC;AAChG,CAAC;AAJD,oDAIC;AAED,IAAA,uDAAwB,EAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAC"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.operationRequestBodyMapper = void 0;
4
- const JsonRequestBody_1 = require("../../domain/JsonRequestBody");
5
- const JsonSchema_1 = require("../../domain/JsonSchema");
6
- const JsonSchemaMapperContainer_1 = require("../../registries/JsonSchemaMapperContainer");
4
+ const JsonRequestBody_js_1 = require("../../domain/JsonRequestBody.js");
5
+ const JsonSchema_js_1 = require("../../domain/JsonSchema.js");
6
+ const JsonSchemaMapperContainer_js_1 = require("../../registries/JsonSchemaMapperContainer.js");
7
7
  function buildSchemaFromBodyParameters(parameters, options) {
8
- let schema = new JsonSchema_1.JsonSchema();
8
+ let schema = new JsonSchema_js_1.JsonSchema();
9
9
  const props = {};
10
10
  const refs = [];
11
11
  let propsLength = 0;
@@ -19,7 +19,7 @@ function buildSchemaFromBodyParameters(parameters, options) {
19
19
  props[key] = value;
20
20
  }
21
21
  });
22
- const jsonParameter = (0, JsonSchemaMapperContainer_1.execMapper)("operationInParameter", [parameter], options);
22
+ const jsonParameter = (0, JsonSchemaMapperContainer_js_1.execMapper)("operationInParameter", [parameter], options);
23
23
  if (name) {
24
24
  const propSchema = {
25
25
  ...(jsonParameter.schema || {
@@ -56,12 +56,12 @@ function buildSchemaFromBodyParameters(parameters, options) {
56
56
  }
57
57
  function operationRequestBodyMapper(bodyParameters, { consumes, ...options }) {
58
58
  const { schema, examples, in: _, ...props } = buildSchemaFromBodyParameters(bodyParameters, options);
59
- const requestBody = new JsonRequestBody_1.JsonRequestBody(props);
59
+ const requestBody = new JsonRequestBody_js_1.JsonRequestBody(props);
60
60
  consumes.forEach((consume) => {
61
61
  requestBody.addContent(consume, schema, examples);
62
62
  });
63
- return (0, JsonSchemaMapperContainer_1.execMapper)("map", [requestBody], options);
63
+ return (0, JsonSchemaMapperContainer_js_1.execMapper)("map", [requestBody], options);
64
64
  }
65
65
  exports.operationRequestBodyMapper = operationRequestBodyMapper;
66
- (0, JsonSchemaMapperContainer_1.registerJsonSchemaMapper)("operationRequestBody", operationRequestBodyMapper);
66
+ (0, JsonSchemaMapperContainer_js_1.registerJsonSchemaMapper)("operationRequestBody", operationRequestBodyMapper);
67
67
  //# sourceMappingURL=operationRequestBodyMapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operationRequestBodyMapper.js","sourceRoot":"","sources":["../../../../src/components/open-spec/operationRequestBodyMapper.ts"],"names":[],"mappings":";;;AACA,kEAA6D;AAC7D,wDAAmD;AAEnD,0FAAgG;AAEhG,SAAS,6BAA6B,CAAC,UAA2B,EAAE,OAA0B;IAC5F,IAAI,MAAM,GAAG,IAAI,uBAAU,EAAE,CAAC;IAC9B,MAAM,KAAK,GAAQ,EAAE,CAAC;IACtB,MAAM,IAAI,GAAiB,EAAE,CAAC;IAC9B,IAAI,WAAW,GAAG,CAAC,CAAC;IAEpB,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,CAAC;IAExE,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QAC/B,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;QAEjC,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;aACrB,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;aAChD,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACxB,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;gBAC5B,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;aACpB;QACH,CAAC,CAAC,CAAC;QAEL,MAAM,aAAa,GAAG,IAAA,sCAAU,EAAC,sBAAsB,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC;QAE/E,IAAI,IAAI,EAAE;YACR,MAAM,UAAU,GAAG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;QACnC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,sCAAU,EAAC,KAAK,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAVD,gEAUC;AAED,IAAA,oDAAwB,EAAC,sBAAsB,EAAE,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"operationRequestBodyMapper.js","sourceRoot":"","sources":["../../../../src/components/open-spec/operationRequestBodyMapper.ts"],"names":[],"mappings":";;;AACA,wEAAgE;AAChE,8DAAsD;AAEtD,gGAAmG;AAEnG,SAAS,6BAA6B,CAAC,UAA2B,EAAE,OAA0B;IAC5F,IAAI,MAAM,GAAG,IAAI,0BAAU,EAAE,CAAC;IAC9B,MAAM,KAAK,GAAQ,EAAE,CAAC;IACtB,MAAM,IAAI,GAAiB,EAAE,CAAC;IAC9B,IAAI,WAAW,GAAG,CAAC,CAAC;IAEpB,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,CAAC;IAExE,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QAC/B,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;QAEjC,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;aACrB,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;aAChD,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACxB,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;gBAC5B,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;aAC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AAC,GAAG,6BAA6B,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAEnG,MAAM,WAAW,GAAG,IAAI,oCAAe,CAAC,KAAK,CAAC,CAAC;IAE/C,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAe,EAAE,EAAE;QACnC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,yCAAU,EAAC,KAAK,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAVD,gEAUC;AAED,IAAA,uDAAwB,EAAC,sBAAsB,EAAE,0BAA0B,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.operationResponseMapper = void 0;
4
- const JsonSchemaMapperContainer_1 = require("../../registries/JsonSchemaMapperContainer");
4
+ const JsonSchemaMapperContainer_js_1 = require("../../registries/JsonSchemaMapperContainer.js");
5
5
  function operationResponseMapper(jsonResponse, options = {}) {
6
- const response = (0, JsonSchemaMapperContainer_1.execMapper)("map", [jsonResponse], options);
6
+ const response = (0, JsonSchemaMapperContainer_js_1.execMapper)("map", [jsonResponse], options);
7
7
  if (jsonResponse.status === 204) {
8
8
  delete response.content;
9
9
  }
@@ -20,5 +20,5 @@ function operationResponseMapper(jsonResponse, options = {}) {
20
20
  return response;
21
21
  }
22
22
  exports.operationResponseMapper = operationResponseMapper;
23
- (0, JsonSchemaMapperContainer_1.registerJsonSchemaMapper)("operationResponse", operationResponseMapper);
23
+ (0, JsonSchemaMapperContainer_js_1.registerJsonSchemaMapper)("operationResponse", operationResponseMapper);
24
24
  //# sourceMappingURL=operationResponseMapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operationResponseMapper.js","sourceRoot":"","sources":["../../../../src/components/open-spec/operationResponseMapper.ts"],"names":[],"mappings":";;;AAEA,0FAAgG;AAEhG,SAAgB,uBAAuB,CAAC,YAA0B,EAAE,UAA6B,EAAE;IACjG,MAAM,QAAQ,GAAG,IAAA,sCAAU,EAAC,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;IAE5D,IAAI,YAAY,CAAC,MAAM,KAAK,GAAG,EAAE;QAC/B,OAAO,QAAQ,CAAC,OAAO,CAAC;KACzB;IAED,IAAI,QAAQ,CAAC,OAAO,EAAE;QACpB,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,EAAC,IAAI,EAAE,GAAG,KAAK,EAAC,CAAgB,EAAE,EAAE;YAClF,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG;gBACtB,GAAG,KAAK;gBACR,MAAM,EAAE;oBACN,IAAI;iBACL;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAnBD,0DAmBC;AAED,IAAA,oDAAwB,EAAC,mBAAmB,EAAE,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"operationResponseMapper.js","sourceRoot":"","sources":["../../../../src/components/open-spec/operationResponseMapper.ts"],"names":[],"mappings":";;;AAEA,gGAAmG;AAEnG,SAAgB,uBAAuB,CAAC,YAA0B,EAAE,UAA6B,EAAE;IACjG,MAAM,QAAQ,GAAG,IAAA,yCAAU,EAAC,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;IAE5D,IAAI,YAAY,CAAC,MAAM,KAAK,GAAG,EAAE;QAC/B,OAAO,QAAQ,CAAC,OAAO,CAAC;KACzB;IAED,IAAI,QAAQ,CAAC,OAAO,EAAE;QACpB,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,EAAC,IAAI,EAAE,GAAG,KAAK,EAAC,CAAgB,EAAE,EAAE;YAClF,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG;gBACtB,GAAG,KAAK;gBACR,MAAM,EAAE;oBACN,IAAI;iBACL;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAnBD,0DAmBC;AAED,IAAA,uDAAwB,EAAC,mBAAmB,EAAE,uBAAuB,CAAC,CAAC"}
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pathsMapper = void 0;
4
- const OperationVerbs_1 = require("../../constants/OperationVerbs");
5
- const JsonSchemaMapperContainer_1 = require("../../registries/JsonSchemaMapperContainer");
6
- const buildPath_1 = require("../../utils/buildPath");
7
- const concatParameters_1 = require("../../utils/concatParameters");
8
- const getJsonEntityStore_1 = require("../../utils/getJsonEntityStore");
9
- const getJsonPathParameters_1 = require("../../utils/getJsonPathParameters");
10
- const getOperationsStores_1 = require("../../utils/getOperationsStores");
11
- const operationIdFormatter_1 = require("../../utils/operationIdFormatter");
12
- const removeHiddenOperation_1 = require("../../utils/removeHiddenOperation");
4
+ const OperationVerbs_js_1 = require("../../constants/OperationVerbs.js");
5
+ const JsonSchemaMapperContainer_js_1 = require("../../registries/JsonSchemaMapperContainer.js");
6
+ const buildPath_js_1 = require("../../utils/buildPath.js");
7
+ const concatParameters_js_1 = require("../../utils/concatParameters.js");
8
+ const getJsonEntityStore_js_1 = require("../../utils/getJsonEntityStore.js");
9
+ const getJsonPathParameters_js_1 = require("../../utils/getJsonPathParameters.js");
10
+ const getOperationsStores_js_1 = require("../../utils/getOperationsStores.js");
11
+ const operationIdFormatter_js_1 = require("../../utils/operationIdFormatter.js");
12
+ const removeHiddenOperation_js_1 = require("../../utils/removeHiddenOperation.js");
13
13
  const ALLOWED_VERBS = [
14
- OperationVerbs_1.OperationVerbs.ALL,
15
- OperationVerbs_1.OperationVerbs.GET,
16
- OperationVerbs_1.OperationVerbs.POST,
17
- OperationVerbs_1.OperationVerbs.PUT,
18
- OperationVerbs_1.OperationVerbs.PATCH,
19
- OperationVerbs_1.OperationVerbs.HEAD,
20
- OperationVerbs_1.OperationVerbs.OPTIONS,
21
- OperationVerbs_1.OperationVerbs.DELETE,
22
- OperationVerbs_1.OperationVerbs.TRACE
14
+ OperationVerbs_js_1.OperationVerbs.ALL,
15
+ OperationVerbs_js_1.OperationVerbs.GET,
16
+ OperationVerbs_js_1.OperationVerbs.POST,
17
+ OperationVerbs_js_1.OperationVerbs.PUT,
18
+ OperationVerbs_js_1.OperationVerbs.PATCH,
19
+ OperationVerbs_js_1.OperationVerbs.HEAD,
20
+ OperationVerbs_js_1.OperationVerbs.OPTIONS,
21
+ OperationVerbs_js_1.OperationVerbs.DELETE,
22
+ OperationVerbs_js_1.OperationVerbs.TRACE
23
23
  ];
24
24
  function pushToPath(paths, { path, method, operation }) {
25
25
  return {
@@ -33,9 +33,9 @@ function pushToPath(paths, { path, method, operation }) {
33
33
  function mapOperationInPathParameters(options) {
34
34
  return ({ operationPath, operation, operationStore }) => {
35
35
  const { path, method } = operationPath;
36
- return (0, getJsonPathParameters_1.getJsonPathParameters)(options.ctrlRootPath, path).map(({ path, parameters }) => {
36
+ return (0, getJsonPathParameters_js_1.getJsonPathParameters)(options.ctrlRootPath, path).map(({ path, parameters }) => {
37
37
  path = path ? path : "/";
38
- parameters = (0, concatParameters_1.concatParameters)(parameters.map(({ type, ...param }) => {
38
+ parameters = (0, concatParameters_js_1.concatParameters)(parameters.map(({ type, ...param }) => {
39
39
  return {
40
40
  ...param,
41
41
  schema: {
@@ -48,7 +48,7 @@ function mapOperationInPathParameters(options) {
48
48
  ...operation,
49
49
  parameters,
50
50
  operationId: operation.operationId ||
51
- (0, operationIdFormatter_1.getOperationId)(path, {
51
+ (0, operationIdFormatter_js_1.getOperationId)(path, {
52
52
  ...options,
53
53
  store: operationStore
54
54
  })
@@ -65,7 +65,7 @@ function mapOperation(options) {
65
65
  if (operationPaths.length === 0) {
66
66
  return [];
67
67
  }
68
- const operation = (0, JsonSchemaMapperContainer_1.execMapper)("operation", [operationStore.operation], options);
68
+ const operation = (0, JsonSchemaMapperContainer_js_1.execMapper)("operation", [operationStore.operation], options);
69
69
  return operationPaths.map((operationPath) => {
70
70
  return {
71
71
  operationPath,
@@ -76,20 +76,20 @@ function mapOperation(options) {
76
76
  };
77
77
  }
78
78
  function pathsMapper(model, { paths, rootPath, ...options }) {
79
- const store = (0, getJsonEntityStore_1.getJsonEntityStore)(model);
79
+ const store = (0, getJsonEntityStore_js_1.getJsonEntityStore)(model);
80
80
  const ctrlPath = store.path;
81
- const ctrlRootPath = (0, buildPath_1.buildPath)(rootPath + ctrlPath);
81
+ const ctrlRootPath = (0, buildPath_js_1.buildPath)(rootPath + ctrlPath);
82
82
  options = {
83
83
  ...options,
84
84
  ctrlRootPath
85
85
  };
86
- return [...(0, getOperationsStores_1.getOperationsStores)(model).values()]
87
- .filter(removeHiddenOperation_1.removeHiddenOperation)
86
+ return [...(0, getOperationsStores_js_1.getOperationsStores)(model).values()]
87
+ .filter(removeHiddenOperation_js_1.removeHiddenOperation)
88
88
  .filter((operationStore) => operationStore.operation.getAllowedOperationPath(ALLOWED_VERBS).length > 0)
89
89
  .flatMap(mapOperation(options))
90
90
  .flatMap(mapOperationInPathParameters(options))
91
91
  .reduce(pushToPath, paths);
92
92
  }
93
93
  exports.pathsMapper = pathsMapper;
94
- (0, JsonSchemaMapperContainer_1.registerJsonSchemaMapper)("paths", pathsMapper);
94
+ (0, JsonSchemaMapperContainer_js_1.registerJsonSchemaMapper)("paths", pathsMapper);
95
95
  //# sourceMappingURL=pathsMapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pathsMapper.js","sourceRoot":"","sources":["../../../../src/components/open-spec/pathsMapper.ts"],"names":[],"mappings":";;;AACA,mEAA8D;AAI9D,0FAAgG;AAChG,qDAAgD;AAChD,mEAA8D;AAC9D,uEAAkE;AAClE,6EAAwE;AACxE,yEAAoE;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,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;SACtG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;SAC9B,OAAO,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;SAC9C,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAC/B,CAAC;AAhBD,kCAgBC;AAED,IAAA,oDAAwB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"pathsMapper.js","sourceRoot":"","sources":["../../../../src/components/open-spec/pathsMapper.ts"],"names":[],"mappings":";;;AACA,yEAAiE;AAIjE,gGAAmG;AACnG,2DAAmD;AACnD,yEAAiE;AACjE,6EAAqE;AACrE,mFAA2E;AAC3E,+EAAuE;AACvE,iFAAmE;AACnE,mFAA2E;AAE3E,MAAM,aAAa,GAAG;IACpB,kCAAc,CAAC,GAAG;IAClB,kCAAc,CAAC,GAAG;IAClB,kCAAc,CAAC,IAAI;IACnB,kCAAc,CAAC,GAAG;IAClB,kCAAc,CAAC,KAAK;IACpB,kCAAc,CAAC,IAAI;IACnB,kCAAc,CAAC,OAAO;IACtB,kCAAc,CAAC,MAAM;IACrB,kCAAc,CAAC,KAAK;CACrB,CAAC;AAEF,SAAS,UAAU,CACjB,KAAe,EACf,EACE,IAAI,EACJ,MAAM,EACN,SAAS,EAKV;IAED,OAAO;QACL,GAAG,KAAK;QACR,CAAC,IAAI,CAAC,EAAE;YACN,GAAI,KAAa,CAAC,IAAI,CAAC;YACvB,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,EAAE,SAAS;SAClC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,4BAA4B,CAAC,OAA0B;IAC9D,OAAO,CAAC,EACN,aAAa,EACb,SAAS,EACT,cAAc,EAKf,EAAE,EAAE;QACH,MAAM,EAAC,IAAI,EAAE,MAAM,EAAC,GAAG,aAAa,CAAC;QAErC,OAAO,IAAA,gDAAqB,EAAC,OAAO,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,KAAU,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAoB;IACtF,MAAM,KAAK,GAAG,IAAA,0CAAkB,EAAC,KAAK,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC;IAC5B,MAAM,YAAY,GAAG,IAAA,wBAAS,EAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAEpD,OAAO,GAAG;QACR,GAAG,OAAO;QACV,YAAY;KACb,CAAC;IAEF,OAAO,CAAC,GAAG,IAAA,4CAAmB,EAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;SAC5C,MAAM,CAAC,gDAAqB,CAAC;SAC7B,MAAM,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;SACtG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;SAC9B,OAAO,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;SAC9C,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAC/B,CAAC;AAhBD,kCAgBC;AAED,IAAA,uDAAwB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Children = void 0;
4
4
  const core_1 = require("@tsed/core");
5
- const jsonEntityFn_1 = require("../common/jsonEntityFn");
5
+ const jsonEntityFn_js_1 = require("../common/jsonEntityFn.js");
6
6
  /**
7
7
  * Add Children class to compose routes
8
8
  *
@@ -13,7 +13,7 @@ const jsonEntityFn_1 = require("../common/jsonEntityFn");
13
13
  * @param children
14
14
  */
15
15
  function Children(...children) {
16
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
16
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
17
17
  store.store.set("childrenControllers", children);
18
18
  children.forEach((childToken) => {
19
19
  core_1.Store.from(childToken).set("parentController", store.token);
@@ -1 +1 @@
1
- {"version":3,"file":"children.js","sourceRoot":"","sources":["../../../../src/decorators/class/children.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,yDAAoD;AAEpD;;;;;;;;GAQG;AACH,SAAgB,QAAQ,CAAC,GAAG,QAAqB;IAC/C,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC;QAEjD,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YAC9B,YAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AARD,4BAQC"}
1
+ {"version":3,"file":"children.js","sourceRoot":"","sources":["../../../../src/decorators/class/children.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,+DAAuD;AAEvD;;;;;;;;GAQG;AACH,SAAgB,QAAQ,CAAC,GAAG,QAAqB;IAC/C,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC;QAEjD,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YAC9B,YAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AARD,4BAQC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DiscriminatorValue = void 0;
4
4
  const change_case_1 = require("change-case");
5
- const jsonEntityFn_1 = require("../common/jsonEntityFn");
5
+ const jsonEntityFn_js_1 = require("../common/jsonEntityFn.js");
6
6
  /**
7
7
  * Declare a Discriminator value on a child class.
8
8
  *
@@ -45,7 +45,7 @@ const jsonEntityFn_1 = require("../common/jsonEntityFn");
45
45
  * @param values
46
46
  */
47
47
  function DiscriminatorValue(value, ...values) {
48
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
48
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
49
49
  value = value || (0, change_case_1.snakeCase)(store.targetName);
50
50
  if (store.discriminatorAncestor) {
51
51
  store.schema.discriminatorValue(value, ...values);
@@ -1 +1 @@
1
- {"version":3,"file":"discriminatorValue.js","sourceRoot":"","sources":["../../../../src/decorators/class/discriminatorValue.ts"],"names":[],"mappings":";;;AAAA,6CAAsC;AACtC,yDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,kBAAkB,CAAC,KAAc,EAAE,GAAG,MAAgB;IACpE,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,GAAG,KAAK,IAAI,IAAA,uBAAS,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,KAAK,CAAC,qBAAqB,EAAE;YAC/B,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,GAAG,MAAM,CAAC,CAAC;SACnD;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAPD,gDAOC"}
1
+ {"version":3,"file":"discriminatorValue.js","sourceRoot":"","sources":["../../../../src/decorators/class/discriminatorValue.ts"],"names":[],"mappings":";;;AAAA,6CAAsC;AACtC,+DAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,kBAAkB,CAAC,KAAc,EAAE,GAAG,MAAgB;IACpE,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,GAAG,KAAK,IAAI,IAAA,uBAAS,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,KAAK,CAAC,qBAAqB,EAAE;YAC/B,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,GAAG,MAAM,CAAC,CAAC;SACnD;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAPD,gDAOC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CollectionContains = void 0;
4
- const collectionOf_1 = require("./collectionOf");
4
+ const collectionOf_js_1 = require("./collectionOf.js");
5
5
  /**
6
6
  * Set the type of the item collection. The possible value is String, Boolean, Number, Date, Object, Class, etc...
7
7
  *
@@ -23,7 +23,7 @@ const collectionOf_1 = require("./collectionOf");
23
23
  * @collections
24
24
  */
25
25
  function CollectionContains(type) {
26
- return (0, collectionOf_1.CollectionOf)(type).Contains();
26
+ return (0, collectionOf_js_1.CollectionOf)(type).Contains();
27
27
  }
28
28
  exports.CollectionContains = CollectionContains;
29
29
  //# sourceMappingURL=collectionContains.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collectionContains.js","sourceRoot":"","sources":["../../../../src/decorators/collections/collectionContains.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,kBAAkB,CAAC,IAAS;IAC1C,OAAO,IAAA,2BAAY,EAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;AACvC,CAAC;AAFD,gDAEC"}
1
+ {"version":3,"file":"collectionContains.js","sourceRoot":"","sources":["../../../../src/decorators/collections/collectionContains.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,kBAAkB,CAAC,IAAS;IAC1C,OAAO,IAAA,8BAAY,EAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;AACvC,CAAC;AAFD,gDAEC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MapOf = exports.ArrayOf = exports.CollectionOf = void 0;
4
- const JsonEntityStore_1 = require("../../domain/JsonEntityStore");
4
+ const JsonEntityStore_js_1 = require("../../domain/JsonEntityStore.js");
5
5
  /**
6
6
  * Set the type of the item collection. The possible value is String, Boolean, Number, Date, Object, Class, etc...
7
7
  *
@@ -41,7 +41,7 @@ function CollectionOf(type, collectionType) {
41
41
  const schema = {};
42
42
  let contains = false;
43
43
  const decorator = (...args) => {
44
- const store = JsonEntityStore_1.JsonEntityStore.from(...args);
44
+ const store = JsonEntityStore_js_1.JsonEntityStore.from(...args);
45
45
  if (collectionType) {
46
46
  store.collectionType = collectionType;
47
47
  store.schema.type(collectionType);
@@ -1 +1 @@
1
- {"version":3,"file":"collectionOf.js","sourceRoot":"","sources":["../../../../src/decorators/collections/collectionOf.ts"],"names":[],"mappings":";;;AAAA,kEAA6D;AAkE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,SAAgB,YAAY,CAAC,IAAS,EAAE,cAAoB;IAC1D,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,KAAK,CACb,iJAAiJ,CAClJ,CAAC;KACH;IAED,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,IAAI,QAAQ,GAAY,KAAK,CAAC;IAE9B,MAAM,SAAS,GAAG,CAAC,GAAG,IAAS,EAAE,EAAE;QACjC,MAAM,KAAK,GAAG,iCAAe,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QAE5C,IAAI,cAAc,EAAE;YAClB,KAAK,CAAC,cAAc,GAAG,cAAc,CAAC;YACtC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACnC;QAED,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QAClB,KAAK,CAAC,UAAU,CAAC,IAAI,CAA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"__esModule", { value: true });
3
3
  exports.MaxItems = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const jsonEntityFn_1 = require("../common/jsonEntityFn");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const jsonEntityFn_js_1 = require("../common/jsonEntityFn.js");
6
6
  /**
7
7
  * The value `maxItems` MUST be a non-negative integer.
8
8
  *
@@ -50,11 +50,11 @@ const jsonEntityFn_1 = require("../common/jsonEntityFn");
50
50
  * @collections
51
51
  * @ajv-errors
52
52
  */
53
- exports.MaxItems = (0, withErrorMsg_1.withErrorMsg)("maxItems", (maxItems) => {
53
+ exports.MaxItems = (0, withErrorMsg_js_1.withErrorMsg)("maxItems", (maxItems) => {
54
54
  if (maxItems < 0) {
55
55
  throw new Error("The value of maxItems MUST be a non-negative integer.");
56
56
  }
57
- return (0, jsonEntityFn_1.JsonEntityFn)((storedJson) => {
57
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((storedJson) => {
58
58
  storedJson.schema.maxItems(maxItems);
59
59
  });
60
60
  });
@@ -1 +1 @@
1
- {"version":3,"file":"maxItems.js","sourceRoot":"","sources":["../../../../src/decorators/collections/maxItems.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,yDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACU,QAAA,QAAQ,GAAG,IAAA,2BAAY,EAAC,UAAU,EAAE,CAAC,QAAgB,EAAE,EAAE;IACpE,IAAI,QAAQ,GAAG,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;KAC1E;IAED,OAAO,IAAA,2BAAY,EAAC,CAAC,UAAU,EAAE,EAAE;QACjC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"maxItems.js","sourceRoot":"","sources":["../../../../src/decorators/collections/maxItems.ts"],"names":[],"mappings":";;;AAAA,iEAAyD;AACzD,+DAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACU,QAAA,QAAQ,GAAG,IAAA,8BAAY,EAAC,UAAU,EAAE,CAAC,QAAgB,EAAE,EAAE;IACpE,IAAI,QAAQ,GAAG,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;KAC1E;IAED,OAAO,IAAA,8BAAY,EAAC,CAAC,UAAU,EAAE,EAAE;QACjC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MaxProperties = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const jsonEntityFn_1 = require("../common/jsonEntityFn");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const jsonEntityFn_js_1 = require("../common/jsonEntityFn.js");
6
6
  /**
7
7
  * An object instance is valid against `maxProperties` if its number of properties is less than, or equal to, the value of this keyword.
8
8
  *
@@ -73,11 +73,11 @@ const jsonEntityFn_1 = require("../common/jsonEntityFn");
73
73
  * @collections
74
74
  * @ajv-errors
75
75
  */
76
- exports.MaxProperties = (0, withErrorMsg_1.withErrorMsg)("maxProperties", (maxProperties) => {
76
+ exports.MaxProperties = (0, withErrorMsg_js_1.withErrorMsg)("maxProperties", (maxProperties) => {
77
77
  if (maxProperties < 0) {
78
78
  throw new Error("The value of maxProperties MUST be a non-negative integer.");
79
79
  }
80
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
80
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
81
81
  store.isCollection ? store.schema.maxProperties(maxProperties) : store.itemSchema.maxProperties(maxProperties);
82
82
  });
83
83
  });
@@ -1 +1 @@
1
- {"version":3,"file":"maxProperties.js","sourceRoot":"","sources":["../../../../src/decorators/collections/maxProperties.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,yDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACU,QAAA,aAAa,GAAG,IAAA,2BAAY,EAAC,eAAe,EAAE,CAAC,aAAqB,EAAE,EAAE;IACnF,IAAI,aAAa,GAAG,CAAC,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;KAC/E;IAED,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACjH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"maxProperties.js","sourceRoot":"","sources":["../../../../src/decorators/collections/maxProperties.ts"],"names":[],"mappings":";;;AAAA,iEAAyD;AACzD,+DAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACU,QAAA,aAAa,GAAG,IAAA,8BAAY,EAAC,eAAe,EAAE,CAAC,aAAqB,EAAE,EAAE;IACnF,IAAI,aAAa,GAAG,CAAC,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;KAC/E;IAED,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACjH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MinItems = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const jsonEntityFn_1 = require("../common/jsonEntityFn");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const jsonEntityFn_js_1 = require("../common/jsonEntityFn.js");
6
6
  /**
7
7
  * An array instance is valid against `minItems` if its size is greater than, or equal to, the value of this keyword.
8
8
  *
@@ -54,11 +54,11 @@ const jsonEntityFn_1 = require("../common/jsonEntityFn");
54
54
  * @collections
55
55
  * @ajv-errors
56
56
  */
57
- exports.MinItems = (0, withErrorMsg_1.withErrorMsg)("minItems", (minItems) => {
57
+ exports.MinItems = (0, withErrorMsg_js_1.withErrorMsg)("minItems", (minItems) => {
58
58
  if (minItems < 0) {
59
59
  throw new Error("The value of minItems MUST be a non-negative integer.");
60
60
  }
61
- return (0, jsonEntityFn_1.JsonEntityFn)((storedJson) => {
61
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((storedJson) => {
62
62
  storedJson.schema.minItems(minItems);
63
63
  });
64
64
  });
@@ -1 +1 @@
1
- {"version":3,"file":"minItems.js","sourceRoot":"","sources":["../../../../src/decorators/collections/minItems.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,yDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACU,QAAA,QAAQ,GAAG,IAAA,2BAAY,EAAC,UAAU,EAAE,CAAC,QAAgB,EAAE,EAAE;IACpE,IAAI,QAAQ,GAAG,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;KAC1E;IAED,OAAO,IAAA,2BAAY,EAAC,CAAC,UAAU,EAAE,EAAE;QACjC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"minItems.js","sourceRoot":"","sources":["../../../../src/decorators/collections/minItems.ts"],"names":[],"mappings":";;;AAAA,iEAAyD;AACzD,+DAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACU,QAAA,QAAQ,GAAG,IAAA,8BAAY,EAAC,UAAU,EAAE,CAAC,QAAgB,EAAE,EAAE;IACpE,IAAI,QAAQ,GAAG,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;KAC1E;IAED,OAAO,IAAA,8BAAY,EAAC,CAAC,UAAU,EAAE,EAAE;QACjC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MinProperties = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const jsonEntityFn_1 = require("../common/jsonEntityFn");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const jsonEntityFn_js_1 = require("../common/jsonEntityFn.js");
6
6
  /**
7
7
  * An object instance is valid against `minProperties` if its number of properties is less than, or equal to, the value of this keyword.
8
8
  *
@@ -72,11 +72,11 @@ const jsonEntityFn_1 = require("../common/jsonEntityFn");
72
72
  * @collections
73
73
  * @ajv-errors
74
74
  */
75
- exports.MinProperties = (0, withErrorMsg_1.withErrorMsg)("minProperties", (minProperties) => {
75
+ exports.MinProperties = (0, withErrorMsg_js_1.withErrorMsg)("minProperties", (minProperties) => {
76
76
  if (minProperties < 0) {
77
77
  throw new Error("The value of minProperties MUST be a non-negative integer.");
78
78
  }
79
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
79
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
80
80
  store.isCollection ? store.schema.minProperties(minProperties) : store.itemSchema.minProperties(minProperties);
81
81
  });
82
82
  });
@@ -1 +1 @@
1
- {"version":3,"file":"minProperties.js","sourceRoot":"","sources":["../../../../src/decorators/collections/minProperties.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,yDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACU,QAAA,aAAa,GAAG,IAAA,2BAAY,EAAC,eAAe,EAAE,CAAC,aAAqB,EAAE,EAAE;IACnF,IAAI,aAAa,GAAG,CAAC,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;KAC/E;IAED,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACjH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"minProperties.js","sourceRoot":"","sources":["../../../../src/decorators/collections/minProperties.ts"],"names":[],"mappings":";;;AAAA,iEAAyD;AACzD,+DAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACU,QAAA,aAAa,GAAG,IAAA,8BAAY,EAAC,eAAe,EAAE,CAAC,aAAqB,EAAE,EAAE;IACnF,IAAI,aAAa,GAAG,CAAC,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;KAC/E;IAED,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACjH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UniqueItems = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const jsonEntityFn_1 = require("../common/jsonEntityFn");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const jsonEntityFn_js_1 = require("../common/jsonEntityFn.js");
6
6
  /**
7
7
  * If this keyword has boolean value false, the instance validates successfully. If it has boolean value true, the instance validates successfully if all of its elements are unique.
8
8
  *
@@ -53,8 +53,8 @@ const jsonEntityFn_1 = require("../common/jsonEntityFn");
53
53
  * @collections
54
54
  * @ajv-errors
55
55
  */
56
- exports.UniqueItems = (0, withErrorMsg_1.withErrorMsg)("uniqueItems", (uniqueItems = true) => {
57
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
56
+ exports.UniqueItems = (0, withErrorMsg_js_1.withErrorMsg)("uniqueItems", (uniqueItems = true) => {
57
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
58
58
  store.schema.uniqueItems(uniqueItems);
59
59
  });
60
60
  });
@@ -1 +1 @@
1
- {"version":3,"file":"uniqueItems.js","sourceRoot":"","sources":["../../../../src/decorators/collections/uniqueItems.ts"],"names":[],"mappings":";;;AACA,2DAAsD;AACtD,yDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACU,QAAA,WAAW,GAAG,IAAA,2BAAY,EAAC,aAAa,EAAE,CAAC,cAAuB,IAAI,EAAE,EAAE;IACrF,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"uniqueItems.js","sourceRoot":"","sources":["../../../../src/decorators/collections/uniqueItems.ts"],"names":[],"mappings":";;;AACA,iEAAyD;AACzD,+DAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACU,QAAA,WAAW,GAAG,IAAA,8BAAY,EAAC,aAAa,EAAE,CAAC,cAAuB,IAAI,EAAE,EAAE;IACrF,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdditionalProperties = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Accept unknown properties on the deserialized model.
7
7
  *
@@ -12,7 +12,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
12
12
  * @schema
13
13
  */
14
14
  function AdditionalProperties(schema) {
15
- return (0, jsonEntityFn_1.JsonEntityFn)((entity, parameters) => {
15
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((entity, parameters) => {
16
16
  entity.itemSchema.additionalProperties(schema);
17
17
  });
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"additionalProperties.js","sourceRoot":"","sources":["../../../../src/decorators/common/additionalProperties.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAE5C;;;;;;;;GAQG;AACH,SAAgB,oBAAoB,CAAC,MAA+B;IAClE,OAAO,IAAA,2BAAY,EAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,oDAIC"}
1
+ {"version":3,"file":"additionalProperties.js","sourceRoot":"","sources":["../../../../src/decorators/common/additionalProperties.ts"],"names":[],"mappings":";;;AACA,uDAA+C;AAE/C;;;;;;;;GAQG;AACH,SAAgB,oBAAoB,CAAC,MAA+B;IAClE,OAAO,IAAA,8BAAY,EAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,oDAIC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AllOf = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * See https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.26
7
7
  *
@@ -14,7 +14,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
14
14
  * @param allOf
15
15
  */
16
16
  function AllOf(...allOf) {
17
- return (0, jsonEntityFn_1.JsonEntityFn)((entity) => {
17
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((entity) => {
18
18
  entity.itemSchema.allOf(allOf);
19
19
  });
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"allOf.js","sourceRoot":"","sources":["../../../../src/decorators/common/allOf.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAE5C;;;;;;;;;;GAUG;AACH,SAAgB,KAAK,CAAC,GAAG,KAAsB;IAC7C,OAAO,IAAA,2BAAY,EAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"}
1
+ {"version":3,"file":"allOf.js","sourceRoot":"","sources":["../../../../src/decorators/common/allOf.ts"],"names":[],"mappings":";;;AACA,uDAA+C;AAE/C;;;;;;;;;;GAUG;AACH,SAAgB,KAAK,CAAC,GAAG,KAAsB;IAC7C,OAAO,IAAA,8BAAY,EAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Allow = void 0;
4
4
  const core_1 = require("@tsed/core");
5
- const jsonEntityFn_1 = require("./jsonEntityFn");
6
- const property_1 = require("./property");
5
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
6
+ const property_js_1 = require("./property.js");
7
7
  /**
8
8
  * Add allowed values when the property or parameters is required.
9
9
  *
@@ -33,7 +33,7 @@ const property_1 = require("./property");
33
33
  */
34
34
  function Allow(...values) {
35
35
  const model = values.find((item) => (0, core_1.isClass)(item));
36
- return (0, core_1.useDecorators)(model && (0, property_1.Property)(model), (0, jsonEntityFn_1.JsonEntityFn)((store, args) => {
36
+ return (0, core_1.useDecorators)(model && (0, property_js_1.Property)(model), (0, jsonEntityFn_js_1.JsonEntityFn)((store, args) => {
37
37
  store.schema.allow(...values);
38
38
  if (store.decoratorType === core_1.DecoratorTypes.PARAM) {
39
39
  store.required = true;
@@ -1 +1 @@
1
- {"version":3,"file":"allow.js","sourceRoot":"","sources":["../../../../src/decorators/common/allow.ts"],"names":[],"mappings":";;;AAAA,qCAAkE;AAClE,iDAA4C;AAC5C,yCAAoC;AAGpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,KAAK,CAAC,GAAG,MAAa;IACpC,MAAM,KA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,QAAQ,GAAG,IAAI,CAAC;SAC/C;QAED,IAAI,KAAK,CAAC,aAAa,KAAK,qBAAc,CAAC,IAAI,EAAE;YAC/C,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;SACpD;IACH,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AAhBD,sBAgBC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Any = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Set the type of the array items.
7
7
  *
@@ -38,7 +38,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
38
38
  * @input
39
39
  */
40
40
  function Any(...types) {
41
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
41
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
42
42
  store.itemSchema.any(...types);
43
43
  });
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"any.js","sourceRoot":"","sources":["../../../../src/decorators/common/any.ts"],"names":[],"mappings":";;;AAEA,iDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,GAAG,CAAC,GAAG,KAAgD;IACrE,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,kBAIC"}
1
+ {"version":3,"file":"any.js","sourceRoot":"","sources":["../../../../src/decorators/common/any.ts"],"names":[],"mappings":";;;AAEA,uDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,GAAG,CAAC,GAAG,KAAgD;IACrE,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,kBAIC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AnyOf = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * See https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.27
7
7
  *
@@ -18,7 +18,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
18
18
  * @param anyOf
19
19
  */
20
20
  function AnyOf(...anyOf) {
21
- return (0, jsonEntityFn_1.JsonEntityFn)((entity) => {
21
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((entity) => {
22
22
  entity.itemSchema.anyOf(anyOf);
23
23
  });
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"anyOf.js","sourceRoot":"","sources":["../../../../src/decorators/common/anyOf.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAE5C;;;;;;;;;;;;;;GAcG;AACH,SAAgB,KAAK,CAAC,GAAG,KAAsB;IAC7C,OAAO,IAAA,2BAAY,EAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"}
1
+ {"version":3,"file":"anyOf.js","sourceRoot":"","sources":["../../../../src/decorators/common/anyOf.ts"],"names":[],"mappings":";;;AACA,uDAA+C;AAE/C;;;;;;;;;;;;;;GAcG;AACH,SAAgB,KAAK,CAAC,GAAG,KAAsB;IAC7C,OAAO,IAAA,8BAAY,EAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"}