@tsed/schema 6.102.7 → 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 (115) hide show
  1. package/lib/cjs/package.json +3 -0
  2. package/lib/esm/components/anyMapper.js +4 -4
  3. package/lib/esm/components/classMapper.js +4 -4
  4. package/lib/esm/components/genericsMapper.js +4 -4
  5. package/lib/esm/components/index.js +11 -11
  6. package/lib/esm/components/inheritedClassMapper.js +2 -2
  7. package/lib/esm/components/itemMapper.js +1 -1
  8. package/lib/esm/components/lazyRefMapper.js +3 -3
  9. package/lib/esm/components/mapMapper.js +2 -2
  10. package/lib/esm/components/objectMapper.js +3 -3
  11. package/lib/esm/components/ofMapper.js +1 -1
  12. package/lib/esm/components/propertiesMapper.js +1 -1
  13. package/lib/esm/components/schemaMapper.js +6 -6
  14. package/lib/esm/decorators/class/children.js +1 -1
  15. package/lib/esm/decorators/collections/collectionContains.js +1 -1
  16. package/lib/esm/decorators/collections/collectionOf.js +1 -1
  17. package/lib/esm/decorators/collections/maxItems.js +1 -1
  18. package/lib/esm/decorators/collections/maxProperties.js +1 -1
  19. package/lib/esm/decorators/collections/minItems.js +1 -1
  20. package/lib/esm/decorators/collections/minProperties.js +1 -1
  21. package/lib/esm/decorators/collections/uniqueItems.js +1 -1
  22. package/lib/esm/decorators/common/additionalProperties.js +1 -1
  23. package/lib/esm/decorators/common/allOf.js +1 -1
  24. package/lib/esm/decorators/common/allow.js +2 -2
  25. package/lib/esm/decorators/common/any.js +1 -1
  26. package/lib/esm/decorators/common/anyOf.js +1 -1
  27. package/lib/esm/decorators/common/const.js +1 -1
  28. package/lib/esm/decorators/common/customKey.js +1 -1
  29. package/lib/esm/decorators/common/default.js +1 -1
  30. package/lib/esm/decorators/common/description.js +1 -1
  31. package/lib/esm/decorators/common/enum.js +1 -1
  32. package/lib/esm/decorators/common/example.js +1 -1
  33. package/lib/esm/decorators/common/examples.js +1 -1
  34. package/lib/esm/decorators/common/exclusiveMaximum.js +1 -1
  35. package/lib/esm/decorators/common/exclusiveMinimum.js +1 -1
  36. package/lib/esm/decorators/common/format.js +2 -2
  37. package/lib/esm/decorators/common/forwardGroups.js +1 -1
  38. package/lib/esm/decorators/common/groups.js +2 -2
  39. package/lib/esm/decorators/common/ignore.js +1 -1
  40. package/lib/esm/decorators/common/integer.js +1 -1
  41. package/lib/esm/decorators/common/jsonEntityFn.js +1 -1
  42. package/lib/esm/decorators/common/maxLength.js +1 -1
  43. package/lib/esm/decorators/common/maximum.js +1 -1
  44. package/lib/esm/decorators/common/minLength.js +1 -1
  45. package/lib/esm/decorators/common/minimum.js +1 -1
  46. package/lib/esm/decorators/common/multipleOf.js +1 -1
  47. package/lib/esm/decorators/common/name.js +1 -1
  48. package/lib/esm/decorators/common/nullable.js +2 -2
  49. package/lib/esm/decorators/common/oneOf.js +1 -1
  50. package/lib/esm/decorators/common/optional.js +1 -1
  51. package/lib/esm/decorators/common/pattern.js +1 -1
  52. package/lib/esm/decorators/common/property.js +1 -1
  53. package/lib/esm/decorators/common/readOnly.js +1 -1
  54. package/lib/esm/decorators/common/required.js +2 -2
  55. package/lib/esm/decorators/common/requiredGroups.js +2 -2
  56. package/lib/esm/decorators/common/schema.js +1 -1
  57. package/lib/esm/decorators/common/title.js +1 -1
  58. package/lib/esm/decorators/common/writeOnly.js +1 -1
  59. package/lib/esm/decorators/config/jsonEntityComponent.js +1 -1
  60. package/lib/esm/decorators/generics/genericOf.js +2 -2
  61. package/lib/esm/decorators/generics/generics.js +1 -1
  62. package/lib/esm/decorators/index.js +70 -70
  63. package/lib/esm/decorators/operations/acceptMime.js +1 -1
  64. package/lib/esm/decorators/operations/consumes.js +1 -1
  65. package/lib/esm/decorators/operations/contentType.js +1 -1
  66. package/lib/esm/decorators/operations/deprecated.js +1 -1
  67. package/lib/esm/decorators/operations/header.js +1 -1
  68. package/lib/esm/decorators/operations/in.js +1 -1
  69. package/lib/esm/decorators/operations/inFile.js +5 -5
  70. package/lib/esm/decorators/operations/location.js +1 -1
  71. package/lib/esm/decorators/operations/operationId.js +1 -1
  72. package/lib/esm/decorators/operations/operationPath.js +1 -1
  73. package/lib/esm/decorators/operations/partial.js +1 -1
  74. package/lib/esm/decorators/operations/path.js +1 -1
  75. package/lib/esm/decorators/operations/produces.js +1 -1
  76. package/lib/esm/decorators/operations/redirect.js +2 -2
  77. package/lib/esm/decorators/operations/returns.js +8 -8
  78. package/lib/esm/decorators/operations/route.js +3 -3
  79. package/lib/esm/decorators/operations/security.js +1 -1
  80. package/lib/esm/decorators/operations/status.js +1 -1
  81. package/lib/esm/decorators/operations/summary.js +1 -1
  82. package/lib/esm/decorators/operations/tags.js +1 -1
  83. package/lib/esm/domain/DecoratorContext.js +1 -1
  84. package/lib/esm/domain/JsonClassStore.js +3 -3
  85. package/lib/esm/domain/JsonLazyRef.js +2 -2
  86. package/lib/esm/domain/JsonMap.js +1 -1
  87. package/lib/esm/domain/JsonMethodStore.js +4 -4
  88. package/lib/esm/domain/JsonOperation.js +8 -8
  89. package/lib/esm/domain/JsonOperationPathsMap.js +1 -1
  90. package/lib/esm/domain/JsonOperationRoute.js +1 -1
  91. package/lib/esm/domain/JsonParameter.js +6 -6
  92. package/lib/esm/domain/JsonParameterStore.js +4 -4
  93. package/lib/esm/domain/JsonPropertyStore.js +3 -3
  94. package/lib/esm/domain/JsonRequestBody.js +2 -2
  95. package/lib/esm/domain/JsonResponse.js +4 -4
  96. package/lib/esm/domain/JsonSchema.js +6 -6
  97. package/lib/esm/domain/index.js +16 -16
  98. package/lib/esm/index.js +20 -20
  99. package/lib/esm/interfaces/index.js +4 -4
  100. package/lib/esm/package.json +3 -0
  101. package/lib/esm/utils/from.js +4 -4
  102. package/lib/esm/utils/getInheritedStores.js +1 -1
  103. package/lib/esm/utils/getJsonEntityStore.js +5 -5
  104. package/lib/esm/utils/getJsonSchema.js +4 -4
  105. package/lib/esm/utils/getOperationsRoutes.js +3 -3
  106. package/lib/esm/utils/getOperationsStores.js +4 -4
  107. package/lib/esm/utils/getPropertiesStores.js +3 -3
  108. package/lib/esm/utils/getRequiredProperties.js +1 -1
  109. package/lib/esm/utils/getSpec.js +6 -6
  110. package/lib/esm/utils/mapNullableType.js +1 -1
  111. package/lib/esm/utils/mapRouteOptions.js +1 -1
  112. package/lib/esm/utils/mergeOperation.js +3 -3
  113. package/lib/esm/utils/ref.js +1 -1
  114. package/lib/esm/utils/toJsonMapCollection.js +1 -1
  115. package/package.json +12 -6
