@trapi/metadata 1.0.0-alpha.7 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/cache/driver.d.ts +13 -13
  2. package/dist/cache/driver.js +83 -83
  3. package/dist/cache/index.d.ts +3 -3
  4. package/dist/cache/index.js +25 -25
  5. package/dist/cache/type.d.ts +32 -32
  6. package/dist/cache/type.js +8 -8
  7. package/dist/cache/utils.d.ts +3 -3
  8. package/dist/cache/utils.js +52 -52
  9. package/dist/config/index.d.ts +1 -1
  10. package/dist/config/index.js +23 -23
  11. package/dist/config/type.d.ts +36 -36
  12. package/dist/config/type.js +8 -8
  13. package/dist/decorator/constants.d.ts +40 -40
  14. package/dist/decorator/constants.js +52 -52
  15. package/dist/decorator/constants.js.map +1 -1
  16. package/dist/decorator/index.d.ts +6 -6
  17. package/dist/decorator/index.js +28 -28
  18. package/dist/decorator/preset/index.d.ts +2 -2
  19. package/dist/decorator/preset/index.js +24 -24
  20. package/dist/decorator/preset/type.d.ts +5 -5
  21. package/dist/decorator/preset/type.js +8 -8
  22. package/dist/decorator/preset/utils/check.d.ts +2 -2
  23. package/dist/decorator/preset/utils/check.js +17 -17
  24. package/dist/decorator/preset/utils/index.d.ts +3 -3
  25. package/dist/decorator/preset/utils/index.js +25 -25
  26. package/dist/decorator/preset/utils/load.d.ts +2 -2
  27. package/dist/decorator/preset/utils/load.js +44 -44
  28. package/dist/decorator/preset/utils/normalize.d.ts +1 -1
  29. package/dist/decorator/preset/utils/normalize.js +26 -26
  30. package/dist/decorator/property-manager/index.d.ts +2 -2
  31. package/dist/decorator/property-manager/index.js +24 -24
  32. package/dist/decorator/property-manager/module.d.ts +16 -16
  33. package/dist/decorator/property-manager/module.js +58 -58
  34. package/dist/decorator/property-manager/utils.d.ts +5 -5
  35. package/dist/decorator/property-manager/utils.d.ts.map +1 -1
  36. package/dist/decorator/property-manager/utils.js +91 -91
  37. package/dist/decorator/resolver/index.d.ts +2 -2
  38. package/dist/decorator/resolver/index.js +24 -24
  39. package/dist/decorator/resolver/module.d.ts +26 -26
  40. package/dist/decorator/resolver/module.js +71 -71
  41. package/dist/decorator/resolver/type.d.ts +9 -9
  42. package/dist/decorator/resolver/type.js +2 -2
  43. package/dist/decorator/sets/class.d.ts +6 -6
  44. package/dist/decorator/sets/class.js +8 -8
  45. package/dist/decorator/sets/index.d.ts +7 -7
  46. package/dist/decorator/sets/index.js +28 -28
  47. package/dist/decorator/sets/method.d.ts +13 -13
  48. package/dist/decorator/sets/method.js +8 -8
  49. package/dist/decorator/sets/mixed.d.ts +11 -11
  50. package/dist/decorator/sets/mixed.js +8 -8
  51. package/dist/decorator/sets/parameter.d.ts +20 -20
  52. package/dist/decorator/sets/parameter.js +8 -8
  53. package/dist/decorator/sets/request.d.ts +5 -5
  54. package/dist/decorator/sets/request.js +8 -8
  55. package/dist/decorator/sets/response.d.ts +16 -16
  56. package/dist/decorator/sets/response.js +8 -8
  57. package/dist/decorator/sets/type.d.ts +3 -3
  58. package/dist/decorator/sets/type.js +2 -2
  59. package/dist/decorator/type.d.ts +31 -31
  60. package/dist/decorator/type.js +8 -8
  61. package/dist/error/base.d.ts +2 -2
  62. package/dist/error/base.js +12 -12
  63. package/dist/error/index.d.ts +1 -1
  64. package/dist/error/index.js +23 -23
  65. package/dist/generator/abstract.d.ts +18 -18
  66. package/dist/generator/abstract.js +150 -150
  67. package/dist/generator/abstract.js.map +1 -1
  68. package/dist/generator/controller/index.d.ts +2 -2
  69. package/dist/generator/controller/index.js +24 -24
  70. package/dist/generator/controller/module.d.ts +12 -12
  71. package/dist/generator/controller/module.js +67 -67
  72. package/dist/generator/controller/type.d.ts +46 -46
  73. package/dist/generator/controller/type.js +2 -2
  74. package/dist/generator/index.d.ts +6 -6
  75. package/dist/generator/index.js +28 -28
  76. package/dist/generator/metadata/index.d.ts +3 -3
  77. package/dist/generator/metadata/index.js +25 -25
  78. package/dist/generator/metadata/module.d.ts +38 -38
  79. package/dist/generator/metadata/module.js +139 -142
  80. package/dist/generator/metadata/module.js.map +1 -1
  81. package/dist/generator/metadata/type.d.ts +24 -24
  82. package/dist/generator/metadata/type.js +2 -2
  83. package/dist/generator/metadata/utils.d.ts +2 -2
  84. package/dist/generator/metadata/utils.js +18 -18
  85. package/dist/generator/method/constants.d.ts +10 -10
  86. package/dist/generator/method/constants.js +20 -20
  87. package/dist/generator/method/constants.js.map +1 -1
  88. package/dist/generator/method/index.d.ts +3 -3
  89. package/dist/generator/method/index.js +25 -25
  90. package/dist/generator/method/module.d.ts +18 -18
  91. package/dist/generator/method/module.js +187 -187
  92. package/dist/generator/method/type.d.ts +22 -22
  93. package/dist/generator/method/type.js +8 -8
  94. package/dist/generator/parameter/constants.d.ts +18 -18
  95. package/dist/generator/parameter/constants.js +29 -29
  96. package/dist/generator/parameter/constants.js.map +1 -1
  97. package/dist/generator/parameter/error.d.ts +34 -34
  98. package/dist/generator/parameter/error.js +67 -67
  99. package/dist/generator/parameter/index.d.ts +4 -4
  100. package/dist/generator/parameter/index.js +26 -26
  101. package/dist/generator/parameter/module.d.ts +28 -28
  102. package/dist/generator/parameter/module.js +555 -555
  103. package/dist/generator/parameter/type.d.ts +24 -24
  104. package/dist/generator/parameter/type.js +8 -8
  105. package/dist/generator/type.d.ts +19 -19
  106. package/dist/generator/type.js +8 -8
  107. package/dist/index.d.ts +9 -9
  108. package/dist/index.js +31 -31
  109. package/dist/module.d.ts +4 -4
  110. package/dist/module.js +40 -40
  111. package/dist/resolver/constants.d.ts +26 -26
  112. package/dist/resolver/constants.js +36 -36
  113. package/dist/resolver/constants.js.map +1 -1
  114. package/dist/resolver/error.d.ts +7 -7
  115. package/dist/resolver/error.js +40 -40
  116. package/dist/resolver/extension/index.d.ts +2 -2
  117. package/dist/resolver/extension/index.js +24 -24
  118. package/dist/resolver/extension/module.d.ts +4 -4
  119. package/dist/resolver/extension/module.js +26 -26
  120. package/dist/resolver/extension/type.d.ts +7 -7
  121. package/dist/resolver/extension/type.js +8 -8
  122. package/dist/resolver/index.d.ts +5 -5
  123. package/dist/resolver/index.js +27 -27
  124. package/dist/resolver/module.d.ts +53 -53
  125. package/dist/resolver/module.js +1102 -1102
  126. package/dist/resolver/type.d.ts +138 -138
  127. package/dist/resolver/type.js +129 -129
  128. package/dist/type.d.ts +1 -1
  129. package/dist/type.js +8 -8
  130. package/dist/utils/array.d.ts +2 -0
  131. package/dist/utils/array.d.ts.map +1 -0
  132. package/dist/utils/array.js +22 -0
  133. package/dist/utils/array.js.map +1 -0
  134. package/dist/utils/index.d.ts +9 -8
  135. package/dist/utils/index.d.ts.map +1 -1
  136. package/dist/utils/index.js +31 -30
  137. package/dist/utils/index.js.map +1 -1
  138. package/dist/utils/initializer.d.ts +4 -4
  139. package/dist/utils/initializer.js +130 -130
  140. package/dist/utils/js-doc/constants.d.ts +18 -18
  141. package/dist/utils/js-doc/constants.js +29 -29
  142. package/dist/utils/js-doc/constants.js.map +1 -1
  143. package/dist/utils/js-doc/index.d.ts +3 -3
  144. package/dist/utils/js-doc/index.js +25 -25
  145. package/dist/utils/js-doc/module.d.ts +8 -8
  146. package/dist/utils/js-doc/module.js +97 -97
  147. package/dist/utils/js-doc/utils.d.ts +2 -2
  148. package/dist/utils/js-doc/utils.js +28 -28
  149. package/dist/utils/node/index.d.ts +2 -2
  150. package/dist/utils/node/index.js +24 -24
  151. package/dist/utils/node/module.d.ts +9 -9
  152. package/dist/utils/node/module.js +51 -51
  153. package/dist/utils/node/type.d.ts +5 -5
  154. package/dist/utils/node/type.js +8 -8
  155. package/dist/utils/object.d.ts +1 -1
  156. package/dist/utils/object.js +14 -14
  157. package/dist/utils/path-normalize.d.ts +1 -1
  158. package/dist/utils/path-normalize.js +16 -16
  159. package/dist/utils/source-files.d.ts +2 -2
  160. package/dist/utils/source-files.js +31 -31
  161. package/dist/utils/tsconfig/index.d.ts +2 -2
  162. package/dist/utils/tsconfig/index.js +24 -24
  163. package/dist/utils/tsconfig/module.d.ts +3 -3
  164. package/dist/utils/tsconfig/module.js +53 -53
  165. package/dist/utils/tsconfig/type.d.ts +10 -10
  166. package/dist/utils/tsconfig/type.js +8 -8
  167. package/dist/utils/validator/constants.d.ts +12 -12
  168. package/dist/utils/validator/constants.js +22 -22
  169. package/dist/utils/validator/constants.js.map +1 -1
  170. package/dist/utils/validator/index.d.ts +3 -3
  171. package/dist/utils/validator/index.js +25 -25
  172. package/dist/utils/validator/module.d.ts +3 -3
  173. package/dist/utils/validator/module.js +141 -141
  174. package/dist/utils/validator/type.d.ts +5 -5
  175. package/dist/utils/validator/type.js +8 -8
  176. package/package.json +6 -7
