@tsed/schema 8.0.0-alpha.5 → 8.0.0-alpha.6

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 (547) hide show
  1. package/lib/browser/schema.umd.min.js.map +1 -1
  2. package/lib/esm/utils/getJsonSchema.js.map +1 -1
  3. package/lib/types/utils/getJsonSchema.d.ts +1 -1
  4. package/package.json +12 -12
  5. package/lib/cjs/components/async-api/channelsMapper.js +0 -62
  6. package/lib/cjs/components/async-api/channelsMapper.js.map +0 -1
  7. package/lib/cjs/components/async-api/generate.js +0 -20
  8. package/lib/cjs/components/async-api/generate.js.map +0 -1
  9. package/lib/cjs/components/async-api/messageMapper.js +0 -44
  10. package/lib/cjs/components/async-api/messageMapper.js.map +0 -1
  11. package/lib/cjs/components/async-api/payloadMapper.js +0 -52
  12. package/lib/cjs/components/async-api/payloadMapper.js.map +0 -1
  13. package/lib/cjs/components/async-api/responseMapper.js +0 -58
  14. package/lib/cjs/components/async-api/responseMapper.js.map +0 -1
  15. package/lib/cjs/components/default/anyMapper.js +0 -29
  16. package/lib/cjs/components/default/anyMapper.js.map +0 -1
  17. package/lib/cjs/components/default/classMapper.js +0 -43
  18. package/lib/cjs/components/default/classMapper.js.map +0 -1
  19. package/lib/cjs/components/default/genericsMapper.js +0 -62
  20. package/lib/cjs/components/default/genericsMapper.js.map +0 -1
  21. package/lib/cjs/components/default/inheritedClassMapper.js +0 -22
  22. package/lib/cjs/components/default/inheritedClassMapper.js.map +0 -1
  23. package/lib/cjs/components/default/inlineEnumsMapper.js +0 -16
  24. package/lib/cjs/components/default/inlineEnumsMapper.js.map +0 -1
  25. package/lib/cjs/components/default/itemMapper.js +0 -10
  26. package/lib/cjs/components/default/itemMapper.js.map +0 -1
  27. package/lib/cjs/components/default/lazyRefMapper.js +0 -18
  28. package/lib/cjs/components/default/lazyRefMapper.js.map +0 -1
  29. package/lib/cjs/components/default/mapMapper.js +0 -25
  30. package/lib/cjs/components/default/mapMapper.js.map +0 -1
  31. package/lib/cjs/components/default/nullableMapper.js +0 -54
  32. package/lib/cjs/components/default/nullableMapper.js.map +0 -1
  33. package/lib/cjs/components/default/objectMapper.js +0 -30
  34. package/lib/cjs/components/default/objectMapper.js.map +0 -1
  35. package/lib/cjs/components/default/ofMapper.js +0 -17
  36. package/lib/cjs/components/default/ofMapper.js.map +0 -1
  37. package/lib/cjs/components/default/propertiesMapper.js +0 -25
  38. package/lib/cjs/components/default/propertiesMapper.js.map +0 -1
  39. package/lib/cjs/components/default/requiredMapper.js +0 -56
  40. package/lib/cjs/components/default/requiredMapper.js.map +0 -1
  41. package/lib/cjs/components/default/schemaMapper.js +0 -124
  42. package/lib/cjs/components/default/schemaMapper.js.map +0 -1
  43. package/lib/cjs/components/index.js +0 -37
  44. package/lib/cjs/components/index.js.map +0 -1
  45. package/lib/cjs/components/open-spec/generate.js +0 -24
  46. package/lib/cjs/components/open-spec/generate.js.map +0 -1
  47. package/lib/cjs/components/open-spec/nullableMapper.js +0 -49
  48. package/lib/cjs/components/open-spec/nullableMapper.js.map +0 -1
  49. package/lib/cjs/components/open-spec/operationInFilesMapper.js +0 -28
  50. package/lib/cjs/components/open-spec/operationInFilesMapper.js.map +0 -1
  51. package/lib/cjs/components/open-spec/operationInParameterMapper.js +0 -39
  52. package/lib/cjs/components/open-spec/operationInParameterMapper.js.map +0 -1
  53. package/lib/cjs/components/open-spec/operationInParametersMapper.js +0 -10
  54. package/lib/cjs/components/open-spec/operationInParametersMapper.js.map +0 -1
  55. package/lib/cjs/components/open-spec/operationInQueryMapper.js +0 -61
  56. package/lib/cjs/components/open-spec/operationInQueryMapper.js.map +0 -1
  57. package/lib/cjs/components/open-spec/operationMapper.js +0 -49
  58. package/lib/cjs/components/open-spec/operationMapper.js.map +0 -1
  59. package/lib/cjs/components/open-spec/operationMediaMapper.js +0 -11
  60. package/lib/cjs/components/open-spec/operationMediaMapper.js.map +0 -1
  61. package/lib/cjs/components/open-spec/operationRequestBodyMapper.js +0 -67
  62. package/lib/cjs/components/open-spec/operationRequestBodyMapper.js.map +0 -1
  63. package/lib/cjs/components/open-spec/operationResponseMapper.js +0 -24
  64. package/lib/cjs/components/open-spec/operationResponseMapper.js.map +0 -1
  65. package/lib/cjs/components/open-spec/pathsMapper.js +0 -95
  66. package/lib/cjs/components/open-spec/pathsMapper.js.map +0 -1
  67. package/lib/cjs/constants/OperationVerbs.js +0 -32
  68. package/lib/cjs/constants/OperationVerbs.js.map +0 -1
  69. package/lib/cjs/constants/httpStatusMessages.js +0 -24
  70. package/lib/cjs/constants/httpStatusMessages.js.map +0 -1
  71. package/lib/cjs/constants/jsonSchemaProperties.js +0 -21
  72. package/lib/cjs/constants/jsonSchemaProperties.js.map +0 -1
  73. package/lib/cjs/decorators/class/children.js +0 -24
  74. package/lib/cjs/decorators/class/children.js.map +0 -1
  75. package/lib/cjs/decorators/class/discriminatorValue.js +0 -56
  76. package/lib/cjs/decorators/class/discriminatorValue.js.map +0 -1
  77. package/lib/cjs/decorators/collections/collectionContains.js +0 -29
  78. package/lib/cjs/decorators/collections/collectionContains.js.map +0 -1
  79. package/lib/cjs/decorators/collections/collectionOf.js +0 -102
  80. package/lib/cjs/decorators/collections/collectionOf.js.map +0 -1
  81. package/lib/cjs/decorators/collections/maxItems.js +0 -61
  82. package/lib/cjs/decorators/collections/maxItems.js.map +0 -1
  83. package/lib/cjs/decorators/collections/maxProperties.js +0 -84
  84. package/lib/cjs/decorators/collections/maxProperties.js.map +0 -1
  85. package/lib/cjs/decorators/collections/minItems.js +0 -65
  86. package/lib/cjs/decorators/collections/minItems.js.map +0 -1
  87. package/lib/cjs/decorators/collections/minProperties.js +0 -83
  88. package/lib/cjs/decorators/collections/minProperties.js.map +0 -1
  89. package/lib/cjs/decorators/collections/uniqueItems.js +0 -61
  90. package/lib/cjs/decorators/collections/uniqueItems.js.map +0 -1
  91. package/lib/cjs/decorators/common/additionalProperties.js +0 -20
  92. package/lib/cjs/decorators/common/additionalProperties.js.map +0 -1
  93. package/lib/cjs/decorators/common/allOf.js +0 -22
  94. package/lib/cjs/decorators/common/allOf.js.map +0 -1
  95. package/lib/cjs/decorators/common/allow.js +0 -47
  96. package/lib/cjs/decorators/common/allow.js.map +0 -1
  97. package/lib/cjs/decorators/common/any.js +0 -46
  98. package/lib/cjs/decorators/common/any.js.map +0 -1
  99. package/lib/cjs/decorators/common/anyOf.js +0 -26
  100. package/lib/cjs/decorators/common/anyOf.js.map +0 -1
  101. package/lib/cjs/decorators/common/const.js +0 -70
  102. package/lib/cjs/decorators/common/const.js.map +0 -1
  103. package/lib/cjs/decorators/common/customKey.js +0 -43
  104. package/lib/cjs/decorators/common/customKey.js.map +0 -1
  105. package/lib/cjs/decorators/common/default.js +0 -51
  106. package/lib/cjs/decorators/common/default.js.map +0 -1
  107. package/lib/cjs/decorators/common/defaultMsg.js +0 -41
  108. package/lib/cjs/decorators/common/defaultMsg.js.map +0 -1
  109. package/lib/cjs/decorators/common/description.js +0 -75
  110. package/lib/cjs/decorators/common/description.js.map +0 -1
  111. package/lib/cjs/decorators/common/discriminatorKey.js +0 -13
  112. package/lib/cjs/decorators/common/discriminatorKey.js.map +0 -1
  113. package/lib/cjs/decorators/common/enum.js +0 -109
  114. package/lib/cjs/decorators/common/enum.js.map +0 -1
  115. package/lib/cjs/decorators/common/errorMsg.js +0 -18
  116. package/lib/cjs/decorators/common/errorMsg.js.map +0 -1
  117. package/lib/cjs/decorators/common/example.js +0 -21
  118. package/lib/cjs/decorators/common/example.js.map +0 -1
  119. package/lib/cjs/decorators/common/examples.js +0 -21
  120. package/lib/cjs/decorators/common/examples.js.map +0 -1
  121. package/lib/cjs/decorators/common/exclusiveMaximum.js +0 -78
  122. package/lib/cjs/decorators/common/exclusiveMaximum.js.map +0 -1
  123. package/lib/cjs/decorators/common/exclusiveMinimum.js +0 -78
  124. package/lib/cjs/decorators/common/exclusiveMinimum.js.map +0 -1
  125. package/lib/cjs/decorators/common/format.js +0 -487
  126. package/lib/cjs/decorators/common/format.js.map +0 -1
  127. package/lib/cjs/decorators/common/forwardGroups.js +0 -20
  128. package/lib/cjs/decorators/common/forwardGroups.js.map +0 -1
  129. package/lib/cjs/decorators/common/groups.js +0 -49
  130. package/lib/cjs/decorators/common/groups.js.map +0 -1
  131. package/lib/cjs/decorators/common/hidden.js +0 -40
  132. package/lib/cjs/decorators/common/hidden.js.map +0 -1
  133. package/lib/cjs/decorators/common/ignore.js +0 -68
  134. package/lib/cjs/decorators/common/ignore.js.map +0 -1
  135. package/lib/cjs/decorators/common/integer.js +0 -71
  136. package/lib/cjs/decorators/common/integer.js.map +0 -1
  137. package/lib/cjs/decorators/common/jsonEntityFn.js +0 -32
  138. package/lib/cjs/decorators/common/jsonEntityFn.js.map +0 -1
  139. package/lib/cjs/decorators/common/maxLength.js +0 -90
  140. package/lib/cjs/decorators/common/maxLength.js.map +0 -1
  141. package/lib/cjs/decorators/common/maximum.js +0 -149
  142. package/lib/cjs/decorators/common/maximum.js.map +0 -1
  143. package/lib/cjs/decorators/common/minLength.js +0 -91
  144. package/lib/cjs/decorators/common/minLength.js.map +0 -1
  145. package/lib/cjs/decorators/common/minimum.js +0 -147
  146. package/lib/cjs/decorators/common/minimum.js.map +0 -1
  147. package/lib/cjs/decorators/common/multipleOf.js +0 -82
  148. package/lib/cjs/decorators/common/multipleOf.js.map +0 -1
  149. package/lib/cjs/decorators/common/name.js +0 -52
  150. package/lib/cjs/decorators/common/name.js.map +0 -1
  151. package/lib/cjs/decorators/common/nullable.js +0 -34
  152. package/lib/cjs/decorators/common/nullable.js.map +0 -1
  153. package/lib/cjs/decorators/common/oneOf.js +0 -27
  154. package/lib/cjs/decorators/common/oneOf.js.map +0 -1
  155. package/lib/cjs/decorators/common/optional.js +0 -28
  156. package/lib/cjs/decorators/common/optional.js.map +0 -1
  157. package/lib/cjs/decorators/common/pattern.js +0 -104
  158. package/lib/cjs/decorators/common/pattern.js.map +0 -1
  159. package/lib/cjs/decorators/common/property.js +0 -27
  160. package/lib/cjs/decorators/common/property.js.map +0 -1
  161. package/lib/cjs/decorators/common/readOnly.js +0 -21
  162. package/lib/cjs/decorators/common/readOnly.js.map +0 -1
  163. package/lib/cjs/decorators/common/recordOf.js +0 -63
  164. package/lib/cjs/decorators/common/recordOf.js.map +0 -1
  165. package/lib/cjs/decorators/common/required.js +0 -53
  166. package/lib/cjs/decorators/common/required.js.map +0 -1
  167. package/lib/cjs/decorators/common/requiredGroups.js +0 -26
  168. package/lib/cjs/decorators/common/requiredGroups.js.map +0 -1
  169. package/lib/cjs/decorators/common/schema.js +0 -66
  170. package/lib/cjs/decorators/common/schema.js.map +0 -1
  171. package/lib/cjs/decorators/common/title.js +0 -49
  172. package/lib/cjs/decorators/common/title.js.map +0 -1
  173. package/lib/cjs/decorators/common/typeError.js +0 -18
  174. package/lib/cjs/decorators/common/typeError.js.map +0 -1
  175. package/lib/cjs/decorators/common/writeOnly.js +0 -21
  176. package/lib/cjs/decorators/common/writeOnly.js.map +0 -1
  177. package/lib/cjs/decorators/config/jsonEntityComponent.js +0 -18
  178. package/lib/cjs/decorators/config/jsonEntityComponent.js.map +0 -1
  179. package/lib/cjs/decorators/generics/genericOf.js +0 -99
  180. package/lib/cjs/decorators/generics/genericOf.js.map +0 -1
  181. package/lib/cjs/decorators/generics/generics.js +0 -25
  182. package/lib/cjs/decorators/generics/generics.js.map +0 -1
  183. package/lib/cjs/decorators/operations/acceptMime.js +0 -28
  184. package/lib/cjs/decorators/operations/acceptMime.js.map +0 -1
  185. package/lib/cjs/decorators/operations/consumes.js +0 -39
  186. package/lib/cjs/decorators/operations/consumes.js.map +0 -1
  187. package/lib/cjs/decorators/operations/contentType.js +0 -28
  188. package/lib/cjs/decorators/operations/contentType.js.map +0 -1
  189. package/lib/cjs/decorators/operations/deprecated.js +0 -49
  190. package/lib/cjs/decorators/operations/deprecated.js.map +0 -1
  191. package/lib/cjs/decorators/operations/header.js +0 -63
  192. package/lib/cjs/decorators/operations/header.js.map +0 -1
  193. package/lib/cjs/decorators/operations/in.js +0 -80
  194. package/lib/cjs/decorators/operations/in.js.map +0 -1
  195. package/lib/cjs/decorators/operations/inFile.js +0 -45
  196. package/lib/cjs/decorators/operations/inFile.js.map +0 -1
  197. package/lib/cjs/decorators/operations/location.js +0 -29
  198. package/lib/cjs/decorators/operations/location.js.map +0 -1
  199. package/lib/cjs/decorators/operations/operation.js +0 -48
  200. package/lib/cjs/decorators/operations/operation.js.map +0 -1
  201. package/lib/cjs/decorators/operations/operationId.js +0 -24
  202. package/lib/cjs/decorators/operations/operationId.js.map +0 -1
  203. package/lib/cjs/decorators/operations/operationPath.js +0 -34
  204. package/lib/cjs/decorators/operations/operationPath.js.map +0 -1
  205. package/lib/cjs/decorators/operations/partial.js +0 -18
  206. package/lib/cjs/decorators/operations/partial.js.map +0 -1
  207. package/lib/cjs/decorators/operations/path.js +0 -29
  208. package/lib/cjs/decorators/operations/path.js.map +0 -1
  209. package/lib/cjs/decorators/operations/produces.js +0 -46
  210. package/lib/cjs/decorators/operations/produces.js.map +0 -1
  211. package/lib/cjs/decorators/operations/publish.js +0 -10
  212. package/lib/cjs/decorators/operations/publish.js.map +0 -1
  213. package/lib/cjs/decorators/operations/redirect.js +0 -25
  214. package/lib/cjs/decorators/operations/redirect.js.map +0 -1
  215. package/lib/cjs/decorators/operations/returns.js +0 -293
  216. package/lib/cjs/decorators/operations/returns.js.map +0 -1
  217. package/lib/cjs/decorators/operations/route.js +0 -158
  218. package/lib/cjs/decorators/operations/route.js.map +0 -1
  219. package/lib/cjs/decorators/operations/security.js +0 -31
  220. package/lib/cjs/decorators/operations/security.js.map +0 -1
  221. package/lib/cjs/decorators/operations/status.js +0 -133
  222. package/lib/cjs/decorators/operations/status.js.map +0 -1
  223. package/lib/cjs/decorators/operations/subscribe.js +0 -10
  224. package/lib/cjs/decorators/operations/subscribe.js.map +0 -1
  225. package/lib/cjs/decorators/operations/summary.js +0 -34
  226. package/lib/cjs/decorators/operations/summary.js.map +0 -1
  227. package/lib/cjs/decorators/operations/tags.js +0 -52
  228. package/lib/cjs/decorators/operations/tags.js.map +0 -1
  229. package/lib/cjs/decorators/operations/view.js +0 -31
  230. package/lib/cjs/decorators/operations/view.js.map +0 -1
  231. package/lib/cjs/domain/DecoratorContext.js +0 -88
  232. package/lib/cjs/domain/DecoratorContext.js.map +0 -1
  233. package/lib/cjs/domain/JsonAliasMap.js +0 -15
  234. package/lib/cjs/domain/JsonAliasMap.js.map +0 -1
  235. package/lib/cjs/domain/JsonClassStore.js +0 -37
  236. package/lib/cjs/domain/JsonClassStore.js.map +0 -1
  237. package/lib/cjs/domain/JsonDiscriminator.js +0 -38
  238. package/lib/cjs/domain/JsonDiscriminator.js.map +0 -1
  239. package/lib/cjs/domain/JsonEntityStore.js +0 -158
  240. package/lib/cjs/domain/JsonEntityStore.js.map +0 -1
  241. package/lib/cjs/domain/JsonFormatTypes.js +0 -22
  242. package/lib/cjs/domain/JsonFormatTypes.js.map +0 -1
  243. package/lib/cjs/domain/JsonLazyRef.js +0 -22
  244. package/lib/cjs/domain/JsonLazyRef.js.map +0 -1
  245. package/lib/cjs/domain/JsonMap.js +0 -29
  246. package/lib/cjs/domain/JsonMap.js.map +0 -1
  247. package/lib/cjs/domain/JsonMedia.js +0 -21
  248. package/lib/cjs/domain/JsonMedia.js.map +0 -1
  249. package/lib/cjs/domain/JsonMethodStore.js +0 -147
  250. package/lib/cjs/domain/JsonMethodStore.js.map +0 -1
  251. package/lib/cjs/domain/JsonOperation.js +0 -156
  252. package/lib/cjs/domain/JsonOperation.js.map +0 -1
  253. package/lib/cjs/domain/JsonOperationPathsMap.js +0 -19
  254. package/lib/cjs/domain/JsonOperationPathsMap.js.map +0 -1
  255. package/lib/cjs/domain/JsonOperationRoute.js +0 -54
  256. package/lib/cjs/domain/JsonOperationRoute.js.map +0 -1
  257. package/lib/cjs/domain/JsonParameter.js +0 -50
  258. package/lib/cjs/domain/JsonParameter.js.map +0 -1
  259. package/lib/cjs/domain/JsonParameterStore.js +0 -99
  260. package/lib/cjs/domain/JsonParameterStore.js.map +0 -1
  261. package/lib/cjs/domain/JsonParameterTypes.js +0 -27
  262. package/lib/cjs/domain/JsonParameterTypes.js.map +0 -1
  263. package/lib/cjs/domain/JsonPropertyStore.js +0 -80
  264. package/lib/cjs/domain/JsonPropertyStore.js.map +0 -1
  265. package/lib/cjs/domain/JsonRequestBody.js +0 -34
  266. package/lib/cjs/domain/JsonRequestBody.js.map +0 -1
  267. package/lib/cjs/domain/JsonResponse.js +0 -45
  268. package/lib/cjs/domain/JsonResponse.js.map +0 -1
  269. package/lib/cjs/domain/JsonSchema.js +0 -822
  270. package/lib/cjs/domain/JsonSchema.js.map +0 -1
  271. package/lib/cjs/domain/SpecTypes.js +0 -11
  272. package/lib/cjs/domain/SpecTypes.js.map +0 -1
  273. package/lib/cjs/hooks/alterIgnore.js +0 -24
  274. package/lib/cjs/hooks/alterIgnore.js.map +0 -1
  275. package/lib/cjs/hooks/alterOneOf.js +0 -50
  276. package/lib/cjs/hooks/alterOneOf.js.map +0 -1
  277. package/lib/cjs/hooks/alterRequiredGroups.js +0 -14
  278. package/lib/cjs/hooks/alterRequiredGroups.js.map +0 -1
  279. package/lib/cjs/index.js +0 -186
  280. package/lib/cjs/index.js.map +0 -1
  281. package/lib/cjs/interfaces/IgnoreCallback.js +0 -3
  282. package/lib/cjs/interfaces/IgnoreCallback.js.map +0 -1
  283. package/lib/cjs/interfaces/JsonHookContext.js +0 -3
  284. package/lib/cjs/interfaces/JsonHookContext.js.map +0 -1
  285. package/lib/cjs/interfaces/JsonOpenSpec.js +0 -3
  286. package/lib/cjs/interfaces/JsonOpenSpec.js.map +0 -1
  287. package/lib/cjs/interfaces/JsonSchemaOptions.js +0 -3
  288. package/lib/cjs/interfaces/JsonSchemaOptions.js.map +0 -1
  289. package/lib/cjs/package.json +0 -3
  290. package/lib/cjs/registries/JsonSchemaMapperContainer.js +0 -43
  291. package/lib/cjs/registries/JsonSchemaMapperContainer.js.map +0 -1
  292. package/lib/cjs/registries/enumRegistries.js +0 -5
  293. package/lib/cjs/registries/enumRegistries.js.map +0 -1
  294. package/lib/cjs/utils/buildPath.js +0 -13
  295. package/lib/cjs/utils/buildPath.js.map +0 -1
  296. package/lib/cjs/utils/concatParameters.js +0 -16
  297. package/lib/cjs/utils/concatParameters.js.map +0 -1
  298. package/lib/cjs/utils/concatPath.js +0 -23
  299. package/lib/cjs/utils/concatPath.js.map +0 -1
  300. package/lib/cjs/utils/defineStatusModel.js +0 -13
  301. package/lib/cjs/utils/defineStatusModel.js.map +0 -1
  302. package/lib/cjs/utils/from.js +0 -280
  303. package/lib/cjs/utils/from.js.map +0 -1
  304. package/lib/cjs/utils/generateSpec.js +0 -47
  305. package/lib/cjs/utils/generateSpec.js.map +0 -1
  306. package/lib/cjs/utils/generics.js +0 -40
  307. package/lib/cjs/utils/generics.js.map +0 -1
  308. package/lib/cjs/utils/getComputedType.js +0 -26
  309. package/lib/cjs/utils/getComputedType.js.map +0 -1
  310. package/lib/cjs/utils/getInheritedStores.js +0 -23
  311. package/lib/cjs/utils/getInheritedStores.js.map +0 -1
  312. package/lib/cjs/utils/getJsonEntityStore.js +0 -18
  313. package/lib/cjs/utils/getJsonEntityStore.js.map +0 -1
  314. package/lib/cjs/utils/getJsonPathParameters.js +0 -87
  315. package/lib/cjs/utils/getJsonPathParameters.js.map +0 -1
  316. package/lib/cjs/utils/getJsonSchema.js +0 -59
  317. package/lib/cjs/utils/getJsonSchema.js.map +0 -1
  318. package/lib/cjs/utils/getJsonType.js +0 -40
  319. package/lib/cjs/utils/getJsonType.js.map +0 -1
  320. package/lib/cjs/utils/getOperationsRoutes.js +0 -37
  321. package/lib/cjs/utils/getOperationsRoutes.js.map +0 -1
  322. package/lib/cjs/utils/getOperationsStores.js +0 -33
  323. package/lib/cjs/utils/getOperationsStores.js.map +0 -1
  324. package/lib/cjs/utils/getPropertiesStores.js +0 -45
  325. package/lib/cjs/utils/getPropertiesStores.js.map +0 -1
  326. package/lib/cjs/utils/getSpec.js +0 -79
  327. package/lib/cjs/utils/getSpec.js.map +0 -1
  328. package/lib/cjs/utils/getSpecType.js +0 -21
  329. package/lib/cjs/utils/getSpecType.js.map +0 -1
  330. package/lib/cjs/utils/isSuccessStatus.js +0 -8
  331. package/lib/cjs/utils/isSuccessStatus.js.map +0 -1
  332. package/lib/cjs/utils/mapHeaders.js +0 -29
  333. package/lib/cjs/utils/mapHeaders.js.map +0 -1
  334. package/lib/cjs/utils/mapOpenSpec.js +0 -41
  335. package/lib/cjs/utils/mapOpenSpec.js.map +0 -1
  336. package/lib/cjs/utils/mapOpenSpec2.js +0 -34
  337. package/lib/cjs/utils/mapOpenSpec2.js.map +0 -1
  338. package/lib/cjs/utils/mapOpenSpec3.js +0 -26
  339. package/lib/cjs/utils/mapOpenSpec3.js.map +0 -1
  340. package/lib/cjs/utils/mapOpenSpecInfo.js +0 -21
  341. package/lib/cjs/utils/mapOpenSpecInfo.js.map +0 -1
  342. package/lib/cjs/utils/mapOperationOptions.js +0 -31
  343. package/lib/cjs/utils/mapOperationOptions.js.map +0 -1
  344. package/lib/cjs/utils/matchGroups.js +0 -56
  345. package/lib/cjs/utils/matchGroups.js.map +0 -1
  346. package/lib/cjs/utils/mergeSpec.js +0 -51
  347. package/lib/cjs/utils/mergeSpec.js.map +0 -1
  348. package/lib/cjs/utils/operationIdFormatter.js +0 -41
  349. package/lib/cjs/utils/operationIdFormatter.js.map +0 -1
  350. package/lib/cjs/utils/ref.js +0 -55
  351. package/lib/cjs/utils/ref.js.map +0 -1
  352. package/lib/cjs/utils/removeHiddenOperation.js +0 -8
  353. package/lib/cjs/utils/removeHiddenOperation.js.map +0 -1
  354. package/lib/cjs/utils/serializeEnumValues.js +0 -26
  355. package/lib/cjs/utils/serializeEnumValues.js.map +0 -1
  356. package/lib/cjs/utils/somethingOf.js +0 -16
  357. package/lib/cjs/utils/somethingOf.js.map +0 -1
  358. package/lib/cjs/utils/toJsonMapCollection.js +0 -15
  359. package/lib/cjs/utils/toJsonMapCollection.js.map +0 -1
  360. package/lib/cjs/utils/toJsonRegex.js +0 -12
  361. package/lib/cjs/utils/toJsonRegex.js.map +0 -1
  362. package/lib/cjs/utils/transformToOS2.js +0 -509
  363. package/lib/cjs/utils/transformToOS2.js.map +0 -1
  364. package/lib/cjs/utils/withErrorMsg.js +0 -34
  365. package/lib/cjs/utils/withErrorMsg.js.map +0 -1
  366. package/lib/esm/package.json +0 -3
  367. package/lib/types-esm/components/async-api/channelsMapper.d.ts +0 -2
  368. package/lib/types-esm/components/async-api/generate.d.ts +0 -1
  369. package/lib/types-esm/components/async-api/messageMapper.d.ts +0 -6
  370. package/lib/types-esm/components/async-api/payloadMapper.d.ts +0 -4
  371. package/lib/types-esm/components/async-api/responseMapper.d.ts +0 -6
  372. package/lib/types-esm/components/default/anyMapper.d.ts +0 -2
  373. package/lib/types-esm/components/default/classMapper.d.ts +0 -3
  374. package/lib/types-esm/components/default/genericsMapper.d.ts +0 -5
  375. package/lib/types-esm/components/default/inheritedClassMapper.d.ts +0 -5
  376. package/lib/types-esm/components/default/inlineEnumsMapper.d.ts +0 -3
  377. package/lib/types-esm/components/default/itemMapper.d.ts +0 -2
  378. package/lib/types-esm/components/default/lazyRefMapper.d.ts +0 -3
  379. package/lib/types-esm/components/default/mapMapper.d.ts +0 -9
  380. package/lib/types-esm/components/default/nullableMapper.d.ts +0 -2
  381. package/lib/types-esm/components/default/objectMapper.d.ts +0 -8
  382. package/lib/types-esm/components/default/ofMapper.d.ts +0 -3
  383. package/lib/types-esm/components/default/propertiesMapper.d.ts +0 -3
  384. package/lib/types-esm/components/default/requiredMapper.d.ts +0 -3
  385. package/lib/types-esm/components/default/schemaMapper.d.ts +0 -3
  386. package/lib/types-esm/components/index.d.ts +0 -33
  387. package/lib/types-esm/components/open-spec/generate.d.ts +0 -1
  388. package/lib/types-esm/components/open-spec/nullableMapper.d.ts +0 -2
  389. package/lib/types-esm/components/open-spec/operationInFilesMapper.d.ts +0 -2
  390. package/lib/types-esm/components/open-spec/operationInParameterMapper.d.ts +0 -10
  391. package/lib/types-esm/components/open-spec/operationInParametersMapper.d.ts +0 -3
  392. package/lib/types-esm/components/open-spec/operationInQueryMapper.d.ts +0 -2
  393. package/lib/types-esm/components/open-spec/operationMapper.d.ts +0 -3
  394. package/lib/types-esm/components/open-spec/operationMediaMapper.d.ts +0 -3
  395. package/lib/types-esm/components/open-spec/operationRequestBodyMapper.d.ts +0 -3
  396. package/lib/types-esm/components/open-spec/operationResponseMapper.d.ts +0 -3
  397. package/lib/types-esm/components/open-spec/pathsMapper.d.ts +0 -2
  398. package/lib/types-esm/constants/OperationVerbs.d.ts +0 -16
  399. package/lib/types-esm/constants/httpStatusMessages.d.ts +0 -11
  400. package/lib/types-esm/constants/jsonSchemaProperties.d.ts +0 -7
  401. package/lib/types-esm/decorators/class/children.d.ts +0 -11
  402. package/lib/types-esm/decorators/class/discriminatorValue.d.ts +0 -42
  403. package/lib/types-esm/decorators/collections/collectionContains.d.ts +0 -21
  404. package/lib/types-esm/decorators/collections/collectionOf.d.ts +0 -101
  405. package/lib/types-esm/decorators/collections/maxItems.d.ts +0 -48
  406. package/lib/types-esm/decorators/collections/maxProperties.d.ts +0 -71
  407. package/lib/types-esm/decorators/collections/minItems.d.ts +0 -52
  408. package/lib/types-esm/decorators/collections/minProperties.d.ts +0 -70
  409. package/lib/types-esm/decorators/collections/uniqueItems.d.ts +0 -51
  410. package/lib/types-esm/decorators/common/additionalProperties.d.ts +0 -11
  411. package/lib/types-esm/decorators/common/allOf.d.ts +0 -13
  412. package/lib/types-esm/decorators/common/allow.d.ts +0 -28
  413. package/lib/types-esm/decorators/common/any.d.ts +0 -38
  414. package/lib/types-esm/decorators/common/anyOf.d.ts +0 -17
  415. package/lib/types-esm/decorators/common/const.d.ts +0 -61
  416. package/lib/types-esm/decorators/common/customKey.d.ts +0 -26
  417. package/lib/types-esm/decorators/common/default.d.ts +0 -41
  418. package/lib/types-esm/decorators/common/defaultMsg.d.ts +0 -32
  419. package/lib/types-esm/decorators/common/description.d.ts +0 -53
  420. package/lib/types-esm/decorators/common/discriminatorKey.d.ts +0 -1
  421. package/lib/types-esm/decorators/common/enum.d.ts +0 -101
  422. package/lib/types-esm/decorators/common/errorMsg.d.ts +0 -6
  423. package/lib/types-esm/decorators/common/example.d.ts +0 -11
  424. package/lib/types-esm/decorators/common/examples.d.ts +0 -12
  425. package/lib/types-esm/decorators/common/exclusiveMaximum.d.ts +0 -70
  426. package/lib/types-esm/decorators/common/exclusiveMinimum.d.ts +0 -70
  427. package/lib/types-esm/decorators/common/format.d.ts +0 -466
  428. package/lib/types-esm/decorators/common/forwardGroups.d.ts +0 -10
  429. package/lib/types-esm/decorators/common/groups.d.ts +0 -12
  430. package/lib/types-esm/decorators/common/hidden.d.ts +0 -32
  431. package/lib/types-esm/decorators/common/ignore.d.ts +0 -59
  432. package/lib/types-esm/decorators/common/integer.d.ts +0 -61
  433. package/lib/types-esm/decorators/common/jsonEntityFn.d.ts +0 -21
  434. package/lib/types-esm/decorators/common/maxLength.d.ts +0 -77
  435. package/lib/types-esm/decorators/common/maximum.d.ts +0 -139
  436. package/lib/types-esm/decorators/common/minLength.d.ts +0 -78
  437. package/lib/types-esm/decorators/common/minimum.d.ts +0 -137
  438. package/lib/types-esm/decorators/common/multipleOf.d.ts +0 -69
  439. package/lib/types-esm/decorators/common/name.d.ts +0 -32
  440. package/lib/types-esm/decorators/common/nullable.d.ts +0 -25
  441. package/lib/types-esm/decorators/common/oneOf.d.ts +0 -17
  442. package/lib/types-esm/decorators/common/optional.d.ts +0 -10
  443. package/lib/types-esm/decorators/common/pattern.d.ts +0 -94
  444. package/lib/types-esm/decorators/common/property.d.ts +0 -11
  445. package/lib/types-esm/decorators/common/readOnly.d.ts +0 -11
  446. package/lib/types-esm/decorators/common/recordOf.d.ts +0 -46
  447. package/lib/types-esm/decorators/common/required.d.ts +0 -44
  448. package/lib/types-esm/decorators/common/requiredGroups.d.ts +0 -10
  449. package/lib/types-esm/decorators/common/schema.d.ts +0 -53
  450. package/lib/types-esm/decorators/common/title.d.ts +0 -39
  451. package/lib/types-esm/decorators/common/typeError.d.ts +0 -8
  452. package/lib/types-esm/decorators/common/writeOnly.d.ts +0 -11
  453. package/lib/types-esm/decorators/config/jsonEntityComponent.d.ts +0 -10
  454. package/lib/types-esm/decorators/generics/genericOf.d.ts +0 -76
  455. package/lib/types-esm/decorators/generics/generics.d.ts +0 -14
  456. package/lib/types-esm/decorators/operations/acceptMime.d.ts +0 -19
  457. package/lib/types-esm/decorators/operations/consumes.d.ts +0 -19
  458. package/lib/types-esm/decorators/operations/contentType.d.ts +0 -20
  459. package/lib/types-esm/decorators/operations/deprecated.d.ts +0 -23
  460. package/lib/types-esm/decorators/operations/header.d.ts +0 -49
  461. package/lib/types-esm/decorators/operations/in.d.ts +0 -64
  462. package/lib/types-esm/decorators/operations/inFile.d.ts +0 -25
  463. package/lib/types-esm/decorators/operations/location.d.ts +0 -22
  464. package/lib/types-esm/decorators/operations/operation.d.ts +0 -60
  465. package/lib/types-esm/decorators/operations/operationId.d.ts +0 -10
  466. package/lib/types-esm/decorators/operations/operationPath.d.ts +0 -21
  467. package/lib/types-esm/decorators/operations/partial.d.ts +0 -10
  468. package/lib/types-esm/decorators/operations/path.d.ts +0 -15
  469. package/lib/types-esm/decorators/operations/produces.d.ts +0 -26
  470. package/lib/types-esm/decorators/operations/publish.d.ts +0 -1
  471. package/lib/types-esm/decorators/operations/redirect.d.ts +0 -52
  472. package/lib/types-esm/decorators/operations/returns.d.ts +0 -267
  473. package/lib/types-esm/decorators/operations/route.d.ts +0 -128
  474. package/lib/types-esm/decorators/operations/security.d.ts +0 -56
  475. package/lib/types-esm/decorators/operations/status.d.ts +0 -127
  476. package/lib/types-esm/decorators/operations/subscribe.d.ts +0 -1
  477. package/lib/types-esm/decorators/operations/summary.d.ts +0 -20
  478. package/lib/types-esm/decorators/operations/tags.d.ts +0 -23
  479. package/lib/types-esm/decorators/operations/view.d.ts +0 -23
  480. package/lib/types-esm/domain/DecoratorContext.d.ts +0 -28
  481. package/lib/types-esm/domain/JsonAliasMap.d.ts +0 -12
  482. package/lib/types-esm/domain/JsonClassStore.d.ts +0 -12
  483. package/lib/types-esm/domain/JsonDiscriminator.d.ts +0 -18
  484. package/lib/types-esm/domain/JsonEntityStore.d.ts +0 -110
  485. package/lib/types-esm/domain/JsonFormatTypes.d.ts +0 -17
  486. package/lib/types-esm/domain/JsonLazyRef.d.ts +0 -9
  487. package/lib/types-esm/domain/JsonMap.d.ts +0 -9
  488. package/lib/types-esm/domain/JsonMedia.d.ts +0 -11
  489. package/lib/types-esm/domain/JsonMethodStore.d.ts +0 -92
  490. package/lib/types-esm/domain/JsonOperation.d.ts +0 -51
  491. package/lib/types-esm/domain/JsonOperationPathsMap.d.ts +0 -7
  492. package/lib/types-esm/domain/JsonOperationRoute.d.ts +0 -25
  493. package/lib/types-esm/domain/JsonParameter.d.ts +0 -22
  494. package/lib/types-esm/domain/JsonParameterStore.d.ts +0 -52
  495. package/lib/types-esm/domain/JsonParameterTypes.d.ts +0 -16
  496. package/lib/types-esm/domain/JsonPropertyStore.d.ts +0 -32
  497. package/lib/types-esm/domain/JsonRequestBody.d.ts +0 -12
  498. package/lib/types-esm/domain/JsonResponse.d.ts +0 -18
  499. package/lib/types-esm/domain/JsonSchema.d.ts +0 -340
  500. package/lib/types-esm/domain/SpecTypes.d.ts +0 -6
  501. package/lib/types-esm/hooks/alterIgnore.d.ts +0 -10
  502. package/lib/types-esm/hooks/alterOneOf.d.ts +0 -3
  503. package/lib/types-esm/hooks/alterRequiredGroups.d.ts +0 -6
  504. package/lib/types-esm/index.d.ts +0 -182
  505. package/lib/types-esm/interfaces/IgnoreCallback.d.ts +0 -4
  506. package/lib/types-esm/interfaces/JsonHookContext.d.ts +0 -17
  507. package/lib/types-esm/interfaces/JsonOpenSpec.d.ts +0 -9
  508. package/lib/types-esm/interfaces/JsonSchemaOptions.d.ts +0 -30
  509. package/lib/types-esm/registries/JsonSchemaMapperContainer.d.ts +0 -21
  510. package/lib/types-esm/registries/enumRegistries.d.ts +0 -2
  511. package/lib/types-esm/utils/buildPath.d.ts +0 -6
  512. package/lib/types-esm/utils/concatParameters.d.ts +0 -4
  513. package/lib/types-esm/utils/concatPath.d.ts +0 -1
  514. package/lib/types-esm/utils/defineStatusModel.d.ts +0 -3
  515. package/lib/types-esm/utils/from.d.ts +0 -190
  516. package/lib/types-esm/utils/generateSpec.d.ts +0 -16
  517. package/lib/types-esm/utils/generics.d.ts +0 -50
  518. package/lib/types-esm/utils/getComputedType.d.ts +0 -5
  519. package/lib/types-esm/utils/getInheritedStores.d.ts +0 -8
  520. package/lib/types-esm/utils/getJsonEntityStore.d.ts +0 -15
  521. package/lib/types-esm/utils/getJsonPathParameters.d.ts +0 -7
  522. package/lib/types-esm/utils/getJsonSchema.d.ts +0 -4
  523. package/lib/types-esm/utils/getJsonType.d.ts +0 -5
  524. package/lib/types-esm/utils/getOperationsRoutes.d.ts +0 -10
  525. package/lib/types-esm/utils/getOperationsStores.d.ts +0 -6
  526. package/lib/types-esm/utils/getPropertiesStores.d.ts +0 -20
  527. package/lib/types-esm/utils/getSpec.d.ts +0 -34
  528. package/lib/types-esm/utils/getSpecType.d.ts +0 -12
  529. package/lib/types-esm/utils/isSuccessStatus.d.ts +0 -2
  530. package/lib/types-esm/utils/mapHeaders.d.ts +0 -9
  531. package/lib/types-esm/utils/mapOpenSpec.d.ts +0 -10
  532. package/lib/types-esm/utils/mapOpenSpec2.d.ts +0 -9
  533. package/lib/types-esm/utils/mapOpenSpec3.d.ts +0 -8
  534. package/lib/types-esm/utils/mapOpenSpecInfo.d.ts +0 -6
  535. package/lib/types-esm/utils/mapOperationOptions.d.ts +0 -5
  536. package/lib/types-esm/utils/matchGroups.d.ts +0 -4
  537. package/lib/types-esm/utils/mergeSpec.d.ts +0 -23
  538. package/lib/types-esm/utils/operationIdFormatter.d.ts +0 -6
  539. package/lib/types-esm/utils/ref.d.ts +0 -14
  540. package/lib/types-esm/utils/removeHiddenOperation.d.ts +0 -2
  541. package/lib/types-esm/utils/serializeEnumValues.d.ts +0 -5
  542. package/lib/types-esm/utils/somethingOf.d.ts +0 -1
  543. package/lib/types-esm/utils/toJsonMapCollection.d.ts +0 -7
  544. package/lib/types-esm/utils/toJsonRegex.d.ts +0 -5
  545. package/lib/types-esm/utils/transformToOS2.d.ts +0 -25
  546. package/lib/types-esm/utils/withErrorMsg.d.ts +0 -6
  547. /package/{webpack.config.js → webpack.config.cjs} +0 -0
@@ -1,94 +0,0 @@
1
- /**
2
- * The pattern and Pattern Properties keywords use regular expressions to express constraints.
3
- * The regular expression syntax used is from JavaScript (ECMA 262, specifically). However, that complete syntax is not widely supported, therefore it is recommended that you stick to the subset of that syntax described below.
4
- *
5
- * ::: warning
6
- * For v6 user, use @@Pattern@@ from @tsed/schema instead of @tsed/common.
7
- * :::
8
- *
9
- * A single unicode character (other than the special characters below) matches itself.
10
- *
11
- * * `^`: Matches only at the beginning of the string.
12
- * * `$`: Matches only at the end of the string.
13
- * * `(...)`: Group a series of regular expressions into a single regular expression.
14
- * * `|`: Matches either the regular expression preceding or following the | symbol.
15
- * * `[abc]`: Matches any of the characters inside the square brackets.
16
- * * `[a-z]`: Matches the range of characters.
17
- * * `[^abc]`: Matches any character not listed.
18
- * * `[^a-z]`: Matches any character outside of the range.
19
- * * `+`: Matches one or more repetitions of the preceding regular expression.
20
- * * `*`: Matches zero or more repetitions of the preceding regular expression.
21
- * * `?`: Matches zero or one repetitions of the preceding regular expression.
22
- * * `+?`, *?`, ??`: The `*`, `+`, and `?` qualifiers are all greedy; they match as much text as possible. Sometimes this behavior isn’t desired and you want to match as few characters as possible.
23
- * * `{x}`: Match exactly x occurrences of the preceding regular expression.
24
- * * `{x,y}`: Match at least x and at most y occurrences of the preceding regular expression.
25
- * * `{x,}`: Match x occurrences or more of the preceding regular expression.
26
- * * `{x}?`, {x,y}?, {x,}?`: Lazy versions of the above expressions.
27
- *
28
- * ## Example
29
- *
30
- * ```typescript
31
- * class Model {
32
- * @Pattern("^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$")
33
- * @Pattern(/^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$/)
34
- * property: string;
35
- * }
36
- * ```
37
- *
38
- * ### With primitive type
39
- *
40
- * ```typescript
41
- * class Model {
42
- * @Pattern(/^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$/)
43
- * property: string;
44
- * }
45
- * ```
46
- *
47
- * ```json
48
- * {
49
- * "type": "object",
50
- * "properties": {
51
- * "property": {
52
- * "type": "string",
53
- * "pattern": "^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$"
54
- * }
55
- * }
56
- * }
57
- * ```
58
- *
59
- * ### With array type
60
- *
61
- * ```typescript
62
- * class Model {
63
- * @CollectionOf(string)
64
- * @Pattern(/^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$/)
65
- * property: string[];
66
- * }
67
- * ```
68
- *
69
- * Will produce:
70
- *
71
- * ```json
72
- * {
73
- * "type": "object",
74
- * "properties": {
75
- * "property": {
76
- * "type": "array",
77
- * "items": {
78
- * "type": "string",
79
- * "pattern": "^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$"
80
- * }
81
- * }
82
- * }
83
- * }
84
- * ```
85
- *
86
- * @param {string} pattern
87
- * @decorator
88
- * @validation
89
- * @swagger
90
- * @schema
91
- * @input
92
- * @ajv-errors
93
- */
94
- export declare const Pattern: import("../../utils/withErrorMsg.js").ErrorChainedDecorator<(pattern: string | RegExp) => (...args: any[]) => any>;
@@ -1,11 +0,0 @@
1
- /**
2
- * Declare a new property on a model.
3
- *
4
- * @param type
5
- * @decorator
6
- * @validation
7
- * @swagger
8
- * @schema
9
- * @input
10
- */
11
- export declare function Property(type?: any): (...args: any[]) => any;
@@ -1,11 +0,0 @@
1
- /**
2
- * Set the property as readOnly.
3
- *
4
- * @returns {Function}
5
- * @decorator
6
- * @validation
7
- * @property
8
- * @parameter
9
- * @schema
10
- */
11
- export declare function ReadOnly(readOnly?: boolean): (...args: any[]) => any;
@@ -1,46 +0,0 @@
1
- /**
2
- * Constructs a json schema object type whose property keys are keys and whose property values are type.
3
- *
4
- * ## Example
5
- *
6
- * ```typescript
7
- * type keys = 'one' | 'two';
8
- *
9
- * class Part {
10
- * prop: string;
11
- * }
12
- *
13
- * type Parts = Record<keys, Part>;
14
- *
15
- * class Test {
16
- * @RecordOf(Part, 'one', 'two')
17
- * parts: Parts;
18
- * }
19
- * ```
20
- *
21
- * Will produce:
22
- *
23
- * ```json
24
- * {
25
- * "type": "object",
26
- * "properties": {
27
- * "one": {
28
- * "$ref": "#/components/schemas/Part"
29
- * },
30
- * "two": {
31
- * "$ref": "#/components/schemas/Part"
32
- * },
33
- * },
34
- * }
35
- * ```
36
- *
37
- * @param model
38
- * @param keys
39
- * @decorator
40
- * @validation
41
- * @swagger
42
- * @schema
43
- * @classDecorator
44
- * @input
45
- */
46
- export declare function RecordOf(model: any, ...keys: string[]): (...args: any[]) => any;
@@ -1,44 +0,0 @@
1
- /**
2
- * Add required annotation on Property or Parameter.
3
- *
4
- * The @@Required@@ decorator can be used on two cases.
5
- *
6
- * To decorate a parameters:
7
- *
8
- * ```typescript
9
- * @Post("/")
10
- * async method(@Required() @BodyParams("field") field: string) {}
11
- * ```
12
- *
13
- * To decorate a model:
14
- *
15
- * ```typescript
16
- * class Model {
17
- * @Required()
18
- * field: string;
19
- * }
20
- * ```
21
- *
22
- * ::: tip
23
- * Required will throw a BadRequest when the given value is `null`, an empty string or `undefined`.
24
- * :::
25
- *
26
- * ### Allow values
27
- *
28
- * In some case, you didn't want trigger a BadRequest when the value is an empty string for example.
29
- * The decorator `@Allow()`, allow you to configure a value list for which there will be no exception.
30
- *
31
- * ```typescript
32
- * class Model {
33
- * @Allow("") // add automatically required flag
34
- * field: string;
35
- * }
36
- * ```
37
- *
38
- * @decorator
39
- * @validation
40
- * @swagger
41
- * @schema
42
- * @input
43
- */
44
- export declare const Required: import("../../utils/withErrorMsg.js").ErrorChainedDecorator<(required?: boolean, ...allowedRequiredValues: any[]) => any>;
@@ -1,10 +0,0 @@
1
- /**
2
- * Apply groups validation strategy for required property.
3
- *
4
- * @decorator
5
- * @validation
6
- * @swagger
7
- * @schema
8
- * @input
9
- */
10
- export declare function RequiredGroups(...groups: string[]): PropertyDecorator;
@@ -1,53 +0,0 @@
1
- import { JsonSchema, JsonSchemaObject } from "../../domain/JsonSchema.js";
2
- import { SpecTypes } from "../../domain/SpecTypes.js";
3
- /**
4
- * Write data formatted to JsonSchema.
5
- *
6
- * ## Example
7
- *
8
- * ```typescript
9
- * @Schema({title: "test"})
10
- * class Model {
11
- * @Schema({formatMinimum: "1987-10-24"})
12
- * @Format("date")
13
- * birthDate: Date
14
- * }
15
- * ```
16
- *
17
- * Will produce:
18
- *
19
- * ```json
20
- * {
21
- * "type": "object",
22
- * "title": "test",
23
- * "properties": {
24
- * "birthdate": {
25
- * "type": "string",
26
- * "format": "date",
27
- * "formatMinimum": "1987-10-24"
28
- * }
29
- * }
30
- * }
31
- * ```
32
- *
33
- * @param partialSchema
34
- * @decorator
35
- * @validation
36
- * @swagger
37
- * @schema
38
- * @classDecorator
39
- * @input
40
- */
41
- export declare function Schema(partialSchema: Partial<JsonSchemaObject> | JsonSchema): (...args: any[]) => any;
42
- /**
43
- * Apply specific schema depending on the spec version
44
- * @param specType
45
- * @param schema
46
- * @decorator
47
- * @validation
48
- * @swagger
49
- * @schema
50
- * @classDecorator
51
- * @input
52
- */
53
- export declare function For(specType: SpecTypes, schema: any): (...args: any[]) => any;
@@ -1,39 +0,0 @@
1
- /**
2
- * Add title metadata on the decorated element.
3
- *
4
- * ::: warning
5
- * For v6 user, use @@Title@@ from @tsed/schema instead of @tsed/common.
6
- * :::
7
- *
8
- * ## Example
9
- *
10
- * ```typescript
11
- * class Model {
12
- * @Title("title")
13
- * id: string;
14
- * }
15
- * ```
16
- *
17
- * Will produce:
18
- *
19
- * ```json
20
- * {
21
- * "type": "object",
22
- * "properties": {
23
- * "id": {
24
- * "type": "string",
25
- * "title": "title"
26
- * }
27
- * }
28
- * }
29
- * ```
30
- *
31
- * @param {string} title
32
- * @decorator
33
- * @validation
34
- * @swagger
35
- * @schema
36
- * @classDecorator
37
- * @input
38
- */
39
- export declare function Title(title: string): (...args: any[]) => any;
@@ -1,8 +0,0 @@
1
- /**
2
- * Create a new custom formats validator
3
- * @param name
4
- * @param options
5
- * @decorator
6
- * @ajv
7
- */
8
- export declare function TypeError(msg: string): ClassDecorator;
@@ -1,11 +0,0 @@
1
- /**
2
- * Set the property as WriteOnly.
3
- *
4
- * @returns {Function}
5
- * @decorator
6
- * @validation
7
- * @property
8
- * @parameter
9
- * @schema
10
- */
11
- export declare function WriteOnly(writeOnly?: boolean): (...args: any[]) => any;
@@ -1,10 +0,0 @@
1
- import { DecoratorTypes, Type } from "@tsed/core";
2
- import { JsonEntityStore } from "../../domain/JsonEntityStore.js";
3
- /**
4
- * Declare a new JsonEntityStore class for a specific decorator type.
5
- *
6
- * @ignore
7
- * @param type
8
- * @decorator
9
- */
10
- export declare function JsonEntityComponent(type: DecoratorTypes): (target: Type<JsonEntityStore>) => void;
@@ -1,76 +0,0 @@
1
- import { GenericValue } from "../../utils/generics.js";
2
- export interface GenericOfChainedDecorators {
3
- (...args: any): any;
4
- /**
5
- * Declare a nested generic models
6
- * @param generics
7
- */
8
- Nested(...generics: GenericValue[]): this;
9
- }
10
- /**
11
- * Set the types of a Generic class.
12
- *
13
- * ## Example
14
- *
15
- * ```typescript
16
- * class Product {
17
- * @Property()
18
- * label: string;
19
- * }
20
- *
21
- * @Generics("T")
22
- * class Paginated<T> {
23
- * @CollectionOf("T")
24
- * data: T[];
25
- *
26
- * @Property()
27
- * totalCount: number;
28
- * }
29
- *
30
- * class Payload {
31
- * @GenericOf(Product)
32
- * products: Paginated<Product>;
33
- * }
34
- * ```
35
- *
36
- * ## Example with nested generics
37
- *
38
- * ```typescript
39
- * class Product {
40
- * @Property()
41
- * label: string;
42
- * }
43
- *
44
- * @Generics("T")
45
- * class Paginated<T> {
46
- * @CollectionOf("T")
47
- * data: T[];
48
- *
49
- * @Property()
50
- * totalCount: number;
51
- * }
52
- *
53
- * @Generics("D")
54
- * class Submission<D> {
55
- * @Property()
56
- * _id: string;
57
- *
58
- * @Property("D")
59
- * data: D;
60
- * }
61
- *
62
- * class Payload {
63
- * @GenericOf(Submissions).Nested(Product)
64
- * submissions: Paginated<Submission<Product>>;
65
- * }
66
- * ```
67
- *
68
- * @param {Type<any>[]} generics
69
- * @decorator
70
- * @validation
71
- * @swagger
72
- * @schema
73
- * @input
74
- * @generics
75
- */
76
- export declare function GenericOf(...generics: GenericValue[]): GenericOfChainedDecorators;
@@ -1,14 +0,0 @@
1
- /**
2
- * Define generics list. This list is used by @@GenericOf@@ and the @@getJsonSchema@@ function to build the correct JsonSchema.
3
- *
4
- * See @@GenericOf@@ decorator for more details.
5
- *
6
- * @param generics
7
- * @decorator
8
- * @validation
9
- * @swagger
10
- * @schema
11
- * @input
12
- * @generics
13
- */
14
- export declare function Generics(...generics: string[]): (target: any) => void;
@@ -1,19 +0,0 @@
1
- /**
2
- * Set a mime list which are acceptable and checks if the specified content types are acceptable, based on the request’s Accept HTTP header field.
3
- *
4
- * ```typescript
5
- * @Controller('/mypath')
6
- * export class MyCtrl {
7
- *
8
- * @Get('/')
9
- * @AcceptMime('application/json')
10
- * public getResource(){}
11
- * }
12
- * ```
13
- *
14
- * @param mimes
15
- * @decorator
16
- * @operation
17
- * @response
18
- */
19
- export declare function AcceptMime(...mimes: string[]): Function;
@@ -1,19 +0,0 @@
1
- /**
2
- * Add consumes metadata on the decorated element.
3
- *
4
- * ## Examples
5
- *
6
- * ```typescript
7
- * class Model {
8
- * @Consumes("application/x-www-form-urlencoded")
9
- * id: string;
10
- * }
11
- * ```
12
- *
13
- * @param consumes
14
- * @decorator
15
- * @swagger
16
- * @classDecorator
17
- * @operation
18
- */
19
- export declare function Consumes(...consumes: string[]): (...args: any[]) => any;
@@ -1,20 +0,0 @@
1
- /**
2
- * Sets the Content-Type HTTP header to the MIME type as determined by mime.lookup() for the specified type.
3
- * If type contains the “/” character, then it sets the `Content-Type` to type.
4
- *
5
- * ```typescript
6
- * @ContentType('.html'); // => 'text/html'
7
- * @ContentType('html'); // => 'text/html'
8
- * @ContentType('json'); // => 'application/json'
9
- * @ContentType('application/json'); // => 'application/json'
10
- * @ContentType('png'); // => image/png
11
- * private myMethod() {}
12
- * ```
13
- *
14
- * @param type
15
- * @decorator
16
- * @operation
17
- * @response
18
- * @headers
19
- */
20
- export declare function ContentType(type: string): import("./returns.js").ReturnsChainedDecorators;
@@ -1,23 +0,0 @@
1
- /**
2
- * Add deprecated metadata on the decorated element.
3
- *
4
- * ## Examples
5
- *
6
- * ```typescript
7
- *
8
- * @Deprecated()
9
- * class MyCtrl {
10
- * @Deprecated()
11
- * @Get("/")
12
- * method(){
13
- * }
14
- * }
15
- * ```
16
- *
17
- * @param deprecated
18
- * @decorator
19
- * @swagger
20
- * @schema
21
- * @operation
22
- */
23
- export declare function Deprecated(deprecated?: boolean): (...args: any[]) => any;
@@ -1,49 +0,0 @@
1
- import { JsonHeader, JsonHeaders } from "../../interfaces/JsonOpenSpec.js";
2
- /**
3
- * Sets the response’s HTTP header field to value. To set multiple fields at once, pass an object as the parameter.
4
- *
5
- * ```typescript
6
- * @Header('Content-Type', 'text/plain');
7
- * private myMethod() {}
8
- *
9
- * @Status(204)
10
- * @Header({
11
- * "Content-Type": "text/plain",
12
- * "Content-Length": 123,
13
- * "ETag": {
14
- * "value": "12345",
15
- * "description": "header description"
16
- * }
17
- * })
18
- * private myMethod() {}
19
- * ```
20
- *
21
- * This example will produce the swagger responses object:
22
- *
23
- * ```json
24
- * {
25
- * "responses": {
26
- * "204": {
27
- * "description": "Description",
28
- * "headers": {
29
- * "Content-Type": {
30
- * "type": "string"
31
- * },
32
- * "Content-Length": {
33
- * "type": "number"
34
- * },
35
- * "ETag": {
36
- * "type": "string",
37
- * "description": "header description"
38
- * }
39
- * }
40
- * }
41
- * }
42
- * }
43
- * ```
44
- *
45
- * @decorator
46
- * @operation
47
- * @response
48
- */
49
- export declare function Header(headers: string | number | JsonHeaders, value?: string | number | JsonHeader): Function;
@@ -1,64 +0,0 @@
1
- import { Type } from "@tsed/core";
2
- import { JsonParameterTypes } from "../../domain/JsonParameterTypes.js";
3
- import { JsonSchema, JsonSchemaObject } from "../../domain/JsonSchema.js";
4
- export interface InChainedDecorators {
5
- <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
6
- (target: Object, propertyKey: string | symbol, parameterIndex: number): void;
7
- (target: Function): void;
8
- /**
9
- * Type of this in parameter
10
- * @param type
11
- */
12
- Type(type: Type<any>): this;
13
- /**
14
- *
15
- * @param name
16
- */
17
- Name(name: string): this;
18
- /**
19
- *
20
- * @param description
21
- */
22
- Description(description: string): this;
23
- /**
24
- *
25
- * @param required
26
- */
27
- Required(required?: boolean): this;
28
- /**
29
- * Add pattern constraint. Only available for OPENAPI.
30
- * @param pattern
31
- */
32
- Pattern(pattern: string | RegExp): this;
33
- /**
34
- * Add custom schema.
35
- * @param schema
36
- */
37
- Schema(schema: Partial<JsonSchemaObject | JsonSchema>): this;
38
- }
39
- /**
40
- * Add a input parameter.
41
- *
42
- * ::: warning
43
- * Don't use decorator with Ts.ED application to decorate parameters. Use @@BodyParams@@, @@PathParams@@, etc... instead.
44
- * But you can use this decorator on Method, to add extra in parameters like Authorization header.
45
- *
46
- * ```typescript
47
- * @Controller("/")
48
- * class MyController {
49
- * @Get("/")
50
- * @In("header").Type(String).Name("Authorization").Required()
51
- * method() {
52
- * }
53
- * }
54
- * ```
55
- * :::
56
- *
57
- * @param inType
58
- * @decorator
59
- * @swagger
60
- * @schema
61
- * @input
62
- * @operation
63
- */
64
- export declare function In(inType: JsonParameterTypes | string): InChainedDecorators;
@@ -1,25 +0,0 @@
1
- /**
2
- * Add a input file parameter.
3
- *
4
- * ::: warning
5
- * Don't use decorator with Ts.ED application to decorate parameters. Use @@BodyParams@@, @@PathParams@@, etc... instead.
6
- * But you can use this decorator on Method, to add extra in parameters like Authorization header.
7
- *
8
- * ```typescript
9
- * @Controller("/")
10
- * class MyController {
11
- * @Post("/")
12
- * method(@InFile("file1") file: any) {
13
- * }
14
- * }
15
- * ```
16
- * :::
17
- *
18
- * @decorator
19
- * @swagger
20
- * @schema
21
- * @input
22
- * @operation
23
- * @param name
24
- */
25
- export declare function InFile(name: string): ParameterDecorator;
@@ -1,22 +0,0 @@
1
- import { JsonHeader } from "../../interfaces/JsonOpenSpec.js";
2
- /**
3
- * Sets the response Location HTTP header to the specified path parameter.
4
- *
5
- * ```typescript
6
- * @Location('/foo/bar', {description: 'Location to the next step'})
7
- * @Location('http://example.com')
8
- * @Location('back')
9
- * private myMethod() {
10
- *
11
- * }
12
- * ```
13
- *
14
- * A path value of “back” has a special meaning, it refers to the URL specified in the `Referer` header of the request. If the `Referer` header was not specified, it refers to “/”.
15
- *
16
- * @param location
17
- * @param meta
18
- * @returns {Function}
19
- * @decorator
20
- * @operation
21
- */
22
- export declare function Location(location: string, meta?: JsonHeader): import("./returns.js").ReturnsChainedDecorators;