mongodb-dynamic-api 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/package.json +10 -10
- package/src/decorators/api-endpoint-visibility.decorator.js +1 -2
- package/src/decorators/api-endpoint-visibility.decorator.js.map +1 -1
- package/src/decorators/schema-options.decorator.js +2 -2
- package/src/decorators/schema-options.decorator.js.map +1 -1
- package/src/decorators/validator-pipe.decorator.js +1 -2
- package/src/decorators/validator-pipe.decorator.js.map +1 -1
- package/src/dynamic-api.module.d.ts +1 -1
- package/src/dynamic-api.module.js +11 -3
- package/src/dynamic-api.module.js.map +1 -1
- package/src/gateways/dynamic-api-broadcast.gateway.d.ts +11 -0
- package/src/gateways/dynamic-api-broadcast.gateway.js +40 -0
- package/src/gateways/dynamic-api-broadcast.gateway.js.map +1 -0
- package/src/gateways/index.d.ts +1 -0
- package/src/gateways/index.js +1 -0
- package/src/gateways/index.js.map +1 -1
- package/src/guards/base-policies.guard.d.ts +0 -25
- package/src/helpers/controller-ability-predicates.helper.js +1 -2
- package/src/helpers/controller-ability-predicates.helper.js.map +1 -1
- package/src/helpers/format.helper.js +6 -7
- package/src/helpers/format.helper.js.map +1 -1
- package/src/helpers/mixin-data.helper.d.ts +1 -1
- package/src/helpers/mixin-data.helper.js +3 -3
- package/src/helpers/mixin-data.helper.js.map +1 -1
- package/src/helpers/repository.helper.d.ts +0 -25
- package/src/helpers/repository.helper.js.map +1 -1
- package/src/helpers/route-decorators.helper.d.ts +1 -1
- package/src/helpers/route-decorators.helper.js +1 -2
- package/src/helpers/route-decorators.helper.js.map +1 -1
- package/src/helpers/route-description.helper.js +1 -2
- package/src/helpers/route-description.helper.js.map +1 -1
- package/src/helpers/schema.helper.d.ts +0 -25
- package/src/helpers/schema.helper.js +1 -2
- package/src/helpers/schema.helper.js.map +1 -1
- package/src/helpers/socket-config.helper.js +2 -3
- package/src/helpers/socket-config.helper.js.map +1 -1
- package/src/helpers/swagger-config.helper.js +1 -2
- package/src/helpers/swagger-config.helper.js.map +1 -1
- package/src/helpers/validation-config.helper.js +1 -2
- package/src/helpers/validation-config.helper.js.map +1 -1
- package/src/helpers/versioning-config.helper.js +2 -3
- package/src/helpers/versioning-config.helper.js.map +1 -1
- package/src/interfaces/dynamic-api-global-state.interface.d.ts +1 -25
- package/src/interfaces/dynamic-api-options.interface.d.ts +2 -0
- package/src/interfaces/dynamic-api-options.interface.js.map +1 -1
- package/src/interfaces/dynamic-api-policy-handler.interface.d.ts +0 -25
- package/src/interfaces/dynamic-api-schema-options.interface.d.ts +0 -25
- package/src/interfaces/dynamic-api-service-callback.interface.d.ts +0 -25
- package/src/mixins/entity-body.mixin.js +2 -2
- package/src/mixins/entity-body.mixin.js.map +1 -1
- package/src/mixins/entity-presenter.mixin.js +1 -2
- package/src/mixins/entity-presenter.mixin.js.map +1 -1
- package/src/mixins/policies-guard.mixin.js +2 -3
- package/src/mixins/policies-guard.mixin.js.map +1 -1
- package/src/models/base-entity.model.d.ts +0 -25
- package/src/modules/auth/auth.helper.d.ts +7 -5
- package/src/modules/auth/auth.helper.js +15 -14
- package/src/modules/auth/auth.helper.js.map +1 -1
- package/src/modules/auth/auth.module.d.ts +1 -1
- package/src/modules/auth/auth.module.js +10 -6
- package/src/modules/auth/auth.module.js.map +1 -1
- package/src/modules/auth/interfaces/auth-options.interface.d.ts +6 -1
- package/src/modules/auth/mixins/auth-controller.mixin.d.ts +2 -2
- package/src/modules/auth/mixins/auth-controller.mixin.js +3 -3
- package/src/modules/auth/mixins/auth-controller.mixin.js.map +1 -1
- package/src/modules/auth/mixins/auth-gateway.mixin.d.ts +2 -2
- package/src/modules/auth/mixins/auth-gateway.mixin.js +3 -3
- package/src/modules/auth/mixins/auth-gateway.mixin.js.map +1 -1
- package/src/modules/auth/mixins/auth-policies-guard.mixin.js +2 -3
- package/src/modules/auth/mixins/auth-policies-guard.mixin.js.map +1 -1
- package/src/modules/auth/services/base-auth.service.d.ts +1 -25
- package/src/modules/auth/services/base-auth.service.js +4 -0
- package/src/modules/auth/services/base-auth.service.js.map +1 -1
- package/src/routes/aggregate/aggregate-controller.mixin.js +1 -2
- package/src/routes/aggregate/aggregate-controller.mixin.js.map +1 -1
- package/src/routes/aggregate/aggregate-gateway.mixin.js +1 -2
- package/src/routes/aggregate/aggregate-gateway.mixin.js.map +1 -1
- package/src/routes/aggregate/aggregate-presenter.mixin.js +1 -2
- package/src/routes/aggregate/aggregate-presenter.mixin.js.map +1 -1
- package/src/routes/aggregate/aggregate.helper.js +3 -4
- package/src/routes/aggregate/aggregate.helper.js.map +1 -1
- package/src/routes/aggregate/aggregate.module.js +1 -1
- package/src/routes/aggregate/aggregate.module.js.map +1 -1
- package/src/routes/aggregate/base-aggregate.service.d.ts +0 -25
- package/src/routes/create-many/base-create-many.service.d.ts +0 -25
- package/src/routes/create-many/create-many-body.mixin.js +1 -2
- package/src/routes/create-many/create-many-body.mixin.js.map +1 -1
- package/src/routes/create-many/create-many-controller.interface.d.ts +2 -1
- package/src/routes/create-many/create-many-controller.mixin.d.ts +1 -1
- package/src/routes/create-many/create-many-controller.mixin.js +15 -8
- package/src/routes/create-many/create-many-controller.mixin.js.map +1 -1
- package/src/routes/create-many/create-many-gateway.mixin.js +1 -2
- package/src/routes/create-many/create-many-gateway.mixin.js.map +1 -1
- package/src/routes/create-many/create-many-presenter.mixin.js +1 -2
- package/src/routes/create-many/create-many-presenter.mixin.js.map +1 -1
- package/src/routes/create-many/create-many.helper.js +10 -7
- package/src/routes/create-many/create-many.helper.js.map +1 -1
- package/src/routes/create-many/create-many.module.js +4 -1
- package/src/routes/create-many/create-many.module.js.map +1 -1
- package/src/routes/create-one/base-create-one.service.d.ts +0 -25
- package/src/routes/create-one/create-one-controller.interface.d.ts +2 -1
- package/src/routes/create-one/create-one-controller.mixin.d.ts +1 -1
- package/src/routes/create-one/create-one-controller.mixin.js +15 -8
- package/src/routes/create-one/create-one-controller.mixin.js.map +1 -1
- package/src/routes/create-one/create-one-gateway.mixin.js +1 -2
- package/src/routes/create-one/create-one-gateway.mixin.js.map +1 -1
- package/src/routes/create-one/create-one.helper.js +10 -7
- package/src/routes/create-one/create-one.helper.js.map +1 -1
- package/src/routes/create-one/create-one.module.js +4 -1
- package/src/routes/create-one/create-one.module.js.map +1 -1
- package/src/routes/delete-many/base-delete-many.service.d.ts +0 -25
- package/src/routes/delete-many/delete-many-controller.interface.d.ts +2 -1
- package/src/routes/delete-many/delete-many-controller.mixin.d.ts +1 -1
- package/src/routes/delete-many/delete-many-controller.mixin.js +15 -8
- package/src/routes/delete-many/delete-many-controller.mixin.js.map +1 -1
- package/src/routes/delete-many/delete-many-gateway.mixin.js +1 -2
- package/src/routes/delete-many/delete-many-gateway.mixin.js.map +1 -1
- package/src/routes/delete-many/delete-many.helper.js +10 -7
- package/src/routes/delete-many/delete-many.helper.js.map +1 -1
- package/src/routes/delete-many/delete-many.module.js +4 -1
- package/src/routes/delete-many/delete-many.module.js.map +1 -1
- package/src/routes/delete-one/base-delete-one.service.d.ts +0 -25
- package/src/routes/delete-one/delete-one-controller.interface.d.ts +2 -1
- package/src/routes/delete-one/delete-one-controller.mixin.d.ts +1 -1
- package/src/routes/delete-one/delete-one-controller.mixin.js +15 -8
- package/src/routes/delete-one/delete-one-controller.mixin.js.map +1 -1
- package/src/routes/delete-one/delete-one-gateway.mixin.js +1 -2
- package/src/routes/delete-one/delete-one-gateway.mixin.js.map +1 -1
- package/src/routes/delete-one/delete-one.helper.js +10 -7
- package/src/routes/delete-one/delete-one.helper.js.map +1 -1
- package/src/routes/delete-one/delete-one.module.js +4 -1
- package/src/routes/delete-one/delete-one.module.js.map +1 -1
- package/src/routes/duplicate-many/base-duplicate-many.service.d.ts +0 -25
- package/src/routes/duplicate-many/duplicate-many-controller.interface.d.ts +2 -1
- package/src/routes/duplicate-many/duplicate-many-controller.mixin.d.ts +1 -1
- package/src/routes/duplicate-many/duplicate-many-controller.mixin.js +15 -8
- package/src/routes/duplicate-many/duplicate-many-controller.mixin.js.map +1 -1
- package/src/routes/duplicate-many/duplicate-many-gateway.mixin.js +1 -2
- package/src/routes/duplicate-many/duplicate-many-gateway.mixin.js.map +1 -1
- package/src/routes/duplicate-many/duplicate-many.helper.js +10 -7
- package/src/routes/duplicate-many/duplicate-many.helper.js.map +1 -1
- package/src/routes/duplicate-many/duplicate-many.module.js +4 -1
- package/src/routes/duplicate-many/duplicate-many.module.js.map +1 -1
- package/src/routes/duplicate-one/base-duplicate-one.service.d.ts +0 -25
- package/src/routes/duplicate-one/duplicate-one-controller.interface.d.ts +2 -1
- package/src/routes/duplicate-one/duplicate-one-controller.mixin.d.ts +1 -1
- package/src/routes/duplicate-one/duplicate-one-controller.mixin.js +15 -8
- package/src/routes/duplicate-one/duplicate-one-controller.mixin.js.map +1 -1
- package/src/routes/duplicate-one/duplicate-one-gateway.mixin.js +1 -2
- package/src/routes/duplicate-one/duplicate-one-gateway.mixin.js.map +1 -1
- package/src/routes/duplicate-one/duplicate-one.helper.js +10 -7
- package/src/routes/duplicate-one/duplicate-one.helper.js.map +1 -1
- package/src/routes/duplicate-one/duplicate-one.module.js +4 -1
- package/src/routes/duplicate-one/duplicate-one.module.js.map +1 -1
- package/src/routes/get-many/base-get-many.service.d.ts +0 -25
- package/src/routes/get-many/get-many-controller.mixin.js +1 -2
- package/src/routes/get-many/get-many-controller.mixin.js.map +1 -1
- package/src/routes/get-many/get-many-gateway.mixin.js +1 -2
- package/src/routes/get-many/get-many-gateway.mixin.js.map +1 -1
- package/src/routes/get-many/get-many.helper.js +3 -4
- package/src/routes/get-many/get-many.helper.js.map +1 -1
- package/src/routes/get-many/get-many.module.js +1 -1
- package/src/routes/get-many/get-many.module.js.map +1 -1
- package/src/routes/get-one/base-get-one.service.d.ts +0 -25
- package/src/routes/get-one/get-one-controller.mixin.js +1 -2
- package/src/routes/get-one/get-one-controller.mixin.js.map +1 -1
- package/src/routes/get-one/get-one-gateway.mixin.js +1 -2
- package/src/routes/get-one/get-one-gateway.mixin.js.map +1 -1
- package/src/routes/get-one/get-one.helper.js +3 -4
- package/src/routes/get-one/get-one.helper.js.map +1 -1
- package/src/routes/get-one/get-one.module.js +1 -1
- package/src/routes/get-one/get-one.module.js.map +1 -1
- package/src/routes/replace-one/base-replace-one.service.d.ts +0 -25
- package/src/routes/replace-one/replace-one-controller.interface.d.ts +2 -1
- package/src/routes/replace-one/replace-one-controller.mixin.d.ts +1 -1
- package/src/routes/replace-one/replace-one-controller.mixin.js +15 -8
- package/src/routes/replace-one/replace-one-controller.mixin.js.map +1 -1
- package/src/routes/replace-one/replace-one-gateway.mixin.js +1 -2
- package/src/routes/replace-one/replace-one-gateway.mixin.js.map +1 -1
- package/src/routes/replace-one/replace-one.helper.js +10 -7
- package/src/routes/replace-one/replace-one.helper.js.map +1 -1
- package/src/routes/replace-one/replace-one.module.js +4 -1
- package/src/routes/replace-one/replace-one.module.js.map +1 -1
- package/src/routes/update-many/base-update-many.service.d.ts +0 -25
- package/src/routes/update-many/update-many-controller.interface.d.ts +2 -1
- package/src/routes/update-many/update-many-controller.mixin.d.ts +1 -1
- package/src/routes/update-many/update-many-controller.mixin.js +15 -8
- package/src/routes/update-many/update-many-controller.mixin.js.map +1 -1
- package/src/routes/update-many/update-many-gateway.mixin.js +1 -2
- package/src/routes/update-many/update-many-gateway.mixin.js.map +1 -1
- package/src/routes/update-many/update-many.helper.js +10 -7
- package/src/routes/update-many/update-many.helper.js.map +1 -1
- package/src/routes/update-many/update-many.module.js +4 -1
- package/src/routes/update-many/update-many.module.js.map +1 -1
- package/src/routes/update-one/base-update-one.service.d.ts +0 -25
- package/src/routes/update-one/update-one-controller.interface.d.ts +2 -1
- package/src/routes/update-one/update-one-controller.mixin.d.ts +1 -1
- package/src/routes/update-one/update-one-controller.mixin.js +15 -8
- package/src/routes/update-one/update-one-controller.mixin.js.map +1 -1
- package/src/routes/update-one/update-one-gateway.mixin.js +1 -2
- package/src/routes/update-one/update-one-gateway.mixin.js.map +1 -1
- package/src/routes/update-one/update-one.helper.js +10 -7
- package/src/routes/update-one/update-one.helper.js.map +1 -1
- package/src/routes/update-one/update-one.module.js +4 -1
- package/src/routes/update-one/update-one.module.js.map +1 -1
- package/src/services/base/base.service.d.ts +0 -25
- package/src/services/dynamic-api-broadcast/dynamic-api-broadcast.service.d.ts +7 -0
- package/src/services/dynamic-api-broadcast/dynamic-api-broadcast.service.js +38 -0
- package/src/services/dynamic-api-broadcast/dynamic-api-broadcast.service.js.map +1 -0
- package/src/services/dynamic-api-global-state/dynamic-api-global-state.service.d.ts +0 -25
- package/src/services/index.d.ts +1 -0
- package/src/services/index.js +1 -0
- package/src/services/index.js.map +1 -1
- package/src/version.json +1 -1
- package/test/dynamic-api-for-feature.e2e-spec.js +162 -0
- package/test/dynamic-api-for-feature.e2e-spec.js.map +1 -1
- package/test/e2e.setup.d.ts +18 -32
- package/test/e2e.setup.js +63 -3
- package/test/e2e.setup.js.map +1 -1
- package/test/utils.d.ts +0 -25
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
1
|
import { Model } from 'mongoose';
|
|
27
2
|
import { DynamicApiServiceCallback } from '../../interfaces';
|
|
28
3
|
import { BaseEntity } from '../../models';
|
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.GetOneControllerMixin =
|
|
15
|
+
exports.GetOneControllerMixin = GetOneControllerMixin;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const builders_1 = require("../../builders");
|
|
18
18
|
const dtos_1 = require("../../dtos");
|
|
@@ -60,5 +60,4 @@ function GetOneControllerMixin(entity, controllerOptions, { dTOs, useInterceptor
|
|
|
60
60
|
});
|
|
61
61
|
return BaseGetOneController;
|
|
62
62
|
}
|
|
63
|
-
exports.GetOneControllerMixin = GetOneControllerMixin;
|
|
64
63
|
//# sourceMappingURL=get-one-controller.mixin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-one-controller.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/get-one/get-one-controller.mixin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-one-controller.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/get-one/get-one-controller.mixin.ts"],"names":[],"mappings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CAAc,EAAU;YAClC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAE7C,MAAM,UAAU,GACd,eACD,CAAC,UAAU,CAAC;YAEb,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAkB,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;QACnE,CAAC;KACF;IATO;QAHL,IAAA,+BAAqB,EAAC,sBAAsB,CAAC;QAC7C,IAAA,kBAAS,EAAC,mBAAmB,CAAC;QAC9B,IAAA,wBAAe,EAAC,GAAG,eAAe,CAAC;QACtB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;sDAQxB;IAGH,MAAM,CAAC,cAAc,CAAC,oBAAoB,EAAE,MAAM,EAAE;QAClD,KAAK,EAAE,OAAO,IAAA,qBAAW,EAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE;QAC3E,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
|
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.GetOneGatewayMixin =
|
|
15
|
+
exports.GetOneGatewayMixin = GetOneGatewayMixin;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const websockets_1 = require("@nestjs/websockets");
|
|
18
18
|
const dtos_1 = require("../../dtos");
|
|
@@ -69,5 +69,4 @@ function GetOneGatewayMixin(entity, controllerOptions, { dTOs, useInterceptors =
|
|
|
69
69
|
});
|
|
70
70
|
return BaseGetOneGateway;
|
|
71
71
|
}
|
|
72
|
-
exports.GetOneGatewayMixin = GetOneGatewayMixin;
|
|
73
72
|
//# sourceMappingURL=get-one-gateway.mixin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-one-gateway.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/get-one/get-one-gateway.mixin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-one-gateway.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/get-one/get-one-gateway.mixin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAgGS,gDAAkB;AAhG3B,2CAA8E;AAE9E,mDAAiG;AACjG,qCAAyC;AACzC,2CAA4D;AAC5D,6CAA6C;AAC7C,yCAA8C;AAC9C,2CAA4E;AAE5E,yCAA8E;AAK9E,SAAS,kBAAkB,CACzB,MAAoB,EACpB,iBAAsD,EACtD,EAAE,IAAI,EAAE,eAAe,GAAG,EAAE,EAAE,GAAG,WAAW,EAAiC,EAC7E,OAAgB;IAEhB,MAAM,EACJ,SAAS,EACT,aAAa,EACb,QAAQ,EACR,KAAK,EACL,gBAAgB,GACjB,GAAG,IAAA,sBAAY,EACd,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,IAAI,CACL,CAAC;IAEF,MAAM,cAAe,SAAQ,CAC3B,IAAI,EAAE,SAAS,IAAI,IAAA,6BAAoB,EAAC,MAAM,CAAC,CAChD;KAAG;IAEJ,MAAM,CAAC,cAAc,CAAC,cAAc,EAAE,MAAM,EAAE;QAC5C,KAAK,EAAE,IAAI,EAAE,SAAS;YACpB,CAAC,CAAC,SAAS,aAAa,GAAG,IAAA,0BAAgB,EAAC,OAAO,CAAC,UAAU;YAC9D,CAAC,CAAC,GAAG,aAAa,GAAG,IAAA,0BAAgB,EAAC,OAAO,CAAC,UAAU;QAC1D,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,MAAM,mBAAoB,SAAQ,IAAA,iCAAwB,EACxD,MAAM,EACN,SAAS,EACT,KAAK,EACL,OAAO,EACP,gBAAgB,EAChB,QAAQ,CACT;KAAG;IAEJ,MAAM,iBA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+12,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.createGetOneController = createGetOneController;
|
|
16
|
+
exports.createGetOneGateway = createGetOneGateway;
|
|
17
|
+
exports.createGetOneServiceProvider = createGetOneServiceProvider;
|
|
16
18
|
const common_1 = require("@nestjs/common");
|
|
17
19
|
const jwt_1 = require("@nestjs/jwt");
|
|
18
20
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
@@ -47,7 +49,6 @@ function createGetOneServiceProvider(entity, displayedName, version, callback) {
|
|
|
47
49
|
useClass: GetOneService,
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
|
-
exports.createGetOneServiceProvider = createGetOneServiceProvider;
|
|
51
52
|
function createGetOneController(entity, displayedName, { useInterceptors = [], ...controllerOptions }, routeConfig, version, validationPipeOptions) {
|
|
52
53
|
const { path, apiTag } = controllerOptions;
|
|
53
54
|
let GetOneController = class GetOneController extends (0, get_one_controller_mixin_1.GetOneControllerMixin)(entity, controllerOptions, routeConfig, version) {
|
|
@@ -70,7 +71,6 @@ function createGetOneController(entity, displayedName, { useInterceptors = [], .
|
|
|
70
71
|
});
|
|
71
72
|
return GetOneController;
|
|
72
73
|
}
|
|
73
|
-
exports.createGetOneController = createGetOneController;
|
|
74
74
|
function createGetOneGateway(entity, displayedName, { useInterceptors = [], ...controllerOptions }, routeConfig, version, validationPipeOptions, gatewayOptions = {}) {
|
|
75
75
|
let GetOneGateway = class GetOneGateway extends (0, get_one_gateway_mixin_1.GetOneGatewayMixin)(entity, controllerOptions, routeConfig, version) {
|
|
76
76
|
constructor(service, jwtService) {
|
|
@@ -92,5 +92,4 @@ function createGetOneGateway(entity, displayedName, { useInterceptors = [], ...c
|
|
|
92
92
|
});
|
|
93
93
|
return GetOneGateway;
|
|
94
94
|
}
|
|
95
|
-
exports.createGetOneGateway = createGetOneGateway;
|
|
96
95
|
//# sourceMappingURL=get-one.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-one.helper.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/get-one/get-one.helper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-one.helper.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/get-one/get-one.helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAsIS,wDAAsB;AAAE,kDAAmB;AAAE,kEAA2B;AAtIjF,2CAOwB;AACxB,qCAAyC;AACzC,+CAA+C;AAC/C,6CAA0C;AAC1C,mDAAsD;AACtD,uCAAiC;AACjC,iDAAiD;AACjD,iEAA4D;AAC5D,2CAA4C;AAS5C,iEAA2D;AAE3D,yEAAmE;AAEnE,mEAA6D;AAG7D,SAAS,2BAA2B,CAClC,MAAoB,EACpB,aAAqB,EACrB,OAA2B,EAC3B,QAAuD;IAEvD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wCAAyB;QAInD,YAKE,KAAuC;YAEvC,KAAK,CAAC,KAAK,CAAC,CAAC;YAFM,UAAK,GAAL,KAAK,CAAe;YARtB,WAAM,GAAG,MAAM,CAAC;YAChB,aAAQ,GAAG,QAAQ,CAAC;QAUvC,CAAC;KACF,CAAA;IAbK,aAAa;QAKd,WAAA,IAAA,sBAAW,EACV,MAAM,CAAC,IAAI,EACX,qCAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAC7C,CAAA;yCACyB,gBAAK;OAT7B,aAAa,CAalB;IAED,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE;QAC3C,KAAK,EAAE,IAAA,qBAAW,EAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC;QAC/D,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,IAAA,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AAG,EAAE,EAAE,GAAG,iBAAiB,EAAuC,EACnF,WAA0C,EAC1C,OAAgB,EAChB,qBAA6C,EAC7C,iBAAiC,EAAE;IAEnC,IAGM,aAAa,GAHnB,MAGM,aAAc,SAAQ,IAAA,0CAAkB,EAC5C,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR;QACC,YAEqB,OAA8B,EAC9B,UAAsB;YAEzC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;YAHR,YAAO,GAAP,OAAO,CAAuB;YAC9B,eAAU,GAAV,UAAU,CAAY;QAG3C,CAAC;KACF,CAAA;IAbK,aAAa;QAHlB,IAAA,6BAAgB,EAAC,cAAc,CAAC;QAChC,IAAA,0BAAa,EAAC,qBAAqB,CAAC;QACpC,IAAA,wBAAe,EAAC,mCAA0B,EAAE,GAAG,eAAe,CAAC;QAQ3D,WAAA,IAAA,eAAM,EAAC,IAAA,qBAAW,EAAC,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;iDAE1C,gBAAU;OATvC,aAAa,CAalB;IAED,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE;QAC3C,KAAK,EAAE,GAAG,IAAA,qBAAW,EAAC,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE;QAC5E,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -19,7 +19,7 @@ let GetOneModule = GetOneModule_1 = class GetOneModule {
|
|
|
19
19
|
const ServiceProvider = (0, get_one_helper_1.createGetOneServiceProvider)(entity, displayedName, version, routeConfig.callback);
|
|
20
20
|
const gatewayOptions = webSocket
|
|
21
21
|
? (0, helpers_1.initializeConfigFromOptions)(webSocket)
|
|
22
|
-
: dynamic_api_module_1.DynamicApiModule.state.get('gatewayOptions');
|
|
22
|
+
: dynamic_api_module_1.DynamicApiModule.state.get('gatewayOptions') ?? null;
|
|
23
23
|
return {
|
|
24
24
|
module: GetOneModule_1,
|
|
25
25
|
imports: [databaseModule, ...(extraImports || [])],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-one.module.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/get-one/get-one.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoG;AAEpG,iEAA4D;AAC5D,2CAA8E;AAG9E,qDAG0B;AAGnB,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACvB,MAAM,CAAC,UAAU,CACf,cAA6B,EAC7B,MAAoB,EACpB,iBAAsD,EACtD,WAA0C,EAC1C,OAAgB,EAChB,qBAA6C,EAC7C,SAAsC,EACtC,YAAwC,EACxC,cAA4C,EAC5C,gBAAgD;QAEhD,MAAM,aAAa,GAAG,IAAA,0BAAgB,EAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAEnG,MAAM,UAAU,GAAG,IAAA,uCAAsB,EACvC,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,qBAAqB,CACtB,CAAC;QACF,MAAM,eAAe,GAAG,IAAA,4CAA2B,EAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;QAE1G,MAAM,cAAc,GAAG,SAAS;YAC9B,CAAC,CAAC,IAAA,qCAA2B,EAAC,SAAS,CAAC;YACxC,CAAC,CAAC,qCAAgB,CAAC,KAAK,CAAC,GAAG,CAAkB,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"get-one.module.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/get-one/get-one.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoG;AAEpG,iEAA4D;AAC5D,2CAA8E;AAG9E,qDAG0B;AAGnB,IAAM,YAAY,oBA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AY;IADxB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,YAAY,CAoDxB"}
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
1
|
import { Type } from '@nestjs/common';
|
|
27
2
|
import { Model } from 'mongoose';
|
|
28
3
|
import { DynamicApiServiceCallback } from '../../interfaces';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseEntity } from '../../models';
|
|
2
|
+
import { DynamicApiBroadcastService } from '../../services';
|
|
2
3
|
import { ReplaceOneService } from './replace-one-service.interface';
|
|
3
4
|
interface ReplaceOneController<Entity extends BaseEntity, Body = any, Response = any> {
|
|
4
5
|
replaceOne(id: string, body: Body): Promise<Entity | Response>;
|
|
5
6
|
}
|
|
6
|
-
type ReplaceOneControllerConstructor<Entity extends BaseEntity> = new (service: ReplaceOneService<Entity
|
|
7
|
+
type ReplaceOneControllerConstructor<Entity extends BaseEntity> = new (service: ReplaceOneService<Entity>, broadcastService?: DynamicApiBroadcastService) => ReplaceOneController<Entity>;
|
|
7
8
|
export type { ReplaceOneController, ReplaceOneControllerConstructor };
|
|
@@ -2,5 +2,5 @@ import { Type } from '@nestjs/common';
|
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
import { ReplaceOneControllerConstructor } from './replace-one-controller.interface';
|
|
5
|
-
declare function ReplaceOneControllerMixin<Entity extends BaseEntity>(entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, { dTOs, useInterceptors, ...routeConfig }: DynamicAPIRouteConfig<Entity>, version?: string): ReplaceOneControllerConstructor<Entity>;
|
|
5
|
+
declare function ReplaceOneControllerMixin<Entity extends BaseEntity>(entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, { dTOs, useInterceptors, broadcast: broadcastConfig, ...routeConfig }: DynamicAPIRouteConfig<Entity>, version?: string): ReplaceOneControllerConstructor<Entity>;
|
|
6
6
|
export { ReplaceOneControllerMixin };
|
|
@@ -12,14 +12,15 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ReplaceOneControllerMixin =
|
|
15
|
+
exports.ReplaceOneControllerMixin = ReplaceOneControllerMixin;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const builders_1 = require("../../builders");
|
|
18
18
|
const dtos_1 = require("../../dtos");
|
|
19
19
|
const helpers_1 = require("../../helpers");
|
|
20
20
|
const mixins_1 = require("../../mixins");
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const services_1 = require("../../services");
|
|
22
|
+
function ReplaceOneControllerMixin(entity, controllerOptions, { dTOs, useInterceptors = [], broadcast: broadcastConfig, ...routeConfig }, version) {
|
|
23
|
+
const { routeType, displayedName, description, isPublic, abilityPredicate, event, } = (0, helpers_1.getMixinData)(entity, controllerOptions, routeConfig);
|
|
23
24
|
class ReplaceOneBody extends (dTOs?.body ?? (0, mixins_1.EntityBodyMixin)(entity)) {
|
|
24
25
|
}
|
|
25
26
|
Object.defineProperty(ReplaceOneBody, 'name', {
|
|
@@ -41,18 +42,21 @@ function ReplaceOneControllerMixin(entity, controllerOptions, { dTOs, useInterce
|
|
|
41
42
|
});
|
|
42
43
|
class ReplaceOnePoliciesGuard extends (0, mixins_1.RoutePoliciesGuardMixin)(entity, routeType, displayedName, version, abilityPredicate) {
|
|
43
44
|
}
|
|
44
|
-
class BaseReplaceOneController {
|
|
45
|
-
constructor(service) {
|
|
45
|
+
let BaseReplaceOneController = class BaseReplaceOneController {
|
|
46
|
+
constructor(service, broadcastService) {
|
|
46
47
|
this.service = service;
|
|
48
|
+
this.broadcastService = broadcastService;
|
|
47
49
|
this.entity = entity;
|
|
48
50
|
}
|
|
49
51
|
async replaceOne(id, body) {
|
|
50
52
|
const toEntity = ReplaceOneBody.toEntity;
|
|
51
53
|
const entity = await this.service.replaceOne(id, toEntity ? toEntity(body) : body);
|
|
52
54
|
const fromEntity = ReplaceOnePresenter.fromEntity;
|
|
53
|
-
|
|
55
|
+
const responseData = fromEntity ? fromEntity(entity) : entity;
|
|
56
|
+
this.broadcastService?.broadcastFromHttp(event, [responseData], broadcastConfig);
|
|
57
|
+
return responseData;
|
|
54
58
|
}
|
|
55
|
-
}
|
|
59
|
+
};
|
|
56
60
|
__decorate([
|
|
57
61
|
(0, helpers_1.RouteDecoratorsHelper)(routeDecoratorsBuilder),
|
|
58
62
|
(0, common_1.UseGuards)(ReplaceOnePoliciesGuard),
|
|
@@ -63,11 +67,14 @@ function ReplaceOneControllerMixin(entity, controllerOptions, { dTOs, useInterce
|
|
|
63
67
|
__metadata("design:paramtypes", [String, ReplaceOneBody]),
|
|
64
68
|
__metadata("design:returntype", Promise)
|
|
65
69
|
], BaseReplaceOneController.prototype, "replaceOne", null);
|
|
70
|
+
BaseReplaceOneController = __decorate([
|
|
71
|
+
__param(1, (0, common_1.Optional)()),
|
|
72
|
+
__metadata("design:paramtypes", [Object, services_1.DynamicApiBroadcastService])
|
|
73
|
+
], BaseReplaceOneController);
|
|
66
74
|
Object.defineProperty(BaseReplaceOneController, 'name', {
|
|
67
75
|
value: `Base${(0, helpers_1.provideName)('ReplaceOne', displayedName, version, 'Controller')}`,
|
|
68
76
|
writable: false,
|
|
69
77
|
});
|
|
70
78
|
return BaseReplaceOneController;
|
|
71
79
|
}
|
|
72
|
-
exports.ReplaceOneControllerMixin = ReplaceOneControllerMixin;
|
|
73
80
|
//# sourceMappingURL=replace-one-controller.mixin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-one-controller.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/replace-one/replace-one-controller.mixin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replace-one-controller.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/replace-one/replace-one-controller.mixin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AA8GS,8DAAyB;AA9GlC,2CAAyF;AACzF,6CAAwD;AACxD,qCAAyC;AACzC,2CAAmG;AAEnG,yCAA8F;AAE9F,6CAA4D;AAI5D,SAAS,yBAAyB,CAChC,MAAoB,EACpB,iBAAsD,EACtD,EAAE,IAAI,EAAE,eAAe,GAAG,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,WAAW,EAAiC,EACzG,OAAgB;IAEhB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AwB,CAAC;AAClC,CAAC"}
|
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ReplaceOneGatewayMixin =
|
|
15
|
+
exports.ReplaceOneGatewayMixin = ReplaceOneGatewayMixin;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const websockets_1 = require("@nestjs/websockets");
|
|
18
18
|
const filters_1 = require("../../filters");
|
|
@@ -78,5 +78,4 @@ function ReplaceOneGatewayMixin(entity, controllerOptions, { dTOs, useIntercepto
|
|
|
78
78
|
});
|
|
79
79
|
return BaseReplaceOneGateway;
|
|
80
80
|
}
|
|
81
|
-
exports.ReplaceOneGatewayMixin = ReplaceOneGatewayMixin;
|
|
82
81
|
//# sourceMappingURL=replace-one-gateway.mixin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-one-gateway.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/replace-one/replace-one-gateway.mixin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replace-one-gateway.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/replace-one/replace-one-gateway.mixin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAmHS,wDAAsB;AAnH/B,2CAA8E;AAE9E,mDAAiG;AAEjG,2CAA4D;AAC5D,6CAA6C;AAC7C,yCAA8C;AAC9C,2CAA4E;AAE5E,yCAA+F;AAK/F,SAAS,sBAAsB,CAC7B,MAAoB,EACpB,iBAAsD,EACtD,EAAE,IAAI,EAAE,eAAe,GAAG,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,WAAW,EAAiC,EACzG,OAAgB;IAEhB,MAAM,EACJ,SAAS,EACT,aAAa,EACb,QAAQ,EACR,KAAK,EACL,gBAAgB,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;AAC/B,CAAC"}
|
|
@@ -12,7 +12,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.createReplaceOneController = createReplaceOneController;
|
|
16
|
+
exports.createReplaceOneGateway = createReplaceOneGateway;
|
|
17
|
+
exports.createReplaceOneServiceProvider = createReplaceOneServiceProvider;
|
|
16
18
|
const common_1 = require("@nestjs/common");
|
|
17
19
|
const jwt_1 = require("@nestjs/jwt");
|
|
18
20
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
@@ -22,6 +24,7 @@ const mongoose_2 = require("mongoose");
|
|
|
22
24
|
const decorators_1 = require("../../decorators");
|
|
23
25
|
const dynamic_api_module_1 = require("../../dynamic-api.module");
|
|
24
26
|
const helpers_1 = require("../../helpers");
|
|
27
|
+
const services_1 = require("../../services");
|
|
25
28
|
const base_replace_one_service_1 = require("./base-replace-one.service");
|
|
26
29
|
const replace_one_controller_mixin_1 = require("./replace-one-controller.mixin");
|
|
27
30
|
const replace_one_gateway_mixin_1 = require("./replace-one-gateway.mixin");
|
|
@@ -47,13 +50,13 @@ function createReplaceOneServiceProvider(entity, displayedName, version, callbac
|
|
|
47
50
|
useClass: ReplaceOneService,
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
|
-
exports.createReplaceOneServiceProvider = createReplaceOneServiceProvider;
|
|
51
53
|
function createReplaceOneController(entity, displayedName, { useInterceptors = [], ...controllerOptions }, routeConfig, version, validationPipeOptions) {
|
|
52
54
|
const { path, apiTag } = controllerOptions;
|
|
53
55
|
let ReplaceOneController = class ReplaceOneController extends (0, replace_one_controller_mixin_1.ReplaceOneControllerMixin)(entity, controllerOptions, routeConfig, version) {
|
|
54
|
-
constructor(service) {
|
|
55
|
-
super(service);
|
|
56
|
+
constructor(service, broadcastService) {
|
|
57
|
+
super(service, broadcastService);
|
|
56
58
|
this.service = service;
|
|
59
|
+
this.broadcastService = broadcastService;
|
|
57
60
|
}
|
|
58
61
|
};
|
|
59
62
|
ReplaceOneController = __decorate([
|
|
@@ -62,7 +65,9 @@ function createReplaceOneController(entity, displayedName, { useInterceptors = [
|
|
|
62
65
|
(0, decorators_1.ValidatorPipe)(validationPipeOptions),
|
|
63
66
|
(0, common_1.UseInterceptors)(common_1.ClassSerializerInterceptor, ...useInterceptors),
|
|
64
67
|
__param(0, (0, common_1.Inject)((0, helpers_1.provideName)('ReplaceOne', displayedName, version, 'Service'))),
|
|
65
|
-
|
|
68
|
+
__param(1, (0, common_1.Optional)()),
|
|
69
|
+
__param(1, (0, common_1.Inject)(services_1.DynamicApiBroadcastService)),
|
|
70
|
+
__metadata("design:paramtypes", [Object, services_1.DynamicApiBroadcastService])
|
|
66
71
|
], ReplaceOneController);
|
|
67
72
|
Object.defineProperty(ReplaceOneController, 'name', {
|
|
68
73
|
value: `${(0, helpers_1.provideName)('ReplaceOne', displayedName, version, 'Controller')}`,
|
|
@@ -70,7 +75,6 @@ function createReplaceOneController(entity, displayedName, { useInterceptors = [
|
|
|
70
75
|
});
|
|
71
76
|
return ReplaceOneController;
|
|
72
77
|
}
|
|
73
|
-
exports.createReplaceOneController = createReplaceOneController;
|
|
74
78
|
function createReplaceOneGateway(entity, displayedName, { useInterceptors = [], ...controllerOptions }, routeConfig, version, validationPipeOptions, gatewayOptions = {}) {
|
|
75
79
|
let ReplaceOneGateway = class ReplaceOneGateway extends (0, replace_one_gateway_mixin_1.ReplaceOneGatewayMixin)(entity, controllerOptions, routeConfig, version) {
|
|
76
80
|
constructor(service, jwtService) {
|
|
@@ -92,5 +96,4 @@ function createReplaceOneGateway(entity, displayedName, { useInterceptors = [],
|
|
|
92
96
|
});
|
|
93
97
|
return ReplaceOneGateway;
|
|
94
98
|
}
|
|
95
|
-
exports.createReplaceOneGateway = createReplaceOneGateway;
|
|
96
99
|
//# sourceMappingURL=replace-one.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-one.helper.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/replace-one/replace-one.helper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replace-one.helper.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/replace-one/replace-one.helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AA0IS,gEAA0B;AAAE,0DAAuB;AAAE,0EAA+B;AA1I7F,2CAQwB;AACxB,qCAAyC;AACzC,+CAA+C;AAC/C,6CAA0C;AAC1C,mDAAsD;AACtD,uCAAiC;AACjC,iDAAiD;AACjD,iEAA4D;AAC5D,2CAA4C;AAS5C,6CAA4D;AAC5D,yEAAmE;AAEnE,iFAA2E;AAE3E,2EAAqE;AAGrE,SAAS,+BAA+B,CACtC,MAAoB,EACpB,aAAqB,EACrB,OAA2B,EAC3B,QAAuD;IAEvD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,gDAA6B;QAI3D,YAKE,KAAuC;YAEvC,KAAK,CAAC,KAAK,CAAC,CAAC;YAFM,UAAK,GAAL,KAAK,CAAe;YARtB,WAAM,GAAG,MAAM,CAAC;YAChB,aAAQ,GAAG,QAAQ,CAAC;QAUvC,CAAC;KACF,CAAA;IAbK,iBAAiB;QAKlB,WAAA,IAAA,sBAAW,EACV,MAAM,CAAC,IAAI,EACX,qCAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAC7C,CAAA;yCACyB,gBAAK;OAT7B,iBAAiB,CAatB;IAED,MAAM,CAAC,cAAc,CAAC,iBAAiB,EAAE,MAAM,EAAE;QAC/C,KAAK,EAAE,IAAA,qBAAW,EAAC,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC;QACnE,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,IAAA,qBAAW,EAAC,YAAY,EAAE,aAA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AQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAED,SAAS,uBAAuB,CAC9B,MAAoB,EACpB,aAAqB,EACrB,EAAE,eAAe,GAAG,EAAE,EAAE,GAAG,iBAAiB,EAAuC,EACnF,WAA0C,EAC1C,OAAgB,EAChB,qBAA6C,EAC7C,iBAAiC,EAAE;IAEnC,IAGM,iBAAiB,GAHvB,MAGM,iBAAkB,SAAQ,IAAA,kDAAsB,EACpD,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR;QACC,YAEqB,OAAkC,EAClC,UAAsB;YAEzC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;YAHR,YAAO,GAAP,OAAO,CAA2B;YAClC,eAAU,GAAV,UAAU,CAAY;QAG3C,CAAC;KACF,CAAA;IAbK,iBAAiB;QAHtB,IAAA,6BAAgB,EAAC,cAAc,CAAC;QAChC,IAAA,0BAAa,EAAC,qBAAqB,CAAC;QACpC,IAAA,wBAAe,EAAC,mCAA0B,EAAE,GAAG,eAAe,CAAC;QAQ3D,WAAA,IAAA,eAAM,EAAC,IAAA,qBAAW,EAAC,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;iDAE1C,gBAAU;OATvC,iBAAiB,CAatB;IAED,MAAM,CAAC,cAAc,CAAC,iBAAiB,EAAE,MAAM,EAAE;QAC/C,KAAK,EAAE,GAAG,IAAA,qBAAW,EAAC,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE;QAC5E,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -11,21 +11,24 @@ exports.ReplaceOneModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const dynamic_api_module_1 = require("../../dynamic-api.module");
|
|
13
13
|
const helpers_1 = require("../../helpers");
|
|
14
|
+
const services_1 = require("../../services");
|
|
14
15
|
const replace_one_helper_1 = require("./replace-one.helper");
|
|
15
16
|
let ReplaceOneModule = ReplaceOneModule_1 = class ReplaceOneModule {
|
|
16
17
|
static forFeature(databaseModule, entity, controllerOptions, routeConfig, version, validationPipeOptions, webSocket, extraImports, extraProviders, extraControllers) {
|
|
17
18
|
const displayedName = (0, helpers_1.getDisplayedName)(controllerOptions.apiTag, entity.name, routeConfig.subPath);
|
|
18
19
|
const controller = (0, replace_one_helper_1.createReplaceOneController)(entity, displayedName, controllerOptions, routeConfig, version, validationPipeOptions);
|
|
19
20
|
const ServiceProvider = (0, replace_one_helper_1.createReplaceOneServiceProvider)(entity, displayedName, version, routeConfig.callback);
|
|
21
|
+
const hasBroadcast = !!routeConfig.broadcast;
|
|
20
22
|
const gatewayOptions = webSocket
|
|
21
23
|
? (0, helpers_1.initializeConfigFromOptions)(webSocket)
|
|
22
|
-
: dynamic_api_module_1.DynamicApiModule.state.get('gatewayOptions');
|
|
24
|
+
: dynamic_api_module_1.DynamicApiModule.state.get('gatewayOptions') ?? null;
|
|
23
25
|
return {
|
|
24
26
|
module: ReplaceOneModule_1,
|
|
25
27
|
imports: [databaseModule, ...(extraImports || [])],
|
|
26
28
|
controllers: [controller, ...(extraControllers || [])],
|
|
27
29
|
providers: [
|
|
28
30
|
ServiceProvider,
|
|
31
|
+
...(hasBroadcast ? [services_1.DynamicApiBroadcastService] : []),
|
|
29
32
|
...(gatewayOptions ? [
|
|
30
33
|
(0, replace_one_helper_1.createReplaceOneGateway)(entity, displayedName, controllerOptions, routeConfig, version, validationPipeOptions, gatewayOptions)
|
|
31
34
|
] : []),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-one.module.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/replace-one/replace-one.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoG;AAEpG,iEAA4D;AAC5D,2CAA8E;AAG9E,6DAI8B;AAGvB,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAC3B,MAAM,CAAC,UAAU,CACf,cAA6B,EAC7B,MAAoB,EACpB,iBAAsD,EACtD,WAA0C,EAC1C,OAAgB,EAChB,qBAA6C,EAC7C,SAAsC,EACtC,YAAwC,EACxC,cAA4C,EAC5C,gBAAgD;QAEhD,MAAM,aAAa,GAAG,IAAA,0BAAgB,EAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAEnG,MAAM,UAAU,GAAG,IAAA,+CAA0B,EAC3C,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,qBAAqB,CACtB,CAAC;QACF,MAAM,eAAe,GAAG,IAAA,oDAA+B,EAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;QAE9G,MAAM,cAAc,GAAG,SAAS;YAC9B,CAAC,CAAC,IAAA,qCAA2B,EAAC,SAAS,CAAC;YACxC,CAAC,CAAC,qCAAgB,CAAC,KAAK,CAAC,GAAG,CAAkB,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"replace-one.module.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/replace-one/replace-one.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoG;AAEpG,iEAA4D;AAC5D,2CAA8E;AAG9E,6CAA4D;AAC5D,6DAI8B;AAGvB,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAC3B,MAAM,CAAC,UAAU,CACf,cAA6B,EAC7B,MAAoB,EACpB,iBAAsD,EACtD,WAA0C,EAC1C,OAAgB,EAChB,qBAA6C,EAC7C,SAAsC,EACtC,YAAwC,EACxC,cAA4C,EAC5C,gBAAgD;QAEhD,MAAM,aAAa,GAAG,IAAA,0BAAgB,EAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,C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1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
1
|
import { Model } from 'mongoose';
|
|
27
2
|
import { DynamicApiServiceCallback } from '../../interfaces';
|
|
28
3
|
import { BaseEntity } from '../../models';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseEntity } from '../../models';
|
|
2
|
+
import { DynamicApiBroadcastService } from '../../services';
|
|
2
3
|
import { UpdateManyService } from './update-many-service.interface';
|
|
3
4
|
interface UpdateManyController<Entity extends BaseEntity, Body = any, Response = any> {
|
|
4
5
|
updateMany(ids: string[], partial: Body): Promise<(Entity | Response)[]>;
|
|
5
6
|
}
|
|
6
|
-
type UpdateManyControllerConstructor<Entity extends BaseEntity> = new (service: UpdateManyService<Entity
|
|
7
|
+
type UpdateManyControllerConstructor<Entity extends BaseEntity> = new (service: UpdateManyService<Entity>, broadcastService?: DynamicApiBroadcastService) => UpdateManyController<Entity>;
|
|
7
8
|
export type { UpdateManyController, UpdateManyControllerConstructor };
|
|
@@ -2,5 +2,5 @@ import { Type } from '@nestjs/common';
|
|
|
2
2
|
import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces';
|
|
3
3
|
import { BaseEntity } from '../../models';
|
|
4
4
|
import { UpdateManyControllerConstructor } from './update-many-controller.interface';
|
|
5
|
-
declare function UpdateManyControllerMixin<Entity extends BaseEntity>(entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, { dTOs, useInterceptors, ...routeConfig }: DynamicAPIRouteConfig<Entity>, version?: string): UpdateManyControllerConstructor<Entity>;
|
|
5
|
+
declare function UpdateManyControllerMixin<Entity extends BaseEntity>(entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, { dTOs, useInterceptors, broadcast: broadcastConfig, ...routeConfig }: DynamicAPIRouteConfig<Entity>, version?: string): UpdateManyControllerConstructor<Entity>;
|
|
6
6
|
export { UpdateManyControllerMixin };
|
|
@@ -12,14 +12,15 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.UpdateManyControllerMixin =
|
|
15
|
+
exports.UpdateManyControllerMixin = UpdateManyControllerMixin;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const lodash_1 = require("lodash");
|
|
18
18
|
const builders_1 = require("../../builders");
|
|
19
19
|
const helpers_1 = require("../../helpers");
|
|
20
20
|
const mixins_1 = require("../../mixins");
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const services_1 = require("../../services");
|
|
22
|
+
function UpdateManyControllerMixin(entity, controllerOptions, { dTOs, useInterceptors = [], broadcast: broadcastConfig, ...routeConfig }, version) {
|
|
23
|
+
const { routeType, displayedName, description, isPublic, abilityPredicate, event, } = (0, helpers_1.getMixinData)(entity, controllerOptions, routeConfig);
|
|
23
24
|
class UpdateManyBody extends (dTOs?.body ?? (0, mixins_1.EntityBodyMixin)(entity, true)) {
|
|
24
25
|
}
|
|
25
26
|
Object.defineProperty(UpdateManyBody, 'name', {
|
|
@@ -40,9 +41,10 @@ function UpdateManyControllerMixin(entity, controllerOptions, { dTOs, useInterce
|
|
|
40
41
|
});
|
|
41
42
|
class UpdateManyPoliciesGuard extends (0, mixins_1.RoutePoliciesGuardMixin)(entity, routeType, displayedName, version, abilityPredicate) {
|
|
42
43
|
}
|
|
43
|
-
class BaseUpdateManyController {
|
|
44
|
-
constructor(service) {
|
|
44
|
+
let BaseUpdateManyController = class BaseUpdateManyController {
|
|
45
|
+
constructor(service, broadcastService) {
|
|
45
46
|
this.service = service;
|
|
47
|
+
this.broadcastService = broadcastService;
|
|
46
48
|
this.entity = entity;
|
|
47
49
|
}
|
|
48
50
|
async updateMany(ids, body) {
|
|
@@ -55,9 +57,11 @@ function UpdateManyControllerMixin(entity, controllerOptions, { dTOs, useInterce
|
|
|
55
57
|
const toEntity = UpdateManyBody.toEntity;
|
|
56
58
|
const list = await this.service.updateMany(ids, toEntity ? toEntity(body) : body);
|
|
57
59
|
const fromEntities = UpdateManyPresenter.fromEntities;
|
|
58
|
-
|
|
60
|
+
const responseData = fromEntities ? fromEntities(list) : list;
|
|
61
|
+
this.broadcastService?.broadcastFromHttp(event, responseData, broadcastConfig);
|
|
62
|
+
return responseData;
|
|
59
63
|
}
|
|
60
|
-
}
|
|
64
|
+
};
|
|
61
65
|
__decorate([
|
|
62
66
|
(0, helpers_1.RouteDecoratorsHelper)(routeDecoratorsBuilder),
|
|
63
67
|
(0, common_1.UseGuards)(UpdateManyPoliciesGuard),
|
|
@@ -68,11 +72,14 @@ function UpdateManyControllerMixin(entity, controllerOptions, { dTOs, useInterce
|
|
|
68
72
|
__metadata("design:paramtypes", [Array, UpdateManyBody]),
|
|
69
73
|
__metadata("design:returntype", Promise)
|
|
70
74
|
], BaseUpdateManyController.prototype, "updateMany", null);
|
|
75
|
+
BaseUpdateManyController = __decorate([
|
|
76
|
+
__param(1, (0, common_1.Optional)()),
|
|
77
|
+
__metadata("design:paramtypes", [Object, services_1.DynamicApiBroadcastService])
|
|
78
|
+
], BaseUpdateManyController);
|
|
71
79
|
Object.defineProperty(BaseUpdateManyController, 'name', {
|
|
72
80
|
value: `Base${(0, helpers_1.provideName)('UpdateMany', displayedName, version, 'Controller')}`,
|
|
73
81
|
writable: false,
|
|
74
82
|
});
|
|
75
83
|
return BaseUpdateManyController;
|
|
76
84
|
}
|
|
77
|
-
exports.UpdateManyControllerMixin = UpdateManyControllerMixin;
|
|
78
85
|
//# sourceMappingURL=update-many-controller.mixin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-many-controller.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/update-many/update-many-controller.mixin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-many-controller.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/update-many/update-many-controller.mixin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAqHS,8DAAyB;AArHlC,2CAAyF;AACzF,mCAAiC;AACjC,6CAAwD;AACxD,2CAAmG;AAEnG,yCAA8F;AAE9F,6CAA4D;AAI5D,SAAS,yBAAyB,CAChC,MAAoB,EACpB,iBAAsD,EACtD,EAAE,IAAI,EAAE,eAAe,GAAG,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,WAAW,EAAiC,EACzG,OAAgB;IAEhB,MAAM,EACJ,SAAS,EACT,aAAa,EACb,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB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IAAA,qBAAW,EAAC,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE;QAC/E,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,OAAO,wBAAwB,CAAC;AAClC,CAAC"}
|
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.UpdateManyGatewayMixin =
|
|
15
|
+
exports.UpdateManyGatewayMixin = UpdateManyGatewayMixin;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const websockets_1 = require("@nestjs/websockets");
|
|
18
18
|
const lodash_1 = require("lodash");
|
|
@@ -82,5 +82,4 @@ function UpdateManyGatewayMixin(entity, controllerOptions, { dTOs, useIntercepto
|
|
|
82
82
|
});
|
|
83
83
|
return BaseUpdateManyGateway;
|
|
84
84
|
}
|
|
85
|
-
exports.UpdateManyGatewayMixin = UpdateManyGatewayMixin;
|
|
86
85
|
//# sourceMappingURL=update-many-gateway.mixin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-many-gateway.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/update-many/update-many-gateway.mixin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-many-gateway.mixin.js","sourceRoot":"","sources":["../../../../libs/dynamic-api/src/routes/update-many/update-many-gateway.mixin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAwHS,wDAAsB;AAxH/B,2CAA8E;AAE9E,mDAAiG;AACjG,mCAAiC;AAEjC,2CAA4D;AAC5D,6CAA6C;AAC7C,yCAA8C;AAC9C,2CAA4E;AAE5E,yCAA+F;AAK/F,SAAS,sBAAsB,CAC7B,MAAoB,EACpB,iBAAsD,EACtD,EAAE,IAAI,EAAE,eAAe,GAAG,EAAE,EA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