@@ -1,10 +1,10 @@
1
- import type { DecoratorID } from '../constants';
2
- import type { DecoratorConfig } from '../type';
3
- export type DecoratorResolverMap = {
4
- [T in `${DecoratorID}`]?: DecoratorConfig<T>[];
5
- };
6
- export type DecoratorResolverContext = {
7
- preset?: string;
8
- decorators?: DecoratorConfig[];
9
- };
1
+ import type { DecoratorID } from '../constants';
2
+ import type { DecoratorConfig } from '../type';
3
+ export type DecoratorResolverMap = {
4
+ [T in `${DecoratorID}`]?: DecoratorConfig<T>[];
5
+ };
6
+ export type DecoratorResolverContext = {
7
+ preset?: string;
8
+ decorators?: DecoratorConfig[];
9
+ };
10
10
  //# sourceMappingURL=type.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=type.js.map
@@ -1,7 +1,7 @@
1
- import type { DecoratorID } from '../constants';
2
- import type { DecoratorPropertyValueSchema } from './type';
3
- export type DecoratorSwaggerTagsProperties = DecoratorPropertyValueSchema<string[]>;
4
- export type DecoratorClassPathProperties = DecoratorPropertyValueSchema<string>;
5
- export type DecoratorClassSetID = `${DecoratorID.TAGS}` | `${DecoratorID.CONTROLLER}`;
6
- export type DecoratorClassSetProperties<T extends DecoratorClassSetID> = T extends `${DecoratorID.TAGS}` ? DecoratorSwaggerTagsProperties : T extends `${DecoratorID.CONTROLLER}` ? DecoratorClassPathProperties : never;
1
+ import type { DecoratorID } from '../constants';
2
+ import type { DecoratorPropertyValueSchema } from './type';
3
+ export type DecoratorSwaggerTagsProperties = DecoratorPropertyValueSchema<string[]>;
4
+ export type DecoratorClassPathProperties = DecoratorPropertyValueSchema<string>;
5
+ export type DecoratorClassSetID = `${DecoratorID.TAGS}` | `${DecoratorID.CONTROLLER}`;
6
+ export type DecoratorClassSetProperties<T extends DecoratorClassSetID> = T extends `${DecoratorID.TAGS}` ? DecoratorSwaggerTagsProperties : T extends `${DecoratorID.CONTROLLER}` ? DecoratorClassPathProperties : never;
7
7
  //# sourceMappingURL=class.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=class.js.map
