@tsed/schema 6.102.4 → 6.102.8-rc.1

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 (120) hide show
  1. package/lib/cjs/constants/httpStatusMessages.js +12 -96
  2. package/lib/cjs/constants/httpStatusMessages.js.map +1 -1
  3. package/lib/cjs/package.json +3 -0
  4. package/lib/esm/components/anyMapper.js +4 -4
  5. package/lib/esm/components/classMapper.js +4 -4
  6. package/lib/esm/components/genericsMapper.js +4 -4
  7. package/lib/esm/components/index.js +11 -11
  8. package/lib/esm/components/inheritedClassMapper.js +2 -2
  9. package/lib/esm/components/itemMapper.js +1 -1
  10. package/lib/esm/components/lazyRefMapper.js +3 -3
  11. package/lib/esm/components/mapMapper.js +2 -2
  12. package/lib/esm/components/objectMapper.js +3 -3
  13. package/lib/esm/components/ofMapper.js +1 -1
  14. package/lib/esm/components/propertiesMapper.js +1 -1
  15. package/lib/esm/components/schemaMapper.js +6 -6
  16. package/lib/esm/constants/httpStatusMessages.js +11 -96
  17. package/lib/esm/constants/httpStatusMessages.js.map +1 -1
  18. package/lib/esm/decorators/class/children.js +1 -1
  19. package/lib/esm/decorators/collections/collectionContains.js +1 -1
  20. package/lib/esm/decorators/collections/collectionOf.js +1 -1
  21. package/lib/esm/decorators/collections/maxItems.js +1 -1
  22. package/lib/esm/decorators/collections/maxProperties.js +1 -1
  23. package/lib/esm/decorators/collections/minItems.js +1 -1
  24. package/lib/esm/decorators/collections/minProperties.js +1 -1
  25. package/lib/esm/decorators/collections/uniqueItems.js +1 -1
  26. package/lib/esm/decorators/common/additionalProperties.js +1 -1
  27. package/lib/esm/decorators/common/allOf.js +1 -1
  28. package/lib/esm/decorators/common/allow.js +2 -2
  29. package/lib/esm/decorators/common/any.js +1 -1
  30. package/lib/esm/decorators/common/anyOf.js +1 -1
  31. package/lib/esm/decorators/common/const.js +1 -1
  32. package/lib/esm/decorators/common/customKey.js +1 -1
  33. package/lib/esm/decorators/common/default.js +1 -1
  34. package/lib/esm/decorators/common/description.js +1 -1
  35. package/lib/esm/decorators/common/enum.js +1 -1
  36. package/lib/esm/decorators/common/example.js +1 -1
  37. package/lib/esm/decorators/common/examples.js +1 -1
  38. package/lib/esm/decorators/common/exclusiveMaximum.js +1 -1
  39. package/lib/esm/decorators/common/exclusiveMinimum.js +1 -1
  40. package/lib/esm/decorators/common/format.js +2 -2
  41. package/lib/esm/decorators/common/forwardGroups.js +1 -1
  42. package/lib/esm/decorators/common/groups.js +2 -2
  43. package/lib/esm/decorators/common/ignore.js +1 -1
  44. package/lib/esm/decorators/common/integer.js +1 -1
  45. package/lib/esm/decorators/common/jsonEntityFn.js +1 -1
  46. package/lib/esm/decorators/common/maxLength.js +1 -1
  47. package/lib/esm/decorators/common/maximum.js +1 -1
  48. package/lib/esm/decorators/common/minLength.js +1 -1
  49. package/lib/esm/decorators/common/minimum.js +1 -1
  50. package/lib/esm/decorators/common/multipleOf.js +1 -1
  51. package/lib/esm/decorators/common/name.js +1 -1
  52. package/lib/esm/decorators/common/nullable.js +2 -2
  53. package/lib/esm/decorators/common/oneOf.js +1 -1
  54. package/lib/esm/decorators/common/optional.js +1 -1
  55. package/lib/esm/decorators/common/pattern.js +1 -1
  56. package/lib/esm/decorators/common/property.js +1 -1
  57. package/lib/esm/decorators/common/readOnly.js +1 -1
  58. package/lib/esm/decorators/common/required.js +2 -2
  59. package/lib/esm/decorators/common/requiredGroups.js +2 -2
  60. package/lib/esm/decorators/common/schema.js +1 -1
  61. package/lib/esm/decorators/common/title.js +1 -1
  62. package/lib/esm/decorators/common/writeOnly.js +1 -1
  63. package/lib/esm/decorators/config/jsonEntityComponent.js +1 -1
  64. package/lib/esm/decorators/generics/genericOf.js +2 -2
  65. package/lib/esm/decorators/generics/generics.js +1 -1
  66. package/lib/esm/decorators/index.js +70 -70
  67. package/lib/esm/decorators/operations/acceptMime.js +1 -1
  68. package/lib/esm/decorators/operations/consumes.js +1 -1
  69. package/lib/esm/decorators/operations/contentType.js +1 -1
  70. package/lib/esm/decorators/operations/deprecated.js +1 -1
  71. package/lib/esm/decorators/operations/header.js +1 -1
  72. package/lib/esm/decorators/operations/in.js +1 -1
  73. package/lib/esm/decorators/operations/inFile.js +5 -5
  74. package/lib/esm/decorators/operations/location.js +1 -1
  75. package/lib/esm/decorators/operations/operationId.js +1 -1
  76. package/lib/esm/decorators/operations/operationPath.js +1 -1
  77. package/lib/esm/decorators/operations/partial.js +1 -1
  78. package/lib/esm/decorators/operations/path.js +1 -1
  79. package/lib/esm/decorators/operations/produces.js +1 -1
  80. package/lib/esm/decorators/operations/redirect.js +2 -2
  81. package/lib/esm/decorators/operations/returns.js +8 -8
  82. package/lib/esm/decorators/operations/route.js +3 -3
  83. package/lib/esm/decorators/operations/security.js +1 -1
  84. package/lib/esm/decorators/operations/status.js +1 -1
  85. package/lib/esm/decorators/operations/summary.js +1 -1
  86. package/lib/esm/decorators/operations/tags.js +1 -1
  87. package/lib/esm/domain/DecoratorContext.js +1 -1
  88. package/lib/esm/domain/JsonClassStore.js +3 -3
  89. package/lib/esm/domain/JsonLazyRef.js +2 -2
  90. package/lib/esm/domain/JsonMap.js +1 -1
  91. package/lib/esm/domain/JsonMethodStore.js +4 -4
  92. package/lib/esm/domain/JsonOperation.js +8 -8
  93. package/lib/esm/domain/JsonOperationPathsMap.js +1 -1
  94. package/lib/esm/domain/JsonOperationRoute.js +1 -1
  95. package/lib/esm/domain/JsonParameter.js +6 -6
  96. package/lib/esm/domain/JsonParameterStore.js +4 -4
  97. package/lib/esm/domain/JsonPropertyStore.js +3 -3
  98. package/lib/esm/domain/JsonRequestBody.js +2 -2
  99. package/lib/esm/domain/JsonResponse.js +4 -4
  100. package/lib/esm/domain/JsonSchema.js +6 -6
  101. package/lib/esm/domain/index.js +16 -16
  102. package/lib/esm/index.js +20 -20
  103. package/lib/esm/interfaces/index.js +4 -4
  104. package/lib/esm/package.json +3 -0
  105. package/lib/esm/utils/from.js +4 -4
  106. package/lib/esm/utils/getInheritedStores.js +1 -1
  107. package/lib/esm/utils/getJsonEntityStore.js +5 -5
  108. package/lib/esm/utils/getJsonSchema.js +4 -4
  109. package/lib/esm/utils/getOperationsRoutes.js +3 -3
  110. package/lib/esm/utils/getOperationsStores.js +4 -4
  111. package/lib/esm/utils/getPropertiesStores.js +3 -3
  112. package/lib/esm/utils/getRequiredProperties.js +1 -1
  113. package/lib/esm/utils/getSpec.js +6 -6
  114. package/lib/esm/utils/mapNullableType.js +1 -1
  115. package/lib/esm/utils/mapRouteOptions.js +1 -1
  116. package/lib/esm/utils/mergeOperation.js +3 -3
  117. package/lib/esm/utils/ref.js +1 -1
  118. package/lib/esm/utils/toJsonMapCollection.js +1 -1
  119. package/lib/types/constants/httpStatusMessages.d.ts +2 -263
  120. package/package.json +16 -5
