@tsed/schema 7.70.2 → 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 (528) hide show
  1. package/.barrelsby.json +1 -1
  2. package/jest.config.js +2 -0
  3. package/lib/browser/schema.umd.min.js.map +1 -1
  4. package/lib/cjs/components/async-api/channelsMapper.js +13 -13
  5. package/lib/cjs/components/async-api/channelsMapper.js.map +1 -1
  6. package/lib/cjs/components/async-api/generate.js +4 -4
  7. package/lib/cjs/components/async-api/generate.js.map +1 -1
  8. package/lib/cjs/components/async-api/messageMapper.js +11 -11
  9. package/lib/cjs/components/async-api/messageMapper.js.map +1 -1
  10. package/lib/cjs/components/async-api/payloadMapper.js +14 -14
  11. package/lib/cjs/components/async-api/payloadMapper.js.map +1 -1
  12. package/lib/cjs/components/async-api/responseMapper.js +7 -7
  13. package/lib/cjs/components/async-api/responseMapper.js.map +1 -1
  14. package/lib/cjs/components/default/anyMapper.js +14 -14
  15. package/lib/cjs/components/default/anyMapper.js.map +1 -1
  16. package/lib/cjs/components/default/classMapper.js +13 -13
  17. package/lib/cjs/components/default/classMapper.js.map +1 -1
  18. package/lib/cjs/components/default/genericsMapper.js +10 -10
  19. package/lib/cjs/components/default/genericsMapper.js.map +1 -1
  20. package/lib/cjs/components/default/inheritedClassMapper.js +5 -5
  21. package/lib/cjs/components/default/inheritedClassMapper.js.map +1 -1
  22. package/lib/cjs/components/default/itemMapper.js +3 -3
  23. package/lib/cjs/components/default/itemMapper.js.map +1 -1
  24. package/lib/cjs/components/default/lazyRefMapper.js +7 -7
  25. package/lib/cjs/components/default/lazyRefMapper.js.map +1 -1
  26. package/lib/cjs/components/default/mapMapper.js +5 -5
  27. package/lib/cjs/components/default/mapMapper.js.map +1 -1
  28. package/lib/cjs/components/default/objectMapper.js +7 -7
  29. package/lib/cjs/components/default/objectMapper.js.map +1 -1
  30. package/lib/cjs/components/default/ofMapper.js +5 -5
  31. package/lib/cjs/components/default/ofMapper.js.map +1 -1
  32. package/lib/cjs/components/default/propertiesMapper.js +13 -13
  33. package/lib/cjs/components/default/propertiesMapper.js.map +1 -1
  34. package/lib/cjs/components/default/schemaMapper.js +22 -22
  35. package/lib/cjs/components/default/schemaMapper.js.map +1 -1
  36. package/lib/cjs/components/index.js +29 -29
  37. package/lib/cjs/components/index.js.map +1 -1
  38. package/lib/cjs/components/open-spec/generate.js +6 -6
  39. package/lib/cjs/components/open-spec/generate.js.map +1 -1
  40. package/lib/cjs/components/open-spec/operationInFilesMapper.js +2 -2
  41. package/lib/cjs/components/open-spec/operationInFilesMapper.js.map +1 -1
  42. package/lib/cjs/components/open-spec/operationInParameterMapper.js +10 -10
  43. package/lib/cjs/components/open-spec/operationInParameterMapper.js.map +1 -1
  44. package/lib/cjs/components/open-spec/operationInParametersMapper.js +3 -3
  45. package/lib/cjs/components/open-spec/operationInParametersMapper.js.map +1 -1
  46. package/lib/cjs/components/open-spec/operationInQueryMapper.js +4 -4
  47. package/lib/cjs/components/open-spec/operationInQueryMapper.js.map +1 -1
  48. package/lib/cjs/components/open-spec/operationMapper.js +10 -10
  49. package/lib/cjs/components/open-spec/operationMapper.js.map +1 -1
  50. package/lib/cjs/components/open-spec/operationMediaMapper.js +3 -3
  51. package/lib/cjs/components/open-spec/operationMediaMapper.js.map +1 -1
  52. package/lib/cjs/components/open-spec/operationRequestBodyMapper.js +8 -8
  53. package/lib/cjs/components/open-spec/operationRequestBodyMapper.js.map +1 -1
  54. package/lib/cjs/components/open-spec/operationResponseMapper.js +3 -3
  55. package/lib/cjs/components/open-spec/operationResponseMapper.js.map +1 -1
  56. package/lib/cjs/components/open-spec/pathsMapper.js +27 -27
  57. package/lib/cjs/components/open-spec/pathsMapper.js.map +1 -1
  58. package/lib/cjs/decorators/class/children.js +2 -2
  59. package/lib/cjs/decorators/class/children.js.map +1 -1
  60. package/lib/cjs/decorators/class/discriminatorValue.js +2 -2
  61. package/lib/cjs/decorators/class/discriminatorValue.js.map +1 -1
  62. package/lib/cjs/decorators/collections/collectionContains.js +2 -2
  63. package/lib/cjs/decorators/collections/collectionContains.js.map +1 -1
  64. package/lib/cjs/decorators/collections/collectionOf.js +2 -2
  65. package/lib/cjs/decorators/collections/collectionOf.js.map +1 -1
  66. package/lib/cjs/decorators/collections/maxItems.js +4 -4
  67. package/lib/cjs/decorators/collections/maxItems.js.map +1 -1
  68. package/lib/cjs/decorators/collections/maxProperties.js +4 -4
  69. package/lib/cjs/decorators/collections/maxProperties.js.map +1 -1
  70. package/lib/cjs/decorators/collections/minItems.js +4 -4
  71. package/lib/cjs/decorators/collections/minItems.js.map +1 -1
  72. package/lib/cjs/decorators/collections/minProperties.js +4 -4
  73. package/lib/cjs/decorators/collections/minProperties.js.map +1 -1
  74. package/lib/cjs/decorators/collections/uniqueItems.js +4 -4
  75. package/lib/cjs/decorators/collections/uniqueItems.js.map +1 -1
  76. package/lib/cjs/decorators/common/additionalProperties.js +2 -2
  77. package/lib/cjs/decorators/common/additionalProperties.js.map +1 -1
  78. package/lib/cjs/decorators/common/allOf.js +2 -2
  79. package/lib/cjs/decorators/common/allOf.js.map +1 -1
  80. package/lib/cjs/decorators/common/allow.js +3 -3
  81. package/lib/cjs/decorators/common/allow.js.map +1 -1
  82. package/lib/cjs/decorators/common/any.js +2 -2
  83. package/lib/cjs/decorators/common/any.js.map +1 -1
  84. package/lib/cjs/decorators/common/anyOf.js +2 -2
  85. package/lib/cjs/decorators/common/anyOf.js.map +1 -1
  86. package/lib/cjs/decorators/common/const.js +2 -2
  87. package/lib/cjs/decorators/common/const.js.map +1 -1
  88. package/lib/cjs/decorators/common/customKey.js +3 -3
  89. package/lib/cjs/decorators/common/customKey.js.map +1 -1
  90. package/lib/cjs/decorators/common/default.js +2 -2
  91. package/lib/cjs/decorators/common/default.js.map +1 -1
  92. package/lib/cjs/decorators/common/defaultMsg.js +2 -2
  93. package/lib/cjs/decorators/common/defaultMsg.js.map +1 -1
  94. package/lib/cjs/decorators/common/description.js +2 -2
  95. package/lib/cjs/decorators/common/description.js.map +1 -1
  96. package/lib/cjs/decorators/common/discriminatorKey.js +3 -3
  97. package/lib/cjs/decorators/common/discriminatorKey.js.map +1 -1
  98. package/lib/cjs/decorators/common/enum.js +4 -4
  99. package/lib/cjs/decorators/common/enum.js.map +1 -1
  100. package/lib/cjs/decorators/common/errorMsg.js +2 -2
  101. package/lib/cjs/decorators/common/errorMsg.js.map +1 -1
  102. package/lib/cjs/decorators/common/example.js +2 -2
  103. package/lib/cjs/decorators/common/example.js.map +1 -1
  104. package/lib/cjs/decorators/common/examples.js +2 -2
  105. package/lib/cjs/decorators/common/examples.js.map +1 -1
  106. package/lib/cjs/decorators/common/exclusiveMaximum.js +4 -4
  107. package/lib/cjs/decorators/common/exclusiveMaximum.js.map +1 -1
  108. package/lib/cjs/decorators/common/exclusiveMinimum.js +4 -4
  109. package/lib/cjs/decorators/common/exclusiveMinimum.js.map +1 -1
  110. package/lib/cjs/decorators/common/format.js +17 -17
  111. package/lib/cjs/decorators/common/format.js.map +1 -1
  112. package/lib/cjs/decorators/common/forwardGroups.js +2 -2
  113. package/lib/cjs/decorators/common/forwardGroups.js.map +1 -1
  114. package/lib/cjs/decorators/common/groups.js +4 -4
  115. package/lib/cjs/decorators/common/groups.js.map +1 -1
  116. package/lib/cjs/decorators/common/ignore.js +3 -3
  117. package/lib/cjs/decorators/common/ignore.js.map +1 -1
  118. package/lib/cjs/decorators/common/integer.js +2 -2
  119. package/lib/cjs/decorators/common/integer.js.map +1 -1
  120. package/lib/cjs/decorators/common/jsonEntityFn.js +2 -2
  121. package/lib/cjs/decorators/common/jsonEntityFn.js.map +1 -1
  122. package/lib/cjs/decorators/common/maxLength.js +4 -4
  123. package/lib/cjs/decorators/common/maxLength.js.map +1 -1
  124. package/lib/cjs/decorators/common/maximum.js +4 -4
  125. package/lib/cjs/decorators/common/maximum.js.map +1 -1
  126. package/lib/cjs/decorators/common/minLength.js +4 -4
  127. package/lib/cjs/decorators/common/minLength.js.map +1 -1
  128. package/lib/cjs/decorators/common/minimum.js +4 -4
  129. package/lib/cjs/decorators/common/minimum.js.map +1 -1
  130. package/lib/cjs/decorators/common/multipleOf.js +4 -4
  131. package/lib/cjs/decorators/common/multipleOf.js.map +1 -1
  132. package/lib/cjs/decorators/common/name.js +2 -2
  133. package/lib/cjs/decorators/common/name.js.map +1 -1
  134. package/lib/cjs/decorators/common/nullable.js +3 -3
  135. package/lib/cjs/decorators/common/nullable.js.map +1 -1
  136. package/lib/cjs/decorators/common/oneOf.js +2 -2
  137. package/lib/cjs/decorators/common/oneOf.js.map +1 -1
  138. package/lib/cjs/decorators/common/optional.js +2 -2
  139. package/lib/cjs/decorators/common/optional.js.map +1 -1
  140. package/lib/cjs/decorators/common/pattern.js +4 -4
  141. package/lib/cjs/decorators/common/pattern.js.map +1 -1
  142. package/lib/cjs/decorators/common/property.js +2 -2
  143. package/lib/cjs/decorators/common/property.js.map +1 -1
  144. package/lib/cjs/decorators/common/readOnly.js +2 -2
  145. package/lib/cjs/decorators/common/readOnly.js.map +1 -1
  146. package/lib/cjs/decorators/common/recordOf.js +2 -2
  147. package/lib/cjs/decorators/common/recordOf.js.map +1 -1
  148. package/lib/cjs/decorators/common/required.js +5 -5
  149. package/lib/cjs/decorators/common/required.js.map +1 -1
  150. package/lib/cjs/decorators/common/requiredGroups.js +4 -4
  151. package/lib/cjs/decorators/common/requiredGroups.js.map +1 -1
  152. package/lib/cjs/decorators/common/schema.js +3 -3
  153. package/lib/cjs/decorators/common/schema.js.map +1 -1
  154. package/lib/cjs/decorators/common/title.js +2 -2
  155. package/lib/cjs/decorators/common/title.js.map +1 -1
  156. package/lib/cjs/decorators/common/typeError.js +3 -3
  157. package/lib/cjs/decorators/common/typeError.js.map +1 -1
  158. package/lib/cjs/decorators/common/writeOnly.js +2 -2
  159. package/lib/cjs/decorators/common/writeOnly.js.map +1 -1
  160. package/lib/cjs/decorators/config/jsonEntityComponent.js +2 -2
  161. package/lib/cjs/decorators/config/jsonEntityComponent.js.map +1 -1
  162. package/lib/cjs/decorators/generics/genericOf.js +4 -4
  163. package/lib/cjs/decorators/generics/genericOf.js.map +1 -1
  164. package/lib/cjs/decorators/generics/generics.js +2 -2
  165. package/lib/cjs/decorators/generics/generics.js.map +1 -1
  166. package/lib/cjs/decorators/operations/acceptMime.js +2 -2
  167. package/lib/cjs/decorators/operations/acceptMime.js.map +1 -1
  168. package/lib/cjs/decorators/operations/consumes.js +2 -2
  169. package/lib/cjs/decorators/operations/consumes.js.map +1 -1
  170. package/lib/cjs/decorators/operations/contentType.js +2 -2
  171. package/lib/cjs/decorators/operations/contentType.js.map +1 -1
  172. package/lib/cjs/decorators/operations/deprecated.js +2 -2
  173. package/lib/cjs/decorators/operations/deprecated.js.map +1 -1
  174. package/lib/cjs/decorators/operations/header.js +2 -2
  175. package/lib/cjs/decorators/operations/header.js.map +1 -1
  176. package/lib/cjs/decorators/operations/in.js +6 -6
  177. package/lib/cjs/decorators/operations/in.js.map +1 -1
  178. package/lib/cjs/decorators/operations/inFile.js +6 -6
  179. package/lib/cjs/decorators/operations/inFile.js.map +1 -1
  180. package/lib/cjs/decorators/operations/location.js +2 -2
  181. package/lib/cjs/decorators/operations/location.js.map +1 -1
  182. package/lib/cjs/decorators/operations/operation.js +6 -6
  183. package/lib/cjs/decorators/operations/operation.js.map +1 -1
  184. package/lib/cjs/decorators/operations/operationId.js +2 -2
  185. package/lib/cjs/decorators/operations/operationId.js.map +1 -1
  186. package/lib/cjs/decorators/operations/operationPath.js +2 -2
  187. package/lib/cjs/decorators/operations/operationPath.js.map +1 -1
  188. package/lib/cjs/decorators/operations/partial.js +2 -2
  189. package/lib/cjs/decorators/operations/partial.js.map +1 -1
  190. package/lib/cjs/decorators/operations/path.js +2 -2
  191. package/lib/cjs/decorators/operations/path.js.map +1 -1
  192. package/lib/cjs/decorators/operations/produces.js +2 -2
  193. package/lib/cjs/decorators/operations/produces.js.map +1 -1
  194. package/lib/cjs/decorators/operations/publish.js +3 -3
  195. package/lib/cjs/decorators/operations/publish.js.map +1 -1
  196. package/lib/cjs/decorators/operations/redirect.js +3 -3
  197. package/lib/cjs/decorators/operations/redirect.js.map +1 -1
  198. package/lib/cjs/decorators/operations/returns.js +20 -20
  199. package/lib/cjs/decorators/operations/returns.js.map +1 -1
  200. package/lib/cjs/decorators/operations/route.js +11 -11
  201. package/lib/cjs/decorators/operations/route.js.map +1 -1
  202. package/lib/cjs/decorators/operations/security.js +2 -2
  203. package/lib/cjs/decorators/operations/security.js.map +1 -1
  204. package/lib/cjs/decorators/operations/status.js +2 -2
  205. package/lib/cjs/decorators/operations/status.js.map +1 -1
  206. package/lib/cjs/decorators/operations/subscribe.js +3 -3
  207. package/lib/cjs/decorators/operations/subscribe.js.map +1 -1
  208. package/lib/cjs/decorators/operations/summary.js +2 -2
  209. package/lib/cjs/decorators/operations/summary.js.map +1 -1
  210. package/lib/cjs/decorators/operations/tags.js +2 -2
  211. package/lib/cjs/decorators/operations/tags.js.map +1 -1
  212. package/lib/cjs/domain/DecoratorContext.js +2 -2
  213. package/lib/cjs/domain/DecoratorContext.js.map +1 -1
  214. package/lib/cjs/domain/JsonClassStore.js +6 -6
  215. package/lib/cjs/domain/JsonClassStore.js.map +1 -1
  216. package/lib/cjs/domain/JsonEntityStore.js.map +1 -1
  217. package/lib/cjs/domain/JsonLazyRef.js +2 -2
  218. package/lib/cjs/domain/JsonLazyRef.js.map +1 -1
  219. package/lib/cjs/domain/JsonMap.js +2 -2
  220. package/lib/cjs/domain/JsonMap.js.map +1 -1
  221. package/lib/cjs/domain/JsonMedia.js +2 -2
  222. package/lib/cjs/domain/JsonMedia.js.map +1 -1
  223. package/lib/cjs/domain/JsonMethodStore.js +10 -10
  224. package/lib/cjs/domain/JsonMethodStore.js.map +1 -1
  225. package/lib/cjs/domain/JsonOperation.js +8 -8
  226. package/lib/cjs/domain/JsonOperation.js.map +1 -1
  227. package/lib/cjs/domain/JsonOperationRoute.js +2 -2
  228. package/lib/cjs/domain/JsonOperationRoute.js.map +1 -1
  229. package/lib/cjs/domain/JsonParameter.js +6 -6
  230. package/lib/cjs/domain/JsonParameter.js.map +1 -1
  231. package/lib/cjs/domain/JsonParameterStore.js +13 -13
  232. package/lib/cjs/domain/JsonParameterStore.js.map +1 -1
  233. package/lib/cjs/domain/JsonPropertyStore.js +8 -8
  234. package/lib/cjs/domain/JsonPropertyStore.js.map +1 -1
  235. package/lib/cjs/domain/JsonRequestBody.js +5 -5
  236. package/lib/cjs/domain/JsonRequestBody.js.map +1 -1
  237. package/lib/cjs/domain/JsonResponse.js +8 -8
  238. package/lib/cjs/domain/JsonResponse.js.map +1 -1
  239. package/lib/cjs/domain/JsonSchema.js +28 -28
  240. package/lib/cjs/domain/JsonSchema.js.map +1 -1
  241. package/lib/cjs/index.js +180 -179
  242. package/lib/cjs/index.js.map +1 -1
  243. package/lib/cjs/utils/from.js +18 -18
  244. package/lib/cjs/utils/from.js.map +1 -1
  245. package/lib/cjs/utils/generateSpec.js +12 -12
  246. package/lib/cjs/utils/generateSpec.js.map +1 -1
  247. package/lib/cjs/utils/getInheritedStores.js +3 -3
  248. package/lib/cjs/utils/getInheritedStores.js.map +1 -1
  249. package/lib/cjs/utils/getJsonEntityStore.js +10 -10
  250. package/lib/cjs/utils/getJsonEntityStore.js.map +1 -1
  251. package/lib/cjs/utils/getJsonSchema.js +7 -7
  252. package/lib/cjs/utils/getJsonSchema.js.map +1 -1
  253. package/lib/cjs/utils/getOperationsRoutes.js +8 -8
  254. package/lib/cjs/utils/getOperationsRoutes.js.map +1 -1
  255. package/lib/cjs/utils/getOperationsStores.js +8 -8
  256. package/lib/cjs/utils/getOperationsStores.js.map +1 -1
  257. package/lib/cjs/utils/getPropertiesStores.js +6 -6
  258. package/lib/cjs/utils/getPropertiesStores.js.map +1 -1
  259. package/lib/cjs/utils/getRequiredProperties.js +2 -2
  260. package/lib/cjs/utils/getRequiredProperties.js.map +1 -1
  261. package/lib/cjs/utils/getSpec.js +10 -10
  262. package/lib/cjs/utils/getSpec.js.map +1 -1
  263. package/lib/cjs/utils/getSpecType.js +3 -3
  264. package/lib/cjs/utils/getSpecType.js.map +1 -1
  265. package/lib/cjs/utils/mapNullableType.js +3 -3
  266. package/lib/cjs/utils/mapNullableType.js.map +1 -1
  267. package/lib/cjs/utils/mapOpenSpec.js +13 -13
  268. package/lib/cjs/utils/mapOpenSpec.js.map +1 -1
  269. package/lib/cjs/utils/mapOpenSpec2.js +2 -2
  270. package/lib/cjs/utils/mapOpenSpec2.js.map +1 -1
  271. package/lib/cjs/utils/mapOpenSpec3.js +2 -2
  272. package/lib/cjs/utils/mapOpenSpec3.js.map +1 -1
  273. package/lib/cjs/utils/mapOperationOptions.js +3 -3
  274. package/lib/cjs/utils/mapOperationOptions.js.map +1 -1
  275. package/lib/cjs/utils/ref.js +4 -4
  276. package/lib/cjs/utils/ref.js.map +1 -1
  277. package/lib/cjs/utils/toJsonMapCollection.js +3 -3
  278. package/lib/cjs/utils/toJsonMapCollection.js.map +1 -1
  279. package/lib/cjs/utils/withErrorMsg.js +2 -2
  280. package/lib/cjs/utils/withErrorMsg.js.map +1 -1
  281. package/lib/esm/components/async-api/channelsMapper.js.map +1 -1
  282. package/lib/esm/components/async-api/generate.js.map +1 -1
  283. package/lib/esm/components/async-api/messageMapper.js.map +1 -1
  284. package/lib/esm/components/async-api/payloadMapper.js.map +1 -1
  285. package/lib/esm/components/async-api/responseMapper.js.map +1 -1
  286. package/lib/esm/components/default/anyMapper.js.map +1 -1
  287. package/lib/esm/components/default/classMapper.js.map +1 -1
  288. package/lib/esm/components/default/genericsMapper.js.map +1 -1
  289. package/lib/esm/components/default/inheritedClassMapper.js.map +1 -1
  290. package/lib/esm/components/default/itemMapper.js.map +1 -1
  291. package/lib/esm/components/default/lazyRefMapper.js.map +1 -1
  292. package/lib/esm/components/default/mapMapper.js.map +1 -1
  293. package/lib/esm/components/default/objectMapper.js.map +1 -1
  294. package/lib/esm/components/default/ofMapper.js.map +1 -1
  295. package/lib/esm/components/default/propertiesMapper.js.map +1 -1
  296. package/lib/esm/components/default/schemaMapper.js.map +1 -1
  297. package/lib/esm/components/index.js +1 -1
  298. package/lib/esm/components/index.js.map +1 -1
  299. package/lib/esm/components/open-spec/generate.js.map +1 -1
  300. package/lib/esm/components/open-spec/operationInFilesMapper.js.map +1 -1
  301. package/lib/esm/components/open-spec/operationInParameterMapper.js.map +1 -1
  302. package/lib/esm/components/open-spec/operationInParametersMapper.js.map +1 -1
  303. package/lib/esm/components/open-spec/operationInQueryMapper.js.map +1 -1
  304. package/lib/esm/components/open-spec/operationMapper.js.map +1 -1
  305. package/lib/esm/components/open-spec/operationMediaMapper.js.map +1 -1
  306. package/lib/esm/components/open-spec/operationRequestBodyMapper.js.map +1 -1
  307. package/lib/esm/components/open-spec/operationResponseMapper.js.map +1 -1
  308. package/lib/esm/components/open-spec/pathsMapper.js.map +1 -1
  309. package/lib/esm/decorators/class/children.js.map +1 -1
  310. package/lib/esm/decorators/class/discriminatorValue.js.map +1 -1
  311. package/lib/esm/decorators/collections/collectionContains.js.map +1 -1
  312. package/lib/esm/decorators/collections/collectionOf.js.map +1 -1
  313. package/lib/esm/decorators/collections/maxItems.js.map +1 -1
  314. package/lib/esm/decorators/collections/maxProperties.js.map +1 -1
  315. package/lib/esm/decorators/collections/minItems.js.map +1 -1
  316. package/lib/esm/decorators/collections/minProperties.js.map +1 -1
  317. package/lib/esm/decorators/collections/uniqueItems.js.map +1 -1
  318. package/lib/esm/decorators/common/additionalProperties.js.map +1 -1
  319. package/lib/esm/decorators/common/allOf.js.map +1 -1
  320. package/lib/esm/decorators/common/allow.js.map +1 -1
  321. package/lib/esm/decorators/common/any.js.map +1 -1
  322. package/lib/esm/decorators/common/anyOf.js.map +1 -1
  323. package/lib/esm/decorators/common/const.js.map +1 -1
  324. package/lib/esm/decorators/common/customKey.js.map +1 -1
  325. package/lib/esm/decorators/common/default.js.map +1 -1
  326. package/lib/esm/decorators/common/defaultMsg.js.map +1 -1
  327. package/lib/esm/decorators/common/description.js.map +1 -1
  328. package/lib/esm/decorators/common/discriminatorKey.js.map +1 -1
  329. package/lib/esm/decorators/common/enum.js.map +1 -1
  330. package/lib/esm/decorators/common/errorMsg.js.map +1 -1
  331. package/lib/esm/decorators/common/example.js.map +1 -1
  332. package/lib/esm/decorators/common/examples.js.map +1 -1
  333. package/lib/esm/decorators/common/exclusiveMaximum.js.map +1 -1
  334. package/lib/esm/decorators/common/exclusiveMinimum.js.map +1 -1
  335. package/lib/esm/decorators/common/format.js.map +1 -1
  336. package/lib/esm/decorators/common/forwardGroups.js.map +1 -1
  337. package/lib/esm/decorators/common/groups.js.map +1 -1
  338. package/lib/esm/decorators/common/ignore.js +1 -1
  339. package/lib/esm/decorators/common/ignore.js.map +1 -1
  340. package/lib/esm/decorators/common/integer.js.map +1 -1
  341. package/lib/esm/decorators/common/jsonEntityFn.js.map +1 -1
  342. package/lib/esm/decorators/common/maxLength.js.map +1 -1
  343. package/lib/esm/decorators/common/maximum.js.map +1 -1
  344. package/lib/esm/decorators/common/minLength.js.map +1 -1
  345. package/lib/esm/decorators/common/minimum.js.map +1 -1
  346. package/lib/esm/decorators/common/multipleOf.js.map +1 -1
  347. package/lib/esm/decorators/common/name.js.map +1 -1
  348. package/lib/esm/decorators/common/nullable.js.map +1 -1
  349. package/lib/esm/decorators/common/oneOf.js.map +1 -1
  350. package/lib/esm/decorators/common/optional.js.map +1 -1
  351. package/lib/esm/decorators/common/pattern.js.map +1 -1
  352. package/lib/esm/decorators/common/property.js.map +1 -1
  353. package/lib/esm/decorators/common/readOnly.js.map +1 -1
  354. package/lib/esm/decorators/common/recordOf.js.map +1 -1
  355. package/lib/esm/decorators/common/required.js.map +1 -1
  356. package/lib/esm/decorators/common/requiredGroups.js.map +1 -1
  357. package/lib/esm/decorators/common/schema.js.map +1 -1
  358. package/lib/esm/decorators/common/title.js.map +1 -1
  359. package/lib/esm/decorators/common/typeError.js.map +1 -1
  360. package/lib/esm/decorators/common/writeOnly.js.map +1 -1
  361. package/lib/esm/decorators/config/jsonEntityComponent.js.map +1 -1
  362. package/lib/esm/decorators/generics/genericOf.js.map +1 -1
  363. package/lib/esm/decorators/generics/generics.js.map +1 -1
  364. package/lib/esm/decorators/operations/acceptMime.js.map +1 -1
  365. package/lib/esm/decorators/operations/consumes.js.map +1 -1
  366. package/lib/esm/decorators/operations/contentType.js.map +1 -1
  367. package/lib/esm/decorators/operations/deprecated.js.map +1 -1
  368. package/lib/esm/decorators/operations/header.js.map +1 -1
  369. package/lib/esm/decorators/operations/in.js.map +1 -1
  370. package/lib/esm/decorators/operations/inFile.js.map +1 -1
  371. package/lib/esm/decorators/operations/location.js.map +1 -1
  372. package/lib/esm/decorators/operations/operation.js.map +1 -1
  373. package/lib/esm/decorators/operations/operationId.js.map +1 -1
  374. package/lib/esm/decorators/operations/operationPath.js.map +1 -1
  375. package/lib/esm/decorators/operations/partial.js.map +1 -1
  376. package/lib/esm/decorators/operations/path.js.map +1 -1
  377. package/lib/esm/decorators/operations/produces.js.map +1 -1
  378. package/lib/esm/decorators/operations/publish.js.map +1 -1
  379. package/lib/esm/decorators/operations/redirect.js.map +1 -1
  380. package/lib/esm/decorators/operations/returns.js.map +1 -1
  381. package/lib/esm/decorators/operations/route.js.map +1 -1
  382. package/lib/esm/decorators/operations/security.js.map +1 -1
  383. package/lib/esm/decorators/operations/status.js.map +1 -1
  384. package/lib/esm/decorators/operations/subscribe.js.map +1 -1
  385. package/lib/esm/decorators/operations/summary.js.map +1 -1
  386. package/lib/esm/decorators/operations/tags.js.map +1 -1
  387. package/lib/esm/domain/DecoratorContext.js.map +1 -1
  388. package/lib/esm/domain/JsonClassStore.js.map +1 -1
  389. package/lib/esm/domain/JsonEntityStore.js.map +1 -1
  390. package/lib/esm/domain/JsonLazyRef.js.map +1 -1
  391. package/lib/esm/domain/JsonMap.js.map +1 -1
  392. package/lib/esm/domain/JsonMedia.js.map +1 -1
  393. package/lib/esm/domain/JsonMethodStore.js.map +1 -1
  394. package/lib/esm/domain/JsonOperation.js.map +1 -1
  395. package/lib/esm/domain/JsonOperationRoute.js.map +1 -1
  396. package/lib/esm/domain/JsonParameter.js.map +1 -1
  397. package/lib/esm/domain/JsonParameterStore.js.map +1 -1
  398. package/lib/esm/domain/JsonPropertyStore.js.map +1 -1
  399. package/lib/esm/domain/JsonRequestBody.js.map +1 -1
  400. package/lib/esm/domain/JsonResponse.js.map +1 -1
  401. package/lib/esm/domain/JsonSchema.js.map +1 -1
  402. package/lib/esm/index.js +6 -5
  403. package/lib/esm/index.js.map +1 -1
  404. package/lib/esm/utils/from.js.map +1 -1
  405. package/lib/esm/utils/generateSpec.js.map +1 -1
  406. package/lib/esm/utils/getInheritedStores.js.map +1 -1
  407. package/lib/esm/utils/getJsonEntityStore.js.map +1 -1
  408. package/lib/esm/utils/getJsonSchema.js.map +1 -1
  409. package/lib/esm/utils/getOperationsRoutes.js.map +1 -1
  410. package/lib/esm/utils/getOperationsStores.js.map +1 -1
  411. package/lib/esm/utils/getPropertiesStores.js.map +1 -1
  412. package/lib/esm/utils/getRequiredProperties.js.map +1 -1
  413. package/lib/esm/utils/getSpec.js.map +1 -1
  414. package/lib/esm/utils/getSpecType.js.map +1 -1
  415. package/lib/esm/utils/mapNullableType.js.map +1 -1
  416. package/lib/esm/utils/mapOpenSpec.js.map +1 -1
  417. package/lib/esm/utils/mapOpenSpec2.js.map +1 -1
  418. package/lib/esm/utils/mapOpenSpec3.js.map +1 -1
  419. package/lib/esm/utils/mapOperationOptions.js.map +1 -1
  420. package/lib/esm/utils/ref.js.map +1 -1
  421. package/lib/esm/utils/toJsonMapCollection.js.map +1 -1
  422. package/lib/esm/utils/withErrorMsg.js.map +1 -1
  423. package/lib/types/components/async-api/channelsMapper.d.ts +1 -1
  424. package/lib/types/components/async-api/messageMapper.d.ts +3 -3
  425. package/lib/types/components/async-api/payloadMapper.d.ts +3 -3
  426. package/lib/types/components/async-api/responseMapper.d.ts +3 -3
  427. package/lib/types/components/default/anyMapper.d.ts +1 -1
  428. package/lib/types/components/default/classMapper.d.ts +2 -2
  429. package/lib/types/components/default/genericsMapper.d.ts +1 -1
  430. package/lib/types/components/default/inheritedClassMapper.d.ts +1 -1
  431. package/lib/types/components/default/itemMapper.d.ts +1 -1
  432. package/lib/types/components/default/lazyRefMapper.d.ts +2 -2
  433. package/lib/types/components/default/mapMapper.d.ts +1 -1
  434. package/lib/types/components/default/objectMapper.d.ts +1 -1
  435. package/lib/types/components/default/ofMapper.d.ts +2 -2
  436. package/lib/types/components/default/propertiesMapper.d.ts +2 -2
  437. package/lib/types/components/default/schemaMapper.d.ts +2 -2
  438. package/lib/types/components/index.d.ts +27 -27
  439. package/lib/types/components/open-spec/operationInFilesMapper.d.ts +1 -1
  440. package/lib/types/components/open-spec/operationInParameterMapper.d.ts +2 -2
  441. package/lib/types/components/open-spec/operationInParametersMapper.d.ts +2 -2
  442. package/lib/types/components/open-spec/operationInQueryMapper.d.ts +1 -1
  443. package/lib/types/components/open-spec/operationMapper.d.ts +2 -2
  444. package/lib/types/components/open-spec/operationMediaMapper.d.ts +2 -2
  445. package/lib/types/components/open-spec/operationRequestBodyMapper.d.ts +2 -2
  446. package/lib/types/components/open-spec/operationResponseMapper.d.ts +2 -2
  447. package/lib/types/components/open-spec/pathsMapper.d.ts +1 -1
  448. package/lib/types/decorators/collections/collectionContains.d.ts +1 -1
  449. package/lib/types/decorators/collections/maxItems.d.ts +1 -1
  450. package/lib/types/decorators/collections/maxProperties.d.ts +1 -1
  451. package/lib/types/decorators/collections/minItems.d.ts +1 -1
  452. package/lib/types/decorators/collections/minProperties.d.ts +1 -1
  453. package/lib/types/decorators/collections/uniqueItems.d.ts +1 -1
  454. package/lib/types/decorators/common/additionalProperties.d.ts +1 -1
  455. package/lib/types/decorators/common/allOf.d.ts +1 -1
  456. package/lib/types/decorators/common/anyOf.d.ts +1 -1
  457. package/lib/types/decorators/common/enum.d.ts +1 -1
  458. package/lib/types/decorators/common/exclusiveMaximum.d.ts +1 -1
  459. package/lib/types/decorators/common/exclusiveMinimum.d.ts +1 -1
  460. package/lib/types/decorators/common/format.d.ts +8 -8
  461. package/lib/types/decorators/common/ignore.d.ts +2 -2
  462. package/lib/types/decorators/common/jsonEntityFn.d.ts +1 -1
  463. package/lib/types/decorators/common/maxLength.d.ts +1 -1
  464. package/lib/types/decorators/common/maximum.d.ts +2 -2
  465. package/lib/types/decorators/common/minLength.d.ts +1 -1
  466. package/lib/types/decorators/common/minimum.d.ts +2 -2
  467. package/lib/types/decorators/common/multipleOf.d.ts +1 -1
  468. package/lib/types/decorators/common/oneOf.d.ts +1 -1
  469. package/lib/types/decorators/common/pattern.d.ts +1 -1
  470. package/lib/types/decorators/common/required.d.ts +1 -1
  471. package/lib/types/decorators/common/schema.d.ts +2 -2
  472. package/lib/types/decorators/config/jsonEntityComponent.d.ts +1 -1
  473. package/lib/types/decorators/generics/genericOf.d.ts +1 -1
  474. package/lib/types/decorators/operations/contentType.d.ts +1 -1
  475. package/lib/types/decorators/operations/header.d.ts +1 -1
  476. package/lib/types/decorators/operations/in.d.ts +2 -2
  477. package/lib/types/decorators/operations/location.d.ts +2 -2
  478. package/lib/types/decorators/operations/operation.d.ts +1 -1
  479. package/lib/types/decorators/operations/operationPath.d.ts +1 -1
  480. package/lib/types/decorators/operations/publish.d.ts +1 -1
  481. package/lib/types/decorators/operations/redirect.d.ts +1 -1
  482. package/lib/types/decorators/operations/returns.d.ts +3 -3
  483. package/lib/types/decorators/operations/route.d.ts +9 -9
  484. package/lib/types/decorators/operations/status.d.ts +1 -1
  485. package/lib/types/decorators/operations/subscribe.d.ts +1 -1
  486. package/lib/types/domain/DecoratorContext.d.ts +1 -1
  487. package/lib/types/domain/JsonClassStore.d.ts +3 -3
  488. package/lib/types/domain/JsonEntityStore.d.ts +5 -5
  489. package/lib/types/domain/JsonLazyRef.d.ts +1 -1
  490. package/lib/types/domain/JsonMap.d.ts +1 -1
  491. package/lib/types/domain/JsonMedia.d.ts +2 -2
  492. package/lib/types/domain/JsonMethodStore.d.ts +5 -5
  493. package/lib/types/domain/JsonOperation.d.ts +5 -5
  494. package/lib/types/domain/JsonOperationPathsMap.d.ts +1 -1
  495. package/lib/types/domain/JsonOperationRoute.d.ts +3 -3
  496. package/lib/types/domain/JsonParameter.d.ts +4 -4
  497. package/lib/types/domain/JsonParameterStore.d.ts +4 -4
  498. package/lib/types/domain/JsonPropertyStore.d.ts +2 -2
  499. package/lib/types/domain/JsonRequestBody.d.ts +2 -2
  500. package/lib/types/domain/JsonResponse.d.ts +4 -4
  501. package/lib/types/domain/JsonSchema.d.ts +7 -7
  502. package/lib/types/hooks/alterOneOf.d.ts +2 -2
  503. package/lib/types/hooks/alterRequiredGroups.d.ts +2 -2
  504. package/lib/types/index.d.ts +178 -177
  505. package/lib/types/interfaces/IgnoreCallback.d.ts +1 -1
  506. package/lib/types/interfaces/JsonSchemaOptions.d.ts +1 -1
  507. package/lib/types/registries/JsonSchemaMapperContainer.d.ts +1 -1
  508. package/lib/types/registries/enumRegistries.d.ts +1 -1
  509. package/lib/types/utils/from.d.ts +1 -1
  510. package/lib/types/utils/generateSpec.d.ts +1 -1
  511. package/lib/types/utils/generics.d.ts +1 -1
  512. package/lib/types/utils/getInheritedStores.d.ts +1 -1
  513. package/lib/types/utils/getJsonEntityStore.d.ts +5 -5
  514. package/lib/types/utils/getJsonSchema.d.ts +1 -1
  515. package/lib/types/utils/getOperationsRoutes.d.ts +3 -3
  516. package/lib/types/utils/getOperationsStores.d.ts +1 -1
  517. package/lib/types/utils/getPropertiesStores.d.ts +1 -1
  518. package/lib/types/utils/getRequiredProperties.d.ts +2 -2
  519. package/lib/types/utils/getSpec.d.ts +1 -1
  520. package/lib/types/utils/getSpecType.d.ts +1 -1
  521. package/lib/types/utils/inlineEnums.d.ts +2 -2
  522. package/lib/types/utils/mapHeaders.d.ts +1 -1
  523. package/lib/types/utils/mapNullableType.d.ts +2 -2
  524. package/lib/types/utils/operationIdFormatter.d.ts +1 -1
  525. package/lib/types/utils/ref.d.ts +2 -2
  526. package/lib/types/utils/removeHiddenOperation.d.ts +1 -1
  527. package/lib/types/utils/toJsonMapCollection.d.ts +1 -1
  528. package/package.json +9 -9
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Const = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * The const keyword is used to restrict a value to a fixed value.
7
7
  *