@@ -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({
@@ -1,14 +1,14 @@
1
1
  var _JsonOperation_status, _JsonOperation_redirection;
2
2
  import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
3
  import { deepMerge, uniq, uniqBy } from "@tsed/core";
4
- import { getStatusMessage } from "../constants/httpStatusMessages";
5
- import { isRedirectionStatus, isSuccessStatus } from "../utils/isSuccessStatus";
6
- import { JsonMap } from "./JsonMap";
7
- import { isParameterType, JsonParameterTypes } from "./JsonParameterTypes";
8
- import { JsonRequestBody } from "./JsonRequestBody";
9
- import { JsonResponse } from "./JsonResponse";
10
- import { JsonSchema } from "./JsonSchema";
11
- import { SpecTypes } from "./SpecTypes";
4
+ import { getStatusMessage } from "../constants/httpStatusMessages.js";
5
+ import { isRedirectionStatus, isSuccessStatus } from "../utils/isSuccessStatus.js";
6
+ import { JsonMap } from "./JsonMap.js";
7
+ import { isParameterType, JsonParameterTypes } from "./JsonParameterTypes.js";
8
+ import { JsonRequestBody } from "./JsonRequestBody.js";
9
+ import { JsonResponse } from "./JsonResponse.js";
10
+ import { JsonSchema } from "./JsonSchema.js";
11
+ import { SpecTypes } from "./SpecTypes.js";
12
12
  export class JsonOperation extends JsonMap {
13
13
  constructor(obj = {}) {
14
14
  super({ parameters: [], responses: new JsonMap(), ...obj });
@@ -1,4 +1,4 @@
1
- import { OperationMethods } from "../constants/httpMethods";
1
+ import { OperationMethods } from "../constants/httpMethods.js";
2
2
  export class JsonOperationPathsMap extends Map {
3
3
  constructor() {
4
4
  super(...arguments);
@@ -1,4 +1,4 @@
1
- import { concatPath } from "../utils/concatPath";
1
+ import { concatPath } from "../utils/concatPath.js";
2
2
  export class JsonOperationRoute {
3
3
  constructor(options) {
4
4
  Object.assign(this, options);
@@ -1,10 +1,10 @@
1
1
  import { cleanObject, toMap } from "@tsed/core";
2
- import { execMapper } from "../registries/JsonSchemaMapperContainer";
3
- import { popGenerics } from "../utils/generics";
4
- import { JsonMap } from "./JsonMap";
5
- import { formatParameterType, isParameterType, JsonParameterTypes } from "./JsonParameterTypes";
6
- import { SpecTypes } from "./SpecTypes";
7
- import { createRefName } from "../utils/ref";
2
+ import { execMapper } from "../registries/JsonSchemaMapperContainer.js";
3
+ import { popGenerics } from "../utils/generics.js";
4
+ import { JsonMap } from "./JsonMap.js";
5
+ import { formatParameterType, isParameterType, JsonParameterTypes } from "./JsonParameterTypes.js";
6
+ import { SpecTypes } from "./SpecTypes.js";
7
+ import { createRefName } from "../utils/ref.js";
8
8
  const IGNORE_OS2_PROPS = ["example", "examples", "title"];
9
9
  export class JsonParameter extends JsonMap {
10
10
  constructor() {
@@ -1,9 +1,9 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { ancestorsOf, DecoratorTypes, isClass, isCollection, isMethodDescriptor, Metadata, prototypeOf } from "@tsed/core";
3
- import { JsonEntityStore } from "./JsonEntityStore";
4
- import { JsonParameter } from "./JsonParameter";
5
- import { JsonSchema } from "./JsonSchema";
6
- import { JsonEntityComponent } from "../decorators/config/jsonEntityComponent";
3
+ import { JsonEntityStore } from "./JsonEntityStore.js";
4
+ import { JsonParameter } from "./JsonParameter.js";
5
+ import { JsonSchema } from "./JsonSchema.js";
6
+ import { JsonEntityComponent } from "../decorators/config/jsonEntityComponent.js";
7
7
  let JsonParameterStore = class JsonParameterStore extends JsonEntityStore {
8
8
  constructor(options) {
9
9
  super(options);
@@ -1,8 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { DecoratorTypes, Metadata, prototypeOf } 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 JsonPropertyStore = class JsonPropertyStore extends JsonEntityStore {
7
7
  constructor() {
8
8
  super(...arguments);
@@ -1,5 +1,5 @@
1
- import { toJsonMapCollection } from "../utils/toJsonMapCollection";
2
- import { JsonMap } from "./JsonMap";
1
+ import { toJsonMapCollection } from "../utils/toJsonMapCollection.js";
2
+ import { JsonMap } from "./JsonMap.js";
3
3
  export class JsonRequestBody extends JsonMap {
4
4
  constructor(obj = {}) {
5
5
  super(obj);
@@ -1,8 +1,8 @@
1
1
  import { cleanObject } from "@tsed/core";
2
- import { mapHeaders } from "../utils/mapHeaders";
3
- import { toJsonMapCollection } from "../utils/toJsonMapCollection";
4
- import { JsonMap } from "./JsonMap";
5
- import { SpecTypes } from "./SpecTypes";
2
+ import { mapHeaders } from "../utils/mapHeaders.js";
3
+ import { toJsonMapCollection } from "../utils/toJsonMapCollection.js";
4
+ import { JsonMap } from "./JsonMap.js";
5
+ import { SpecTypes } from "./SpecTypes.js";
6
6
  export class JsonMedia extends JsonMap {
7
7
  constructor() {
8
8
  super(...arguments);
@@ -1,12 +1,12 @@
1
1
  var _JsonSchema_nullable, _JsonSchema_genericLabels, _JsonSchema_nestedGenerics, _JsonSchema_alias, _JsonSchema_itemSchema, _JsonSchema_target, _JsonSchema_isGeneric, _JsonSchema_isCollection, _JsonSchema_ref;
2
2
  import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
3
  import { classOf, Hooks, isArray, isClass, isFunction, isObject, nameOf, uniq } from "@tsed/core";
4
- import { execMapper } from "../registries/JsonSchemaMapperContainer";
5
- import { getComputedType } from "../utils/getComputedType";
6
- import { getJsonType } from "../utils/getJsonType";
7
- import { toJsonRegex } from "../utils/toJsonRegex";
8
- import { JsonEntityStore } from "./JsonEntityStore";
9
- import { serializeEnumValues } from "../utils/serializeEnumValues";
4
+ import { execMapper } from "../registries/JsonSchemaMapperContainer.js";
5
+ import { getComputedType } from "../utils/getComputedType.js";
6
+ import { getJsonType } from "../utils/getJsonType.js";
7
+ import { toJsonRegex } from "../utils/toJsonRegex.js";
8
+ import { JsonEntityStore } from "./JsonEntityStore.js";
9
+ import { serializeEnumValues } from "../utils/serializeEnumValues.js";
10
10
  function mapProperties(properties) {
11
11
  // istanbul ignore next
12
12
  if (properties instanceof JsonSchema) {
@@ -1,17 +1,17 @@
1
- export * from "./JsonMap";
2
- export * from "./JsonOperation";
3
- export * from "./JsonParameter";
4
- export * from "./JsonRequestBody";
5
- export * from "./JsonResponse";
6
- export * from "./JsonSchema";
7
- export * from "./JsonFormatTypes";
8
- export * from "./SpecTypes";
9
- export * from "./JsonEntityStore";
10
- export * from "./JsonClassStore";
11
- export * from "./JsonMethodStore";
12
- export * from "./JsonParameterStore";
13
- export * from "./JsonPropertyStore";
14
- export * from "./JsonOperationRoute";
15
- export * from "./JsonParameterTypes";
16
- export * from "./JsonLazyRef";
1
+ export * from "./JsonMap.js";
2
+ export * from "./JsonOperation.js";
3
+ export * from "./JsonParameter.js";
4
+ export * from "./JsonRequestBody.js";
5
+ export * from "./JsonResponse.js";
6
+ export * from "./JsonSchema.js";
7
+ export * from "./JsonFormatTypes.js";
8
+ export * from "./SpecTypes.js";
9
+ export * from "./JsonEntityStore.js";
10
+ export * from "./JsonClassStore.js";
11
+ export * from "./JsonMethodStore.js";
12
+ export * from "./JsonParameterStore.js";
13
+ export * from "./JsonPropertyStore.js";
14
+ export * from "./JsonOperationRoute.js";
15
+ export * from "./JsonParameterTypes.js";
16
+ export * from "./JsonLazyRef.js";
17
17
  //# sourceMappingURL=index.js.map
package/lib/esm/index.js CHANGED
@@ -1,21 +1,21 @@
1
- export * from "./constants/httpStatusMessages";
2
- export * from "./constants/httpMethods";
3
- export * from "./utils/getJsonSchema";
4
- export * from "./utils/getJsonType";
5
- export * from "./utils/getPropertiesStores";
6
- export * from "./utils/getOperationsStores";
7
- export * from "./utils/getOperationsRoutes";
8
- export * from "./utils/getSpec";
9
- export * from "./utils/mergeSpec";
10
- export * from "./utils/generics";
11
- export * from "./utils/mapHeaders";
12
- export * from "./utils/matchGroups";
13
- export * from "./utils/isSuccessStatus";
14
- export * from "./utils/from";
15
- export * from "./utils/concatPath";
16
- export * from "./utils/defineStatusModel";
17
- export * from "./domain";
18
- export * from "./hooks/alterIgnore";
19
- export * from "./interfaces";
20
- export * from "./decorators";
1
+ export * from "./constants/httpStatusMessages.js";
2
+ export * from "./constants/httpMethods.js";
3
+ export * from "./utils/getJsonSchema.js";
4
+ export * from "./utils/getJsonType.js";
5
+ export * from "./utils/getPropertiesStores.js";
6
+ export * from "./utils/getOperationsStores.js";
7
+ export * from "./utils/getOperationsRoutes.js";
8
+ export * from "./utils/getSpec.js";
9
+ export * from "./utils/mergeSpec.js";
10
+ export * from "./utils/generics.js";
11
+ export * from "./utils/mapHeaders.js";
12
+ export * from "./utils/matchGroups.js";
13
+ export * from "./utils/isSuccessStatus.js";
14
+ export * from "./utils/from.js";
15
+ export * from "./utils/concatPath.js";
16
+ export * from "./utils/defineStatusModel.js";
17
+ export * from "./domain.js";
18
+ export * from "./hooks/alterIgnore.js";
19
+ export * from "./interfaces.js";
20
+ export * from "./decorators.js";
21
21
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- export * from "./JsonSchemaOptions";
2
- export * from "./JsonOpenSpec";
3
- export * from "./IgnoreCallback";
4
- export * from "./JsonHookContext";
1
+ export * from "./JsonSchemaOptions.js";
2
+ export * from "./JsonOpenSpec.js";
3
+ export * from "./IgnoreCallback.js";
4
+ export * from "./JsonHookContext.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }