@servicelabsco/slabs-access-manager 0.1.132 → 0.1.133

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 (98) hide show
  1. package/dist/access/controllers/business.app.integration.controller.js +1 -1
  2. package/dist/access/controllers/business.app.integration.controller.js.map +1 -1
  3. package/dist/access/controllers/common.webhook.controller.d.ts +6 -1
  4. package/dist/access/controllers/common.webhook.controller.js +18 -2
  5. package/dist/access/controllers/common.webhook.controller.js.map +1 -1
  6. package/dist/access/dtos/index.d.ts +1 -0
  7. package/dist/access/dtos/index.js +1 -0
  8. package/dist/access/dtos/index.js.map +1 -1
  9. package/dist/access/dtos/slack.message.data.dto.d.ts +10 -0
  10. package/dist/access/dtos/slack.message.data.dto.js +7 -0
  11. package/dist/access/dtos/slack.message.data.dto.js.map +1 -0
  12. package/dist/access/entities/business.app.integration.credential.entity.js +1 -1
  13. package/dist/access/entities/business.app.integration.credential.entity.js.map +1 -1
  14. package/dist/access/es6.classes.d.ts +5 -3
  15. package/dist/access/es6.classes.js +5 -1
  16. package/dist/access/es6.classes.js.map +1 -1
  17. package/dist/access/libraries/index.d.ts +1 -0
  18. package/dist/access/libraries/index.js +1 -0
  19. package/dist/access/libraries/index.js.map +1 -1
  20. package/dist/access/libraries/process.slack.message.d.ts +16 -0
  21. package/dist/access/libraries/process.slack.message.js +81 -0
  22. package/dist/access/libraries/process.slack.message.js.map +1 -0
  23. package/dist/accessUtility/dtos/index.d.ts +2 -0
  24. package/dist/accessUtility/dtos/index.js +2 -0
  25. package/dist/accessUtility/dtos/index.js.map +1 -1
  26. package/dist/accessUtility/dtos/pdf.document.attributes.dto.d.ts +5 -0
  27. package/dist/accessUtility/dtos/pdf.document.attributes.dto.js +8 -0
  28. package/dist/accessUtility/dtos/pdf.document.attributes.dto.js.map +1 -0
  29. package/dist/accessUtility/dtos/pdf.document.data.dto.d.ts +7 -0
  30. package/dist/accessUtility/dtos/pdf.document.data.dto.js +7 -0
  31. package/dist/accessUtility/dtos/pdf.document.data.dto.js.map +1 -0
  32. package/dist/accessUtility/entities/index.d.ts +2 -0
  33. package/dist/accessUtility/entities/index.js +2 -0
  34. package/dist/accessUtility/entities/index.js.map +1 -1
  35. package/dist/accessUtility/entities/pdf.documents.entity.d.ts +14 -0
  36. package/dist/accessUtility/entities/pdf.documents.entity.js +58 -0
  37. package/dist/accessUtility/entities/pdf.documents.entity.js.map +1 -0
  38. package/dist/accessUtility/entities/pdf.templates.entity.d.ts +9 -0
  39. package/dist/accessUtility/entities/pdf.templates.entity.js +46 -0
  40. package/dist/accessUtility/entities/pdf.templates.entity.js.map +1 -0
  41. package/dist/accessUtility/es6.classes.d.ts +16 -7
  42. package/dist/accessUtility/es6.classes.js +27 -3
  43. package/dist/accessUtility/es6.classes.js.map +1 -1
  44. package/dist/accessUtility/jobs/index.d.ts +1 -0
  45. package/dist/accessUtility/jobs/index.js +1 -0
  46. package/dist/accessUtility/jobs/index.js.map +1 -1
  47. package/dist/accessUtility/jobs/pdfDocument.job.d.ts +7 -0
  48. package/dist/accessUtility/jobs/pdfDocument.job.js +29 -0
  49. package/dist/accessUtility/jobs/pdfDocument.job.js.map +1 -0
  50. package/dist/accessUtility/libraries/index.d.ts +1 -0
  51. package/dist/accessUtility/libraries/index.js +1 -0
  52. package/dist/accessUtility/libraries/index.js.map +1 -1
  53. package/dist/accessUtility/libraries/process.pdf.document.d.ts +18 -0
  54. package/dist/accessUtility/libraries/process.pdf.document.js +67 -0
  55. package/dist/accessUtility/libraries/process.pdf.document.js.map +1 -0
  56. package/dist/accessUtility/services/es6.jobs.service.d.ts +3 -1
  57. package/dist/accessUtility/services/es6.jobs.service.js +5 -1
  58. package/dist/accessUtility/services/es6.jobs.service.js.map +1 -1
  59. package/dist/accessUtility/services/file.upload.service.d.ts +9 -0
  60. package/dist/accessUtility/services/file.upload.service.js +49 -0
  61. package/dist/accessUtility/services/file.upload.service.js.map +1 -0
  62. package/dist/accessUtility/services/index.d.ts +3 -1
  63. package/dist/accessUtility/services/index.js +3 -1
  64. package/dist/accessUtility/services/index.js.map +1 -1
  65. package/dist/accessUtility/services/lambda.service.d.ts +10 -0
  66. package/dist/accessUtility/services/lambda.service.js +55 -0
  67. package/dist/accessUtility/services/lambda.service.js.map +1 -0
  68. package/dist/accessUtility/services/pdf.document.service.d.ts +6 -0
  69. package/dist/accessUtility/services/pdf.document.service.js +33 -0
  70. package/dist/accessUtility/services/pdf.document.service.js.map +1 -0
  71. package/dist/accessUtility/subscribers/index.d.ts +1 -0
  72. package/dist/accessUtility/subscribers/index.js +1 -0
  73. package/dist/accessUtility/subscribers/index.js.map +1 -1
  74. package/dist/accessUtility/subscribers/pdf.document.subscriber.d.ts +10 -0
  75. package/dist/accessUtility/subscribers/pdf.document.subscriber.js +18 -0
  76. package/dist/accessUtility/subscribers/pdf.document.subscriber.js.map +1 -0
  77. package/dist/config/entity.constants.d.ts +5 -1
  78. package/dist/config/entity.constants.js +5 -1
  79. package/dist/config/entity.constants.js.map +1 -1
  80. package/dist/migrations/1707715461866-CreateUtlPdfTemplateTable.d.ts +5 -0
  81. package/dist/migrations/1707715461866-CreateUtlPdfTemplateTable.js +21 -0
  82. package/dist/migrations/1707715461866-CreateUtlPdfTemplateTable.js.map +1 -0
  83. package/dist/migrations/1707715461876-CreateUtlPdfDocumentsTable.d.ts +5 -0
  84. package/dist/migrations/1707715461876-CreateUtlPdfDocumentsTable.js +21 -0
  85. package/dist/migrations/1707715461876-CreateUtlPdfDocumentsTable.js.map +1 -0
  86. package/dist/migrations/{1723015380987-CreateAppIntegrationTable.js → 1711015530235-CreateAppIntegrationTable.js} +1 -1
  87. package/dist/migrations/{1723015380987-CreateAppIntegrationTable.js.map → 1711015530235-CreateAppIntegrationTable.js.map} +1 -1
  88. package/dist/migrations/{1723018503948-CreateBusinessAppIntegrationTable.js → 1711016228760-CreateBusinessAppIntegrationTable.js} +1 -1
  89. package/dist/migrations/{1723018503948-CreateBusinessAppIntegrationTable.js.map → 1711016228760-CreateBusinessAppIntegrationTable.js.map} +1 -1
  90. package/dist/migrations/{1723020352925-CreateBusinessAppIntegrationCredentialTable.js → 1711083268259-CreateBusinessAppIntegrationCredentialTable.js} +2 -2
  91. package/dist/migrations/{1723020352925-CreateBusinessAppIntegrationCredentialTable.js.map → 1711083268259-CreateBusinessAppIntegrationCredentialTable.js.map} +1 -1
  92. package/package.json +2 -1
  93. package/dist/accessUtility/services/test.access.service.d.ts +0 -2
  94. package/dist/accessUtility/services/test.access.service.js +0 -17
  95. package/dist/accessUtility/services/test.access.service.js.map +0 -1
  96. /package/dist/migrations/{1723015380987-CreateAppIntegrationTable.d.ts → 1711015530235-CreateAppIntegrationTable.d.ts} +0 -0
  97. /package/dist/migrations/{1723018503948-CreateBusinessAppIntegrationTable.d.ts → 1711016228760-CreateBusinessAppIntegrationTable.d.ts} +0 -0
  98. /package/dist/migrations/{1723020352925-CreateBusinessAppIntegrationCredentialTable.d.ts → 1711083268259-CreateBusinessAppIntegrationCredentialTable.d.ts} +0 -0