@@ -62,7 +62,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
62
62
  * @schema
63
63
  */
64
64
  function Const(constValue) {
65
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
65
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
66
66
  store.itemSchema.const(constValue);
67
67
  });
68
68
  }
@@ -1 +1 @@
1
- {"version":3,"file":"const.js","sourceRoot":"","sources":["../../../../src/decorators/common/const.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,SAAgB,KAAK,CAAC,UAAiC;IACrD,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"}
1
+ {"version":3,"file":"const.js","sourceRoot":"","sources":["../../../../src/decorators/common/const.ts"],"names":[],"mappings":";;;AACA,uDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,SAAgB,KAAK,CAAC,UAAiC;IACrD,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomKeys = exports.CustomKey = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Set a custom key on JsonSchema that is not a part of the official spec.
7
7
  *
@@ -15,7 +15,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
15
15
  * @schema
16
16
  */
17
17
  function CustomKey(key, value) {
18
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
18
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
19
19
  store.itemSchema.customKey(key, value);
20
20
  });
21
21
  }
@@ -33,7 +33,7 @@ exports.CustomKey = CustomKey;
33
33
  * @schema
34
34
  */
35
35
  function CustomKeys(obj) {
36
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
36
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
37
37
  Object.entries(obj).forEach(([key, value]) => {
38
38
  store.itemSchema.customKey(key, value);
39
39
  });
@@ -1 +1 @@
1
- {"version":3,"file":"customKey.js","sourceRoot":"","sources":["../../../../src/decorators/common/customKey.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAE5C;;;;;;;;;;;GAWG;AACH,SAAgB,SAAS,CAAC,GAAW,EAAE,KAAU;IAC/C,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,8BAIC;AACD;;;;;;;;;;;GAWG;AACH,SAAgB,UAAU,CAAC,GAAwB;IACjD,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC3C,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAND,gCAMC"}
1
+ {"version":3,"file":"customKey.js","sourceRoot":"","sources":["../../../../src/decorators/common/customKey.ts"],"names":[],"mappings":";;;AACA,uDAA+C;AAE/C;;;;;;;;;;;GAWG;AACH,SAAgB,SAAS,CAAC,GAAW,EAAE,KAAU;IAC/C,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,8BAIC;AACD;;;;;;;;;;;GAWG;AACH,SAAgB,UAAU,CAAC,GAAwB;IACjD,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC3C,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAND,gCAMC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Default = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * There are no restrictions placed on the value of this keyword.
7
7
  *
@@ -43,7 +43,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
43
43
  * @input
44
44
  */
45
45
  function Default(defaultValue) {
46
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
46
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
47
47
  store.itemSchema.default(defaultValue);
48
48
  });
49
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../../src/decorators/common/default.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,SAAgB,OAAO,CAAC,YAA4C;IAClE,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,0BAIC"}
1
+ {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../../src/decorators/common/default.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,SAAgB,OAAO,CAAC,YAA4C;IAClE,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,0BAIC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DefaultMsg = void 0;
4
4
  const core_1 = require("@tsed/core");
5
- const errorMsg_1 = require("./errorMsg");
5
+ const errorMsg_js_1 = require("./errorMsg.js");
6
6
  /**
7
7
  * Set default error message.
8
8
  *
@@ -35,7 +35,7 @@ const errorMsg_1 = require("./errorMsg");
35
35
  * @schema
36
36
  */
37
37
  function DefaultMsg(message) {
38
- return (0, core_1.useDecorators)((0, errorMsg_1.ErrorMsg)({ _: message }));
38
+ return (0, core_1.useDecorators)((0, errorMsg_js_1.ErrorMsg)({ _: message }));
39
39
  }
40
40
  exports.DefaultMsg = DefaultMsg;
41
41
  //# sourceMappingURL=defaultMsg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultMsg.js","sourceRoot":"","sources":["../../../../src/decorators/common/defaultMsg.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AACzC,yCAAoC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,IAAA,oBAAa,EAAC,IAAA,mBAAQ,EAAC,EAAC,CAAC,EAAE,OAAO,EAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;AAFD,gCAEC"}
1
+ {"version":3,"file":"defaultMsg.js","sourceRoot":"","sources":["../../../../src/decorators/common/defaultMsg.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AACzC,+CAAuC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,IAAA,oBAAa,EAAC,IAAA,sBAAQ,EAAC,EAAC,CAAC,EAAE,OAAO,EAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;AAFD,gCAEC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Description = void 0;
4
4
  const core_1 = require("@tsed/core");
5
- const jsonEntityFn_1 = require("./jsonEntityFn");
5
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
6
6
  /**
7
7
  * Add a description to the class, method or property
8
8
  *
@@ -56,7 +56,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
56
56
  * @parameterDecorator
57
57
  */
58
58
  function Description(description) {
59
- return (0, jsonEntityFn_1.JsonEntityFn)((store, args) => {
59
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store, args) => {
60
60
  switch ((0, core_1.decoratorTypeOf)(args)) {
61
61
  case core_1.DecoratorTypes.PROP:
62
62
  case core_1.DecoratorTypes.CLASS:
@@ -1 +1 @@
1
- {"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../src/decorators/common/description.ts"],"names":[],"mappings":";;;AAAA,qCAAgF;AAEhF,iDAA4C;AAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,SAAgB,WAAW,CAAC,WAAgB;IAC1C,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAsB,EAAE,IAAyB,EAAE,EAAE;QACxE,QAAQ,IAAA,sBAAe,EAAC,IAAI,CAAC,EAAE;YAC7B,KAAK,qBAAc,CAAC,IAAI,CAAC;YACzB,KAAK,qBAAc,CAAC,KAAK;gBACvB,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBACtC,MAAM;YAER,KAAK,qBAAc,CAAC,KAAK;gBACtB,KAA4B,CAAC,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBACjE,MAAM;YAER,KAAK,qBAAc,CAAC,MAAM;gBACvB,KAAyB,CAAC,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;gBAC/D,MAAM;SACT;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAjBD,kCAiBC"}
1
+ {"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../src/decorators/common/description.ts"],"names":[],"mappings":";;;AAAA,qCAAgF;AAEhF,uDAA+C;AAI/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,SAAgB,WAAW,CAAC,WAAgB;IAC1C,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAsB,EAAE,IAAyB,EAAE,EAAE;QACxE,QAAQ,IAAA,sBAAe,EAAC,IAAI,CAAC,EAAE;YAC7B,KAAK,qBAAc,CAAC,IAAI,CAAC;YACzB,KAAK,qBAAc,CAAC,KAAK;gBACvB,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBACtC,MAAM;YAER,KAAK,qBAAc,CAAC,KAAK;gBACtB,KAA4B,CAAC,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBACjE,MAAM;YAER,KAAK,qBAAc,CAAC,MAAM;gBACvB,KAAyB,CAAC,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;gBAC/D,MAAM;SACT;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAjBD,kCAiBC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DiscriminatorKey = 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
  function DiscriminatorKey() {
8
- return (0, core_1.useDecorators)((0, property_1.Property)(), (0, jsonEntityFn_1.JsonEntityFn)((store) => {
8
+ return (0, core_1.useDecorators)((0, property_js_1.Property)(), (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
9
9
  store.discriminatorKey();
10
10
  }));
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"discriminatorKey.js","sourceRoot":"","sources":["../../../../src/decorators/common/discriminatorKey.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AAEzC,iDAA4C;AAC5C,yCAAoC;AAEpC,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,oBAAa,EAClB,IAAA,mBAAQ,GAAE,EACV,IAAA,2BAAY,EAAC,CAAC,KAAwB,EAAE,EAAE;QACxC,KAAK,CAAC,gBAAgB,EAAE,CAAC;IAC3B,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AAPD,4CAOC"}
1
+ {"version":3,"file":"discriminatorKey.js","sourceRoot":"","sources":["../../../../src/decorators/common/discriminatorKey.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AAEzC,uDAA+C;AAC/C,+CAAuC;AAEvC,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,oBAAa,EAClB,IAAA,sBAAQ,GAAE,EACV,IAAA,8BAAY,EAAC,CAAC,KAAwB,EAAE,EAAE;QACxC,KAAK,CAAC,gBAAgB,EAAE,CAAC;IAC3B,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AAPD,4CAOC"}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Enum = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
6
6
  function EnumFn(enumValue, ...enumValues) {
7
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
7
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
8
8
  store.itemSchema.enum(enumValue, ...enumValues);
9
9
  });
10
10
  }
@@ -105,5 +105,5 @@ function EnumFn(enumValue, ...enumValues) {
105
105
  * @input
106
106
  * @ajv-errors
107
107
  */
108
- exports.Enum = (0, withErrorMsg_1.withErrorMsg)("enum", EnumFn);
108
+ exports.Enum = (0, withErrorMsg_js_1.withErrorMsg)("enum", EnumFn);
109
109
  //# sourceMappingURL=enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../src/decorators/common/enum.ts"],"names":[],"mappings":";;;AACA,2DAAsD;AACtD,iDAA4C;AAG5C,SAAS,MAAM,CAAC,SAAgC,EAAE,GAAG,UAA6B;IAChF,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AAEU,QAAA,IAAI,GAAG,IAAA,2BAAY,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../src/decorators/common/enum.ts"],"names":[],"mappings":";;;AACA,iEAAyD;AACzD,uDAA+C;AAG/C,SAAS,MAAM,CAAC,SAAgC,EAAE,GAAG,UAA6B;IAChF,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AAEU,QAAA,IAAI,GAAG,IAAA,8BAAY,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorMsg = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Add an error message to the property.
7
7
  * @decorator
8
8
  * @ajv
9
9
  */
10
10
  function ErrorMsg(obj) {
11
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
11
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
12
12
  // since errorMessage is a custom key, it is prefixed with a # to avoid conflict with JSON Schema keywords
13
13
  const errorMessage = store.parentSchema.get("#errorMessage") || {};
14
14
  store.parentSchema.customKey("errorMessage", { ...errorMessage, ...obj });
@@ -1 +1 @@
1
- {"version":3,"file":"errorMsg.js","sourceRoot":"","sources":["../../../../src/decorators/common/errorMsg.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,GAA2B;IAClD,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,0GAA0G;QAC1G,MAAM,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,cAAc,EAAE,EAAC,GAAG,YAAY,EAAE,GAAG,GAAG,EAAC,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;AACL,CAAC;AAND,4BAMC"}
1
+ {"version":3,"file":"errorMsg.js","sourceRoot":"","sources":["../../../../src/decorators/common/errorMsg.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAE/C;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,GAA2B;IAClD,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,0GAA0G;QAC1G,MAAM,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,cAAc,EAAE,EAAC,GAAG,YAAY,EAAE,GAAG,GAAG,EAAC,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;AACL,CAAC;AAND,4BAMC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Example = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Add an example metadata on the decorated element.
7
7
  *
@@ -13,7 +13,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
13
13
  * @classDecorator
14
14
  */
15
15
  function Example(...examples) {
16
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
16
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
17
17
  store.schema.examples(examples);
18
18
  });
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","sourceRoot":"","sources":["../../../../src/decorators/common/example.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAE5C;;;;;;;;;GASG;AACH,SAAgB,OAAO,CAAC,GAAG,QAAe;IACxC,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,0BAIC"}
1
+ {"version":3,"file":"example.js","sourceRoot":"","sources":["../../../../src/decorators/common/example.ts"],"names":[],"mappings":";;;AACA,uDAA+C;AAE/C;;;;;;;;;GASG;AACH,SAAgB,OAAO,CAAC,GAAG,QAAe;IACxC,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,0BAIC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Examples = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Add a examples metadata on the decorated element.
7
7
  *
@@ -13,7 +13,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
13
13
  * @classDecorator
14
14
  */
15
15
  function Examples(examples) {
16
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
16
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
17
17
  store.parameter.examples(examples);
18
18
  });
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"examples.js","sourceRoot":"","sources":["../../../../src/decorators/common/examples.ts"],"names":[],"mappings":";;;AAEA,iDAA4C;AAE5C;;;;;;;;;GASG;AACH,SAAgB,QAAQ,CAAC,QAAgD;IACvE,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAyB,EAAE,EAAE;QAChD,KAAK,CAAC,SAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,4BAIC"}
1
+ {"version":3,"file":"examples.js","sourceRoot":"","sources":["../../../../src/decorators/common/examples.ts"],"names":[],"mappings":";;;AAEA,uDAA+C;AAE/C;;;;;;;;;GASG;AACH,SAAgB,QAAQ,CAAC,QAAgD;IACvE,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAyB,EAAE,EAAE;QAChD,KAAK,CAAC,SAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,4BAIC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExclusiveMaximum = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const maximum_1 = require("./maximum");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const maximum_js_1 = require("./maximum.js");
6
6
  /**
7
7
  * The value of `exclusiveMaximum` MUST be number, representing an exclusive upper limit for a numeric instance.
8
8
  *
@@ -72,7 +72,7 @@ const maximum_1 = require("./maximum");
72
72
  * @input
73
73
  * @ajv-errors
74
74
  */
75
- exports.ExclusiveMaximum = (0, withErrorMsg_1.withErrorMsg)("exclusiveMaximum", (maximum, exclusiveMaximum = true) => {
76
- return (0, maximum_1.Maximum)(maximum, exclusiveMaximum);
75
+ exports.ExclusiveMaximum = (0, withErrorMsg_js_1.withErrorMsg)("exclusiveMaximum", (maximum, exclusiveMaximum = true) => {
76
+ return (0, maximum_js_1.Maximum)(maximum, exclusiveMaximum);
77
77
  });
78
78
  //# sourceMappingURL=exclusiveMaximum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exclusiveMaximum.js","sourceRoot":"","sources":["../../../../src/decorators/common/exclusiveMaximum.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,uCAAkC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACU,QAAA,gBAAgB,GAAG,IAAA,2BAAY,EAAC,kBAAkB,EAAE,CAAC,OAAe,EAAE,mBAA4B,IAAI,EAAE,EAAE;IACrH,OAAO,IAAA,iBAAO,EAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"exclusiveMaximum.js","sourceRoot":"","sources":["../../../../src/decorators/common/exclusiveMaximum.ts"],"names":[],"mappings":";;;AAAA,iEAAyD;AACzD,6CAAqC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACU,QAAA,gBAAgB,GAAG,IAAA,8BAAY,EAAC,kBAAkB,EAAE,CAAC,OAAe,EAAE,mBAA4B,IAAI,EAAE,EAAE;IACrH,OAAO,IAAA,oBAAO,EAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExclusiveMinimum = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const minimum_1 = require("./minimum");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const minimum_js_1 = require("./minimum.js");
6
6
  /**
7
7
  * The value of `exclusiveMinimum` MUST be number, representing an exclusive upper limit for a numeric instance.
8
8
  *
@@ -72,7 +72,7 @@ const minimum_1 = require("./minimum");
72
72
  * @input
73
73
  * @ajv-errors
74
74
  */
75
- exports.ExclusiveMinimum = (0, withErrorMsg_1.withErrorMsg)("exclusiveMinimum", (minimum, exclusiveMinimum = true) => {
76
- return (0, minimum_1.Minimum)(minimum, exclusiveMinimum);
75
+ exports.ExclusiveMinimum = (0, withErrorMsg_js_1.withErrorMsg)("exclusiveMinimum", (minimum, exclusiveMinimum = true) => {
76
+ return (0, minimum_js_1.Minimum)(minimum, exclusiveMinimum);
77
77
  });
78
78
  //# sourceMappingURL=exclusiveMinimum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exclusiveMinimum.js","sourceRoot":"","sources":["../../../../src/decorators/common/exclusiveMinimum.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,uCAAkC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACU,QAAA,gBAAgB,GAAG,IAAA,2BAAY,EAAC,kBAAkB,EAAE,CAAC,OAAe,EAAE,mBAA4B,IAAI,EAAE,EAAE;IACrH,OAAO,IAAA,iBAAO,EAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"exclusiveMinimum.js","sourceRoot":"","sources":["../../../../src/decorators/common/exclusiveMinimum.ts"],"names":[],"mappings":";;;AAAA,iEAAyD;AACzD,6CAAqC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACU,QAAA,gBAAgB,GAAG,IAAA,8BAAY,EAAC,kBAAkB,EAAE,CAAC,OAAe,EAAE,mBAA4B,IAAI,EAAE,EAAE;IACrH,OAAO,IAAA,oBAAO,EAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Url = exports.Uri = exports.TimeFormat = exports.DateFormat = exports.DateTime = exports.Email = exports.Format = void 0;
4
- const JsonFormatTypes_1 = require("../../domain/JsonFormatTypes");
5
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
6
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const JsonFormatTypes_js_1 = require("../../domain/JsonFormatTypes.js");
5
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
6
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
7
7
  /**
8
8
  * The following formats are supported for string validation with `format` keyword:
9
9
  *
@@ -78,8 +78,8 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
78
78
  * @input
79
79
  * @ajv-errors
80
80
  */
81
- exports.Format = (0, withErrorMsg_1.withErrorMsg)("format", (format) => {
82
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
81
+ exports.Format = (0, withErrorMsg_js_1.withErrorMsg)("format", (format) => {
82
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
83
83
  store.itemSchema.format(format);
84
84
  });
85
85
  });
@@ -150,8 +150,8 @@ exports.Format = (0, withErrorMsg_1.withErrorMsg)("format", (format) => {
150
150
  * @input
151
151
  * @ajv-errors
152
152
  */
153
- exports.Email = (0, withErrorMsg_1.withErrorMsg)("format", () => {
154
- return (0, exports.Format)(JsonFormatTypes_1.JsonFormatTypes.EMAIL);
153
+ exports.Email = (0, withErrorMsg_js_1.withErrorMsg)("format", () => {
154
+ return (0, exports.Format)(JsonFormatTypes_js_1.JsonFormatTypes.EMAIL);
155
155
  });
156
156
  /**
157
157
  * Apply a date-time validation on property.
@@ -217,8 +217,8 @@ exports.Email = (0, withErrorMsg_1.withErrorMsg)("format", () => {
217
217
  * @auto-map The data will be stored on the right place according to the type and collectionType (primitive or collection).
218
218
  * @ajv-errors
219
219
  */
220
- exports.DateTime = (0, withErrorMsg_1.withErrorMsg)("format", () => {
221
- return (0, exports.Format)(JsonFormatTypes_1.JsonFormatTypes.DATE_TIME);
220
+ exports.DateTime = (0, withErrorMsg_js_1.withErrorMsg)("format", () => {
221
+ return (0, exports.Format)(JsonFormatTypes_js_1.JsonFormatTypes.DATE_TIME);
222
222
  });
223
223
  /**
224
224
  * Apply a time validation on property.
@@ -283,8 +283,8 @@ exports.DateTime = (0, withErrorMsg_1.withErrorMsg)("format", () => {
283
283
  * @schema
284
284
  * @ajv-errors
285
285
  */
286
- exports.DateFormat = (0, withErrorMsg_1.withErrorMsg)("format", () => {
287
- return (0, exports.Format)(JsonFormatTypes_1.JsonFormatTypes.DATE);
286
+ exports.DateFormat = (0, withErrorMsg_js_1.withErrorMsg)("format", () => {
287
+ return (0, exports.Format)(JsonFormatTypes_js_1.JsonFormatTypes.DATE);
288
288
  });
289
289
  /**
290
290
  * Apply a time validation on property.
@@ -349,8 +349,8 @@ exports.DateFormat = (0, withErrorMsg_1.withErrorMsg)("format", () => {
349
349
  * @schema
350
350
  * @ajv-errors
351
351
  */
352
- exports.TimeFormat = (0, withErrorMsg_1.withErrorMsg)("format", () => {
353
- return (0, exports.Format)(JsonFormatTypes_1.JsonFormatTypes.TIME);
352
+ exports.TimeFormat = (0, withErrorMsg_js_1.withErrorMsg)("format", () => {
353
+ return (0, exports.Format)(JsonFormatTypes_js_1.JsonFormatTypes.TIME);
354
354
  });
355
355
  /**
356
356
  * Apply a uri validation on property.
@@ -415,8 +415,8 @@ exports.TimeFormat = (0, withErrorMsg_1.withErrorMsg)("format", () => {
415
415
  * @schema
416
416
  * @ajv-errors
417
417
  */
418
- exports.Uri = (0, withErrorMsg_1.withErrorMsg)("format", () => {
419
- return (0, exports.Format)(JsonFormatTypes_1.JsonFormatTypes.URI);
418
+ exports.Uri = (0, withErrorMsg_js_1.withErrorMsg)("format", () => {
419
+ return (0, exports.Format)(JsonFormatTypes_js_1.JsonFormatTypes.URI);
420
420
  });
421
421
  /**
422
422
  * Apply a url validation on property.
@@ -481,7 +481,7 @@ exports.Uri = (0, withErrorMsg_1.withErrorMsg)("format", () => {
481
481
  * @schema
482
482
  * @ajv-errors
483
483
  */
484
- exports.Url = (0, withErrorMsg_1.withErrorMsg)("format", () => {
485
- return (0, exports.Format)(JsonFormatTypes_1.JsonFormatTypes.URL);
484
+ exports.Url = (0, withErrorMsg_js_1.withErrorMsg)("format", () => {
485
+ return (0, exports.Format)(JsonFormatTypes_js_1.JsonFormatTypes.URL);
486
486
  });
487
487
  //# sourceMappingURL=format.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../../src/decorators/common/format.ts"],"names":[],"mappings":";;;AACA,kEAA6D;AAC7D,2DAAsD;AACtD,iDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACU,QAAA,MAAM,GAAG,IAAA,2BAAY,EAAC,QAAQ,EAAE,CAAC,MAAkD,EAAE,EAAE;IAClG,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACU,QAAA,KAAK,GAAG,IAAA,2BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IAC/C,OAAO,IAAA,cAAM,EAAC,iCAAe,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACU,QAAA,QAAQ,GAAG,IAAA,2BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IAClD,OAAO,IAAA,cAAM,EAAC,iCAAe,CAAC,SAAS,CAAC,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACU,QAAA,UAAU,GAAG,IAAA,2BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IACpD,OAAO,IAAA,cAAM,EAAC,iCAAe,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACU,QAAA,UAAU,GAAG,IAAA,2BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IACpD,OAAO,IAAA,cAAM,EAAC,iCAAe,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACU,QAAA,GAAG,GAAG,IAAA,2BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IAC7C,OAAO,IAAA,cAAM,EAAC,iCAAe,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACU,QAAA,GAAG,GAAG,IAAA,2BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IAC7C,OAAO,IAAA,cAAM,EAAC,iCAAe,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../../src/decorators/common/format.ts"],"names":[],"mappings":";;;AACA,wEAAgE;AAChE,iEAAyD;AACzD,uDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACU,QAAA,MAAM,GAAG,IAAA,8BAAY,EAAC,QAAQ,EAAE,CAAC,MAAkD,EAAE,EAAE;IAClG,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACU,QAAA,KAAK,GAAG,IAAA,8BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IAC/C,OAAO,IAAA,cAAM,EAAC,oCAAe,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACU,QAAA,QAAQ,GAAG,IAAA,8BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IAClD,OAAO,IAAA,cAAM,EAAC,oCAAe,CAAC,SAAS,CAAC,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACU,QAAA,UAAU,GAAG,IAAA,8BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IACpD,OAAO,IAAA,cAAM,EAAC,oCAAe,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACU,QAAA,UAAU,GAAG,IAAA,8BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IACpD,OAAO,IAAA,cAAM,EAAC,oCAAe,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACU,QAAA,GAAG,GAAG,IAAA,8BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IAC7C,OAAO,IAAA,cAAM,EAAC,oCAAe,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACU,QAAA,GAAG,GAAG,IAAA,8BAAY,EAAC,QAAQ,EAAE,GAAG,EAAE;IAC7C,OAAO,IAAA,cAAM,EAAC,oCAAe,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ForwardGroups = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Allow to forward group on specific property.
7
7
  *
@@ -12,7 +12,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
12
12
  * @input
13
13
  */
14
14
  function ForwardGroups(bool = true) {
15
- return (0, jsonEntityFn_1.JsonEntityFn)((entity) => {
15
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((entity) => {
16
16
  entity.schema.$forwardGroups = bool;
17
17
  });
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"forwardGroups.js","sourceRoot":"","sources":["../../../../src/decorators/common/forwardGroups.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAAC,IAAI,GAAG,IAAI;IACvC,OAAO,IAAA,2BAAY,EAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,MAAM,CAAC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sCAIC"}
1
+ {"version":3,"file":"forwardGroups.js","sourceRoot":"","sources":["../../../../src/decorators/common/forwardGroups.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAE/C;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAAC,IAAI,GAAG,IAAI;IACvC,OAAO,IAAA,8BAAY,EAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,MAAM,CAAC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sCAIC"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Groups = void 0;
4
4
  const core_1 = require("@tsed/core");
5
- const matchGroups_1 = require("../../utils/matchGroups");
6
- const jsonEntityFn_1 = require("./jsonEntityFn");
5
+ const matchGroups_js_1 = require("../../utils/matchGroups.js");
6
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
7
7
  /**
8
8
  * @ignore
9
9
  */
@@ -16,7 +16,7 @@ function groupsClass(groups, entity) {
16
16
  });
17
17
  }
18
18
  function Groups(...groups) {
19
- return (0, jsonEntityFn_1.JsonEntityFn)((entity) => {
19
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((entity) => {
20
20
  switch (entity.decoratorType) {
21
21
  case core_1.DecoratorTypes.CLASS:
22
22
  groupsClass(groups, entity);
@@ -24,7 +24,7 @@ function Groups(...groups) {
24
24
  case core_1.DecoratorTypes.PROP:
25
25
  entity.schema.$hooks.on("groups", (prev, givenGroups) => {
26
26
  if (!prev) {
27
- if ((0, matchGroups_1.matchGroups)(groups, givenGroups)) {
27
+ if ((0, matchGroups_js_1.matchGroups)(groups, givenGroups)) {
28
28
  return true;
29
29
  }
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../../src/decorators/common/groups.ts"],"names":[],"mappings":";;;AAAA,qCAAmD;AAGnD,yDAAoD;AACpD,iDAA4C;AAE5C;;GAEG;AACH,SAAS,WAAW,CAAC,MAAW,EAAE,MAAsB;IACtD,MAAM,OAAO,GAAyB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;QAC1G,MAAM,SAAS,GAAQ,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;QAEzC,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAcD,SAAgB,MAAM,CAAC,GAAG,MAAW;IACnC,OAAO,IAAA,2BAAY,EAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,QAAQ,MAAM,CAAC,aAAa,EAAE;YAC5B,KAAK,qBAAc,CAAC,KAAK;gBACvB,WAAW,CAAC,MAAM,EAAE,MAAwB,CAAC,CAAC;gBAC9C,MAAM;YACR,KAAK,qBAAc,CAAC,IAAI;gBACtB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAa,EAAE,WAAqB,EAAE,EAAE;oBACzE,IAAI,CAAC,IAAI,EAAE;wBACT,IAAI,IAAA,yBAAW,EAAC,MAAM,EAAE,WAAW,CAAC,EAAE;4BACpC,OAAO,IAAI,CAAC;yBACb;qBACF;oBAED,OAAO,IAAI,CAAC;gBACd,CAAC,CAAC,CAAC;gBACH,MAAM;YACR,KAAK,qBAAc,CAAC,KAAK;gBACvB,IAAI,UAAU,GAAG,EAAE,CAAC;gBAEpB,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,IAAA,cAAO,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;oBAC5C,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;oBACvB,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;iBACpB;gBAEA,MAA6B,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;gBACxD,MAA6B,CAAC,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;gBACjE,MAAM;SACT;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AA9BD,wBA8BC"}
1
+ {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../../src/decorators/common/groups.ts"],"names":[],"mappings":";;;AAAA,qCAAmD;AAGnD,+DAAuD;AACvD,uDAA+C;AAE/C;;GAEG;AACH,SAAS,WAAW,CAAC,MAAW,EAAE,MAAsB;IACtD,MAAM,OAAO,GAAyB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;QAC1G,MAAM,SAAS,GAAQ,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;QAEzC,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAcD,SAAgB,MAAM,CAAC,GAAG,MAAW;IACnC,OAAO,IAAA,8BAAY,EAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,QAAQ,MAAM,CAAC,aAAa,EAAE;YAC5B,KAAK,qBAAc,CAAC,KAAK;gBACvB,WAAW,CAAC,MAAM,EAAE,MAAwB,CAAC,CAAC;gBAC9C,MAAM;YACR,KAAK,qBAAc,CAAC,IAAI;gBACtB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAa,EAAE,WAAqB,EAAE,EAAE;oBACzE,IAAI,CAAC,IAAI,EAAE;wBACT,IAAI,IAAA,4BAAW,EAAC,MAAM,EAAE,WAAW,CAAC,EAAE;4BACpC,OAAO,IAAI,CAAC;yBACb;qBACF;oBAED,OAAO,IAAI,CAAC;gBACd,CAAC,CAAC,CAAC;gBACH,MAAM;YACR,KAAK,qBAAc,CAAC,KAAK;gBACvB,IAAI,UAAU,GAAG,EAAE,CAAC;gBAEpB,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,IAAA,cAAO,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;oBAC5C,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;oBACvB,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;iBACpB;gBAEA,MAA6B,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;gBACxD,MAA6B,CAAC,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;gBACjE,MAAM;SACT;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AA9BD,wBA8BC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Ignore = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Ignore the property when JsonMapper serialize the class to a Plain Object JavaScript.
7
7
  *
@@ -28,7 +28,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
28
28
  * The controller:
29
29
  * ```typescript
30
30
  * import {Post, Controller, BodyParams} from "@tsed/common";
31
- * import {Person} from "../models/Person";
31
+ * import {Person} from "../models/Person.js";
32
32
  *
33
33
  * @Controller("/")
34
34
  * export class UsersCtrl {
@@ -60,7 +60,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
60
60
  * @deprecated Since v7. Use @Groups decorator instead of and enable `jsonMapper.strictGroups` in your configuration.
61
61
  */
62
62
  function Ignore(cb = true) {
63
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
63
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
64
64
  store.schema.ignore(cb);
65
65
  });
66
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ignore.js","sourceRoot":"","sources":["../../../../src/decorators/common/ignore.ts"],"names":[],"mappings":";;;AACA,iDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,SAAgB,MAAM,CAAC,KAA+B,IAAI;IACxD,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,wBAIC"}
1
+ {"version":3,"file":"ignore.js","sourceRoot":"","sources":["../../../../src/decorators/common/ignore.ts"],"names":[],"mappings":";;;AACA,uDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,SAAgB,MAAM,CAAC,KAA+B,IAAI;IACxD,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,wBAIC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Integer = void 0;
4
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
5
5
  /**
6
6
  * Set integer type.
7
7
  *
@@ -63,7 +63,7 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
63
63
  * @input
64
64
  */
65
65
  function Integer() {
66
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
66
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
67
67
  store.itemSchema.type("integer");
68
68
  });
69
69
  }
@@ -1 +1 @@
1
- {"version":3,"file":"integer.js","sourceRoot":"","sources":["../../../../src/decorators/common/integer.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,SAAgB,OAAO;IACrB,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,0BAIC"}
1
+ {"version":3,"file":"integer.js","sourceRoot":"","sources":["../../../../src/decorators/common/integer.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,SAAgB,OAAO;IACrB,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,0BAIC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.JsonEntityFn = void 0;
4
- const getJsonEntityStore_1 = require("../../utils/getJsonEntityStore");
4
+ const getJsonEntityStore_js_1 = require("../../utils/getJsonEntityStore.js");
5
5
  /**
6
6
  * Decorator util to compose another decorator. See @@Description@@ decorator implementation for more details.
7
7
  *
@@ -22,7 +22,7 @@ const getJsonEntityStore_1 = require("../../utils/getJsonEntityStore");
22
22
  */
23
23
  function JsonEntityFn(fn) {
24
24
  return (...parameters) => {
25
- const result = fn((0, getJsonEntityStore_1.getJsonEntityStore)(...parameters), parameters);
25
+ const result = fn((0, getJsonEntityStore_js_1.getJsonEntityStore)(...parameters), parameters);
26
26
  if (typeof result === "function") {
27
27
  result(...parameters);
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"jsonEntityFn.js","sourceRoot":"","sources":["../../../../src/decorators/common/jsonEntityFn.ts"],"names":[],"mappings":";;;AAEA,uEAAkE;AAElE;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,YAAY,CAC1B,EAAuD;IAEvD,OAAO,CAAC,GAAG,UAA+B,EAAE,EAAE;QAC5C,MAAM,MAAM,GAAQ,EAAE,CAAC,IAAA,uCAAkB,EAAI,GAAG,UAAU,CAAM,EAAE,UAAU,CAAC,CAAC;QAC9E,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;YAChC,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC;SACvB;IACH,CAAC,CAAC;AACJ,CAAC;AATD,oCASC"}
1
+ {"version":3,"file":"jsonEntityFn.js","sourceRoot":"","sources":["../../../../src/decorators/common/jsonEntityFn.ts"],"names":[],"mappings":";;;AAEA,6EAAqE;AAErE;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,YAAY,CAC1B,EAAuD;IAEvD,OAAO,CAAC,GAAG,UAA+B,EAAE,EAAE;QAC5C,MAAM,MAAM,GAAQ,EAAE,CAAC,IAAA,0CAAkB,EAAI,GAAG,UAAU,CAAM,EAAE,UAAU,CAAC,CAAC;QAC9E,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;YAChC,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC;SACvB;IACH,CAAC,CAAC;AACJ,CAAC;AATD,oCASC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MaxLength = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
6
6
  /**
7
7
  * A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword.
8
8
  *
@@ -79,11 +79,11 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
79
79
  * @input
80
80
  * @ajv-errors
81
81
  */
82
- exports.MaxLength = (0, withErrorMsg_1.withErrorMsg)("maxLength", (maxLength) => {
82
+ exports.MaxLength = (0, withErrorMsg_js_1.withErrorMsg)("maxLength", (maxLength) => {
83
83
  if (maxLength < 0) {
84
84
  throw new Error("The value of maxLength MUST be a non-negative integer.");
85
85
  }
86
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
86
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
87
87
  store.itemSchema.maxLength(maxLength);
88
88
  });
89
89
  });
@@ -1 +1 @@
1
- {"version":3,"file":"maxLength.js","sourceRoot":"","sources":["../../../../src/decorators/common/maxLength.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,iDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACU,QAAA,SAAS,GAAG,IAAA,2BAAY,EAAC,WAAW,EAAE,CAAC,SAAiB,EAAE,EAAE;IACvE,IAAI,SAAS,GAAG,CAAC,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;KAC3E;IAED,OAAO,IAAA,2BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"maxLength.js","sourceRoot":"","sources":["../../../../src/decorators/common/maxLength.ts"],"names":[],"mappings":";;;AAAA,iEAAyD;AACzD,uDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACU,QAAA,SAAS,GAAG,IAAA,8BAAY,EAAC,WAAW,EAAE,CAAC,SAAiB,EAAE,EAAE;IACvE,IAAI,SAAS,GAAG,CAAC,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;KAC3E;IAED,OAAO,IAAA,8BAAY,EAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACxC,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.Max = exports.Maximum = void 0;
4
- const withErrorMsg_1 = require("../../utils/withErrorMsg");
5
- const jsonEntityFn_1 = require("./jsonEntityFn");
4
+ const withErrorMsg_js_1 = require("../../utils/withErrorMsg.js");
5
+ const jsonEntityFn_js_1 = require("./jsonEntityFn.js");
6
6
  /**
7
7
  * The value of `maximum` MUST be a number, representing an inclusive upper limit for a numeric instance.
8
8
  *
@@ -72,8 +72,8 @@ const jsonEntityFn_1 = require("./jsonEntityFn");
72
72
  * @input
73
73
  * @ajv-errors
74
74
  */
75
- exports.Maximum = (0, withErrorMsg_1.withErrorMsg)("maximum", (maximum, exclusive = false) => {
76
- return (0, jsonEntityFn_1.JsonEntityFn)((store) => {
75
+ exports.Maximum = (0, withErrorMsg_js_1.withErrorMsg)("maximum", (maximum, exclusive = false) => {
76
+ return (0, jsonEntityFn_js_1.JsonEntityFn)((store) => {
77
77
  exclusive ? store.itemSchema.exclusiveMaximum(maximum) : store.itemSchema.maximum(maximum);
78
78
  });
79
79
  });