@ethalium/nestjs-openapi 0.0.2 → 0.0.3
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/decorators/exclude.decorator.d.ts +2 -0
- package/decorators/exclude.decorator.js +20 -0
- package/decorators/exclude.decorator.js.map +1 -0
- package/decorators/properties/array.decorator.d.ts +6 -0
- package/decorators/properties/array.decorator.js +30 -0
- package/decorators/properties/array.decorator.js.map +1 -0
- package/decorators/properties/date-time.decorator.d.ts +5 -0
- package/decorators/properties/date-time.decorator.js +25 -0
- package/decorators/properties/date-time.decorator.js.map +1 -0
- package/decorators/properties/date.decorator.d.ts +5 -0
- package/decorators/properties/date.decorator.js +25 -0
- package/decorators/properties/date.decorator.js.map +1 -0
- package/decorators/property.decorator.d.ts +2 -6
- package/decorators/property.decorator.js +10 -1
- package/decorators/property.decorator.js.map +1 -1
- package/decorators/request.decorator.d.ts +1 -2
- package/decorators/schema.decorator.d.ts +4 -0
- package/decorators/schema.decorator.js +15 -0
- package/decorators/schema.decorator.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +6 -0
- package/index.js.map +1 -1
- package/interfaces/schema.interface.d.ts +2 -0
- package/interfaces/schema.interface.js +3 -0
- package/interfaces/schema.interface.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/utils/decorator.utils.d.ts +1 -0
- package/utils/decorator.utils.js.map +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OAExclude = OAExclude;
|
|
4
|
+
const decorator_utils_1 = require("../utils/decorator.utils");
|
|
5
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
6
|
+
function OAExclude(disable) {
|
|
7
|
+
return (0, decorator_utils_1.createDecorator)({
|
|
8
|
+
decorators: (ctx, store) => {
|
|
9
|
+
if (!disable) {
|
|
10
|
+
switch (ctx.kind) {
|
|
11
|
+
case 'class': return store.push((0, swagger_1.ApiExcludeController)());
|
|
12
|
+
case 'method': return store.push((0, swagger_1.ApiExcludeController)());
|
|
13
|
+
case 'property': return store.push((0, swagger_1.ApiHideProperty)());
|
|
14
|
+
case 'parameter': return store.push((0, swagger_1.ApiHideProperty)());
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
})();
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=exclude.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exclude.decorator.js","sourceRoot":"","sources":["../../../lib/decorators/exclude.decorator.ts"],"names":[],"mappings":";;AAGA,8BAaC;AAhBD,8DAA0E;AAC1E,6CAAwE;AAExE,SAAgB,SAAS,CAAC,OAAiB;IACzC,OAAO,IAAA,iCAAe,EAAC;QACrB,UAAU,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACzB,IAAG,CAAC,OAAO,EAAC,CAAC;gBACX,QAAO,GAAG,CAAC,IAAI,EAAC,CAAC;oBACf,KAAK,OAAO,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAA,8BAAoB,GAAE,CAAC,CAAC;oBACxD,KAAK,QAAQ,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAA,8BAAoB,GAAE,CAAC,CAAC;oBACzD,KAAK,UAAU,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAA,yBAAe,GAAE,CAAC,CAAC;oBACtD,KAAK,WAAW,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAA,yBAAe,GAAE,CAAC,CAAC;gBACzD,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC,EAAS,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SchemaObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
|
|
2
|
+
import { IOpenApiPropertyOptions } from '../../interfaces/property.interface';
|
|
3
|
+
export declare function OAArrayProperty(schema?: SchemaObject): PropertyDecorator;
|
|
4
|
+
export declare function OAArrayProperty(description?: string, schema?: SchemaObject): PropertyDecorator;
|
|
5
|
+
export declare function OAArrayPropertyOptional(options?: Omit<IOpenApiPropertyOptions, 'type' | 'required'>): PropertyDecorator;
|
|
6
|
+
export declare function OAArrayPropertyOptional(description?: string, options?: Omit<IOpenApiPropertyOptions, 'type' | 'required' | 'description'>): PropertyDecorator;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OAArrayProperty = OAArrayProperty;
|
|
4
|
+
exports.OAArrayPropertyOptional = OAArrayPropertyOptional;
|
|
5
|
+
const type_utils_1 = require("../../utils/type.utils");
|
|
6
|
+
const property_decorator_1 = require("../property.decorator");
|
|
7
|
+
function OAArrayProperty(...args) {
|
|
8
|
+
return (0, property_decorator_1.OACreateProperty)({
|
|
9
|
+
args: args,
|
|
10
|
+
options: {
|
|
11
|
+
type: 'array',
|
|
12
|
+
description: (0, type_utils_1.extractString)(args) || undefined,
|
|
13
|
+
items: (0, type_utils_1.extractObject)(args) || {},
|
|
14
|
+
isArray: true,
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function OAArrayPropertyOptional(...args) {
|
|
19
|
+
return (0, property_decorator_1.OACreateProperty)({
|
|
20
|
+
args: args,
|
|
21
|
+
options: {
|
|
22
|
+
type: 'array',
|
|
23
|
+
description: (0, type_utils_1.extractString)(args) || undefined,
|
|
24
|
+
items: (0, type_utils_1.extractObject)(args) || {},
|
|
25
|
+
isArray: true,
|
|
26
|
+
required: false,
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=array.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.decorator.js","sourceRoot":"","sources":["../../../../lib/decorators/properties/array.decorator.ts"],"names":[],"mappings":";;AAOA,0CAUC;AAID,0DAWC;AA/BD,uDAAsE;AAEtE,8DAAyD;AAIzD,SAAgB,eAAe,CAAC,GAAG,IAAW;IAC5C,OAAO,IAAA,qCAAgB,EAAC;QACtB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACP,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,IAAA,0BAAa,EAAC,IAAI,CAAC,IAAI,SAAS;YAC7C,KAAK,EAAE,IAAA,0BAAa,EAAC,IAAI,CAAC,IAAI,EAAE;YAChC,OAAO,EAAE,IAAI;SACd;KACF,CAAC,CAAC;AACL,CAAC;AAID,SAAgB,uBAAuB,CAAC,GAAG,IAAW;IACpD,OAAO,IAAA,qCAAgB,EAAC;QACtB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACP,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,IAAA,0BAAa,EAAC,IAAI,CAAC,IAAI,SAAS;YAC7C,KAAK,EAAE,IAAA,0BAAa,EAAC,IAAI,CAAC,IAAI,EAAE;YAChC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,KAAK;SAChB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IOpenApiPropertyOptions } from "../../interfaces/property.interface";
|
|
2
|
+
export declare function OADatetimeProperty(options?: Omit<IOpenApiPropertyOptions, 'type'>): PropertyDecorator;
|
|
3
|
+
export declare function OADatetimeProperty(description?: string, options?: Omit<IOpenApiPropertyOptions, 'type' | 'description'>): PropertyDecorator;
|
|
4
|
+
export declare function OADatetimePropertyOptional(options?: Omit<IOpenApiPropertyOptions, 'type' | 'required'>): PropertyDecorator;
|
|
5
|
+
export declare function OADatetimePropertyOptional(description?: string, options?: Omit<IOpenApiPropertyOptions, 'type' | 'required' | 'description'>): PropertyDecorator;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OADatetimeProperty = OADatetimeProperty;
|
|
4
|
+
exports.OADatetimePropertyOptional = OADatetimePropertyOptional;
|
|
5
|
+
const property_decorator_1 = require("../property.decorator");
|
|
6
|
+
function OADatetimeProperty(...args) {
|
|
7
|
+
return (0, property_decorator_1.OACreateProperty)({
|
|
8
|
+
args: args,
|
|
9
|
+
options: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
format: 'date-time',
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function OADatetimePropertyOptional(...args) {
|
|
16
|
+
return (0, property_decorator_1.OACreateProperty)({
|
|
17
|
+
args: args,
|
|
18
|
+
options: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
format: 'date-time',
|
|
21
|
+
required: false,
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=date-time.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time.decorator.js","sourceRoot":"","sources":["../../../../lib/decorators/properties/date-time.decorator.ts"],"names":[],"mappings":";;AAKA,gDAQC;AAID,gEASC;AAzBD,8DAAuD;AAIvD,SAAgB,kBAAkB,CAAC,GAAG,IAAW;IAC/C,OAAO,IAAA,qCAAgB,EAAC;QACtB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;SACpB;KACF,CAAC,CAAC;AACL,CAAC;AAID,SAAgB,0BAA0B,CAAC,GAAG,IAAW;IACvD,OAAO,IAAA,qCAAgB,EAAC;QACtB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,KAAK;SAChB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IOpenApiPropertyOptions } from "../../interfaces/property.interface";
|
|
2
|
+
export declare function OADateProperty(options?: Omit<IOpenApiPropertyOptions, 'type'>): PropertyDecorator;
|
|
3
|
+
export declare function OADateProperty(description?: string, options?: Omit<IOpenApiPropertyOptions, 'type' | 'description'>): PropertyDecorator;
|
|
4
|
+
export declare function OADatePropertyOptional(options?: Omit<IOpenApiPropertyOptions, 'type' | 'required'>): PropertyDecorator;
|
|
5
|
+
export declare function OADatePropertyOptional(description?: string, options?: Omit<IOpenApiPropertyOptions, 'type' | 'required' | 'description'>): PropertyDecorator;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OADateProperty = OADateProperty;
|
|
4
|
+
exports.OADatePropertyOptional = OADatePropertyOptional;
|
|
5
|
+
const property_decorator_1 = require("../property.decorator");
|
|
6
|
+
function OADateProperty(...args) {
|
|
7
|
+
return (0, property_decorator_1.OACreateProperty)({
|
|
8
|
+
args: args,
|
|
9
|
+
options: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
format: 'date',
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function OADatePropertyOptional(...args) {
|
|
16
|
+
return (0, property_decorator_1.OACreateProperty)({
|
|
17
|
+
args: args,
|
|
18
|
+
options: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
format: 'date',
|
|
21
|
+
required: false,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=date.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.decorator.js","sourceRoot":"","sources":["../../../../lib/decorators/properties/date.decorator.ts"],"names":[],"mappings":";;AAKA,wCAQC;AAID,wDASC;AAzBD,8DAAuD;AAIvD,SAAgB,cAAc,CAAC,GAAG,IAAW;IAC3C,OAAO,IAAA,qCAAgB,EAAC;QACtB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;SACf;KACF,CAAC,CAAC;AACL,CAAC;AAID,SAAgB,sBAAsB,CAAC,GAAG,IAAW;IACnD,OAAO,IAAA,qCAAgB,EAAC;QACtB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,KAAK;SAChB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { IOpenApiPropertyOptions } from "../interfaces/property.interface";
|
|
2
|
-
export declare function OAProperty(options
|
|
3
|
-
export declare function
|
|
4
|
-
args: any[];
|
|
5
|
-
options?: IOpenApiPropertyOptions;
|
|
6
|
-
tap?: (options: IOpenApiPropertyOptions, decorators: PropertyDecorator[]) => void;
|
|
7
|
-
}): PropertyDecorator;
|
|
2
|
+
export declare function OAProperty(options?: IOpenApiPropertyOptions): PropertyDecorator;
|
|
3
|
+
export declare function OAPropertyOptional(options?: Omit<IOpenApiPropertyOptions, 'required'>): PropertyDecorator;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OAProperty = OAProperty;
|
|
4
|
+
exports.OAPropertyOptional = OAPropertyOptional;
|
|
4
5
|
exports.OACreateProperty = OACreateProperty;
|
|
5
6
|
const decorator_utils_1 = require("../utils/decorator.utils");
|
|
6
7
|
const type_utils_1 = require("../utils/type.utils");
|
|
@@ -10,10 +11,18 @@ function OAProperty(options) {
|
|
|
10
11
|
args: [options]
|
|
11
12
|
});
|
|
12
13
|
}
|
|
14
|
+
function OAPropertyOptional(options) {
|
|
15
|
+
return OACreateProperty({
|
|
16
|
+
args: [options],
|
|
17
|
+
options: {
|
|
18
|
+
required: false,
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
13
22
|
function OACreateProperty(data) {
|
|
14
23
|
return (0, decorator_utils_1.createPropertyDecorator)({
|
|
15
24
|
transform: (ctx) => {
|
|
16
|
-
const options = Object.assign((0, type_utils_1.extractObject)(ctx.data) || {}
|
|
25
|
+
const options = Object.assign(data.options || {}, (0, type_utils_1.extractObject)(ctx.data) || {});
|
|
17
26
|
options.description = options.description || (0, type_utils_1.extractString)(ctx.data) || undefined;
|
|
18
27
|
return options;
|
|
19
28
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.decorator.js","sourceRoot":"","sources":["../../../lib/decorators/property.decorator.ts"],"names":[],"mappings":";;AAKA,gCAIC;AAGD,4CAgBC;
|
|
1
|
+
{"version":3,"file":"property.decorator.js","sourceRoot":"","sources":["../../../lib/decorators/property.decorator.ts"],"names":[],"mappings":";;AAKA,gCAIC;AAED,gDAOC;AAGD,4CAgBC;AArCD,8DAAiE;AAEjE,oDAAiE;AACjE,6CAA4C;AAE5C,SAAgB,UAAU,CAAC,OAAiC;IAC1D,OAAO,gBAAgB,CAAC;QACtB,IAAI,EAAE,CAAC,OAAO,CAAC;KAChB,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,kBAAkB,CAAC,OAAmD;IACpF,OAAO,gBAAgB,CAAC;QACtB,IAAI,EAAE,CAAC,OAAO,CAAC;QACf,OAAO,EAAE;YACP,QAAQ,EAAE,KAAK;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAGD,SAAgB,gBAAgB,CAAC,IAIhC;IACC,OAAO,IAAA,yCAAuB,EAAiC;QAC7D,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE;YACjB,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,IAAA,0BAAa,EAA0B,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAC1G,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,IAAA,0BAAa,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC;YAClF,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,UAAU,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACzB,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,KAAc,CAAC,CAAC;YACrC,KAAK,CAAC,IAAI,CAAC,IAAA,qBAAW,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QACpC,CAAC;KACF,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function OARequest(type: 'route' | 'controller', options: IOpenApiRequestOptions): ClassDecorator & MethodDecorator;
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IOpenApiSchemaOptions } from '../interfaces/schema.interface';
|
|
2
|
+
export declare function OASchema(options: IOpenApiSchemaOptions): ClassDecorator & MethodDecorator;
|
|
3
|
+
export declare function OASchema(name?: string, options?: Omit<IOpenApiSchemaOptions, 'name'>): ClassDecorator & MethodDecorator;
|
|
4
|
+
export declare function OASchema(name: string, description?: string, options?: Omit<IOpenApiSchemaOptions, 'name' | 'description'>): ClassDecorator & MethodDecorator;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OASchema = OASchema;
|
|
4
|
+
const decorator_utils_1 = require("../utils/decorator.utils");
|
|
5
|
+
const type_utils_1 = require("../utils/type.utils");
|
|
6
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
+
function OASchema(...args) {
|
|
8
|
+
return (0, decorator_utils_1.createDecorator)({
|
|
9
|
+
transform: (opts) => Object.assign({ name: (0, type_utils_1.extractString)(opts.data) }, { description: (0, type_utils_1.extractString)(opts.data, 1) }, (0, type_utils_1.extractObject)(opts.data) || {}),
|
|
10
|
+
decorators: (opts, store) => {
|
|
11
|
+
store.push((0, swagger_1.ApiSchema)(opts.data));
|
|
12
|
+
},
|
|
13
|
+
})(args);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=schema.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.decorator.js","sourceRoot":"","sources":["../../../lib/decorators/schema.decorator.ts"],"names":[],"mappings":";;AAcA,4BAWC;AAzBD,8DAAyD;AAEzD,oDAI6B;AAC7B,6CAAqD;AAOrD,SAAgB,QAAQ,CAAC,GAAG,IAAW;IACrC,OAAO,IAAA,iCAAe,EAA+B;QACnD,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAChC,EAAE,IAAI,EAAE,IAAA,0BAAa,EAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAClC,EAAE,WAAW,EAAE,IAAA,0BAAa,EAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAC5C,IAAA,0BAAa,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAC/B;QACD,UAAU,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC1B,KAAK,CAAC,IAAI,CAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,IAAW,CAAC,CAAC,CAAC;QAC1C,CAAC;KACF,CAAC,CAAC,IAAI,CAAqC,CAAC;AAC/C,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './constants/metadata.constants';
|
|
|
5
5
|
export * from './decorators/body.decorator';
|
|
6
6
|
export * from './decorators/controller.decorator';
|
|
7
7
|
export * from './decorators/error.decorator';
|
|
8
|
+
export * from './decorators/exclude.decorator';
|
|
8
9
|
export * from './decorators/header.decorator';
|
|
9
10
|
export * from './decorators/param.decorator';
|
|
10
11
|
export * from './decorators/property.decorator';
|
|
@@ -12,6 +13,7 @@ export * from './decorators/query.decorator';
|
|
|
12
13
|
export * from './decorators/request.decorator';
|
|
13
14
|
export * from './decorators/response.decorator';
|
|
14
15
|
export * from './decorators/route.decorator';
|
|
16
|
+
export * from './decorators/schema.decorator';
|
|
15
17
|
export * from './decorators/tag-group.decorator';
|
|
16
18
|
export * from './decorators/tag.decorator';
|
|
17
19
|
export * from './decorators/errors/bad-gateway.decorator';
|
|
@@ -35,7 +37,10 @@ export * from './decorators/errors/unprocessable-entity.decorator';
|
|
|
35
37
|
export * from './decorators/errors/unsupported-media-type.decorator';
|
|
36
38
|
export * from './decorators/properties/all-of.decorator';
|
|
37
39
|
export * from './decorators/properties/any-of.decorator';
|
|
40
|
+
export * from './decorators/properties/array.decorator';
|
|
38
41
|
export * from './decorators/properties/boolean.decorator';
|
|
42
|
+
export * from './decorators/properties/date-time.decorator';
|
|
43
|
+
export * from './decorators/properties/date.decorator';
|
|
39
44
|
export * from './decorators/properties/enum.decorator';
|
|
40
45
|
export * from './decorators/properties/number.decorator';
|
|
41
46
|
export * from './decorators/properties/object.decorator';
|
|
@@ -57,6 +62,7 @@ export * from './interfaces/property.interface';
|
|
|
57
62
|
export * from './interfaces/query.interface';
|
|
58
63
|
export * from './interfaces/request.interface';
|
|
59
64
|
export * from './interfaces/route.interface';
|
|
65
|
+
export * from './interfaces/schema.interface';
|
|
60
66
|
export * from './utils/class.utils';
|
|
61
67
|
export * from './utils/common.utils';
|
|
62
68
|
export * from './utils/decorator.utils';
|
package/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./constants/metadata.constants"), exports);
|
|
|
21
21
|
__exportStar(require("./decorators/body.decorator"), exports);
|
|
22
22
|
__exportStar(require("./decorators/controller.decorator"), exports);
|
|
23
23
|
__exportStar(require("./decorators/error.decorator"), exports);
|
|
24
|
+
__exportStar(require("./decorators/exclude.decorator"), exports);
|
|
24
25
|
__exportStar(require("./decorators/header.decorator"), exports);
|
|
25
26
|
__exportStar(require("./decorators/param.decorator"), exports);
|
|
26
27
|
__exportStar(require("./decorators/property.decorator"), exports);
|
|
@@ -28,6 +29,7 @@ __exportStar(require("./decorators/query.decorator"), exports);
|
|
|
28
29
|
__exportStar(require("./decorators/request.decorator"), exports);
|
|
29
30
|
__exportStar(require("./decorators/response.decorator"), exports);
|
|
30
31
|
__exportStar(require("./decorators/route.decorator"), exports);
|
|
32
|
+
__exportStar(require("./decorators/schema.decorator"), exports);
|
|
31
33
|
__exportStar(require("./decorators/tag-group.decorator"), exports);
|
|
32
34
|
__exportStar(require("./decorators/tag.decorator"), exports);
|
|
33
35
|
__exportStar(require("./decorators/errors/bad-gateway.decorator"), exports);
|
|
@@ -51,7 +53,10 @@ __exportStar(require("./decorators/errors/unprocessable-entity.decorator"), expo
|
|
|
51
53
|
__exportStar(require("./decorators/errors/unsupported-media-type.decorator"), exports);
|
|
52
54
|
__exportStar(require("./decorators/properties/all-of.decorator"), exports);
|
|
53
55
|
__exportStar(require("./decorators/properties/any-of.decorator"), exports);
|
|
56
|
+
__exportStar(require("./decorators/properties/array.decorator"), exports);
|
|
54
57
|
__exportStar(require("./decorators/properties/boolean.decorator"), exports);
|
|
58
|
+
__exportStar(require("./decorators/properties/date-time.decorator"), exports);
|
|
59
|
+
__exportStar(require("./decorators/properties/date.decorator"), exports);
|
|
55
60
|
__exportStar(require("./decorators/properties/enum.decorator"), exports);
|
|
56
61
|
__exportStar(require("./decorators/properties/number.decorator"), exports);
|
|
57
62
|
__exportStar(require("./decorators/properties/object.decorator"), exports);
|
|
@@ -73,6 +78,7 @@ __exportStar(require("./interfaces/property.interface"), exports);
|
|
|
73
78
|
__exportStar(require("./interfaces/query.interface"), exports);
|
|
74
79
|
__exportStar(require("./interfaces/request.interface"), exports);
|
|
75
80
|
__exportStar(require("./interfaces/route.interface"), exports);
|
|
81
|
+
__exportStar(require("./interfaces/schema.interface"), exports);
|
|
76
82
|
__exportStar(require("./utils/class.utils"), exports);
|
|
77
83
|
__exportStar(require("./utils/common.utils"), exports);
|
|
78
84
|
__exportStar(require("./utils/decorator.utils"), exports);
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,iEAA+C;AAC/C,8DAA4C;AAC5C,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,iEAA+C;AAC/C,kEAAgD;AAChD,+DAA6C;AAC7C,mEAAiD;AACjD,6DAA2C;AAC3C,4EAA0D;AAC1D,4EAA0D;AAC1D,0EAAwD;AACxD,gFAA8D;AAC9D,qEAAmD;AACnD,sFAAoE;AACpE,mFAAiE;AACjE,+EAA6D;AAC7D,0EAAwD;AACxD,gFAA8D;AAC9D,kFAAgE;AAChE,iFAA+D;AAC/D,oFAAkE;AAClE,gFAA8D;AAC9D,oFAAkE;AAClE,kFAAgE;AAChE,6EAA2D;AAC3D,qFAAmE;AACnE,uFAAqE;AACrE,2EAAyD;AACzD,2EAAyD;AACzD,4EAA0D;AAC1D,yEAAuD;AACvD,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,yEAAuD;AACvD,uEAAqD;AACrD,oEAAkD;AAClD,sEAAoD;AACpD,qEAAmD;AACnD,oEAAkD;AAClD,8DAA4C;AAC5C,gEAA8C;AAC9C,oEAAkD;AAClD,kEAAgD;AAChD,gEAA8C;AAC9C,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,iEAA+C;AAC/C,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,iEAA+C;AAC/C,8DAA4C;AAC5C,oEAAkD;AAClD,+DAA6C;AAC7C,iEAA+C;AAC/C,gEAA8C;AAC9C,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,iEAA+C;AAC/C,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,mEAAiD;AACjD,6DAA2C;AAC3C,4EAA0D;AAC1D,4EAA0D;AAC1D,0EAAwD;AACxD,gFAA8D;AAC9D,qEAAmD;AACnD,sFAAoE;AACpE,mFAAiE;AACjE,+EAA6D;AAC7D,0EAAwD;AACxD,gFAA8D;AAC9D,kFAAgE;AAChE,iFAA+D;AAC/D,oFAAkE;AAClE,gFAA8D;AAC9D,oFAAkE;AAClE,kFAAgE;AAChE,6EAA2D;AAC3D,qFAAmE;AACnE,uFAAqE;AACrE,2EAAyD;AACzD,2EAAyD;AACzD,0EAAwD;AACxD,4EAA0D;AAC1D,8EAA4D;AAC5D,yEAAuD;AACvD,yEAAuD;AACvD,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,yEAAuD;AACvD,uEAAqD;AACrD,oEAAkD;AAClD,sEAAoD;AACpD,qEAAmD;AACnD,oEAAkD;AAClD,8DAA4C;AAC5C,gEAA8C;AAC9C,oEAAkD;AAClD,kEAAgD;AAChD,gEAA8C;AAC9C,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,iEAA+C;AAC/C,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.interface.js","sourceRoot":"","sources":["../../../lib/interfaces/schema.interface.ts"],"names":[],"mappings":""}
|