@@ -1,8 +1,8 @@
1
- export * from './class';
2
- export * from './method';
3
- export * from './mixed';
4
- export * from './parameter';
5
- export * from './request';
6
- export * from './response';
7
- export { DecoratorPropertyValueSchema } from './type';
1
+ export * from './class';
2
+ export * from './method';
3
+ export * from './mixed';
4
+ export * from './parameter';
5
+ export * from './request';
6
+ export * from './response';
7
+ export { DecoratorPropertyValueSchema } from './type';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,29 +1,29 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./class"), exports);
24
- __exportStar(require("./method"), exports);
25
- __exportStar(require("./mixed"), exports);
26
- __exportStar(require("./parameter"), exports);
27
- __exportStar(require("./request"), exports);
28
- __exportStar(require("./response"), exports);
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./class"), exports);
24
+ __exportStar(require("./method"), exports);
25
+ __exportStar(require("./mixed"), exports);
26
+ __exportStar(require("./parameter"), exports);
27
+ __exportStar(require("./request"), exports);
28
+ __exportStar(require("./response"), exports);
29
29
  //# sourceMappingURL=index.js.map
@@ -1,14 +1,14 @@
1
- import type { DecoratorID } from '../constants';
2
- import type { DecoratorPropertyValueSchema } from './type';
3
- export type DecoratorMethodPathProperties = DecoratorPropertyValueSchema<string | undefined>;
4
- export type DecoratorAllProperties = DecoratorPropertyValueSchema<string | undefined>;
5
- export type DecoratorDeleteProperties = DecoratorPropertyValueSchema<string | undefined>;
6
- export type DecoratorHeadProperties = DecoratorPropertyValueSchema<string | undefined>;
7
- export type DecoratorOptionsProperties = DecoratorPropertyValueSchema<string | undefined>;
8
- export type DecoratorGetProperties = DecoratorPropertyValueSchema<string | undefined>;
9
- export type DecoratorPostProperties = DecoratorPropertyValueSchema<string | undefined>;
10
- export type DecoratorPutProperties = DecoratorPropertyValueSchema<string | undefined>;
11
- export type DecoratorPatchProperties = DecoratorPropertyValueSchema<string | undefined>;
12
- export type DecoratorMethodSetID = `${DecoratorID.ALL}` | `${DecoratorID.DELETE}` | `${DecoratorID.HEAD}` | `${DecoratorID.PATCH}` | `${DecoratorID.MOUNT}` | `${DecoratorID.POST}` | `${DecoratorID.PUT}` | `${DecoratorID.OPTIONS}`;
13
- export type DecoratorMethodSetProperties<T extends DecoratorMethodSetID> = T extends `${DecoratorID.ALL}` ? DecoratorAllProperties : T extends `${DecoratorID.DELETE}` ? DecoratorDeleteProperties : T extends `${DecoratorID.GET}` ? DecoratorGetProperties : T extends `${DecoratorID.HEAD}` ? DecoratorHeadProperties : T extends `${DecoratorID.OPTIONS}` ? DecoratorOptionsProperties : T extends `${DecoratorID.PATCH}` ? DecoratorPatchProperties : T extends `${DecoratorID.MOUNT}` ? DecoratorMethodPathProperties : T extends `${DecoratorID.POST}` ? DecoratorPostProperties : T extends `${DecoratorID.PUT}` ? DecoratorPutProperties : never;
1
+ import type { DecoratorID } from '../constants';
2
+ import type { DecoratorPropertyValueSchema } from './type';
3
+ export type DecoratorMethodPathProperties = DecoratorPropertyValueSchema<string | undefined>;
4
+ export type DecoratorAllProperties = DecoratorPropertyValueSchema<string | undefined>;
5
+ export type DecoratorDeleteProperties = DecoratorPropertyValueSchema<string | undefined>;
6
+ export type DecoratorHeadProperties = DecoratorPropertyValueSchema<string | undefined>;
7
+ export type DecoratorOptionsProperties = DecoratorPropertyValueSchema<string | undefined>;
8
+ export type DecoratorGetProperties = DecoratorPropertyValueSchema<string | undefined>;
9
+ export type DecoratorPostProperties = DecoratorPropertyValueSchema<string | undefined>;
10
+ export type DecoratorPutProperties = DecoratorPropertyValueSchema<string | undefined>;
11
+ export type DecoratorPatchProperties = DecoratorPropertyValueSchema<string | undefined>;
12
+ export type DecoratorMethodSetID = `${DecoratorID.ALL}` | `${DecoratorID.DELETE}` | `${DecoratorID.HEAD}` | `${DecoratorID.PATCH}` | `${DecoratorID.MOUNT}` | `${DecoratorID.POST}` | `${DecoratorID.PUT}` | `${DecoratorID.OPTIONS}`;
13
+ export type DecoratorMethodSetProperties<T extends DecoratorMethodSetID> = T extends `${DecoratorID.ALL}` ? DecoratorAllProperties : T extends `${DecoratorID.DELETE}` ? DecoratorDeleteProperties : T extends `${DecoratorID.GET}` ? DecoratorGetProperties : T extends `${DecoratorID.HEAD}` ? DecoratorHeadProperties : T extends `${DecoratorID.OPTIONS}` ? DecoratorOptionsProperties : T extends `${DecoratorID.PATCH}` ? DecoratorPatchProperties : T extends `${DecoratorID.MOUNT}` ? DecoratorMethodPathProperties : T extends `${DecoratorID.POST}` ? DecoratorPostProperties : T extends `${DecoratorID.PUT}` ? DecoratorPutProperties : never;
14
14
  //# sourceMappingURL=method.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=method.js.map
@@ -1,12 +1,12 @@
1
- import type { DecoratorID } from '../constants';
2
- export type DecoratorExtensionProperties = {
3
- key: string;
4
- value: unknown | unknown[];
5
- };
6
- export type DecoratorSecurityProperties = {
7
- key: string | Record<string, string[]>;
8
- value?: unknown[];
9
- };
10
- export type DecoratorMixedSetID = `${DecoratorID.DEPRECATED}` | `${DecoratorID.HIDDEN}` | `${DecoratorID.EXTENSION}` | `${DecoratorID.SECURITY}`;
11
- export type DecoratorMixedSetProperties<T extends DecoratorMixedSetID> = T extends `${DecoratorID.EXTENSION}` ? DecoratorExtensionProperties : T extends `${DecoratorID.SECURITY}` ? DecoratorSecurityProperties : never;
1
+ import type { DecoratorID } from '../constants';
2
+ export type DecoratorExtensionProperties = {
3
+ key: string;
4
+ value: unknown | unknown[];
5
+ };
6
+ export type DecoratorSecurityProperties = {
7
+ key: string | Record<string, string[]>;
8
+ value?: unknown[];
9
+ };
10
+ export type DecoratorMixedSetID = `${DecoratorID.DEPRECATED}` | `${DecoratorID.HIDDEN}` | `${DecoratorID.EXTENSION}` | `${DecoratorID.SECURITY}`;
11
+ export type DecoratorMixedSetProperties<T extends DecoratorMixedSetID> = T extends `${DecoratorID.EXTENSION}` ? DecoratorExtensionProperties : T extends `${DecoratorID.SECURITY}` ? DecoratorSecurityProperties : never;
12
12
  //# sourceMappingURL=mixed.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=mixed.js.map