@@ -0,0 +1,49 @@
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.FileUploadService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let FileUploadService = class FileUploadService {
16
+ constructor(uploadService, propertyService) {
17
+ this.uploadService = uploadService;
18
+ this.propertyService = propertyService;
19
+ }
20
+ async uploadFile(file) {
21
+ const fileTypes = await this.propertyService.get('allowed.upload.file.types', '');
22
+ const allowedTypes = fileTypes.split(',');
23
+ if (!allowedTypes.includes(file.mimetype))
24
+ throw new nestjs_utility_services_1.OperationException(`This file of type ${file.mimetype} is not allowed`);
25
+ const params = await this.getParam(file);
26
+ return this.uploadService.uploadFile(params);
27
+ }
28
+ async uploadToS3(params) {
29
+ return this.uploadService.uploadFile(params);
30
+ }
31
+ async getParam(file) {
32
+ const fileName = `${nestjs_utility_services_1.PlatformUtility.generateRandomAlpha(6).toLowerCase()}_${file.originalname.replaceAll(' ', '_')}`;
33
+ const bucket = await this.propertyService.get('aws.config.bucket');
34
+ const urlkey = `expense-other/${fileName}`;
35
+ return {
36
+ Body: file.buffer,
37
+ Key: urlkey,
38
+ Bucket: bucket,
39
+ ACL: 'public-read',
40
+ };
41
+ }
42
+ };
43
+ exports.FileUploadService = FileUploadService;
44
+ exports.FileUploadService = FileUploadService = __decorate([
45
+ (0, common_1.Injectable)(),
46
+ __metadata("design:paramtypes", [nestjs_utility_services_1.UploadService,
47
+ nestjs_utility_services_1.PropertyService])
48
+ ], FileUploadService);
49
+ //# sourceMappingURL=file.upload.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.upload.service.js","sourceRoot":"","sources":["../../../src/accessUtility/services/file.upload.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA6H;AAGtH,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC1B,YACqB,aAA4B,EAC5B,eAAgC;QADhC,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAiB;IAClD,CAAC;IAEG,KAAK,CAAC,UAAU,CAAC,IAAS;QAC7B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,CAAC,CAAC;QAClF,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAE1C,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;YAAE,MAAM,IAAI,4CAAkB,CAAC,qBAAqB,IAAI,CAAC,QAAQ,iBAAiB,CAAC,CAAC;QAE7H,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEzC,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,MAAW;QAC/B,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,IAAS;QACpB,MAAM,QAAQ,GAAG,GAAG,yCAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;QACrH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QAEnE,MAAM,MAAM,GAAG,iBAAiB,QAAQ,EAAE,CAAC;QAC3C,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,MAAM;YACjB,GAAG,EAAE,MAAM;YACX,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,aAAa;SACrB,CAAC;IACN,CAAC;CACJ,CAAA;AAjCY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAG2B,uCAAa;QACX,yCAAe;GAH5C,iBAAiB,CAiC7B"}
@@ -1,2 +1,4 @@
1
1
  export * from './bulk.upload.service';
