@ubs-platform/users-mona-microservice-helper 3.0.8-beta → 3.0.9-beta
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.
@@ -1,11 +1,12 @@
|
|
1
1
|
import { OnModuleInit } from '@nestjs/common';
|
2
2
|
import { ClientProxy, ClientKafka, ClientRMQ } from '@nestjs/microservices';
|
3
|
-
import { EntityOwnershipDTO, EntityOwnershipInsertCapabiltyDTO, EntityOwnershipUserCheck } from '@ubs-platform/users-common';
|
3
|
+
import { EntityOwnershipDTO, EntityOwnershipInsertCapabiltyDTO, EntityOwnershipUserCheck, UserCapabilityDTO } from '@ubs-platform/users-common';
|
4
|
+
import { Observable } from 'rxjs';
|
4
5
|
export declare class EntityOwnershipService implements OnModuleInit {
|
5
6
|
private userClient;
|
6
7
|
constructor(userClient: ClientProxy | ClientKafka | ClientRMQ);
|
7
8
|
onModuleInit(): void;
|
8
9
|
insertOwnership(oe: EntityOwnershipDTO): Promise<void>;
|
9
10
|
insertUserCapability(oe: EntityOwnershipInsertCapabiltyDTO): Promise<void>;
|
10
|
-
hasOwnership(eo: EntityOwnershipUserCheck):
|
11
|
+
hasOwnership(eo: EntityOwnershipUserCheck): Observable<UserCapabilityDTO>;
|
11
12
|
}
|
@@ -21,9 +21,7 @@ let EntityOwnershipService = class EntityOwnershipService {
|
|
21
21
|
});
|
22
22
|
}
|
23
23
|
hasOwnership(eo) {
|
24
|
-
return
|
25
|
-
return yield this.userClient.emit('check-ownership', eo);
|
26
|
-
});
|
24
|
+
return this.userClient.send('check-ownership', eo);
|
27
25
|
}
|
28
26
|
};
|
29
27
|
exports.EntityOwnershipService = EntityOwnershipService;
|
@@ -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;AAW3D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAEU,UAAiD;QAAjD,eAAU,GAAV,UAAU,CAAuC;IACxD,CAAC;IAEJ,YAAY;QACV,0EAA0E;IAC5E,CAAC;IAEK,eAAe,CAAC,EAAsB;;YAC1C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QAC/C,CAAC;KAAA;IAEK,oBAAoB,CAAC,EAAqC;;YAC9D,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;QACrD,CAAC;KAAA;IAED,YAAY,CAAC,EAA4B;QACvC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;CAUF,CAAA;AA9BY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGR,mBAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;;GAFnB,sBAAsB,CA8BlC"}
|
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.0.9-beta", "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 --tag beta" }, "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.0.9-beta", "@ubs-platform/users-common": "3.0.9-beta", "@ubs-platform/users-mona-roles": "3.0.9-beta", "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" } }
|