@@ -1,4 +1,4 @@
1
- import { Maximum } from "./maximum";
1
+ import { Maximum } from "./maximum.js";
2
2
  /**
3
3
  * The value of `exclusiveMaximum` MUST be number, representing an exclusive upper limit for a numeric instance.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Minimum } from "./minimum";
1
+ import { Minimum } from "./minimum.js";
2
2
  /**
3
3
  * The value of `exclusiveMinimum` MUST be number, representing an exclusive upper limit for a numeric instance.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { JsonFormatTypes } from "../../domain/JsonFormatTypes";
2
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonFormatTypes } from "../../domain/JsonFormatTypes.js";
2
+ import { JsonEntityFn } from "./jsonEntityFn.js";
3
3
  /**
4
4
  * The following formats are supported for string validation with `format` keyword:
5
5
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * Allow to forward group on specific property.
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import { DecoratorTypes } from "@tsed/core";
2
- import { matchGroups } from "../../utils/matchGroups";
3
- import { JsonEntityFn } from "./jsonEntityFn";
2
+ import { matchGroups } from "../../utils/matchGroups.js";
3
+ import { JsonEntityFn } from "./jsonEntityFn.js";
4
4
  /**
5
5
  * @ignore
6
6
  */
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * @ignore
4
4
  */
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * Set integer type.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { getJsonEntityStore } from "../../utils/getJsonEntityStore";
1
+ import { getJsonEntityStore } from "../../utils/getJsonEntityStore.js";
2
2
  /**
3
3
  * Decorator util to compose another decorator. See @@Description@@ decorator implementation for more details.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * The value of `maximum` MUST be a number, representing an inclusive upper limit for a numeric instance.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  *
4
4
  * A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword.
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * The value of `minimum` MUST be a number, representing an inclusive upper limit for a numeric instance.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * A numeric instance is valid only if division by this keyword's value results in an integer.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { decoratorTypeOf, DecoratorTypes } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Add a name metadata on the decorated element.
5
5
  *
@@ -1,6 +1,6 @@
1
1
  import { useDecorators } from "@tsed/core";
2
- import { Any } from "./any";
3
- import { Property } from "./property";
2
+ import { Any } from "./any.js";
3
+ import { Property } from "./property.js";
4
4
  /**
5
5
  * Set field as nullable.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * See https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.28
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { DecoratorTypes } from "@tsed/core";
2
- import { JsonEntityFn } from "./jsonEntityFn";
2
+ import { JsonEntityFn } from "./jsonEntityFn.js";
3
3
  /**
4
4
  * Add optional annotation on Property or Parameter.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * The pattern and Pattern Properties keywords use regular expressions to express constraints.
4
4
  * 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.
@@ -1,5 +1,5 @@
1
1
  import { isClass } from "@tsed/core";
2
- import { JsonEntityFn } from "./jsonEntityFn";
2
+ import { JsonEntityFn } from "./jsonEntityFn.js";
3
3
  /**
4
4
  * Declare a new property on a model.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * Set the property as readOnly.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { Allow } from "./allow";
2
- import { Optional } from "./optional";
1
+ import { Allow } from "./allow.js";
2
+ import { Optional } from "./optional.js";
3
3
  /**
4
4
  * Add required annotation on Property or Parameter.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { matchGroups } from "../../utils/matchGroups";
2
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { matchGroups } from "../../utils/matchGroups.js";
2
+ import { JsonEntityFn } from "./jsonEntityFn.js";
3
3
  /**
4
4
  * Apply groups validation strategy for required property.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * Write data formatted to JsonSchema.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * Add title metadata on the decorated element.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntityFn } from "./jsonEntityFn";
1
+ import { JsonEntityFn } from "./jsonEntityFn.js";
2
2
  /**
3
3
  * Set the property as WriteOnly.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JsonEntitiesContainer } from "../../domain/JsonEntityStore";
1
+ import { JsonEntitiesContainer } from "../../domain/JsonEntityStore.js";
2
2
  /**
3
3
  * Declare a new JsonEntityStore class for a specific decorator type.
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import { isObject } from "@tsed/core";
2
- import { JsonEntityStore } from "../../domain/JsonEntityStore";
3
- import { string } from "../../utils/from";
2
+ import { JsonEntityStore } from "../../domain/JsonEntityStore.js";
3
+ import { string } from "../../utils/from.js";
4
4
  /**
5
5
  * @ignore
6
6
  */