@@ -1,21 +1,21 @@
1
- import type { DecoratorID } from '../constants';
2
- import type { DecoratorPropertyValueSchema } from './type';
3
- export type DecoratorParamProperties = DecoratorPropertyValueSchema<string>;
4
- export type DecoratorParamsProperties = DecoratorPropertyValueSchema<string | undefined>;
5
- export type DecoratorQueryProperties = {
6
- value?: string;
7
- options?: Record<string, any>;
8
- };
9
- export type DecoratorFormProperties = DecoratorPropertyValueSchema<string>;
10
- export type DecoratorBodyProperties = DecoratorPropertyValueSchema<string | undefined>;
11
- export type DecoratorHeaderProperties = DecoratorPropertyValueSchema<string>;
12
- export type DecoratorHeadersProperties = DecoratorPropertyValueSchema<string | undefined>;
13
- export type DecoratorCookieProperties = DecoratorPropertyValueSchema<string>;
14
- export type DecoratorCookiesProperties = DecoratorPropertyValueSchema<string | undefined>;
15
- export type DecoratorPathParamProperties = DecoratorPropertyValueSchema<string>;
16
- export type DecoratorPathParamsProperties = DecoratorPropertyValueSchema<string | undefined>;
17
- export type DecoratorFileProperties = DecoratorPropertyValueSchema<string>;
18
- export type DecoratorFilesParamProperties = DecoratorPropertyValueSchema<string | undefined>;
19
- export type DecoratorParameterSetID = `${DecoratorID.IS_INT}` | `${DecoratorID.IS_LONG}` | `${DecoratorID.IS_FLOAT}` | `${DecoratorID.IS_DOUBLE}` | `${DecoratorID.PARAM}` | `${DecoratorID.PARAMS}` | `${DecoratorID.QUERY}` | `${DecoratorID.FORM}` | `${DecoratorID.BODY}` | `${DecoratorID.HEADER}` | `${DecoratorID.HEADERS}` | `${DecoratorID.COOKIE}` | `${DecoratorID.COOKIES}` | `${DecoratorID.PATH}` | `${DecoratorID.PATHS}` | `${DecoratorID.FILE}` | `${DecoratorID.FILES}`;
20
- export type DecoratorParameterSetProperties<T extends `${DecoratorID}`> = T extends `${DecoratorID.PARAM}` ? DecoratorParamProperties : T extends `${DecoratorID.PARAMS}` ? DecoratorParamsProperties : T extends `${DecoratorID.QUERY}` ? DecoratorQueryProperties : T extends `${DecoratorID.FORM}` ? DecoratorFormProperties : T extends `${DecoratorID.BODY}` ? DecoratorBodyProperties : T extends `${DecoratorID.HEADER}` ? DecoratorHeaderProperties : T extends `${DecoratorID.HEADERS}` ? DecoratorHeadersProperties : T extends `${DecoratorID.COOKIE}` ? DecoratorCookieProperties : T extends `${DecoratorID.COOKIES}` ? DecoratorCookiesProperties : T extends `${DecoratorID.PATH}` ? DecoratorPathParamProperties : T extends `${DecoratorID.PATHS}` ? DecoratorPathParamsProperties : T extends `${DecoratorID.FILE}` ? DecoratorFileProperties : T extends `${DecoratorID.FILES}` ? DecoratorFilesParamProperties : never;
1
+ import type { DecoratorID } from '../constants';
2
+ import type { DecoratorPropertyValueSchema } from './type';
3
+ export type DecoratorParamProperties = DecoratorPropertyValueSchema<string>;
4
+ export type DecoratorParamsProperties = DecoratorPropertyValueSchema<string | undefined>;
5
+ export type DecoratorQueryProperties = {
6
+ value?: string;
7
+ options?: Record<string, any>;
8
+ };
9
+ export type DecoratorFormProperties = DecoratorPropertyValueSchema<string>;
10
+ export type DecoratorBodyProperties = DecoratorPropertyValueSchema<string | undefined>;
11
+ export type DecoratorHeaderProperties = DecoratorPropertyValueSchema<string>;
12
+ export type DecoratorHeadersProperties = DecoratorPropertyValueSchema<string | undefined>;
13
+ export type DecoratorCookieProperties = DecoratorPropertyValueSchema<string>;
14
+ export type DecoratorCookiesProperties = DecoratorPropertyValueSchema<string | undefined>;
15
+ export type DecoratorPathParamProperties = DecoratorPropertyValueSchema<string>;
16
+ export type DecoratorPathParamsProperties = DecoratorPropertyValueSchema<string | undefined>;
17
+ export type DecoratorFileProperties = DecoratorPropertyValueSchema<string>;
18
+ export type DecoratorFilesParamProperties = DecoratorPropertyValueSchema<string | undefined>;
19
+ export type DecoratorParameterSetID = `${DecoratorID.IS_INT}` | `${DecoratorID.IS_LONG}` | `${DecoratorID.IS_FLOAT}` | `${DecoratorID.IS_DOUBLE}` | `${DecoratorID.PARAM}` | `${DecoratorID.PARAMS}` | `${DecoratorID.QUERY}` | `${DecoratorID.FORM}` | `${DecoratorID.BODY}` | `${DecoratorID.HEADER}` | `${DecoratorID.HEADERS}` | `${DecoratorID.COOKIE}` | `${DecoratorID.COOKIES}` | `${DecoratorID.PATH}` | `${DecoratorID.PATHS}` | `${DecoratorID.FILE}` | `${DecoratorID.FILES}`;
20
+ export type DecoratorParameterSetProperties<T extends `${DecoratorID}`> = T extends `${DecoratorID.PARAM}` ? DecoratorParamProperties : T extends `${DecoratorID.PARAMS}` ? DecoratorParamsProperties : T extends `${DecoratorID.QUERY}` ? DecoratorQueryProperties : T extends `${DecoratorID.FORM}` ? DecoratorFormProperties : T extends `${DecoratorID.BODY}` ? DecoratorBodyProperties : T extends `${DecoratorID.HEADER}` ? DecoratorHeaderProperties : T extends `${DecoratorID.HEADERS}` ? DecoratorHeadersProperties : T extends `${DecoratorID.COOKIE}` ? DecoratorCookieProperties : T extends `${DecoratorID.COOKIES}` ? DecoratorCookiesProperties : T extends `${DecoratorID.PATH}` ? DecoratorPathParamProperties : T extends `${DecoratorID.PATHS}` ? DecoratorPathParamsProperties : T extends `${DecoratorID.FILE}` ? DecoratorFileProperties : T extends `${DecoratorID.FILES}` ? DecoratorFilesParamProperties : never;
21
21
  //# sourceMappingURL=parameter.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=parameter.js.map
