@servicelabsco/slabs-access-manager 0.1.40 → 0.1.42

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.
Files changed (43) hide show
  1. package/dist/accessUtility/dtos/index.d.ts +0 -1
  2. package/dist/accessUtility/dtos/index.js +0 -1
  3. package/dist/accessUtility/dtos/index.js.map +1 -1
  4. package/dist/accessUtility/entities/bulk.definition.entity.d.ts +1 -0
  5. package/dist/accessUtility/entities/bulk.definition.entity.js +4 -0
  6. package/dist/accessUtility/entities/bulk.definition.entity.js.map +1 -1
  7. package/dist/accessUtility/entities/index.d.ts +0 -1
  8. package/dist/accessUtility/entities/index.js +0 -1
  9. package/dist/accessUtility/entities/index.js.map +1 -1
  10. package/dist/accessUtility/es6.classes.d.ts +3 -6
  11. package/dist/accessUtility/es6.classes.js +0 -8
  12. package/dist/accessUtility/es6.classes.js.map +1 -1
  13. package/dist/accessUtility/jobs/index.d.ts +0 -1
  14. package/dist/accessUtility/jobs/index.js +0 -1
  15. package/dist/accessUtility/jobs/index.js.map +1 -1
  16. package/dist/accessUtility/services/es6.jobs.service.d.ts +1 -3
  17. package/dist/accessUtility/services/es6.jobs.service.js +1 -5
  18. package/dist/accessUtility/services/es6.jobs.service.js.map +1 -1
  19. package/dist/accessUtility/subscribers/index.d.ts +0 -1
  20. package/dist/accessUtility/subscribers/index.js +0 -1
  21. package/dist/accessUtility/subscribers/index.js.map +1 -1
  22. package/dist/config/entity.constants.d.ts +0 -2
  23. package/dist/config/entity.constants.js +0 -2
  24. package/dist/config/entity.constants.js.map +1 -1
  25. package/dist/migrations/{1700909399980-CreateDataMappingTable.d.ts → 1708781656587-AddIdentifierUtlBulkDefinitionsTable.ts.d.ts} +1 -1
  26. package/dist/migrations/1708781656587-AddIdentifierUtlBulkDefinitionsTable.ts.js +15 -0
  27. package/dist/migrations/1708781656587-AddIdentifierUtlBulkDefinitionsTable.ts.js.map +1 -0
  28. package/dist/tsconfig.build.tsbuildinfo +1 -1
  29. package/package.json +1 -1
  30. package/dist/accessUtility/dtos/data.mapping.attributes.dto.d.ts +0 -3
  31. package/dist/accessUtility/dtos/data.mapping.attributes.dto.js +0 -8
  32. package/dist/accessUtility/dtos/data.mapping.attributes.dto.js.map +0 -1
  33. package/dist/accessUtility/entities/data.mapping.entity.d.ts +0 -12
  34. package/dist/accessUtility/entities/data.mapping.entity.js +0 -52
  35. package/dist/accessUtility/entities/data.mapping.entity.js.map +0 -1
  36. package/dist/accessUtility/jobs/data.mapping.job.d.ts +0 -7
  37. package/dist/accessUtility/jobs/data.mapping.job.js +0 -29
  38. package/dist/accessUtility/jobs/data.mapping.job.js.map +0 -1
  39. package/dist/accessUtility/subscribers/data.mapping.subscriber.d.ts +0 -12
  40. package/dist/accessUtility/subscribers/data.mapping.subscriber.js +0 -40
  41. package/dist/accessUtility/subscribers/data.mapping.subscriber.js.map +0 -1
  42. package/dist/migrations/1700909399980-CreateDataMappingTable.js +0 -22
  43. package/dist/migrations/1700909399980-CreateDataMappingTable.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/slabs-access-manager",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "description": "Support for application level menus and dashboards",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",
