mongodb-dynamic-api 2.3.2 → 2.3.5
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/models/soft-deletable-entity.model.js +7 -2
- package/src/routes/create-one/create-one.module.d.ts +2 -2
- package/src/routes/create-one/create-one.module.js +2 -2
- package/src/routes/delete-many/delete-many-controller.interface.d.ts +2 -2
- package/src/routes/delete-many/delete-many-controller.mixin.js +7 -4
- package/src/routes/delete-many/delete-many.module.d.ts +2 -2
- package/src/routes/delete-many/delete-many.module.js +2 -2
- package/src/routes/delete-one/delete-one-controller.interface.d.ts +2 -2
- package/src/routes/delete-one/delete-one-controller.mixin.js +4 -1
- package/src/routes/delete-one/delete-one.module.d.ts +2 -2
- package/src/routes/delete-one/delete-one.module.js +2 -2
- package/src/routes/duplicate-many/duplicate-many.module.d.ts +2 -2
- package/src/routes/duplicate-many/duplicate-many.module.js +2 -2
- package/src/routes/duplicate-one/duplicate-one.module.d.ts +2 -2
- package/src/routes/duplicate-one/duplicate-one.module.js +2 -2
- package/src/routes/get-many/get-many.module.d.ts +2 -2
- package/src/routes/get-many/get-many.module.js +2 -2
- package/src/routes/get-one/get-one.module.d.ts +2 -2
- package/src/routes/get-one/get-one.module.js +2 -2
- package/src/routes/replace-one/replace-one.module.d.ts +2 -2
- package/src/routes/replace-one/replace-one.module.js +2 -2
- package/src/routes/update-many/update-many.module.d.ts +2 -2
- package/src/routes/update-many/update-many.module.js +2 -2
- package/src/routes/update-one/update-one.module.d.ts +2 -2
- package/src/routes/update-one/update-one.module.js +2 -2
- package/src/version.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
|
|
3
|
+
## [2.3.5](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.3...v2.3.5) (2024-05-08)
|
|
4
|
+
|
|
5
|
+
## [2.3.4](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.2...v2.3.4) (2024-05-08)
|
|
6
|
+
|
|
7
|
+
## [2.3.3](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.2...v2.3.3) (2024-05-07)
|
|
8
|
+
|
|
3
9
|
## [2.3.2](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.1...v2.3.2) (2024-05-07)
|
|
4
10
|
|
|
5
11
|
## [2.3.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.0...v2.3.1) (2024-05-05)
|
package/package.json
CHANGED
|
@@ -15,15 +15,20 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
const base_entity_model_1 = require("./base-entity.model");
|
|
17
17
|
class SoftDeletableEntity extends base_entity_model_1.BaseEntity {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.isDeleted = false;
|
|
21
|
+
this.deletedAt = null;
|
|
22
|
+
}
|
|
18
23
|
}
|
|
19
24
|
exports.SoftDeletableEntity = SoftDeletableEntity;
|
|
20
25
|
__decorate([
|
|
21
26
|
(0, class_transformer_1.Exclude)(),
|
|
22
27
|
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
23
|
-
__metadata("design:type",
|
|
28
|
+
__metadata("design:type", Object)
|
|
24
29
|
], SoftDeletableEntity.prototype, "isDeleted", void 0);
|
|
25
30
|
__decorate([
|
|
26
31
|
(0, swagger_1.ApiProperty)({ type: Date, nullable: true }),
|
|
27
|
-
(0, mongoose_1.Prop)({ type: Date, nullable: true }),
|
|
32
|
+
(0, mongoose_1.Prop)({ type: Date, nullable: true, default: null }),
|
|
28
33
|
__metadata("design:type", Date)
|
|
29
34
|
], SoftDeletableEntity.prototype, "deletedAt", void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class CreateOneModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.CreateOneModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const create_one_helper_1 = require("./create-one.helper");
|
|
13
13
|
let CreateOneModule = CreateOneModule_1 = class CreateOneModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, create_one_helper_1.createCreateOneController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, create_one_helper_1.createCreateOneServiceProvider)(entity, version, routeConfig.callback);
|
|
17
17
|
return {
|
|
18
18
|
module: CreateOneModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeleteManyEntityQuery, DeletePresenter } from '../../dtos';
|
|
2
2
|
import { BaseEntity } from '../../models';
|
|
3
3
|
import { DeleteManyService } from './delete-many-service.interface';
|
|
4
4
|
interface DeleteManyController<Entity extends BaseEntity> {
|
|
5
|
-
deleteMany(
|
|
5
|
+
deleteMany(query: DeleteManyEntityQuery): Promise<DeletePresenter>;
|
|
6
6
|
}
|
|
7
7
|
type DeleteManyControllerConstructor<Entity extends BaseEntity> = new (service: DeleteManyService<Entity>) => DeleteManyController<Entity>;
|
|
8
8
|
export type { DeleteManyController, DeleteManyControllerConstructor };
|
|
@@ -14,7 +14,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.DeleteManyControllerMixin = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
+
const builder_pattern_1 = require("builder-pattern");
|
|
17
18
|
const builders_1 = require("../../builders");
|
|
19
|
+
const dtos_1 = require("../../dtos");
|
|
18
20
|
const helpers_1 = require("../../helpers");
|
|
19
21
|
const mixins_1 = require("../../mixins");
|
|
20
22
|
function DeleteManyControllerMixin(entity, controllerOptions, routeConfig, version) {
|
|
@@ -29,16 +31,17 @@ function DeleteManyControllerMixin(entity, controllerOptions, routeConfig, versi
|
|
|
29
31
|
this.service = service;
|
|
30
32
|
this.entity = entity;
|
|
31
33
|
}
|
|
32
|
-
async deleteMany(ids) {
|
|
33
|
-
|
|
34
|
+
async deleteMany({ ids }) {
|
|
35
|
+
const result = await this.service.deleteMany(ids);
|
|
36
|
+
return (0, builder_pattern_1.Builder)(dtos_1.DeletePresenter, result).build();
|
|
34
37
|
}
|
|
35
38
|
}
|
|
36
39
|
__decorate([
|
|
37
40
|
(0, helpers_1.RouteDecoratorsHelper)(routeDecoratorsBuilder),
|
|
38
41
|
(0, common_1.UseGuards)(DeleteManyPoliciesGuard),
|
|
39
|
-
__param(0, (0, common_1.Query)(
|
|
42
|
+
__param(0, (0, common_1.Query)()),
|
|
40
43
|
__metadata("design:type", Function),
|
|
41
|
-
__metadata("design:paramtypes", [
|
|
44
|
+
__metadata("design:paramtypes", [dtos_1.DeleteManyEntityQuery]),
|
|
42
45
|
__metadata("design:returntype", Promise)
|
|
43
46
|
], BaseDeleteManyController.prototype, "deleteMany", null);
|
|
44
47
|
Object.defineProperty(BaseDeleteManyController, 'name', {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class DeleteManyModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.DeleteManyModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const delete_many_helper_1 = require("./delete-many.helper");
|
|
13
13
|
let DeleteManyModule = DeleteManyModule_1 = class DeleteManyModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, delete_many_helper_1.createDeleteManyController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, delete_many_helper_1.createDeleteManyServiceProvider)(entity, version);
|
|
17
17
|
return {
|
|
18
18
|
module: DeleteManyModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeletePresenter } from '../../dtos';
|
|
2
2
|
import { BaseEntity } from '../../models';
|
|
3
3
|
import { DeleteOneService } from './delete-one-service.interface';
|
|
4
4
|
interface DeleteOneController<Entity extends BaseEntity> {
|
|
5
|
-
deleteOne(id: string): Promise<
|
|
5
|
+
deleteOne(id: string): Promise<DeletePresenter>;
|
|
6
6
|
}
|
|
7
7
|
type DeleteOneControllerConstructor<Entity extends BaseEntity> = new (service: DeleteOneService<Entity>) => DeleteOneController<Entity>;
|
|
8
8
|
export type { DeleteOneController, DeleteOneControllerConstructor };
|
|
@@ -14,7 +14,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.DeleteOneControllerMixin = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
+
const builder_pattern_1 = require("builder-pattern");
|
|
17
18
|
const builders_1 = require("../../builders");
|
|
19
|
+
const dtos_1 = require("../../dtos");
|
|
18
20
|
const helpers_1 = require("../../helpers");
|
|
19
21
|
const mixins_1 = require("../../mixins");
|
|
20
22
|
function DeleteOneControllerMixin(entity, controllerOptions, routeConfig, version) {
|
|
@@ -31,7 +33,8 @@ function DeleteOneControllerMixin(entity, controllerOptions, routeConfig, versio
|
|
|
31
33
|
this.entity = entity;
|
|
32
34
|
}
|
|
33
35
|
async deleteOne(id) {
|
|
34
|
-
|
|
36
|
+
const result = await this.service.deleteOne(id);
|
|
37
|
+
return (0, builder_pattern_1.Builder)(dtos_1.DeletePresenter, result).build();
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
__decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class DeleteOneModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.DeleteOneModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const delete_one_helper_1 = require("./delete-one.helper");
|
|
13
13
|
let DeleteOneModule = DeleteOneModule_1 = class DeleteOneModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, delete_one_helper_1.createDeleteOneController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, delete_one_helper_1.createDeleteOneServiceProvider)(entity, version);
|
|
17
17
|
return {
|
|
18
18
|
module: DeleteOneModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class DuplicateManyModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.DuplicateManyModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const duplicate_many_helper_1 = require("./duplicate-many.helper");
|
|
13
13
|
let DuplicateManyModule = DuplicateManyModule_1 = class DuplicateManyModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, duplicate_many_helper_1.createDuplicateManyController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, duplicate_many_helper_1.createDuplicateManyServiceProvider)(entity, version, routeConfig.callback);
|
|
17
17
|
return {
|
|
18
18
|
module: DuplicateManyModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class DuplicateOneModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.DuplicateOneModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const duplicate_one_helper_1 = require("./duplicate-one.helper");
|
|
13
13
|
let DuplicateOneModule = DuplicateOneModule_1 = class DuplicateOneModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, duplicate_one_helper_1.createDuplicateOneController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, duplicate_one_helper_1.createDuplicateOneServiceProvider)(entity, version, routeConfig.callback);
|
|
17
17
|
return {
|
|
18
18
|
module: DuplicateOneModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class GetManyModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.GetManyModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const get_many_helper_1 = require("./get-many.helper");
|
|
13
13
|
let GetManyModule = GetManyModule_1 = class GetManyModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, get_many_helper_1.createGetManyController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, get_many_helper_1.createGetManyServiceProvider)(entity, version, routeConfig.callback);
|
|
17
17
|
return {
|
|
18
18
|
module: GetManyModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class GetOneModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.GetOneModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const get_one_helper_1 = require("./get-one.helper");
|
|
13
13
|
let GetOneModule = GetOneModule_1 = class GetOneModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, get_one_helper_1.createGetOneController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, get_one_helper_1.createGetOneServiceProvider)(entity, version, routeConfig.callback);
|
|
17
17
|
return {
|
|
18
18
|
module: GetOneModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class ReplaceOneModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.ReplaceOneModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const replace_one_helper_1 = require("./replace-one.helper");
|
|
13
13
|
let ReplaceOneModule = ReplaceOneModule_1 = class ReplaceOneModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, replace_one_helper_1.createReplaceOneController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, replace_one_helper_1.createReplaceOneServiceProvider)(entity, version, routeConfig.callback);
|
|
17
17
|
return {
|
|
18
18
|
module: ReplaceOneModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class UpdateManyModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.UpdateManyModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const update_many_helper_1 = require("./update-many.helper");
|
|
13
13
|
let UpdateManyModule = UpdateManyModule_1 = class UpdateManyModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, update_many_helper_1.createUpdateManyController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, update_many_helper_1.createUpdateManyServiceProvider)(entity, version, routeConfig.callback);
|
|
17
17
|
return {
|
|
18
18
|
module: UpdateManyModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DynamicModule,
|
|
1
|
+
import { DynamicModule, Type, ValidationPipeOptions } from '@nestjs/common';
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
export declare class UpdateOneModule {
|
|
5
|
-
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions
|
|
5
|
+
static forFeature<Entity extends BaseEntity>(databaseModule: DynamicModule, entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, routeConfig: DynamicAPIRouteConfig<Entity>, version?: string, validationPipeOptions?: ValidationPipeOptions): DynamicModule;
|
|
6
6
|
}
|
|
@@ -11,14 +11,14 @@ exports.UpdateOneModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const update_one_helper_1 = require("./update-one.helper");
|
|
13
13
|
let UpdateOneModule = UpdateOneModule_1 = class UpdateOneModule {
|
|
14
|
-
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions
|
|
14
|
+
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions) {
|
|
15
15
|
const controller = (0, update_one_helper_1.createUpdateOneController)(entity, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
16
16
|
const ServiceProvider = (0, update_one_helper_1.createUpdateOneServiceProvider)(entity, version, routeConfig.callback);
|
|
17
17
|
return {
|
|
18
18
|
module: UpdateOneModule_1,
|
|
19
19
|
imports: [databaseModule],
|
|
20
20
|
controllers: [controller],
|
|
21
|
-
providers: [
|
|
21
|
+
providers: [ServiceProvider],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
package/src/version.json
CHANGED