@@ -1,6 +1,6 @@
1
- import type { DecoratorID } from '../constants';
2
- import type { DecoratorPropertyValueSchema } from './type';
3
- export type DecoratorRequestConsumesProperties = DecoratorPropertyValueSchema<string[]>;
4
- export type DecoratorRequestSetID = `${DecoratorID.ACCEPT}` | `${DecoratorID.CONSUMES}`;
5
- export type DecoratorRequestSetProperties<T extends DecoratorRequestSetID> = T extends `${DecoratorID.ACCEPT}` ? never : T extends `${DecoratorID.CONSUMES}` ? DecoratorRequestConsumesProperties : never;
1
+ import type { DecoratorID } from '../constants';
2
+ import type { DecoratorPropertyValueSchema } from './type';
3
+ export type DecoratorRequestConsumesProperties = DecoratorPropertyValueSchema<string[]>;
4
+ export type DecoratorRequestSetID = `${DecoratorID.ACCEPT}` | `${DecoratorID.CONSUMES}`;
5
+ export type DecoratorRequestSetProperties<T extends DecoratorRequestSetID> = T extends `${DecoratorID.ACCEPT}` ? never : T extends `${DecoratorID.CONSUMES}` ? DecoratorRequestConsumesProperties : never;
6
6
  //# sourceMappingURL=request.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=request.js.map