@@ -1,3 +0,0 @@
1
- import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
- export declare class DataMappingAttributesDto extends CommonAttributesDto {
3
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataMappingAttributesDto = void 0;
4
- const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
- class DataMappingAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
- }
7
- exports.DataMappingAttributesDto = DataMappingAttributesDto;
8
- //# sourceMappingURL=data.mapping.attributes.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.mapping.attributes.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/data.mapping.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,wBAAyB,SAAQ,6CAAmB;CAAG;AAApE,4DAAoE"}
@@ -1,12 +0,0 @@
1
- import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
- import { AccessBusinessEntity } from '../../access/entities/access.business.entity';
3
- import { DataMappingAttributesDto } from '../dtos/data.mapping.attributes.dto';
4
- export declare class DataMappingEntity extends CommonEntity {
5
- business_id: number;
6
- source_type: string;
7
- source_id: number;
8
- key: string;
9
- value: string;
10
- attributes: DataMappingAttributesDto;
11
- business: AccessBusinessEntity;
12
- }
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DataMappingEntity = void 0;
13
- const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
- const typeorm_1 = require("typeorm");
15
- const access_business_entity_1 = require("../../access/entities/access.business.entity");
16
- const data_mapping_attributes_dto_1 = require("../dtos/data.mapping.attributes.dto");
17
- let DataMappingEntity = class DataMappingEntity extends nestjs_utility_services_1.CommonEntity {
18
- };
19
- exports.DataMappingEntity = DataMappingEntity;
20
- __decorate([
21
- (0, typeorm_1.Column)(),
22
- __metadata("design:type", Number)
23
- ], DataMappingEntity.prototype, "business_id", void 0);
24
- __decorate([
25
- (0, typeorm_1.Column)(),
26
- __metadata("design:type", String)
27
- ], DataMappingEntity.prototype, "source_type", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)(),
30
- __metadata("design:type", Number)
31
- ], DataMappingEntity.prototype, "source_id", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)(),
34
- __metadata("design:type", String)
35
- ], DataMappingEntity.prototype, "key", void 0);
36
- __decorate([
37
- (0, typeorm_1.Column)(),
38
- __metadata("design:type", String)
39
- ], DataMappingEntity.prototype, "value", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)('json'),
42
- __metadata("design:type", data_mapping_attributes_dto_1.DataMappingAttributesDto)
43
- ], DataMappingEntity.prototype, "attributes", void 0);
44
- __decorate([
45
- (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
46
- (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
47
- __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
48
- ], DataMappingEntity.prototype, "business", void 0);
49
- exports.DataMappingEntity = DataMappingEntity = __decorate([
50
- (0, typeorm_1.Entity)('utl_data_mappings')
51
- ], DataMappingEntity);
52
- //# sourceMappingURL=data.mapping.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.mapping.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/data.mapping.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAgE;AAChE,yFAAoF;AACpF,qFAA+E;AASxE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,sCAAY;CAqBlD,CAAA;AArBY,8CAAiB;AAE1B;IADC,IAAA,gBAAM,GAAE;;sDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;sDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;oDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;8CACG;AAGZ;IADC,IAAA,gBAAM,GAAE;;gDACK;AAGd;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,sDAAwB;qDAAC;AAGuC;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;mDAAC;4BApBlG,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,iBAAiB,CAqB7B"}
@@ -1,7 +0,0 @@
1
- import { CommonJob, DatabaseEventDto, QueueService } from '@servicelabsco/nestjs-utility-services';
2
- import { DataMappingEntity } from '../entities/data.mapping.entity';
3
- export declare class DataMappingJob extends CommonJob {
4
- protected readonly queueService: QueueService;
5
- constructor(queueService: QueueService);
6
- handle(evt: DatabaseEventDto<DataMappingEntity>): Promise<DataMappingEntity>;
7
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DataMappingJob = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
- let DataMappingJob = class DataMappingJob extends nestjs_utility_services_1.CommonJob {
16
- constructor(queueService) {
17
- super('518c9259f8a996051ef1a8dcdd5b5498');
18
- this.queueService = queueService;
19
- }
20
- async handle(evt) {
21
- return evt.entity;
22
- }
23
- };
24
- exports.DataMappingJob = DataMappingJob;
25
- exports.DataMappingJob = DataMappingJob = __decorate([
26
- (0, common_1.Injectable)(),
27
- __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
28
- ], DataMappingJob);
29
- //# sourceMappingURL=data.mapping.job.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.mapping.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/data.mapping.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmG;AAG5F,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,mCAAS;IACzC,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAwC;QACjD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,cAAc,CAO1B"}
@@ -1,12 +0,0 @@
1
- import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
- import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
3
- import { DataMappingEntity } from '../entities/data.mapping.entity';
4
- import { DataMappingJob } from '../jobs/data.mapping.job';
5
- export declare class DataMappingSubscriber extends CommonSubscriber<DataMappingEntity> {
6
- private readonly dataSource;
7
- private readonly dataMappingJob;
8
- constructor(dataSource: DataSource, dataMappingJob: DataMappingJob);
9
- listenTo(): typeof DataMappingEntity;
10
- afterInsert(evt: InsertEvent<DataMappingEntity>): Promise<void>;
11
- afterUpdate(evt: UpdateEvent<DataMappingEntity>): Promise<void>;
12
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DataMappingSubscriber = void 0;
13
- const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
- const typeorm_1 = require("typeorm");
15
- const data_mapping_entity_1 = require("../entities/data.mapping.entity");
16
- const data_mapping_job_1 = require("../jobs/data.mapping.job");
17
- let DataMappingSubscriber = class DataMappingSubscriber extends nestjs_utility_services_1.CommonSubscriber {
18
- constructor(dataSource, dataMappingJob) {
19
- super();
20
- this.dataSource = dataSource;
21
- this.dataMappingJob = dataMappingJob;
22
- dataSource.subscribers.push(this);
23
- }
24
- listenTo() {
25
- return data_mapping_entity_1.DataMappingEntity;
26
- }
27
- async afterInsert(evt) {
28
- await this.dataMappingJob.delayedDispatch(this.getEventData(evt));
29
- }
30
- async afterUpdate(evt) {
31
- await this.dataMappingJob.delayedDispatch(this.getEventData(evt));
32
- }
33
- };
34
- exports.DataMappingSubscriber = DataMappingSubscriber;
35
- exports.DataMappingSubscriber = DataMappingSubscriber = __decorate([
36
- (0, typeorm_1.EventSubscriber)(),
37
- __metadata("design:paramtypes", [typeorm_1.DataSource,
38
- data_mapping_job_1.DataMappingJob])
39
- ], DataMappingSubscriber);
40
- //# sourceMappingURL=data.mapping.subscriber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.mapping.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/data.mapping.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,yEAAoE;AACpE,+DAA0D;AAGnD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,0CAAmC;IAC1E,YACqB,UAAsB,EACtB,cAA8B;QAE/C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,mBAAc,GAAd,cAAc,CAAgB;QAG/C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,uCAAiB,CAAC;IAC7B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAmC;QACjD,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAmC;QACjD,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACtE,CAAC;CACJ,CAAA;AAlBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACN,iCAAc;GAH1C,qBAAqB,CAkBjC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateDataMappingTable1700909399980 = void 0;
4
- const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
- class CreateDataMappingTable1700909399980 extends nestjs_utility_services_1.MigrationUtility {
6
- constructor() {
7
- super('utl_data_mappings');
8
- this.process();
9
- }
10
- process() {
11
- this.primary();
12
- this.foreign({ name: 'business_id', foreignTable: 'bz_business_details' });
13
- this.source();
14
- this.string('key');
15
- this.string('value');
16
- this.json('attributes');
17
- this.whoColumns();
18
- this.index(['source_type', 'source_id', 'key', 'value'], 'utl_data_mappings_key_val_index');
19
- }
20
- }
21
- exports.CreateDataMappingTable1700909399980 = CreateDataMappingTable1700909399980;
22
- //# sourceMappingURL=1700909399980-CreateDataMappingTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"1700909399980-CreateDataMappingTable.js","sourceRoot":"","sources":["../../src/migrations/1700909399980-CreateDataMappingTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,mCAAoC,SAAQ,0CAAgB;IACrE;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAE3E,IAAI,CAAC,MAAM,EAAE,CAAC;QAEd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAErB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;QAElB,IAAI,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,iCAAiC,CAAC,CAAC;IAChG,CAAC;CACJ;AArBD,kFAqBC"}