@trapi/metadata 1.2.3 → 2.0.0-beta.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.
- package/README.md +63 -16
- package/dist/index.d.mts +1718 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3310 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +27 -15
- package/dist/cache/client.d.ts +0 -15
- package/dist/cache/client.d.ts.map +0 -1
- package/dist/cache/client.js +0 -98
- package/dist/cache/client.js.map +0 -1
- package/dist/cache/index.d.ts +0 -4
- package/dist/cache/index.d.ts.map +0 -1
- package/dist/cache/index.js +0 -26
- package/dist/cache/index.js.map +0 -1
- package/dist/cache/type.d.ts +0 -33
- package/dist/cache/type.d.ts.map +0 -1
- package/dist/cache/type.js +0 -9
- package/dist/cache/type.js.map +0 -1
- package/dist/cache/utils.d.ts +0 -4
- package/dist/cache/utils.d.ts.map +0 -1
- package/dist/cache/utils.js +0 -53
- package/dist/cache/utils.js.map +0 -1
- package/dist/config/index.d.ts +0 -2
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -24
- package/dist/config/index.js.map +0 -1
- package/dist/config/type.d.ts +0 -37
- package/dist/config/type.d.ts.map +0 -1
- package/dist/config/type.js +0 -9
- package/dist/config/type.js.map +0 -1
- package/dist/decorator/constants.d.ts +0 -41
- package/dist/decorator/constants.d.ts.map +0 -1
- package/dist/decorator/constants.js +0 -53
- package/dist/decorator/constants.js.map +0 -1
- package/dist/decorator/index.d.ts +0 -7
- package/dist/decorator/index.d.ts.map +0 -1
- package/dist/decorator/index.js +0 -29
- package/dist/decorator/index.js.map +0 -1
- package/dist/decorator/preset/index.d.ts +0 -3
- package/dist/decorator/preset/index.d.ts.map +0 -1
- package/dist/decorator/preset/index.js +0 -25
- package/dist/decorator/preset/index.js.map +0 -1
- package/dist/decorator/preset/type.d.ts +0 -6
- package/dist/decorator/preset/type.d.ts.map +0 -1
- package/dist/decorator/preset/type.js +0 -9
- package/dist/decorator/preset/type.js.map +0 -1
- package/dist/decorator/preset/utils/check.d.ts +0 -3
- package/dist/decorator/preset/utils/check.d.ts.map +0 -1
- package/dist/decorator/preset/utils/check.js +0 -18
- package/dist/decorator/preset/utils/check.js.map +0 -1
- package/dist/decorator/preset/utils/index.d.ts +0 -4
- package/dist/decorator/preset/utils/index.d.ts.map +0 -1
- package/dist/decorator/preset/utils/index.js +0 -26
- package/dist/decorator/preset/utils/index.js.map +0 -1
- package/dist/decorator/preset/utils/load.d.ts +0 -3
- package/dist/decorator/preset/utils/load.d.ts.map +0 -1
- package/dist/decorator/preset/utils/load.js +0 -51
- package/dist/decorator/preset/utils/load.js.map +0 -1
- package/dist/decorator/preset/utils/normalize.d.ts +0 -2
- package/dist/decorator/preset/utils/normalize.d.ts.map +0 -1
- package/dist/decorator/preset/utils/normalize.js +0 -27
- package/dist/decorator/preset/utils/normalize.js.map +0 -1
- package/dist/decorator/property-manager/index.d.ts +0 -3
- package/dist/decorator/property-manager/index.d.ts.map +0 -1
- package/dist/decorator/property-manager/index.js +0 -25
- package/dist/decorator/property-manager/index.js.map +0 -1
- package/dist/decorator/property-manager/module.d.ts +0 -17
- package/dist/decorator/property-manager/module.d.ts.map +0 -1
- package/dist/decorator/property-manager/module.js +0 -59
- package/dist/decorator/property-manager/module.js.map +0 -1
- package/dist/decorator/property-manager/utils.d.ts +0 -6
- package/dist/decorator/property-manager/utils.d.ts.map +0 -1
- package/dist/decorator/property-manager/utils.js +0 -92
- package/dist/decorator/property-manager/utils.js.map +0 -1
- package/dist/decorator/resolver/index.d.ts +0 -3
- package/dist/decorator/resolver/index.d.ts.map +0 -1
- package/dist/decorator/resolver/index.js +0 -25
- package/dist/decorator/resolver/index.js.map +0 -1
- package/dist/decorator/resolver/module.d.ts +0 -27
- package/dist/decorator/resolver/module.d.ts.map +0 -1
- package/dist/decorator/resolver/module.js +0 -72
- package/dist/decorator/resolver/module.js.map +0 -1
- package/dist/decorator/resolver/type.d.ts +0 -10
- package/dist/decorator/resolver/type.d.ts.map +0 -1
- package/dist/decorator/resolver/type.js +0 -3
- package/dist/decorator/resolver/type.js.map +0 -1
- package/dist/decorator/sets/class.d.ts +0 -7
- package/dist/decorator/sets/class.d.ts.map +0 -1
- package/dist/decorator/sets/class.js +0 -9
- package/dist/decorator/sets/class.js.map +0 -1
- package/dist/decorator/sets/index.d.ts +0 -8
- package/dist/decorator/sets/index.d.ts.map +0 -1
- package/dist/decorator/sets/index.js +0 -29
- package/dist/decorator/sets/index.js.map +0 -1
- package/dist/decorator/sets/method.d.ts +0 -14
- package/dist/decorator/sets/method.d.ts.map +0 -1
- package/dist/decorator/sets/method.js +0 -9
- package/dist/decorator/sets/method.js.map +0 -1
- package/dist/decorator/sets/mixed.d.ts +0 -12
- package/dist/decorator/sets/mixed.d.ts.map +0 -1
- package/dist/decorator/sets/mixed.js +0 -9
- package/dist/decorator/sets/mixed.js.map +0 -1
- package/dist/decorator/sets/parameter.d.ts +0 -21
- package/dist/decorator/sets/parameter.d.ts.map +0 -1
- package/dist/decorator/sets/parameter.js +0 -9
- package/dist/decorator/sets/parameter.js.map +0 -1
- package/dist/decorator/sets/request.d.ts +0 -6
- package/dist/decorator/sets/request.d.ts.map +0 -1
- package/dist/decorator/sets/request.js +0 -9
- package/dist/decorator/sets/request.js.map +0 -1
- package/dist/decorator/sets/response.d.ts +0 -17
- package/dist/decorator/sets/response.d.ts.map +0 -1
- package/dist/decorator/sets/response.js +0 -9
- package/dist/decorator/sets/response.js.map +0 -1
- package/dist/decorator/sets/type.d.ts +0 -4
- package/dist/decorator/sets/type.d.ts.map +0 -1
- package/dist/decorator/sets/type.js +0 -3
- package/dist/decorator/sets/type.js.map +0 -1
- package/dist/decorator/type.d.ts +0 -32
- package/dist/decorator/type.d.ts.map +0 -1
- package/dist/decorator/type.js +0 -9
- package/dist/decorator/type.js.map +0 -1
- package/dist/error/base.d.ts +0 -3
- package/dist/error/base.d.ts.map +0 -1
- package/dist/error/base.js +0 -13
- package/dist/error/base.js.map +0 -1
- package/dist/error/index.d.ts +0 -2
- package/dist/error/index.d.ts.map +0 -1
- package/dist/error/index.js +0 -24
- package/dist/error/index.js.map +0 -1
- package/dist/generator/abstract.d.ts +0 -19
- package/dist/generator/abstract.d.ts.map +0 -1
- package/dist/generator/abstract.js +0 -151
- package/dist/generator/abstract.js.map +0 -1
- package/dist/generator/controller/index.d.ts +0 -3
- package/dist/generator/controller/index.d.ts.map +0 -1
- package/dist/generator/controller/index.js +0 -25
- package/dist/generator/controller/index.js.map +0 -1
- package/dist/generator/controller/module.d.ts +0 -13
- package/dist/generator/controller/module.d.ts.map +0 -1
- package/dist/generator/controller/module.js +0 -68
- package/dist/generator/controller/module.js.map +0 -1
- package/dist/generator/controller/type.d.ts +0 -47
- package/dist/generator/controller/type.d.ts.map +0 -1
- package/dist/generator/controller/type.js +0 -3
- package/dist/generator/controller/type.js.map +0 -1
- package/dist/generator/index.d.ts +0 -7
- package/dist/generator/index.d.ts.map +0 -1
- package/dist/generator/index.js +0 -29
- package/dist/generator/index.js.map +0 -1
- package/dist/generator/metadata/index.d.ts +0 -4
- package/dist/generator/metadata/index.d.ts.map +0 -1
- package/dist/generator/metadata/index.js +0 -26
- package/dist/generator/metadata/index.js.map +0 -1
- package/dist/generator/metadata/module.d.ts +0 -39
- package/dist/generator/metadata/module.d.ts.map +0 -1
- package/dist/generator/metadata/module.js +0 -140
- package/dist/generator/metadata/module.js.map +0 -1
- package/dist/generator/metadata/type.d.ts +0 -25
- package/dist/generator/metadata/type.d.ts.map +0 -1
- package/dist/generator/metadata/type.js +0 -3
- package/dist/generator/metadata/type.js.map +0 -1
- package/dist/generator/metadata/utils.d.ts +0 -3
- package/dist/generator/metadata/utils.d.ts.map +0 -1
- package/dist/generator/metadata/utils.js +0 -19
- package/dist/generator/metadata/utils.js.map +0 -1
- package/dist/generator/method/constants.d.ts +0 -11
- package/dist/generator/method/constants.d.ts.map +0 -1
- package/dist/generator/method/constants.js +0 -21
- package/dist/generator/method/constants.js.map +0 -1
- package/dist/generator/method/index.d.ts +0 -4
- package/dist/generator/method/index.d.ts.map +0 -1
- package/dist/generator/method/index.js +0 -26
- package/dist/generator/method/index.js.map +0 -1
- package/dist/generator/method/module.d.ts +0 -19
- package/dist/generator/method/module.d.ts.map +0 -1
- package/dist/generator/method/module.js +0 -188
- package/dist/generator/method/module.js.map +0 -1
- package/dist/generator/method/type.d.ts +0 -23
- package/dist/generator/method/type.d.ts.map +0 -1
- package/dist/generator/method/type.js +0 -9
- package/dist/generator/method/type.js.map +0 -1
- package/dist/generator/parameter/constants.d.ts +0 -19
- package/dist/generator/parameter/constants.d.ts.map +0 -1
- package/dist/generator/parameter/constants.js +0 -30
- package/dist/generator/parameter/constants.js.map +0 -1
- package/dist/generator/parameter/error.d.ts +0 -35
- package/dist/generator/parameter/error.d.ts.map +0 -1
- package/dist/generator/parameter/error.js +0 -68
- package/dist/generator/parameter/error.js.map +0 -1
- package/dist/generator/parameter/index.d.ts +0 -5
- package/dist/generator/parameter/index.d.ts.map +0 -1
- package/dist/generator/parameter/index.js +0 -27
- package/dist/generator/parameter/index.js.map +0 -1
- package/dist/generator/parameter/module.d.ts +0 -29
- package/dist/generator/parameter/module.d.ts.map +0 -1
- package/dist/generator/parameter/module.js +0 -556
- package/dist/generator/parameter/module.js.map +0 -1
- package/dist/generator/parameter/type.d.ts +0 -25
- package/dist/generator/parameter/type.d.ts.map +0 -1
- package/dist/generator/parameter/type.js +0 -9
- package/dist/generator/parameter/type.js.map +0 -1
- package/dist/generator/type.d.ts +0 -20
- package/dist/generator/type.d.ts.map +0 -1
- package/dist/generator/type.js +0 -9
- package/dist/generator/type.js.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -32
- package/dist/index.js.map +0 -1
- package/dist/module.d.ts +0 -5
- package/dist/module.d.ts.map +0 -1
- package/dist/module.js +0 -41
- package/dist/module.js.map +0 -1
- package/dist/resolver/constants.d.ts +0 -36
- package/dist/resolver/constants.d.ts.map +0 -1
- package/dist/resolver/constants.js +0 -47
- package/dist/resolver/constants.js.map +0 -1
- package/dist/resolver/error.d.ts +0 -8
- package/dist/resolver/error.d.ts.map +0 -1
- package/dist/resolver/error.js +0 -41
- package/dist/resolver/error.js.map +0 -1
- package/dist/resolver/extension/index.d.ts +0 -3
- package/dist/resolver/extension/index.d.ts.map +0 -1
- package/dist/resolver/extension/index.js +0 -25
- package/dist/resolver/extension/index.js.map +0 -1
- package/dist/resolver/extension/module.d.ts +0 -5
- package/dist/resolver/extension/module.d.ts.map +0 -1
- package/dist/resolver/extension/module.js +0 -27
- package/dist/resolver/extension/module.js.map +0 -1
- package/dist/resolver/extension/type.d.ts +0 -8
- package/dist/resolver/extension/type.d.ts.map +0 -1
- package/dist/resolver/extension/type.js +0 -9
- package/dist/resolver/extension/type.js.map +0 -1
- package/dist/resolver/index.d.ts +0 -6
- package/dist/resolver/index.d.ts.map +0 -1
- package/dist/resolver/index.js +0 -28
- package/dist/resolver/index.js.map +0 -1
- package/dist/resolver/module.d.ts +0 -57
- package/dist/resolver/module.d.ts.map +0 -1
- package/dist/resolver/module.js +0 -1109
- package/dist/resolver/module.js.map +0 -1
- package/dist/resolver/type.d.ts +0 -139
- package/dist/resolver/type.d.ts.map +0 -1
- package/dist/resolver/type.js +0 -130
- package/dist/resolver/type.js.map +0 -1
- package/dist/type.d.ts +0 -2
- package/dist/type.d.ts.map +0 -1
- package/dist/type.js +0 -9
- package/dist/type.js.map +0 -1
- package/dist/utils/array.d.ts +0 -2
- package/dist/utils/array.d.ts.map +0 -1
- package/dist/utils/array.js +0 -22
- package/dist/utils/array.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -32
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/initializer.d.ts +0 -5
- package/dist/utils/initializer.d.ts.map +0 -1
- package/dist/utils/initializer.js +0 -131
- package/dist/utils/initializer.js.map +0 -1
- package/dist/utils/js-doc/constants.d.ts +0 -19
- package/dist/utils/js-doc/constants.d.ts.map +0 -1
- package/dist/utils/js-doc/constants.js +0 -30
- package/dist/utils/js-doc/constants.js.map +0 -1
- package/dist/utils/js-doc/index.d.ts +0 -4
- package/dist/utils/js-doc/index.d.ts.map +0 -1
- package/dist/utils/js-doc/index.js +0 -26
- package/dist/utils/js-doc/index.js.map +0 -1
- package/dist/utils/js-doc/module.d.ts +0 -9
- package/dist/utils/js-doc/module.d.ts.map +0 -1
- package/dist/utils/js-doc/module.js +0 -98
- package/dist/utils/js-doc/module.js.map +0 -1
- package/dist/utils/js-doc/utils.d.ts +0 -3
- package/dist/utils/js-doc/utils.d.ts.map +0 -1
- package/dist/utils/js-doc/utils.js +0 -29
- package/dist/utils/js-doc/utils.js.map +0 -1
- package/dist/utils/node/index.d.ts +0 -3
- package/dist/utils/node/index.d.ts.map +0 -1
- package/dist/utils/node/index.js +0 -25
- package/dist/utils/node/index.js.map +0 -1
- package/dist/utils/node/module.d.ts +0 -10
- package/dist/utils/node/module.d.ts.map +0 -1
- package/dist/utils/node/module.js +0 -52
- package/dist/utils/node/module.js.map +0 -1
- package/dist/utils/node/type.d.ts +0 -6
- package/dist/utils/node/type.d.ts.map +0 -1
- package/dist/utils/node/type.js +0 -9
- package/dist/utils/node/type.js.map +0 -1
- package/dist/utils/object.d.ts +0 -2
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/object.js +0 -15
- package/dist/utils/object.js.map +0 -1
- package/dist/utils/path-normalize.d.ts +0 -2
- package/dist/utils/path-normalize.d.ts.map +0 -1
- package/dist/utils/path-normalize.js +0 -17
- package/dist/utils/path-normalize.js.map +0 -1
- package/dist/utils/source-files.d.ts +0 -3
- package/dist/utils/source-files.d.ts.map +0 -1
- package/dist/utils/source-files.js +0 -32
- package/dist/utils/source-files.js.map +0 -1
- package/dist/utils/tsconfig/index.d.ts +0 -3
- package/dist/utils/tsconfig/index.d.ts.map +0 -1
- package/dist/utils/tsconfig/index.js +0 -25
- package/dist/utils/tsconfig/index.js.map +0 -1
- package/dist/utils/tsconfig/module.d.ts +0 -4
- package/dist/utils/tsconfig/module.d.ts.map +0 -1
- package/dist/utils/tsconfig/module.js +0 -54
- package/dist/utils/tsconfig/module.js.map +0 -1
- package/dist/utils/tsconfig/type.d.ts +0 -11
- package/dist/utils/tsconfig/type.d.ts.map +0 -1
- package/dist/utils/tsconfig/type.js +0 -9
- package/dist/utils/tsconfig/type.js.map +0 -1
- package/dist/utils/validator/constants.d.ts +0 -13
- package/dist/utils/validator/constants.d.ts.map +0 -1
- package/dist/utils/validator/constants.js +0 -23
- package/dist/utils/validator/constants.js.map +0 -1
- package/dist/utils/validator/index.d.ts +0 -4
- package/dist/utils/validator/index.d.ts.map +0 -1
- package/dist/utils/validator/index.js +0 -26
- package/dist/utils/validator/index.js.map +0 -1
- package/dist/utils/validator/module.d.ts +0 -4
- package/dist/utils/validator/module.d.ts.map +0 -1
- package/dist/utils/validator/module.js +0 -142
- package/dist/utils/validator/module.js.map +0 -1
- package/dist/utils/validator/type.d.ts +0 -6
- package/dist/utils/validator/type.d.ts.map +0 -1
- package/dist/utils/validator/type.js +0 -9
- package/dist/utils/validator/type.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../src/decorator/sets/class.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorator/sets/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorator/sets/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=method.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3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C,SAAS,oBAAoB,IACnE,CAAC,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,GAC1B,sBAAsB,GACtB,CAAC,SAAS,GAAG,WAAW,CAAC,MAAM,EAAE,GAC7B,yBAAyB,GACzB,CAAC,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,GAC1B,sBAAsB,GACtB,CAAC,SAAS,GAAG,WAAW,CAAC,IAAI,EAAE,GAC3B,uBAAuB,GACvB,CAAC,SAAS,GAAG,WAAW,CAAC,OAAO,EAAE,GAC9B,0BAA0B,GAC1B,CAAC,SAAS,GAAG,WAAW,CAAC,KAAK,EAAE,GAC5B,wBAAwB,GACxB,CAAC,SAAS,GAAG,WAAW,CAAC,KAAK,EAAE,GAC5B,6BAA6B,GAC7B,CAAC,SAAS,GAAG,WAAW,CAAC,IAAI,EAAE,GAC3B,uBAAuB,GACvB,CAAC,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,GAC1B,sBAAsB,GACtB,KAAK,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=method.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"method.js","sourceRoot":"","sources":["../../../src/decorator/sets/method.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=mixed.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mixed.d.ts","sourceRoot":"","sources":["../../../src/decorator/sets/mixed.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,MAAM,4BAA4B,GAAG;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,CAAA;CAC7B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACtC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACvC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,GAAG,WAAW,CAAC,UAAU,EAAE,GACzD,GAAG,WAAW,CAAC,MAAM,EAAE,GACvB,GAAG,WAAW,CAAC,SAAS,EAAE,GAC1B,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;AAE9B,MAAM,MAAM,2BAA2B,CAAC,CAAC,SAAS,mBAAmB,IAC7D,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,EAAE,GAChC,4BAA4B,GAC5B,CAAC,SAAS,GAAG,WAAW,CAAC,QAAQ,EAAE,GAC/B,2BAA2B,GAC3B,KAAK,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=mixed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mixed.js","sourceRoot":"","sources":["../../../src/decorator/sets/mixed.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=parameter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameter.d.ts","sourceRoot":"","sources":["../../../src/decorator/sets/parameter.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAE3D,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,CAAC,MAAM,CAAC,CAAC;AAC5E,MAAM,MAAM,yBAAyB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,GAC7B,KAAK,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=parameter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameter.js","sourceRoot":"","sources":["../../../src/decorator/sets/parameter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=request.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/decorator/sets/request.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAE3D,MAAM,MAAM,kCAAkC,GAAG,4BAA4B,CAAC,MAAM,EAAE,CAAC,CAAC;AAExF,MAAM,MAAM,qBAAqB,GAAG,GAAG,WAAW,CAAC,MAAM,EAAE,GACvD,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;AAE9B,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,qBAAqB,IACrE,CAAC,SAAS,GAAG,WAAW,CAAC,MAAM,EAAE,GAC7B,KAAK,GACL,CAAC,SAAS,GAAG,WAAW,CAAC,QAAQ,EAAE,GAC/B,kCAAkC,GAClC,KAAK,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=request.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/decorator/sets/request.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=response.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/decorator/sets/response.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAE3D,MAAM,MAAM,sCAAsC,GAAG;IACjD,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,GAAG,OAAO,EAAE,CAAA;CAC/B,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC7C,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC;AACF,MAAM,MAAM,mCAAmC,GAAG,4BAA4B,CAAC,MAAM,EAAE,CAAC,CAAC;AAEzF,MAAM,MAAM,sBAAsB,GAAG,GAAG,WAAW,CAAC,WAAW,EAAE,GAC7D,GAAG,WAAW,CAAC,OAAO,EAAE,GACxB,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;AAC9B,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,sBAAsB,IACvE,CAAC,SAAS,GAAG,WAAW,CAAC,WAAW,EAAE,GAClC,sCAAsC,GACtC,CAAC,SAAS,GAAG,WAAW,CAAC,OAAO,EAAE,GAC9B,kCAAkC,GAClC,CAAC,SAAS,GAAG,WAAW,CAAC,QAAQ,EAAE,GAC/B,mCAAmC,GACnC,KAAK,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=response.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/decorator/sets/response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/decorator/sets/type.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,4BAA4B,CAAC,CAAC,IAAI;IAC1C,KAAK,EAAE,CAAC,CAAA;CACX,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/decorator/sets/type.ts"],"names":[],"mappings":""}
|
package/dist/decorator/type.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/decorator/type.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EACR,mBAAmB,EACnB,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,+BAA+B,EAC/B,qBAAqB,EACrB,6BAA6B,EAC7B,sBAAsB,EACtB,8BAA8B,EACjC,MAAM,QAAQ,CAAC;AAEhB,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,GAAG,WAAW,EAAE,IACtD,CAAC,SAAS,mBAAmB,GACzB,2BAA2B,CAAC,CAAC,CAAC,GAC9B,C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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
|
-
//# sourceMappingURL=type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../src/decorator/type.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
package/dist/error/base.d.ts
DELETED
package/dist/error/base.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/error/base.ts"],"names":[],"mappings":"AAOA,qBAAa,SAAU,SAAQ,KAAK;CAEnC"}
|
package/dist/error/base.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=base.js.map
|
package/dist/error/base.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/error/base.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,MAAa,SAAU,SAAQ,KAAK;CAEnC;AAFD,8BAEC"}
|
package/dist/error/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error/index.ts"],"names":[],"mappings":"AAOA,cAAc,QAAQ,CAAC"}
|
package/dist/error/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=index.js.map
|
package/dist/error/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/error/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,yCAAuB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=abstract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract.d.ts","sourceRoot":"","sources":["../../src/generator/abstract.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,YAAY,CAAC;AAIjD,OAAO,KAAK,EAAW,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAI1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,8BAAsB,iBAAiB,CAAC,CAAC,SAAS,IAAI;IAClD,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IAElB,SAAS,CAAC,OAAO,EAAG,iBAAiB,CAAC;IAItC,SAAS,aAAa,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB;IAOzD,SAAS,CAAC,SAAS,IAAK,MAAM;IAc9B,SAAS,CAAC,WAAW,IAAK,QAAQ,EAAE;IAiCpC,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,GAAI,OAAO,EAAE;IAoBrD,SAAS,CAAC,cAAc,IAAI,QAAQ,EAAE;IAsC/B,WAAW,IAAK,MAAM,EAAE;IAcxB,WAAW,IAAK,MAAM,EAAE;IAgBxB,OAAO,IAAK,MAAM,EAAE;IAkB3B,SAAS,CAAC,QAAQ,CAAC,kBAAkB,IAAI,MAAM;IAIxC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAI,OAAO;IAI9B,YAAY,CAAC,IAAI,EAAE,IAAI,GAAI,OAAO;CAO5C"}
|
|
@@ -1,151 +0,0 @@
|
|
|
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
|
-
exports.AbstractGenerator = void 0;
|
|
10
|
-
const locter_1 = require("locter");
|
|
11
|
-
const decorator_1 = require("../decorator");
|
|
12
|
-
const resolver_1 = require("../resolver");
|
|
13
|
-
const utils_1 = require("../utils");
|
|
14
|
-
class AbstractGenerator {
|
|
15
|
-
// -------------------------------------------
|
|
16
|
-
constructor(node, current) {
|
|
17
|
-
this.node = node;
|
|
18
|
-
this.current = current;
|
|
19
|
-
}
|
|
20
|
-
// --------------------------------------------------------------------
|
|
21
|
-
buildPath() {
|
|
22
|
-
const representation = this.current.decoratorResolver.match(decorator_1.DecoratorID.MOUNT, this.node);
|
|
23
|
-
if (typeof representation !== 'undefined') {
|
|
24
|
-
const value = representation.get('value');
|
|
25
|
-
if (typeof value === 'string') {
|
|
26
|
-
return (0, utils_1.normalizePath)(value);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return '';
|
|
30
|
-
}
|
|
31
|
-
// -------------------------------------------
|
|
32
|
-
getSecurity() {
|
|
33
|
-
const representation = this.current.decoratorResolver.match(decorator_1.DecoratorID.SECURITY, this.node);
|
|
34
|
-
if (typeof representation === 'undefined') {
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
const securities = [];
|
|
38
|
-
for (let i = 0; i < representation.decorators.length; i++) {
|
|
39
|
-
let name = representation.get('key');
|
|
40
|
-
// todo: check if Record<string, string[]>
|
|
41
|
-
if ((0, locter_1.isObject)(name)) {
|
|
42
|
-
securities.push(name);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
if (typeof name !== 'string' || !name) {
|
|
46
|
-
name = 'default';
|
|
47
|
-
}
|
|
48
|
-
const scopes = representation.get('value');
|
|
49
|
-
if ((0, utils_1.isStringArray)(scopes)) {
|
|
50
|
-
securities.push({
|
|
51
|
-
[name]: scopes,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return securities;
|
|
57
|
-
}
|
|
58
|
-
// -------------------------------------------
|
|
59
|
-
getExamplesValue(argument) {
|
|
60
|
-
let example = {};
|
|
61
|
-
if (typeof argument === 'undefined') {
|
|
62
|
-
return example;
|
|
63
|
-
}
|
|
64
|
-
if (argument.properties) {
|
|
65
|
-
argument.properties.forEach((p) => {
|
|
66
|
-
example[p.name.text] = (0, utils_1.getInitializerValue)(p.initializer, this.current.typeChecker);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
example = (0, utils_1.getInitializerValue)(argument, this.current.typeChecker);
|
|
71
|
-
}
|
|
72
|
-
return example;
|
|
73
|
-
}
|
|
74
|
-
// -------------------------------------------
|
|
75
|
-
buildResponses() {
|
|
76
|
-
const representation = this.current.decoratorResolver.match(decorator_1.DecoratorID.DESCRIPTION, this.node);
|
|
77
|
-
if (typeof representation === 'undefined') {
|
|
78
|
-
return [];
|
|
79
|
-
}
|
|
80
|
-
const responses = [];
|
|
81
|
-
for (let i = 0; i < representation.decorators.length; i++) {
|
|
82
|
-
const description = representation.get('description', i) || 'Ok';
|
|
83
|
-
const status = representation.get('statusCode', i) || '200';
|
|
84
|
-
const payload = representation.get('payload', i);
|
|
85
|
-
const examples = [];
|
|
86
|
-
if (typeof payload !== 'undefined') {
|
|
87
|
-
examples.push({
|
|
88
|
-
value: payload,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
const type = representation.get('type');
|
|
92
|
-
const response = {
|
|
93
|
-
description,
|
|
94
|
-
examples,
|
|
95
|
-
schema: type ? new resolver_1.TypeNodeResolver(type, this.current).resolve() : undefined,
|
|
96
|
-
status: status,
|
|
97
|
-
name: status,
|
|
98
|
-
};
|
|
99
|
-
responses.push(response);
|
|
100
|
-
}
|
|
101
|
-
return responses;
|
|
102
|
-
}
|
|
103
|
-
// -------------------------------------------
|
|
104
|
-
getProduces() {
|
|
105
|
-
const representation = this.current.decoratorResolver.match(decorator_1.DecoratorID.PRODUCES, this.node);
|
|
106
|
-
if (typeof representation === 'undefined') {
|
|
107
|
-
return [];
|
|
108
|
-
}
|
|
109
|
-
const value = representation.get('value');
|
|
110
|
-
if (typeof value === 'undefined') {
|
|
111
|
-
return [];
|
|
112
|
-
}
|
|
113
|
-
return Array.isArray(value) ? value : [value];
|
|
114
|
-
}
|
|
115
|
-
getConsumes() {
|
|
116
|
-
const representation = this.current.decoratorResolver.match(decorator_1.DecoratorID.CONSUMES, this.node);
|
|
117
|
-
if (typeof representation === 'undefined') {
|
|
118
|
-
return [];
|
|
119
|
-
}
|
|
120
|
-
let value = representation.get('value');
|
|
121
|
-
if (typeof value === 'undefined') {
|
|
122
|
-
return [];
|
|
123
|
-
}
|
|
124
|
-
value = Array.isArray(value) ? value : [value];
|
|
125
|
-
return value;
|
|
126
|
-
}
|
|
127
|
-
getTags() {
|
|
128
|
-
const representation = this.current.decoratorResolver.match(decorator_1.DecoratorID.TAGS, this.node);
|
|
129
|
-
if (typeof representation === 'undefined') {
|
|
130
|
-
return [];
|
|
131
|
-
}
|
|
132
|
-
let value = representation.get('value');
|
|
133
|
-
if (typeof value === 'undefined') {
|
|
134
|
-
return [];
|
|
135
|
-
}
|
|
136
|
-
value = Array.isArray(value) ? value : [value];
|
|
137
|
-
return value;
|
|
138
|
-
}
|
|
139
|
-
// -------------------------------------------
|
|
140
|
-
isHidden(node) {
|
|
141
|
-
return typeof this.current.decoratorResolver.match(decorator_1.DecoratorID.HIDDEN, node) !== 'undefined';
|
|
142
|
-
}
|
|
143
|
-
isDeprecated(node) {
|
|
144
|
-
if ((0, utils_1.hasJSDocTag)(node, utils_1.JSDocTagName.DEPRECATED)) {
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
return typeof this.current.decoratorResolver.match(decorator_1.DecoratorID.DEPRECATED, node) !== 'undefined';
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
exports.AbstractGenerator = AbstractGenerator;
|
|
151
|
-
//# sourceMappingURL=abstract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract.js","sourceRoot":"","sources":["../../src/generator/abstract.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mCAAkC;AAElC,4CAA2C;AAC3C,0CAA+C;AAG/C,oCAEkB;AAGlB,MAAsB,iBAAiB;IAKnC,8CAA8C;IAE9C,YAAsB,IAAO,EAAE,OAA0B;QACrD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,uEAAuE;IAE7D,SAAS;QACf,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,uBAAW,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1F,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE,CAAC;YACxC,MAAM,KAAK,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC5B,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAC;YAChC,CAAC;QACL,CAAC;QAED,OAAO,EAAE,CAAC;IACd,CAAC;IAED,8CAA8C;IAEpC,WAAW;QACjB,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,uBAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7F,IAAI,OAAO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-
"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("./module"), exports);
|
|
24
|
-
__exportStar(require("./type"), exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generator/controller/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,yCAAuB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ClassDeclaration } from 'typescript';
|
|
2
|
-
import { AbstractGenerator } from '../abstract';
|
|
3
|
-
import type { Method } from '../method';
|
|
4
|
-
import type { MetadataGenerator } from '../metadata';
|
|
5
|
-
import type { Controller } from './type';
|
|
6
|
-
export declare class ControllerGenerator extends AbstractGenerator<ClassDeclaration> {
|
|
7
|
-
constructor(node: ClassDeclaration, current: MetadataGenerator);
|
|
8
|
-
isValid(): boolean;
|
|
9
|
-
generate(): Controller;
|
|
10
|
-
protected getCurrentLocation(): string;
|
|
11
|
-
protected buildMethods(controllerPath: string): Method[];
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/generator/controller/module.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,qBAAa,mBAAoB,SAAQ,iBAAiB,CAAC,gBAAgB,CAAC;gBAE5D,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,iBAAiB;IAIvD,OAAO,IAAK,OAAO;IASnB,QAAQ,IAAI,UAAU;IAsB7B,SAAS,CAAC,kBAAkB,IAAI,MAAM;IAItC,SAAS,CAAC,YAAY,CAAC,cAAc,EAAE,MAAM,GAAI,MAAM,EAAE;CAwB5D"}
|