@ubs-platform/users-mona-microservice-helper 3.0.10-beta → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/backend-jwt-utils.module.js +1 -7
- package/dist/lib/backend-jwt-utils.module.js.map +1 -1
- package/dist/lib/service/entity-ownership.service.d.ts +3 -1
- package/dist/lib/service/entity-ownership.service.js +8 -0
- package/dist/lib/service/entity-ownership.service.js.map +1 -1
- package/package.json +1 -1
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
5
5
|
const common_1 = require("@nestjs/common");
|
6
6
|
const microservices_1 = require("@nestjs/microservices");
|
7
7
|
const backend_jwt_utils_exports_module_1 = require("./backend-jwt-utils-exports.module");
|
8
|
-
const communication_handler_1 = require("./guards/communication-handler");
|
9
8
|
const jwt_strategy_1 = require("./strategies/jwt.strategy");
|
10
9
|
const user_service_1 = require("./service/user.service");
|
11
10
|
const nest_microservice_setup_util_1 = require("@ubs-platform/nest-microservice-setup-util");
|
@@ -21,12 +20,7 @@ exports.BackendJwtUtilsModule = BackendJwtUtilsModule;
|
|
21
20
|
exports.BackendJwtUtilsModule = BackendJwtUtilsModule = tslib_1.__decorate([
|
22
21
|
(0, common_1.Module)({
|
23
22
|
controllers: [],
|
24
|
-
providers: [
|
25
|
-
communication_handler_1.CommunicationHelper,
|
26
|
-
jwt_strategy_1.JwtStrategy,
|
27
|
-
user_service_1.UserService,
|
28
|
-
entity_ownership_service_1.EntityOwnershipService,
|
29
|
-
],
|
23
|
+
providers: [jwt_strategy_1.JwtStrategy, user_service_1.UserService, entity_ownership_service_1.EntityOwnershipService],
|
30
24
|
exports: [user_service_1.UserService, entity_ownership_service_1.EntityOwnershipService],
|
31
25
|
imports: [
|
32
26
|
...backend_jwt_utils_exports_module_1.BackendJwtUtilsExportModule,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"backend-jwt-utils.module.js","sourceRoot":"","sources":["../../src/lib/backend-jwt-utils.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,yDAAiE;AACjE,yFAAiF;AACjF,
|
1
|
+
{"version":3,"file":"backend-jwt-utils.module.js","sourceRoot":"","sources":["../../src/lib/backend-jwt-utils.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,yDAAiE;AACjE,yFAAiF;AACjF,4DAAwD;AACxD,yDAAqD;AACrD,6FAAuF;AACvF,iFAA4E;AAC5E,2DAA2D;AAC9C,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,GAAG,CAAC;IACpE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;CACpD,CAAC;AAyBK,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IAvBjC,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,CAAC,0BAAW,EAAE,0BAAW,EAAE,iDAAsB,CAAC;QAC7D,OAAO,EAAE,CAAC,0BAAW,EAAE,iDAAsB,CAAC;QAC9C,OAAO,EAAE;YACP,GAAG,8DAA2B;YAE9B,6BAAa,CAAC,QAAQ,CAAC;gBACrB,gBACE,IAAI,EAAE,cAAc,IACjB,IAAA,wDAAyB,EAAC,EAAE,CAAC,CAC1B;gBACR;oBACE,IAAI,EAAE,mBAAmB;oBACzB,SAAS,EAAE,yBAAS,CAAC,GAAG;oBACxB,OAAO,EAAE;wBACP,IAAI,EAAE,8BAAsB,CAAC,IAAI;wBACjC,IAAI,EAAE,8BAAsB,CAAC,IAAI;qBAClC;iBACF;aACF,CAAC;SACH;KACF,CAAC;GACW,qBAAqB,CAAG"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OnModuleInit } from '@nestjs/common';
|
2
2
|
import { ClientProxy, ClientKafka, ClientRMQ } from '@nestjs/microservices';
|
3
|
-
import { EntityOwnershipDTO, EntityOwnershipInsertCapabiltyDTO, EntityOwnershipUserCheck, UserCapabilityDTO } from '@ubs-platform/users-common';
|
3
|
+
import { EntityOwnershipDTO, EntityOwnershipInsertCapabiltyDTO, EntityOwnershipSearch, EntityOwnershipUserCheck, UserCapabilityDTO } from '@ubs-platform/users-common';
|
4
4
|
import { Observable } from 'rxjs';
|
5
5
|
export declare class EntityOwnershipService implements OnModuleInit {
|
6
6
|
private userClient;
|
@@ -10,4 +10,6 @@ export declare class EntityOwnershipService implements OnModuleInit {
|
|
10
10
|
insertOwnership(oe: EntityOwnershipDTO): Promise<void>;
|
11
11
|
insertUserCapability(oe: EntityOwnershipInsertCapabiltyDTO): Promise<void>;
|
12
12
|
hasOwnership(eo: EntityOwnershipUserCheck): Observable<UserCapabilityDTO>;
|
13
|
+
searchOwnership(eo: EntityOwnershipSearch): Observable<EntityOwnershipDTO[]>;
|
14
|
+
deleteOwnership(oe: EntityOwnershipSearch): Promise<void>;
|
13
15
|
}
|
@@ -24,6 +24,14 @@ let EntityOwnershipService = class EntityOwnershipService {
|
|
24
24
|
hasOwnership(eo) {
|
25
25
|
return this.userClient.send('check-ownership', eo);
|
26
26
|
}
|
27
|
+
searchOwnership(eo) {
|
28
|
+
return this.userClient.send('search-ownership', eo);
|
29
|
+
}
|
30
|
+
deleteOwnership(oe) {
|
31
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
32
|
+
this.kafkaClient.emit('delete-ownership', oe);
|
33
|
+
});
|
34
|
+
}
|
27
35
|
};
|
28
36
|
exports.EntityOwnershipService = EntityOwnershipService;
|
29
37
|
exports.EntityOwnershipService = EntityOwnershipService = tslib_1.__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entity-ownership.service.js","sourceRoot":"","sources":["../../../src/lib/service/entity-ownership.service.ts"],"names":[],"mappings":";;;;AAAA,2CAAkE;
|
1
|
+
{"version":3,"file":"entity-ownership.service.js","sourceRoot":"","sources":["../../../src/lib/service/entity-ownership.service.ts"],"names":[],"mappings":";;;;AAAA,2CAAkE;AAY3D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAEU,UAAiD,EAEjD,WAAkD;QAFlD,eAAU,GAAV,UAAU,CAAuC;QAEjD,gBAAW,GAAX,WAAW,CAAuC;IACzD,CAAC;IAEJ,YAAY;QACV,0EAA0E;IAC5E,CAAC;IAEK,eAAe,CAAC,EAAsB;;YAC1C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QAChD,CAAC;KAAA;IAEK,oBAAoB,CAAC,EAAqC;;YAC9D,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;QACtD,CAAC;KAAA;IAED,YAAY,CAAC,EAA4B;QACvC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,eAAe,CAAC,EAAyB;QACvC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAEK,eAAe,CAAC,EAAyB;;YAC7C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QAChD,CAAC;KAAA;CAUF,CAAA;AAxCY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGR,mBAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAE3B,mBAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;;GAJd,sBAAsB,CAwClC"}
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{ "name": "@ubs-platform/users-mona-microservice-helper", "version": "3.0
|
1
|
+
{ "name": "@ubs-platform/users-mona-microservice-helper", "version": "3.1.0", "private": false, "main": "dist/index.js", "license": "MIT", "author": "Unlimited Bundle Systems", "homepage": "https://github.com/ubs-platform/users-mona-microservice-helper", "repository": { "type": "git", "url": "https://github.com/ubs-platform/users-mona-microservice-helper" }, "scripts": { "build": "tsc", "build-publish": "npm run build && npm publish" }, "peerDependencies": { "@nestjs/common": "^10.0.2", "@nestjs/core": "^10.0.2", "@nestjs/jwt": "^10.2.0", "@nestjs/microservices": "^10.3.3", "@nestjs/mongoose": "^10.0.4", "@nestjs/passport": "^10.0.3", "@nestjs/platform-express": "^10.0.2", "@ubs-platform/nest-microservice-setup-util": "3.1.0", "@ubs-platform/users-common": "3.1.0", "@ubs-platform/users-mona-roles": "3.1.0", "passport-jwt": "^4.0.1", "rxjs": "^7.8.0" }, "dependencies": { "tslib": "^2.3.0", "crypto-promise": "^2.1.0" }, "devDependencies": { "typescript": "~5.3.2", "@types/node": "~18.16.9" }, "publishConfig": { "access": "public" } }
|