2
- export * from './test.access.service';
2
+ export * from './file.upload.service';
3
+ export * from './lambda.service';
4
+ export * from './pdf.document.service';
@@ -15,5 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./bulk.upload.service"), exports);
18
- __exportStar(require("./test.access.service"), exports);
18
+ __exportStar(require("./file.upload.service"), exports);
19
+ __exportStar(require("./lambda.service"), exports);
20
+ __exportStar(require("./pdf.document.service"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AAAA,wDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,mDAAiC;AAAA,yDAAsC"}
@@ -0,0 +1,10 @@
1
+ import { AwsConfigService, PropertyService } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class LambdaService {
3
+ private readonly awsConfigService;
4
+ private readonly propertyService;
5
+ private client;
6
+ constructor(awsConfigService: AwsConfigService, propertyService: PropertyService);
7
+ private init;
8
+ private getClient;
9
+ getResponseFromLambda(function_name: string, payload: any): Promise<any>;
10
+ }
@@ -0,0 +1,55 @@
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.LambdaService = void 0;
13
+ const client_lambda_1 = require("@aws-sdk/client-lambda");
14
+ const common_1 = require("@nestjs/common");
15
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
16
+ let LambdaService = class LambdaService {
17
+ constructor(awsConfigService, propertyService) {
18
+ this.awsConfigService = awsConfigService;
19
+ this.propertyService = propertyService;
20
+ this.client = null;
21
+ }
22
+ async init() {
23
+ const config = await this.awsConfigService.getConfig();
24
+ this.client = new client_lambda_1.LambdaClient({
25
+ credentials: { accessKeyId: config.key, secretAccessKey: config.secret },
26
+ region: config.region,
27
+ });
28
+ }
29
+ async getClient() {
30
+ if (!this.client)
31
+ await this.init();
32
+ if (!this.client)
33
+ throw new nestjs_utility_services_1.OperationException(`Lambda service is not working`);
34
+ return this.client;
35
+ }
36
+ async getResponseFromLambda(function_name, payload) {
37
+ const client = await this.getClient();
38
+ const input = {
39
+ FunctionName: function_name,
40
+ InvocationType: 'RequestResponse',
41
+ Payload: Buffer.from(JSON.stringify(payload), 'utf8'),
42
+ };
43
+ const command = new client_lambda_1.InvokeCommand(input);
44
+ const response = await client.send(command);
45
+ const res_data = JSON.parse(Buffer.from(response.Payload).toString('utf8'));
46
+ return res_data;
47
+ }
48
+ };
49
+ exports.LambdaService = LambdaService;
50
+ exports.LambdaService = LambdaService = __decorate([
51
+ (0, common_1.Injectable)(),
52
+ __metadata("design:paramtypes", [nestjs_utility_services_1.AwsConfigService,
53
+ nestjs_utility_services_1.PropertyService])
54
+ ], LambdaService);
55
+ //# sourceMappingURL=lambda.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lambda.service.js","sourceRoot":"","sources":["../../../src/accessUtility/services/lambda.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAyF;AACzF,2CAA4C;AAC5C,oFAA6H;AAQtH,IAAM,aAAa,G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,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;QAE5E,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ,CAAA;AA7DY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAe8B,0CAAgB;QACjB,yCAAe;GAf5C,aAAa,CA6DzB"}
@@ -0,0 +1,6 @@
1
+ import { PdfDocumentsEntity } from '../entities/pdf.documents.entity';
2
+ import { PdfTemplatesEntity } from '../entities/pdf.templates.entity';
3
+ export declare class PdfDocumentService {
4
+ getTemplate(identifier: string): Promise<PdfTemplatesEntity>;
5
+ uploadToTheSystem(body: any): Promise<PdfDocumentsEntity>;
6
+ }
@@ -0,0 +1,33 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.PdfDocumentService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const pdf_documents_entity_1 = require("../entities/pdf.documents.entity");
12
+ const pdf_templates_entity_1 = require("../entities/pdf.templates.entity");
13
+ let PdfDocumentService = class PdfDocumentService {
14
+ async getTemplate(identifier) {
15
+ const template = await pdf_templates_entity_1.PdfTemplatesEntity.findOne({ where: { identifier }, relations: ['script'] });
16
+ if (!template)
17
+ return;
18
+ return template;
19
+ }
20
+ async uploadToTheSystem(body) {
21
+ const { document_id, pdf_url } = body || {};
22
+ if (!document_id || !pdf_url)
23
+ return;
24
+ const pdfDocument = await pdf_documents_entity_1.PdfDocumentsEntity.first(document_id);
25
+ pdfDocument.pdf_url = pdf_url;
26
+ return pdfDocument.save();
27
+ }
28
+ };
29
+ exports.PdfDocumentService = PdfDocumentService;
30
+ exports.PdfDocumentService = PdfDocumentService = __decorate([
31
+ (0, common_1.Injectable)()
32
+ ], PdfDocumentService);
33
+ //# sourceMappingURL=pdf.document.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.document.service.js","sourceRoot":"","sources":["../../../src/accessUtility/services/pdf.document.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,2EAAsE;AACtE,2EAAsE;AAG/D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAQ3B,KAAK,CAAC,WAAW,CAAC,UAAkB;QAChC,MAAM,QAAQ,GAAG,MAAM,yCAAkB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAEpG,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEtB,OAAO,QAAQ,CAAC;IACpB,CAAC;IASD,KAAK,CAAC,iBAAiB,CAAC,IAAS;QAC7B,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC,WAAW,IAAI,CAAC,OAAO;YAAE,OAAO;QAErC,MAAM,WAAW,GAAG,MAAM,yCAAkB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC;QAE9B,OAAO,WAAW,CAAC,IAAI,EAAE,CAAC;IAC9B,CAAC;CACJ,CAAA;AAhCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAgC9B"}
@@ -12,6 +12,7 @@ export * from './inapp.notification.subscriber';
12
12
  export * from './listing.model.subscriber';
13
13
  export * from './notification.recipient.subscriber';
14
14
  export * from './notification.subscriber';
15
+ export * from './pdf.document.subscriber';
15
16
  export * from './slack.notification.subscriber';
16
17
  export * from './sms.notification.subscriber';
17
18
  export * from './tag.assignment.subscriber';
@@ -28,6 +28,7 @@ __exportStar(require("./inapp.notification.subscriber"), exports);
28
28
  __exportStar(require("./listing.model.subscriber"), exports);
29
29
  __exportStar(require("./notification.recipient.subscriber"), exports);
30
30
  __exportStar(require("./notification.subscriber"), exports);
31
+ __exportStar(require("./pdf.document.subscriber"), exports);
31
32
  __exportStar(require("./slack.notification.subscriber"), exports);
32
33
  __exportStar(require("./sms.notification.subscriber"), exports);
33
34
  __exportStar(require("./tag.assignment.subscriber"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAAA,0EAAwD;AAAA,+DAA6C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,kEAAgD;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,+DAA6C;AAAA,qEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAAA,0EAAwD;AAAA,+DAA6C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,kEAAgD;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,+DAA6C;AAAA,qEAAkD"}
@@ -0,0 +1,10 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource } from 'typeorm';
3
+ import { PdfDocumentsEntity } from '../entities/pdf.documents.entity';
4
+ import { PdfDocumentJob } from '../jobs/pdfDocument.job';
5
+ export declare class PdfDocumentSubscriber extends CommonSubscriber<PdfDocumentsEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: PdfDocumentJob;
8
+ constructor(dataSource: DataSource, entityJob: PdfDocumentJob);
9
+ listenTo(): typeof PdfDocumentsEntity;
10
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PdfDocumentSubscriber = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ const pdf_documents_entity_1 = require("../entities/pdf.documents.entity");
6
+ class PdfDocumentSubscriber extends nestjs_utility_services_1.CommonSubscriber {
7
+ constructor(dataSource, entityJob) {
8
+ super();
9
+ this.dataSource = dataSource;
10
+ this.entityJob = entityJob;
11
+ dataSource.subscribers.push(this);
12
+ }
13
+ listenTo() {
14
+ return pdf_documents_entity_1.PdfDocumentsEntity;
15
+ }
16
+ }
17
+ exports.PdfDocumentSubscriber = PdfDocumentSubscriber;
18
+ //# sourceMappingURL=pdf.document.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.document.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/pdf.document.subscriber.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,2EAAsE;AAGtE,MAAa,qBAAsB,SAAQ,0CAAoC;IAC3E,YACqB,UAAsB,EACpB,SAAyB;QAE5C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAgB;QAG5C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yCAAkB,CAAC;IAC9B,CAAC;CACJ;AAXD,sDAWC"}
@@ -79,6 +79,8 @@ import { InappNotificationEntity } from '../accessUtility/entities/inapp.notific
79
79
  import { ListingModelEntity } from '../accessUtility/entities/listing.model.entity';
80
80
  import { NotificationEntity } from '../accessUtility/entities/notification.entity';
81
81
  import { NotificationRecipientEntity } from '../accessUtility/entities/notification.recipient.entity';
82
+ import { PdfDocumentsEntity } from '../accessUtility/entities/pdf.documents.entity';
83
+ import { PdfTemplatesEntity } from '../accessUtility/entities/pdf.templates.entity';
82
84
  import { SlackNotificationEntity } from '../accessUtility/entities/slack.notification.entity';
83
85
  import { SmsNotificationEntity } from '../accessUtility/entities/sms.notification.entity';
84
86
  import { TagAssignmentEntity } from '../accessUtility/entities/tag.assignment.entity';
@@ -89,7 +91,7 @@ declare const entityConstants: {
89
91
  '65e0e6d5c92cbba596ecaf851b586389': typeof AccessBusinessEntity;
90
92
  '8729a095a0116f22251847c6c7192b75': typeof ApiAccountEntity;
91
93
  '312fc487290f5f7ab298862200a5bb90': typeof AppIntegrationEntity;
92
- '246a6d55ee95ea6b13837257569240e4': typeof BusinessAppIntegrationCredentialEntity;
94
+ c723b271745f20389e1cc0c44f7cf816: typeof BusinessAppIntegrationCredentialEntity;
93
95
  d174c628bc2487e41ba56bbf22356795: typeof BusinessAppIntegrationEntity;
94
96
  abf530a86c0c2198071cfd5aa92f9c8c: typeof BusinessEmailEntity;
95
97
  '21e0c3b1d90ae9faa0dc0857a0cbf351': typeof BusinessGroupRoleEntity;
@@ -167,6 +169,8 @@ declare const entityConstants: {
167
169
  f398df3b81975969eb65eaabc46fb719: typeof ListingModelEntity;
168
170
  a9a2272132a99e826d8809d3a2a2c6f0: typeof NotificationEntity;
169
171
  eae5d746c7c25d049a6fdc9a12f5395c: typeof NotificationRecipientEntity;
172
+ '58212d33f6268cfeca20cbafda3cd4ba': typeof PdfDocumentsEntity;
173
+ dde415321a2afb3b70b76c7949a8777c: typeof PdfTemplatesEntity;
170
174
  bec0e5d485f80f8c7f41f3fd7d568a85: typeof SlackNotificationEntity;
171
175
  '93909a90d6bde2e9bb4984f9c54fbb48': typeof SmsNotificationEntity;
172
176
  '1b155ffbd5998294415345bd380131d6': typeof TagAssignmentEntity;
@@ -80,6 +80,8 @@ const inapp_notification_entity_1 = require("../accessUtility/entities/inapp.not
80
80
  const listing_model_entity_1 = require("../accessUtility/entities/listing.model.entity");
81
81
  const notification_entity_1 = require("../accessUtility/entities/notification.entity");
82
82
  const notification_recipient_entity_1 = require("../accessUtility/entities/notification.recipient.entity");
83
+ const pdf_documents_entity_1 = require("../accessUtility/entities/pdf.documents.entity");
84
+ const pdf_templates_entity_1 = require("../accessUtility/entities/pdf.templates.entity");
83
85
  const slack_notification_entity_1 = require("../accessUtility/entities/slack.notification.entity");
84
86
  const sms_notification_entity_1 = require("../accessUtility/entities/sms.notification.entity");
85
87
  const tag_assignment_entity_1 = require("../accessUtility/entities/tag.assignment.entity");
@@ -90,7 +92,7 @@ const entityConstants = {
90
92
  '65e0e6d5c92cbba596ecaf851b586389': access_business_entity_1.AccessBusinessEntity,
91
93
  '8729a095a0116f22251847c6c7192b75': api_account_entity_1.ApiAccountEntity,
92
94
  '312fc487290f5f7ab298862200a5bb90': app_integration_entity_1.AppIntegrationEntity,
93
- '246a6d55ee95ea6b13837257569240e4': business_app_integration_credential_entity_1.BusinessAppIntegrationCredentialEntity,
95
+ c723b271745f20389e1cc0c44f7cf816: business_app_integration_credential_entity_1.BusinessAppIntegrationCredentialEntity,
94
96
  d174c628bc2487e41ba56bbf22356795: business_app_integration_entity_1.BusinessAppIntegrationEntity,
95
97
  abf530a86c0c2198071cfd5aa92f9c8c: business_email_entity_1.BusinessEmailEntity,
96
98
  '21e0c3b1d90ae9faa0dc0857a0cbf351': business_group_role_entity_1.BusinessGroupRoleEntity,
@@ -168,6 +170,8 @@ const entityConstants = {
168
170
  f398df3b81975969eb65eaabc46fb719: listing_model_entity_1.ListingModelEntity,
169
171
  a9a2272132a99e826d8809d3a2a2c6f0: notification_entity_1.NotificationEntity,
170
172
  eae5d746c7c25d049a6fdc9a12f5395c: notification_recipient_entity_1.NotificationRecipientEntity,
173
+ '58212d33f6268cfeca20cbafda3cd4ba': pdf_documents_entity_1.PdfDocumentsEntity,
174
+ dde415321a2afb3b70b76c7949a8777c: pdf_templates_entity_1.PdfTemplatesEntity,
171
175
  bec0e5d485f80f8c7f41f3fd7d568a85: slack_notification_entity_1.SlackNotificationEntity,
172
176
  '93909a90d6bde2e9bb4984f9c54fbb48': sms_notification_entity_1.SmsNotificationEntity,
173
177
  '1b155ffbd5998294415345bd380131d6': tag_assignment_entity_1.TagAssignmentEntity,
@@ -1 +1 @@
1
- {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,8EAAyE;AACzE,sFAAiF;AACjF,8HAAuH;AACvH,wGAAkG;AAClG,oFAA+E;AAC/E,8FAAwF;AACxF,8FAAyF;AACzF,kFAA6E;AAC7E,8FAAwF;AACxF,4FAAsF;AACtF,4EAAuE;AACvE,8EAAyE;AACzE,8EAAyE;AACzE,gFAA4E;AAC5E,gFAA2E;AAC3E,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,gFAA2E;AAC3E,wFAAmF;AACnF,kFAA6E;AAC7E,sFAAiF;AACjF,8EAAyE;AACzE,0EAAqE;AACrE,kFAA6E;AAC7E,oFAA+E;AAC/E,4EAAuE;AACvE,kFAA6E;AAC7E,kGAA4F;AAC5F,gFAA2E;AAC3E,4EAAuE;AACvE,sFAAiF;AACjF,oFAA+E;AAC/E,gFAA2E;AAC3E,4FAAuF;AACvF,8EAAyE;AACzE,gEAA4D;AAC5D,0EAAqE;AACrE,oEAAgE;AAChE,8EAAyE;AACzE,sFAAiF;AACjF,kGAA4F;AAC5F,sEAAkE;AAClE,4EAAuE;AACvE,oGAA8F;AAC9F,wFAAmF;AACnF,kGAA4F;AAC5F,0FAAqF;AACrF,kFAA6E;AAC7E,oFAA+E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CAAoB;IACtD,kCAAkC,EAAE,sDAAwB;IAC5D,gCAAgC,EAAE,kEAA8B;IAChE,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,8CAAoB;IACtD,gCAAgC,EAAE,8CAAoB;IACtD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,mDAAuB;IAC3D,gCAAgC,EAAE,+CAAqB;IACvD,gCAAgC,EAAE,uCAAiB;IACnD,gCAAgC,EAAE,mDAAuB;IACzD,gCAAgC,EAAE,mDAAuB;IACzD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,wCAAkB;IACpD,gCAAgC,EAAE,2DAA2B;IAC7D,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,2CAAmB;IACvD,kCAAkC,EAAE,qDAAwB;IAC5D,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,yDAA0B;CACjE,CAAC;AAEF,iBAAS,eAAe,CAAC"}
1
+ {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,8EAAyE;AACzE,sFAAiF;AACjF,8HAAuH;AACvH,wGAAkG;AAClG,oFAA+E;AAC/E,8FAAwF;AACxF,8FAAyF;AACzF,kFAA6E;AAC7E,8FAAwF;AACxF,4FAAsF;AACtF,4EAAuE;AACvE,8EAAyE;AACzE,8EAAyE;AACzE,gFAA4E;AAC5E,gFAA2E;AAC3E,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,gFAA2E;AAC3E,wFAAmF;AACnF,kFAA6E;AAC7E,sFAAiF;AACjF,8EAAyE;AACzE,0EAAqE;AACrE,kFAA6E;AAC7E,oFAA+E;AAC/E,4EAAuE;AACvE,kFAA6E;AAC7E,kGAA4F;AAC5F,gFAA2E;AAC3E,4EAAuE;AACvE,sFAAiF;AACjF,oF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B;IACtD,gCAAgC,EAAE,iDAAsB;IACxD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,uDAAyB;IAC7D,gCAAgC,EAAE,uCAAiB;IACnD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,+CAAqB;IACzD,gCAAgC,EAAE,qDAAwB;IAC1D,kCAAkC,EAAE,iDAAsB;IAC1D,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,sDAAwB;IAC5D,gCAAgC,EAAE,kEAA8B;IAChE,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,8CAAoB;IACtD,gCAAgC,EAAE,8CAAoB;IACtD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,mDAAuB;IAC3D,gCAAgC,EAAE,+CAAqB;IACvD,gCAAgC,EAAE,uCAAiB;IACnD,gCAAgC,EAAE,mDAAuB;IACzD,gCAAgC,EAAE,mDAAuB;IACzD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,wCAAkB;IACpD,gCAAgC,EAAE,2DAA2B;IAC7D,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,2CAAmB;IACvD,kCAAkC,EAAE,qDAAwB;IAC5D,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,yDAA0B;CACjE,CAAC;AAEF,iBAAS,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateUtlPdfTemplatesTable1707715461866 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateUtlPdfTemplatesTable1707715461866 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateUtlPdfTemplatesTable1707715461866 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('utl_pdf_templates');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.foreign({ name: 'script_id', foreignTable: 'sys_system_scripts' });
13
+ this.string('name');
14
+ this.string('identifier');
15
+ this.boolean('active', true);
16
+ this.json('attributes');
17
+ this.whoColumns();
18
+ }
19
+ }
20
+ exports.CreateUtlPdfTemplatesTable1707715461866 = CreateUtlPdfTemplatesTable1707715461866;
21
+ //# sourceMappingURL=1707715461866-CreateUtlPdfTemplateTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1707715461866-CreateUtlPdfTemplateTable.js","sourceRoot":"","sources":["../../src/migrations/1707715461866-CreateUtlPdfTemplateTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,uCAAwC,SAAQ,0CAAgB;IACzE;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,WAAW,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAC;QAExE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC1B,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAE7B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAnBD,0FAmBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateUtlPdfDocumentsTable1707715461876 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateUtlPdfDocumentsTable1707715461876 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateUtlPdfDocumentsTable1707715461876 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('utl_pdf_documents');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.source();
13
+ this.foreign({ name: 'business_id', foreignTable: 'bz_business_details' });
14
+ this.foreign({ name: 'template_id', foreignTable: 'utl_pdf_templates' });
15
+ this.string('pdf_url');
16
+ this.json('attributes');
17
+ this.whoColumns();
18
+ }
19
+ }
20
+ exports.CreateUtlPdfDocumentsTable1707715461876 = CreateUtlPdfDocumentsTable1707715461876;
21
+ //# sourceMappingURL=1707715461876-CreateUtlPdfDocumentsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1707715461876-CreateUtlPdfDocumentsTable.js","sourceRoot":"","sources":["../../src/migrations/1707715461876-CreateUtlPdfDocumentsTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,uCAAwC,SAAQ,0CAAgB;IACzE;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,MAAM,EAAE,CAAC;QAEd,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAC3E,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAEzE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAEvB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAlBD,0FAkBC"}
@@ -20,4 +20,4 @@ class CreateAppIntegrationTable1723015380987 extends nestjs_utility_services_1.M
20
20
  }
21
21
  }
22
22
  exports.CreateAppIntegrationTable1723015380987 = CreateAppIntegrationTable1723015380987;
23
- //# sourceMappingURL=1723015380987-CreateAppIntegrationTable.js.map
23
+ //# sourceMappingURL=1711015530235-CreateAppIntegrationTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1723015380987-CreateAppIntegrationTable.js","sourceRoot":"","sources":["../../src/migrations/1723015380987-CreateAppIntegrationTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,sCAAuC,SAAQ,0CAAgB;IACxE;QACI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;QAEtC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEnB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEvB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AApBD,wFAoBC"}
1
+ {"version":3,"file":"1711015530235-CreateAppIntegrationTable.js","sourceRoot":"","sources":["../../src/migrations/1711015530235-CreateAppIntegrationTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,sCAAuC,SAAQ,0CAAgB;IACxE;QACI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;QAEtC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEnB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEvB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AApBD,wFAoBC"}
@@ -19,4 +19,4 @@ class CreateBusinessAppIntegrationTable1723018503948 extends nestjs_utility_serv
19
19
  }
20
20
  }
21
21
  exports.CreateBusinessAppIntegrationTable1723018503948 = CreateBusinessAppIntegrationTable1723018503948;
22
- //# sourceMappingURL=1723018503948-CreateBusinessAppIntegrationTable.js.map
22
+ //# sourceMappingURL=1711016228760-CreateBusinessAppIntegrationTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1723018503948-CreateBusinessAppIntegrationTable.js","sourceRoot":"","sources":["../../src/migrations/1723018503948-CreateBusinessAppIntegrationTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,8CAA+C,SAAQ,0CAAgB;IAChF;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,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;QAC3E,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAC,CAAC;QAE/E,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAE9B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAnBD,wGAmBC"}
1
+ {"version":3,"file":"1711016228760-CreateBusinessAppIntegrationTable.js","sourceRoot":"","sources":["../../src/migrations/1711016228760-CreateBusinessAppIntegrationTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,8CAA+C,SAAQ,0CAAgB;IAChF;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,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;QAC3E,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAC,CAAC;QAE/E,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAE9B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAnBD,wGAmBC"}
@@ -4,7 +4,7 @@ exports.CreateBusinessAppIntegrationCredentialTable1723020352925 = void 0;
4
4
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
5
  class CreateBusinessAppIntegrationCredentialTable1723020352925 extends nestjs_utility_services_1.MigrationUtility {
6
6
  constructor() {
7
- super('bz_app_integrations_credentials');
7
+ super('bz_app_integration_credentials');
8
8
  this.process();
9
9
  }
10
10
  process() {
@@ -18,4 +18,4 @@ class CreateBusinessAppIntegrationCredentialTable1723020352925 extends nestjs_ut
18
18
  }
19
19
  }
20
20
  exports.CreateBusinessAppIntegrationCredentialTable1723020352925 = CreateBusinessAppIntegrationCredentialTable1723020352925;
21
- //# sourceMappingURL=1723020352925-CreateBusinessAppIntegrationCredentialTable.js.map
21
+ //# sourceMappingURL=1711083268259-CreateBusinessAppIntegrationCredentialTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1723020352925-CreateBusinessAppIntegrationCredentialTable.js","sourceRoot":"","sources":["../../src/migrations/1723020352925-CreateBusinessAppIntegrationCredentialTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,wDAAyD,SAAQ,0CAAgB;IAC1F;QACI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IACD,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAEvF,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAE7B,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAE3B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAlBD,4HAkBC"}
1
+ {"version":3,"file":"1711083268259-CreateBusinessAppIntegrationCredentialTable.js","sourceRoot":"","sources":["../../src/migrations/1711083268259-CreateBusinessAppIntegrationCredentialTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,wDAAyD,SAAQ,0CAAgB;IAC1F;QACI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IACD,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAEvF,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAE7B,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAE3B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAlBD,4HAkBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/slabs-access-manager",
3
- "version": "0.1.132",
3
+ "version": "0.1.133",
4
4
  "description": "Support for application level menus and dashboards",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",
@@ -37,6 +37,7 @@
37
37
  "console": "node dist/console.js"
38
38
  },
39
39
  "dependencies": {
40
+ "@aws-sdk/client-lambda": "^3.624.0",
40
41
  "@googleapis/chat": "^25.0.0",
41
42
  "@servicelabsco/nestjs-utility-services": "^1.2.2",
42
43
  "csv-parser": "^3.0.0",
@@ -1,2 +0,0 @@
1
- export declare class TestAccessService {
2
- }
@@ -1,17 +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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.TestAccessService = void 0;
10
- const common_1 = require("@nestjs/common");
11
- let TestAccessService = class TestAccessService {
12
- };
13
- exports.TestAccessService = TestAccessService;
14
- exports.TestAccessService = TestAccessService = __decorate([
15
- (0, common_1.Injectable)()
16
- ], TestAccessService);
17
- //# sourceMappingURL=test.access.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.access.service.js","sourceRoot":"","sources":["../../../src/accessUtility/services/test.access.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CAAG"}