@@ -1,17 +1,17 @@
1
- import type { DecoratorID } from '../constants';
2
- import type { DecoratorPropertyValueSchema } from './type';
3
- export type DecoratorResponseDescriptionProperties = {
4
- type: unknown;
5
- statusCode: number | string;
6
- description: string;
7
- payload: unknown | unknown[];
8
- };
9
- export type DecoratorResponseExampleProperties = {
10
- type: unknown;
11
- payload: unknown | unknown[];
12
- label?: string;
13
- };
14
- export type DecoratorResponseProducesProperties = DecoratorPropertyValueSchema<string[]>;
15
- export type DecoratorResponseSetID = `${DecoratorID.DESCRIPTION}` | `${DecoratorID.EXAMPLE}` | `${DecoratorID.PRODUCES}`;
16
- export type DecoratorResponseSetProperties<T extends DecoratorResponseSetID> = T extends `${DecoratorID.DESCRIPTION}` ? DecoratorResponseDescriptionProperties : T extends `${DecoratorID.EXAMPLE}` ? DecoratorResponseExampleProperties : T extends `${DecoratorID.PRODUCES}` ? DecoratorResponseProducesProperties : never;
1
+ import type { DecoratorID } from '../constants';
2
+ import type { DecoratorPropertyValueSchema } from './type';
3
+ export type DecoratorResponseDescriptionProperties = {
4
+ type: unknown;
5
+ statusCode: number | string;
6
+ description: string;
7
+ payload: unknown | unknown[];
8
+ };
9
+ export type DecoratorResponseExampleProperties = {
10
+ type: unknown;
11
+ payload: unknown | unknown[];
12
+ label?: string;
13
+ };
14
+ export type DecoratorResponseProducesProperties = DecoratorPropertyValueSchema<string[]>;
15
+ export type DecoratorResponseSetID = `${DecoratorID.DESCRIPTION}` | `${DecoratorID.EXAMPLE}` | `${DecoratorID.PRODUCES}`;
16
+ export type DecoratorResponseSetProperties<T extends DecoratorResponseSetID> = T extends `${DecoratorID.DESCRIPTION}` ? DecoratorResponseDescriptionProperties : T extends `${DecoratorID.EXAMPLE}` ? DecoratorResponseExampleProperties : T extends `${DecoratorID.PRODUCES}` ? DecoratorResponseProducesProperties : never;
17
17
  //# sourceMappingURL=response.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=response.js.map
@@ -1,4 +1,4 @@
1
- export type DecoratorPropertyValueSchema<T> = {
2
- value: T;
3
- };
1
+ export type DecoratorPropertyValueSchema<T> = {
2
+ value: T;
3
+ };
4
4
  //# sourceMappingURL=type.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=type.js.map