@@ -1,4 +1,4 @@
1
- import { JsonEntityStore } from "../../domain/JsonEntityStore";
1
+ import { JsonEntityStore } from "../../domain/JsonEntityStore.js";
2
2
  /**
3
3
  * Define generics list. This list is used by @@GenericOf@@ and the @@getJsonSchema@@ function to build the correct JsonSchema.
4
4
  *
@@ -1,76 +1,76 @@
1
1
  // class
2
- export * from "./class/children";
2
+ export * from "./class/children.js";
3
3
  // collections
4
- export * from "./collections/collectionContains";
5
- export * from "./collections/collectionOf";
6
- export * from "./collections/maxItems";
7
- export * from "./collections/minItems";
8
- export * from "./collections/uniqueItems";
9
- export * from "./collections/maxProperties";
10
- export * from "./collections/minProperties";
4
+ export * from "./collections/collectionContains.js";
5
+ export * from "./collections/collectionOf.js";
6
+ export * from "./collections/maxItems.js";
7
+ export * from "./collections/minItems.js";
8
+ export * from "./collections/uniqueItems.js";
9
+ export * from "./collections/maxProperties.js";
10
+ export * from "./collections/minProperties.js";
11
11
  // generics
12
- export * from "./generics/generics";
13
- export * from "./generics/genericOf";
12
+ export * from "./generics/generics.js";
13
+ export * from "./generics/genericOf.js";
14
14
  // operations
15
- export * from "./operations/deprecated";
16
- export * from "./operations/consumes";
17
- export * from "./operations/view";
18
- export * from "./operations/contentType";
19
- export * from "./operations/in";
20
- export * from "./operations/inFile";
21
- export * from "./operations/operationId";
22
- export * from "./operations/operationPath";
23
- export * from "./operations/path";
24
- export * from "./operations/produces";
25
- export * from "./operations/returns";
26
- export * from "./operations/status";
27
- export * from "./operations/header";
28
- export * from "./operations/security";
29
- export * from "./operations/tags";
30
- export * from "./operations/summary";
31
- export * from "./operations/partial";
32
- export * from "./operations/redirect";
33
- export * from "./operations/location";
34
- export * from "./operations/route";
35
- export * from "./operations/acceptMime";
15
+ export * from "./operations/deprecated.js";
16
+ export * from "./operations/consumes.js";
17
+ export * from "./operations/view.js";
18
+ export * from "./operations/contentType.js";
19
+ export * from "./operations/in.js";
20
+ export * from "./operations/inFile.js";
21
+ export * from "./operations/operationId.js";
22
+ export * from "./operations/operationPath.js";
23
+ export * from "./operations/path.js";
24
+ export * from "./operations/produces.js";
25
+ export * from "./operations/returns.js";
26
+ export * from "./operations/status.js";
27
+ export * from "./operations/header.js";
28
+ export * from "./operations/security.js";
29
+ export * from "./operations/tags.js";
30
+ export * from "./operations/summary.js";
31
+ export * from "./operations/partial.js";
32
+ export * from "./operations/redirect.js";
33
+ export * from "./operations/location.js";
34
+ export * from "./operations/route.js";
35
+ export * from "./operations/acceptMime.js";
36
36
  // common
37
- export * from "./common/additionalProperties";
38
- export * from "./common/allow";
39
- export * from "./common/any";
40
- export * from "./common/integer";
41
- export * from "./common/const";
42
- export * from "./common/default";
43
- export * from "./common/description";
44
- export * from "./common/example";
45
- export * from "./common/examples";
46
- export * from "./common/enum";
47
- export * from "./common/exclusiveMaximum";
48
- export * from "./common/exclusiveMinimum";
49
- export * from "./common/format";
50
- export * from "./common/forwardGroups";
51
- export * from "./common/groups";
52
- export * from "./common/pattern";
53
- export * from "./common/ignore";
54
- export * from "./common/maximum";
55
- export * from "./common/maxLength";
56
- export * from "./common/minimum";
57
- export * from "./common/minLength";
58
- export * from "./common/multipleOf";
59
- export * from "./common/name";
60
- export * from "./common/required";
61
- export * from "./common/requiredGroups";
62
- export * from "./common/property";
63
- export * from "./common/hidden";
64
- export * from "./common/title";
65
- export * from "./common/schema";
66
- export * from "./common/oneOf";
67
- export * from "./common/allOf";
68
- export * from "./common/anyOf";
69
- export * from "./common/jsonEntityFn";
70
- export * from "./common/optional";
71
- export * from "./common/writeOnly";
72
- export * from "./common/readOnly";
73
- export * from "./common/customKey";
74
- export * from "./common/nullable";
75
- export * from "./config/jsonEntityComponent";
37
+ export * from "./common/additionalProperties.js";
38
+ export * from "./common/allow.js";
39
+ export * from "./common/any.js";
40
+ export * from "./common/integer.js";
41
+ export * from "./common/const.js";
42
+ export * from "./common/default.js";
43
+ export * from "./common/description.js";
44
+ export * from "./common/example.js";
45
+ export * from "./common/examples.js";
46
+ export * from "./common/enum.js";
47
+ export * from "./common/exclusiveMaximum.js";
48
+ export * from "./common/exclusiveMinimum.js";
49
+ export * from "./common/format.js";
50
+ export * from "./common/forwardGroups.js";
51
+ export * from "./common/groups.js";
52
+ export * from "./common/pattern.js";
53
+ export * from "./common/ignore.js";
54
+ export * from "./common/maximum.js";
55
+ export * from "./common/maxLength.js";
56
+ export * from "./common/minimum.js";
57
+ export * from "./common/minLength.js";
58
+ export * from "./common/multipleOf.js";
59
+ export * from "./common/name.js";
60
+ export * from "./common/required.js";
61
+ export * from "./common/requiredGroups.js";
62
+ export * from "./common/property.js";
63
+ export * from "./common/hidden.js";
64
+ export * from "./common/title.js";
65
+ export * from "./common/schema.js";
66
+ export * from "./common/oneOf.js";
67
+ export * from "./common/allOf.js";
68
+ export * from "./common/anyOf.js";
69
+ export * from "./common/jsonEntityFn.js";
70
+ export * from "./common/optional.js";
71
+ export * from "./common/writeOnly.js";
72
+ export * from "./common/readOnly.js";
73
+ export * from "./common/customKey.js";
74
+ export * from "./common/nullable.js";
75
+ export * from "./config/jsonEntityComponent.js";
76
76
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { StoreSet, useDecorators } from "@tsed/core";
2
- import { Produces } from "./produces";
2
+ import { Produces } from "./produces.js";
3
3
  /**
4
4
  * 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.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { decorateMethodsOf, DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Add consumes metadata on the decorated element.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { Returns } from "./returns";
1
+ import { Returns } from "./returns.js";
2
2
  /**
3
3
  * Sets the Content-Type HTTP header to the MIME type as determined by mime.lookup() for the specified type.
4
4
  * If type contains the “/” character, then it sets the `Content-Type` to type.
@@ -1,5 +1,5 @@
1
1
  import { decorateMethodsOf, DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Add deprecated metadata on the decorated element.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { Returns } from "./returns";
1
+ import { Returns } from "./returns.js";
2
2
  /**
3
3
  * Sets the response’s HTTP header field to value. To set multiple fields at once, pass an object as the parameter.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { decorateMethodsOf, DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityStore, JsonParameter, JsonSchema } from "../../domain";
2
+ import { JsonEntityStore, JsonParameter, JsonSchema } from "../../domain.js";
3
3
  /**
4
4
  * Add a input parameter.
5
5
  *
@@ -1,9 +1,9 @@
1
1
  import { Metadata, useDecorators, useMethodDecorators } from "@tsed/core";
2
- import { In } from "./in";
3
- import { JsonParameterTypes } from "../../domain/JsonParameterTypes";
4
- import { Returns } from "./returns";
5
- import { Name } from "../common/name";
6
- import { Consumes } from "./consumes";
2
+ import { In } from "./in.js";
3
+ import { JsonParameterTypes } from "../../domain/JsonParameterTypes.js";
4
+ import { Returns } from "./returns.js";
5
+ import { Name } from "../common/name.js";
6
+ import { Consumes } from "./consumes.js";
7
7
  /**
8
8
  * Add a input file parameter.
9
9
  *
@@ -1,4 +1,4 @@
1
- import { Returns } from "./returns";
1
+ import { Returns } from "./returns.js";
2
2
  /**
3
3
  * Sets the response Location HTTP header to the specified path parameter.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Set a swagger operationId explicitly.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Declare new Operation with his path and http method.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { Groups } from "../common/groups";
1
+ import { Groups } from "../common/groups.js";
2
2
  /**
3
3
  * Apply Partial group strategy on the input model
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Set class path to expose all endpoints
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { decorateMethodsOf, DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Add produces metadata on the decorated element.
5
5
  *
@@ -1,6 +1,6 @@
1
1
  import { isNumber, isString, useDecorators } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
3
- import { Returns } from "./returns";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
+ import { Returns } from "./returns.js";
4
4
  export function Redirect(...args) {
5
5
  const { status, url, meta } = args.reduce((options, value) => {
6
6
  if (isNumber(value)) {
@@ -1,12 +1,12 @@
1
1
  import { decorateMethodsOf, decoratorTypeOf, DecoratorTypes, isArray, isCollection, isObject, isPlainObject, isPrimitiveOrPrimitiveClass, isString } from "@tsed/core";
2
- import { getStatusMessage } from "../../constants/httpStatusMessages";
3
- import { DecoratorContext } from "../../domain/DecoratorContext";
4
- import { JsonEntityStore } from "../../domain/JsonEntityStore";
5
- import { JsonSchema } from "../../domain/JsonSchema";
6
- import { getStatusModel } from "../../utils/defineStatusModel";
7
- import { string } from "../../utils/from";
8
- import { isSuccessStatus } from "../../utils/isSuccessStatus";
9
- import { mapHeaders } from "../../utils/mapHeaders";
2
+ import { getStatusMessage } from "../../constants/httpStatusMessages.js";
3
+ import { DecoratorContext } from "../../domain/DecoratorContext.js";
4
+ import { JsonEntityStore } from "../../domain/JsonEntityStore.js";
5
+ import { JsonSchema } from "../../domain/JsonSchema.js";
6
+ import { getStatusModel } from "../../utils/defineStatusModel.js";
7
+ import { string } from "../../utils/from.js";
8
+ import { isSuccessStatus } from "../../utils/isSuccessStatus.js";
9
+ import { mapHeaders } from "../../utils/mapHeaders.js";
10
10
  /**
11
11
  * @ignore
12
12
  */
@@ -1,6 +1,6 @@
1
- import { DecoratorContext } from "../../domain/DecoratorContext";
2
- import { mapRouteOptions } from "../../utils/mapRouteOptions";
3
- import { OperationMethods } from "../../constants/httpMethods";
1
+ import { DecoratorContext } from "../../domain/DecoratorContext.js";
2
+ import { mapRouteOptions } from "../../utils/mapRouteOptions.js";
3
+ import { OperationMethods } from "../../constants/httpMethods.js";
4
4
  class RouteDecoratorContext extends DecoratorContext {
5
5
  constructor() {
6
6
  super(...arguments);
@@ -1,5 +1,5 @@
1
1
  import { decorateMethodsOf, DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Add security metadata on the decorated method.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { Returns } from "./returns";
1
+ import { Returns } from "./returns.js";
2
2
  /**
3
3
  * Add responses documentation for a specific status code.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  /**
4
4
  * Add summary metadata on the decorated element.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { decorateMethodsOf, DecoratorTypes, UnsupportedDecoratorType } from "@tsed/core";
2
- import { JsonEntityFn } from "../common/jsonEntityFn";
2
+ import { JsonEntityFn } from "../common/jsonEntityFn.js";
3
3
  function mapTags(tags) {
4
4
  return tags.map((tag) => {
5
5
  if (typeof tag === "string") {
@@ -1,6 +1,6 @@
1
1
  import { DecoratorTypes } from "@tsed/core";
2
2
  import { pascalCase } from "pascal-case";
3
- import { JsonEntityStore } from "./JsonEntityStore";
3
+ import { JsonEntityStore } from "./JsonEntityStore.js";
4
4
  /**
5
5
  * @ignore
6
6
  */
@@ -1,8 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { DecoratorTypes } from "@tsed/core";
3
- import { JsonEntityStore } from "./JsonEntityStore";
4
- import { JsonSchema } from "./JsonSchema";
5
- import { JsonEntityComponent } from "../decorators/config/jsonEntityComponent";
3
+ import { JsonEntityStore } from "./JsonEntityStore.js";
4
+ import { JsonSchema } from "./JsonSchema.js";
5
+ import { JsonEntityComponent } from "../decorators/config/jsonEntityComponent.js";
6
6
  let JsonClassStore = class JsonClassStore extends JsonEntityStore {
7
7
  constructor() {
8
8
  super(...arguments);
@@ -1,6 +1,6 @@
1
1
  import { nameOf } from "@tsed/core";
2
- import { execMapper } from "../registries/JsonSchemaMapperContainer";
3
- import { getJsonEntityStore } from "../utils/getJsonEntityStore";
2
+ import { execMapper } from "../registries/JsonSchemaMapperContainer.js";
3
+ import { getJsonEntityStore } from "../utils/getJsonEntityStore.js";
4
4
  export class JsonLazyRef {
5
5
  constructor(getType) {
6
6
  this.getType = getType;
@@ -1,5 +1,5 @@
1
1
  import { isFunction } from "@tsed/core";
2
- import { execMapper } from "../registries/JsonSchemaMapperContainer";
2
+ import { execMapper } from "../registries/JsonSchemaMapperContainer.js";
3
3
  export class JsonMap extends Map {
4
4
  constructor(obj = {}) {
5
5
  super();
@@ -1,9 +1,9 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { DecoratorTypes, deepMerge, descriptorOf, isCollection, isFunction, isPromise, Metadata, prototypeOf, Store } from "@tsed/core";
3
- import { JsonEntityStore } from "./JsonEntityStore";
4
- import { JsonOperation } from "./JsonOperation";
5
- import { JsonSchema } from "./JsonSchema";
6
- import { JsonEntityComponent } from "../decorators/config/jsonEntityComponent";
3
+ import { JsonEntityStore } from "./JsonEntityStore.js";
4
+ import { JsonOperation } from "./JsonOperation.js";
5
+ import { JsonSchema } from "./JsonSchema.js";
6
+ import { JsonEntityComponent } from "../decorators/config/jsonEntityComponent.js";
7
7
  let JsonMethodStore = class JsonMethodStore extends JsonEntityStore {
8
8
  constructor(options) {
9
9
  super({