@@ -1,32 +1,32 @@
1
- import type { DecoratorID } from './constants';
2
- import type { DecoratorClassSetID, DecoratorClassSetProperties, DecoratorMethodSetID, DecoratorMethodSetProperties, DecoratorMixedSetID, DecoratorMixedSetProperties, DecoratorParameterSetID, DecoratorParameterSetProperties, DecoratorRequestSetID, DecoratorRequestSetProperties, DecoratorResponseSetID, DecoratorResponseSetProperties } from './sets';
3
- export type DecoratorProperties<T extends `${DecoratorID}`> = T extends DecoratorClassSetID ? DecoratorClassSetProperties<T> : T extends DecoratorMethodSetID ? DecoratorMethodSetProperties<T> : T extends DecoratorMixedSetID ? DecoratorMixedSetProperties<T> : T extends DecoratorParameterSetID ? DecoratorParameterSetProperties<T> : T extends DecoratorRequestSetID ? DecoratorRequestSetProperties<T> : T extends DecoratorResponseSetID ? DecoratorResponseSetProperties<T> : never;
4
- export type DecoratorPropertyStrategy = 'merge' | ((...items: any[]) => any);
5
- export type DecoratorPropertyConfig = {
6
- /**
7
- * Default: false
8
- */
9
- isType: boolean;
10
- /**
11
- * Default: 0
12
- */
13
- index: number;
14
- /**
15
- * Default: undefined
16
- */
17
- amount?: number;
18
- /**
19
- * Default: undefined
20
- */
21
- strategy?: DecoratorPropertyStrategy;
22
- };
23
- export type DecoratorPropertyConfigInput = Partial<DecoratorPropertyConfig>;
24
- export type DecoratorPropertiesConfig<P extends Record<string, any>> = {
25
- [K in keyof P]: DecoratorPropertyConfigInput;
26
- };
27
- export type DecoratorConfig<T extends `${DecoratorID}` = `${DecoratorID}`> = {
28
- id: T;
29
- name: string;
30
- properties?: DecoratorPropertiesConfig<DecoratorProperties<T>>;
31
- };
1
+ import type { DecoratorID } from './constants';
2
+ import type { DecoratorClassSetID, DecoratorClassSetProperties, DecoratorMethodSetID, DecoratorMethodSetProperties, DecoratorMixedSetID, DecoratorMixedSetProperties, DecoratorParameterSetID, DecoratorParameterSetProperties, DecoratorRequestSetID, DecoratorRequestSetProperties, DecoratorResponseSetID, DecoratorResponseSetProperties } from './sets';
3
+ export type DecoratorProperties<T extends `${DecoratorID}`> = T extends DecoratorClassSetID ? DecoratorClassSetProperties<T> : T extends DecoratorMethodSetID ? DecoratorMethodSetProperties<T> : T extends DecoratorMixedSetID ? DecoratorMixedSetProperties<T> : T extends DecoratorParameterSetID ? DecoratorParameterSetProperties<T> : T extends DecoratorRequestSetID ? DecoratorRequestSetProperties<T> : T extends DecoratorResponseSetID ? DecoratorResponseSetProperties<T> : never;
4
+ export type DecoratorPropertyStrategy = 'merge' | ((...items: any[]) => any);
5
+ export type DecoratorPropertyConfig = {
6
+ /**
7
+ * Default: false
8
+ */
9
+ isType: boolean;
10
+ /**
11
+ * Default: 0
12
+ */
13
+ index: number;
14
+ /**
15
+ * Default: undefined
16
+ */
17
+ amount?: number;
18
+ /**
19
+ * Default: undefined
20
+ */
21
+ strategy?: DecoratorPropertyStrategy;
22
+ };
23
+ export type DecoratorPropertyConfigInput = Partial<DecoratorPropertyConfig>;
24
+ export type DecoratorPropertiesConfig<P extends Record<string, any>> = {
25
+ [K in keyof P]: DecoratorPropertyConfigInput;
26
+ };
27
+ export type DecoratorConfig<T extends `${DecoratorID}` = `${DecoratorID}`> = {
28
+ id: T;
29
+ name: string;
30
+ properties?: DecoratorPropertiesConfig<DecoratorProperties<T>>;
31
+ };
32
32
  //# sourceMappingURL=type.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2021.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2021.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=type.js.map
@@ -1,3 +1,3 @@
1
- export declare class BaseError extends Error {
2
- }
1
+ export declare class BaseError extends Error {
2
+ }
3
3
  //# sourceMappingURL=base.d.ts.map
@@ -1,13 +1,13 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.BaseError = void 0;
10
- class BaseError extends Error {
11
- }
12
- exports.BaseError = BaseError;
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.BaseError = void 0;
10
+ class BaseError extends Error {
11
+ }
12
+ exports.BaseError = BaseError;
13
13
  //# sourceMappingURL=base.js.map
@@ -1,2 +1,2 @@
1
- export * from './base';
1
+ export * from './base';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,24 +1,24 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./base"), exports);
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./base"), exports);
24
24
  //# sourceMappingURL=index.js.map
@@ -1,19 +1,19 @@
1
- import type { Node } from 'typescript';
2
- import type { Response, Security } from './type';
3
- import type { MetadataGenerator } from './metadata';
4
- export declare abstract class AbstractGenerator<T extends Node> {
5
- protected node: T;
6
- protected current: MetadataGenerator;
7
- protected constructor(node: T, current: MetadataGenerator);
8
- protected buildPath(): string;
9
- protected getSecurity(): Security[];
10
- protected getExamplesValue(argument: any): unknown[];
11
- protected buildResponses(): Response[];
12
- getProduces(): string[];
13
- getConsumes(): string[];
14
- getTags(): string[];
15
- protected abstract getCurrentLocation(): string;
16
- isHidden(node: Node): boolean;
17
- isDeprecated(node: Node): boolean;
18
- }
1
+ import type { Node } from 'typescript';
2
+ import type { Response, Security } from './type';
3
+ import type { MetadataGenerator } from './metadata';
4
+ export declare abstract class AbstractGenerator<T extends Node> {
5
+ protected node: T;
6
+ protected current: MetadataGenerator;
7
+ protected constructor(node: T, current: MetadataGenerator);
8
+ protected buildPath(): string;
9
+ protected getSecurity(): Security[];
10
+ protected getExamplesValue(argument: any): unknown[];
11
+ protected buildResponses(): Response[];
12
+ getProduces(): string[];
13
+ getConsumes(): string[];
14
+ getTags(): string[];
15
+ protected abstract getCurrentLocation(): string;
16
+ isHidden(node: Node): boolean;
17
+ isDeprecated(node: Node): boolean;
18
+ }
19
19
  //# sourceMappingURL=abstract.d.ts.map