@servicelabsco/slabs-access-manager 0.1.328 → 0.1.330

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 (32) hide show
  1. package/dist/access/jobs/evaluate.email.rule.job.js.map +1 -1
  2. package/dist/accessUtility/controllers/index.d.ts +1 -0
  3. package/dist/accessUtility/controllers/index.js +1 -0
  4. package/dist/accessUtility/controllers/index.js.map +1 -1
  5. package/dist/accessUtility/controllers/notification.recipient.controller.d.ts +7 -0
  6. package/dist/accessUtility/controllers/notification.recipient.controller.js +48 -0
  7. package/dist/accessUtility/controllers/notification.recipient.controller.js.map +1 -0
  8. package/dist/accessUtility/dtos/add.notification.recipient.dto.d.ts +5 -0
  9. package/dist/accessUtility/dtos/add.notification.recipient.dto.js +34 -0
  10. package/dist/accessUtility/dtos/add.notification.recipient.dto.js.map +1 -0
  11. package/dist/accessUtility/dtos/index.d.ts +2 -0
  12. package/dist/accessUtility/dtos/index.js +2 -0
  13. package/dist/accessUtility/dtos/index.js.map +1 -1
  14. package/dist/accessUtility/dtos/lambda.zip.dto.d.ts +4 -0
  15. package/dist/accessUtility/dtos/lambda.zip.dto.js +27 -0
  16. package/dist/accessUtility/dtos/lambda.zip.dto.js.map +1 -0
  17. package/dist/accessUtility/es6.classes.d.ts +8 -3
  18. package/dist/accessUtility/es6.classes.js +19 -1
  19. package/dist/accessUtility/es6.classes.js.map +1 -1
  20. package/dist/accessUtility/services/es6.service.d.ts +3 -1
  21. package/dist/accessUtility/services/es6.service.js +6 -2
  22. package/dist/accessUtility/services/es6.service.js.map +1 -1
  23. package/dist/accessUtility/services/index.d.ts +2 -0
  24. package/dist/accessUtility/services/index.js +2 -0
  25. package/dist/accessUtility/services/index.js.map +1 -1
  26. package/dist/accessUtility/services/pdf.service.d.ts +14 -0
  27. package/dist/accessUtility/services/pdf.service.js +77 -0
  28. package/dist/accessUtility/services/pdf.service.js.map +1 -0
  29. package/dist/accessUtility/services/zip.service.d.ts +11 -0
  30. package/dist/accessUtility/services/zip.service.js +52 -0
  31. package/dist/accessUtility/services/zip.service.js.map +1 -0
  32. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"evaluate.email.rule.job.js","sourceRoot":"","sources":["../../../src/access/jobs/evaluate.email.rule.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA8G;AAC9G,0EAAqE;AAO9D,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mCAAS;IAC/C,YACuB,YAA0B,EAC5B,YAA0B,EACxB,aAA4B;QAE/C,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAJvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,iBAAY,GAAZ,YAAY,CAAc;QACxB,kBAAa,GAAb,aAAa,CAAe;IAGnD,CAAC;IAOD,KAAK,CAAC,MAAM,CAAC,EAAU;QACnB,MAAM,IAAI,uCAAiB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACnF,CAAC;CACJ,CAAA;AAjBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAG4B,sCAAY;QACd,sCAAY;QACT,uCAAa;GAJ1C,oBAAoB,CAiBhC"}
1
+ {"version":3,"file":"evaluate.email.rule.job.js","sourceRoot":"","sources":["../../../src/access/jobs/evaluate.email.rule.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA8G;AAC9G,0EAAqE;AAQ9D,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mCAAS;IAC/C,YACuB,YAA0B,EAC5B,YAA0B,EACxB,aAA4B;QAE/C,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAJvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,iBAAY,GAAZ,YAAY,CAAc;QACxB,kBAAa,GAAb,aAAa,CAAe;IAGnD,CAAC;IAOD,KAAK,CAAC,MAAM,CAAC,EAAU;QACnB,MAAM,IAAI,uCAAiB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACnF,CAAC;CACJ,CAAA;AAjBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAG4B,sCAAY;QACd,sCAAY;QACT,uCAAa;GAJ1C,oBAAoB,CAiBhC"}
@@ -2,5 +2,6 @@ export * from './bulk.definition.controller';
2
2
  export * from './business.ui.policies.controller';
3
3
  export * from './gst.state.controller';
4
4
  export * from './item.unit.controller';
5
+ export * from './notification.recipient.controller';
5
6
  export * from './pdf.document.controller';
6
7
  export * from './violation.definition.controller';
@@ -18,6 +18,7 @@ __exportStar(require("./bulk.definition.controller"), exports);
18
18
  __exportStar(require("./business.ui.policies.controller"), exports);
19
19
  __exportStar(require("./gst.state.controller"), exports);
20
20
  __exportStar(require("./item.unit.controller"), exports);
21
+ __exportStar(require("./notification.recipient.controller"), exports);
21
22
  __exportStar(require("./pdf.document.controller"), exports);
22
23
  __exportStar(require("./violation.definition.controller"), exports);
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAAA,oEAAkD;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,oEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAAA,oEAAkD;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,sEAAoD;AAAA,4DAA0C;AAAA,oEAAiD"}
@@ -0,0 +1,7 @@
1
+ import { AccessBusinessService } from '../../access/services/access.business.service';
2
+ import { AddNotificationRecipientDto } from '../dtos/add.notification.recipient.dto';
3
+ export declare class NotificationRecipientController {
4
+ private readonly accessBusinessService;
5
+ constructor(accessBusinessService: AccessBusinessService);
6
+ updateRecipients(body: AddNotificationRecipientDto): Promise<any>;
7
+ }
@@ -0,0 +1,48 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.NotificationRecipientController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
18
+ const access_business_service_1 = require("../../access/services/access.business.service");
19
+ const add_notification_recipient_dto_1 = require("../dtos/add.notification.recipient.dto");
20
+ let NotificationRecipientController = class NotificationRecipientController {
21
+ constructor(accessBusinessService) {
22
+ this.accessBusinessService = accessBusinessService;
23
+ }
24
+ async updateRecipients(body) {
25
+ const business = await this.accessBusinessService.validateAccess();
26
+ const record = await nestjs_utility_services_1.PlatformUtility.getSourceData({
27
+ source_type: body.source_type,
28
+ source_id: body.source_id,
29
+ });
30
+ if (record?.business_id && record?.business_id !== business.id)
31
+ throw new nestjs_utility_services_1.AccessException();
32
+ record.attributes = { ...record.attributes, notification_object: body.notification_object };
33
+ return record.save();
34
+ }
35
+ };
36
+ exports.NotificationRecipientController = NotificationRecipientController;
37
+ __decorate([
38
+ (0, common_1.Post)(),
39
+ __param(0, (0, common_1.Body)()),
40
+ __metadata("design:type", Function),
41
+ __metadata("design:paramtypes", [add_notification_recipient_dto_1.AddNotificationRecipientDto]),
42
+ __metadata("design:returntype", Promise)
43
+ ], NotificationRecipientController.prototype, "updateRecipients", null);
44
+ exports.NotificationRecipientController = NotificationRecipientController = __decorate([
45
+ (0, common_1.Controller)('api/b/notification-recipient'),
46
+ __metadata("design:paramtypes", [access_business_service_1.AccessBusinessService])
47
+ ], NotificationRecipientController);
48
+ //# sourceMappingURL=notification.recipient.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.recipient.controller.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/notification.recipient.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,oFAA0F;AAC1F,2FAAsF;AACtF,2FAAqF;AAG9E,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IACxC,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAGvE,AAAN,KAAK,CAAC,gBAAgB,CAAS,IAAiC;QAC5D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,MAAM,MAAM,GAAG,MAAM,yCAAe,CAAC,aAAa,CAAC;YAC/C,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;SAC5B,CAAC,CAAC;QACH,IAAI,MAAM,EAAE,WAAW,IAAI,MAAM,EAAE,WAAW,KAAK,QAAQ,CAAC,EAAE;YAAE,MAAM,IAAI,yCAAe,EAAE,CAAC;QAE5F,MAAM,CAAC,UAAU,GAAG,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC5F,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACJ,CAAA;AAhBY,0EAA+B;AAIlC;IADL,IAAA,aAAI,GAAE;IACiB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,4DAA2B;;uEAW/D;0CAfQ,+BAA+B;IAD3C,IAAA,mBAAU,EAAC,8BAA8B,CAAC;qCAEa,+CAAqB;GADhE,+BAA+B,CAgB3C"}
@@ -0,0 +1,5 @@
1
+ export declare class AddNotificationRecipientDto {
2
+ source_type: string;
3
+ source_id: number;
4
+ notification_object: any;
5
+ }
@@ -0,0 +1,34 @@
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.AddNotificationRecipientDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class AddNotificationRecipientDto {
16
+ }
17
+ exports.AddNotificationRecipientDto = AddNotificationRecipientDto;
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], AddNotificationRecipientDto.prototype, "source_type", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ (0, class_validator_1.IsNumber)(),
27
+ __metadata("design:type", Number)
28
+ ], AddNotificationRecipientDto.prototype, "source_id", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ __metadata("design:type", Object)
33
+ ], AddNotificationRecipientDto.prototype, "notification_object", void 0);
34
+ //# sourceMappingURL=add.notification.recipient.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.notification.recipient.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/add.notification.recipient.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAuD;AAEvD,MAAa,2BAA2B;CAavC;AAbD,kEAaC;AAVG;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;gEACO;AAKpB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACO;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;wEACY"}
@@ -1,5 +1,6 @@
1
1
  export * from './add.bulk.definition.dto';
2
2
  export * from './add.item.unit.dto';
3
+ export * from './add.notification.recipient.dto';
3
4
  export * from './add.ui.business.policies.dto';
4
5
  export * from './bulk.definition.attributes.dto';
5
6
  export * from './bulk.definition.list.filter.dto';
@@ -30,6 +31,7 @@ export * from './inapp.notification.attributes.dto';
30
31
  export * from './item.unit.attributes.dto';
31
32
  export * from './item.unit.list.filter.dto';
32
33
  export * from './item.violation.attributes.dto';
34
+ export * from './lambda.zip.dto';
33
35
  export * from './listing.model.attributes.dto';
34
36
  export * from './notification.attributes.dto';
35
37
  export * from './notification.recipient.attributes.dto';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./add.bulk.definition.dto"), exports);
18
18
  __exportStar(require("./add.item.unit.dto"), exports);
19
+ __exportStar(require("./add.notification.recipient.dto"), exports);
19
20
  __exportStar(require("./add.ui.business.policies.dto"), exports);
20
21
  __exportStar(require("./bulk.definition.attributes.dto"), exports);
21
22
  __exportStar(require("./bulk.definition.list.filter.dto"), exports);
@@ -46,6 +47,7 @@ __exportStar(require("./inapp.notification.attributes.dto"), exports);
46
47
  __exportStar(require("./item.unit.attributes.dto"), exports);
47
48
  __exportStar(require("./item.unit.list.filter.dto"), exports);
48
49
  __exportStar(require("./item.violation.attributes.dto"), exports);
50
+ __exportStar(require("./lambda.zip.dto"), exports);
49
51
  __exportStar(require("./listing.model.attributes.dto"), exports);
50
52
  __exportStar(require("./notification.attributes.dto"), exports);
51
53
  __exportStar(require("./notification.recipient.attributes.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAAA,sDAAoC;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,oEAAkD;AAAA,wEAAsD;AAAA,8EAA4D;AAAA,+DAA6C;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,0DAAwC;AAAA,oEAAkD;AAAA,4EAA0D;AAAA,oEAAkD;AAAA,wEAAsD;AAAA,oEAAkD;AAAA,sEAAoD;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,uDAAqC;AAAA,oEAAkD;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,6DAA2C;AAAA,mDAAiC;AAAA,sEAAoD;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,iEAA+C;AAAA,gEAA8C;AAAA,0EAAwD;AAAA,gEAA8C;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,kEAAgD;AAAA,+DAA6C;AAAA,uEAAqD;AAAA,wEAAsD;AAAA,yEAAuD;AAAA,2DAAyC;AAAA,mEAAiD;AAAA,yEAAsD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAAA,sDAAoC;AAAA,mEAAiD;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,oEAAkD;AAAA,wEAAsD;AAAA,8EAA4D;AAAA,+DAA6C;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,0DAAwC;AAAA,oEAAkD;AAAA,4EAA0D;AAAA,oEAAkD;AAAA,wEAAsD;AAAA,oEAAkD;AAAA,sEAAoD;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,uDAAqC;AAAA,oEAAkD;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,6DAA2C;AAAA,mDAAiC;AAAA,sEAAoD;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,mDAAiC;AAAA,iEAA+C;AAAA,gEAA8C;AAAA,0EAAwD;AAAA,gEAA8C;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,kEAAgD;AAAA,+DAA6C;AAAA,uEAAqD;AAAA,wEAAsD;AAAA,yEAAuD;AAAA,2DAAyC;AAAA,mEAAiD;AAAA,yEAAsD"}
@@ -0,0 +1,4 @@
1
+ export declare class LambdaZipDto {
2
+ url: string;
3
+ fileName?: string;
4
+ }
@@ -0,0 +1,27 @@
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.LambdaZipDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class LambdaZipDto {
15
+ }
16
+ exports.LambdaZipDto = LambdaZipDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_validator_1.IsUrl)(),
20
+ __metadata("design:type", String)
21
+ ], LambdaZipDto.prototype, "url", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", String)
26
+ ], LambdaZipDto.prototype, "fileName", void 0);
27
+ //# sourceMappingURL=lambda.zip.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lambda.zip.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/lambda.zip.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,MAAa,YAAY;CAQxB;AARD,oCAQC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;yCACI;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACK"}
@@ -2,8 +2,10 @@ import { BulkDefinitionController } from './controllers/bulk.definition.controll
2
2
  import { BusinessUiPoliciesController } from './controllers/business.ui.policies.controller';
3
3
  import { GstStateController } from './controllers/gst.state.controller';
4
4
  import { ItemUnitController } from './controllers/item.unit.controller';
5
+ import { NotificationRecipientController } from './controllers/notification.recipient.controller';
5
6
  import { PdfDocumentController } from './controllers/pdf.document.controller';
6
7
  import { ViolationDefinitionController } from './controllers/violation.definition.controller';
8
+ import { AddNotificationRecipientDto } from './dtos/add.notification.recipient.dto';
7
9
  import { AddUiBusinessPoliciesDto } from './dtos/add.ui.business.policies.dto';
8
10
  import { BulkDefinitionListFilterDto } from './dtos/bulk.definition.list.filter.dto';
9
11
  import { BulkUploadSheetDto } from './dtos/bulk.upload.sheet.dto';
@@ -13,6 +15,7 @@ import { ErrorHandlingDto } from './dtos/error.handling.dto';
13
15
  import { GeneratePdfDocumentDto } from './dtos/generate.pdf.document.dto';
14
16
  import { IdPayloadDto } from './dtos/id.payload.dto';
15
17
  import { ItemUnitListFilterDto } from './dtos/item.unit.list.filter.dto';
18
+ import { LambdaZipDto } from './dtos/lambda.zip.dto';
16
19
  import { PdfDocumentDataDto } from './dtos/pdf.document.data.dto';
17
20
  import { TagAssignmentAttributesDto } from './dtos/tag.assignment.attributes.dto';
18
21
  import { BulkDefinitionEntity } from './entities/bulk.definition.entity';
@@ -109,6 +112,8 @@ import { Es6Service } from './services/es6.service';
109
112
  import { FileUploadService } from './services/file.upload.service';
110
113
  import { LambdaService } from './services/lambda.service';
111
114
  import { PdfDocumentService } from './services/pdf.document.service';
115
+ import { PdfService } from './services/pdf.service';
116
+ import { ZipService } from './services/zip.service';
112
117
  import { BulkDefinitionLoadSubscriber } from './subscribers/bulk.definition.load.subscriber';
113
118
  import { BulkDefinitionProcessingSubscriber } from './subscribers/bulk.definition.processing.subscriber';
114
119
  import { BulkDefinitionSubscriber } from './subscribers/bulk.definition.subscriber';
@@ -142,13 +147,13 @@ import { ViolationDefinitionSubscriber } from './subscribers/violation.definitio
142
147
  import { WebhookRequestSubscriber } from './subscribers/webhook.request.subscriber';
143
148
  import { WhatsappNotificationSubscriber } from './subscribers/whatsapp.notification.subscriber';
144
149
  declare const es6Classes: {
145
- controllers: (typeof BulkDefinitionController | typeof BusinessUiPoliciesController | typeof GstStateController | typeof ItemUnitController | typeof PdfDocumentController | typeof ViolationDefinitionController)[];
146
- dtos: (typeof TagAssignmentAttributesDto | typeof BulkUploadSheetDto | typeof DocumentFileUploadDto | typeof BusinessViolationApprovalDto | typeof BulkDefinitionListFilterDto | typeof ErrorHandlingDto | typeof AddUiBusinessPoliciesDto | typeof IdPayloadDto | typeof ItemUnitListFilterDto | typeof GeneratePdfDocumentDto | typeof PdfDocumentDataDto)[];
150
+ controllers: (typeof BulkDefinitionController | typeof BusinessUiPoliciesController | typeof GstStateController | typeof ItemUnitController | typeof NotificationRecipientController | typeof PdfDocumentController | typeof ViolationDefinitionController)[];
151
+ dtos: (typeof TagAssignmentAttributesDto | typeof BulkUploadSheetDto | typeof DocumentFileUploadDto | typeof BusinessViolationApprovalDto | typeof BulkDefinitionListFilterDto | typeof ErrorHandlingDto | typeof AddUiBusinessPoliciesDto | typeof IdPayloadDto | typeof ItemUnitListFilterDto | typeof AddNotificationRecipientDto | typeof GeneratePdfDocumentDto | typeof LambdaZipDto | typeof PdfDocumentDataDto)[];
147
152
  entities: (typeof TagAssignmentEntity | typeof FcmTemplateEntity | typeof FcmNotificationEntity | typeof NotificationEntity | typeof InappNotificationEntity | typeof SmsNotificationEntity | typeof WhatsappNotificationEntity | typeof EmailNotificationEntity | typeof BulkUploadColumnEntity | typeof BulkUploadTypeEntity | typeof BulkDefinitionEntity | typeof BulkDefinitionProcessingEntity | typeof BulkUploadItemEntity | typeof BulkUploadEntity | typeof UploadModificationEntity | typeof ListingModelEntity | typeof BusinessBulkDefinitionEntity | typeof UiPoliciesEntity | typeof BusinessUiPoliciesEntity | typeof ViolationDefinitionEntity | typeof BusinessViolationEntity | typeof DataAccessEntity | typeof DataMappingEntity | typeof DataViolationEntity | typeof GstStateEntity | typeof ItemUnitEntity | typeof ItemViolationEntity | typeof NotificationRecipientEntity | typeof PdfLogEntity | typeof PdfDocumentsEntity | typeof PdfTemplatesEntity | typeof WebhookRequestEntity)[];
148
153
  enums: (typeof UiPoliciesTypeEnum | typeof DataViolationStatusTypeEnum | typeof ViolationColumnTypeEnum | typeof ViolationTypeEnum)[];
149
154
  jobs: (typeof PushToBulkItemJob | typeof AnalyseBulkUploadJob | typeof BulkDefinitionJob | typeof BulkDefinitionLoadJob | typeof BulkDefinitionProcessingJob | typeof BulkUploadColumnJob | typeof BulkUploadStatsJob | typeof BulkUploadItemJob | typeof BulkUploadJob | typeof BulkUploadTypeJob | typeof BusinessBulkDefinitionJob | typeof BusinessUiPoliciesJob | typeof BusinessViolationJob | typeof DataAccessJob | typeof DataMappingJob | typeof DataViolationJob | typeof EmailNotificationJob | typeof GchatNotificationJob | typeof GstStateJob | typeof InappNotificationJob | typeof ItemUnitJob | typeof ItemViolationJob | typeof ListingModelJob | typeof NotificationJob | typeof NotificationRecipientJob | typeof PdfLogJob | typeof PdfDocumentJob | typeof SlackNotificationJob | typeof SmsNotificationJob | typeof TagAssignmentJob | typeof UiPoliciesJob | typeof UploadModificationJob | typeof ViolationDefinitionJob | typeof WebhookRequestJob | typeof WhatsappNotificationJob)[];
150
155
  libraries: (typeof ReadXlsFile | typeof AnalyseBulkUpload | typeof ProcessCommonData | typeof ProcessBulkDefinitionData | typeof ProcessBulkDefinitionList | typeof ProcessItemUnitData | typeof ProcessItemUnitList | typeof ProcessViolationDefinitionList | typeof ProcessManualPdfDocument | typeof GenerateBulkUploadSheet | typeof JsonEvaluator | typeof LoadXlsFile | typeof ProcessPdfDocument | typeof ProcessReportListing | typeof SetBulkUploadLogFile | typeof SlabsUtil)[];
151
- services: (typeof BulkUploadService | typeof FileUploadService | typeof PdfDocumentService | typeof LambdaService | typeof DataAccessService | typeof Es6JobsService | typeof Es6Service)[];
156
+ services: (typeof BulkUploadService | typeof FileUploadService | typeof PdfDocumentService | typeof LambdaService | typeof DataAccessService | typeof Es6JobsService | typeof PdfService | typeof Es6Service | typeof ZipService)[];
152
157
  subscribers: (typeof BulkDefinitionLoadSubscriber | typeof BulkDefinitionProcessingSubscriber | typeof BulkDefinitionSubscriber | typeof BulkUploadColumnSubscriber | typeof BulkUploadItemSubscriber | typeof BulkUploadSubscriber | typeof BulkUploadTypeSubscriber | typeof BusinessBulkDefinitionSubscriber | typeof BusinessUiPoliciesSubscriber | typeof BusinessViolationSubscriber | typeof DataAccessSubscriber | typeof DataMappingSubscriber | typeof DataViolationSubscriber | typeof EmailNotificationSubscriber | typeof GchatNotificationSubscriber | typeof GstStateSubscriber | typeof InappNotificationSubscriber | typeof ItemUnitSubscriber | typeof ItemViolationSubscriber | typeof ListingModelSubscriber | typeof NotificationRecipientSubscriber | typeof NotificationSubscriber | typeof PdfDocumentSubscriber | typeof PdfLogSubscriber | typeof SlackNotificationSubscriber | typeof SmsNotificationSubscriber | typeof TagAssignmentSubscriber | typeof UiPoliciesSubscriber | typeof UploadModificationSubscriber | typeof ViolationDefinitionSubscriber | typeof WebhookRequestSubscriber | typeof WhatsappNotificationSubscriber)[];
153
158
  };
154
159
  export default es6Classes;
@@ -4,10 +4,12 @@ const bulk_definition_controller_1 = require("./controllers/bulk.definition.cont
4
4
  const business_ui_policies_controller_1 = require("./controllers/business.ui.policies.controller");
5
5
  const gst_state_controller_1 = require("./controllers/gst.state.controller");
6
6
  const item_unit_controller_1 = require("./controllers/item.unit.controller");
7
+ const notification_recipient_controller_1 = require("./controllers/notification.recipient.controller");
7
8
  const pdf_document_controller_1 = require("./controllers/pdf.document.controller");
8
9
  const violation_definition_controller_1 = require("./controllers/violation.definition.controller");
9
10
  const add_bulk_definition_dto_1 = require("./dtos/add.bulk.definition.dto");
10
11
  const add_item_unit_dto_1 = require("./dtos/add.item.unit.dto");
12
+ const add_notification_recipient_dto_1 = require("./dtos/add.notification.recipient.dto");
11
13
  const add_ui_business_policies_dto_1 = require("./dtos/add.ui.business.policies.dto");
12
14
  const bulk_definition_attributes_dto_1 = require("./dtos/bulk.definition.attributes.dto");
13
15
  const bulk_definition_list_filter_dto_1 = require("./dtos/bulk.definition.list.filter.dto");
@@ -38,6 +40,7 @@ const inapp_notification_attributes_dto_1 = require("./dtos/inapp.notification.a
38
40
  const item_unit_attributes_dto_1 = require("./dtos/item.unit.attributes.dto");
39
41
  const item_unit_list_filter_dto_1 = require("./dtos/item.unit.list.filter.dto");
40
42
  const item_violation_attributes_dto_1 = require("./dtos/item.violation.attributes.dto");
43
+ const lambda_zip_dto_1 = require("./dtos/lambda.zip.dto");
41
44
  const listing_model_attributes_dto_1 = require("./dtos/listing.model.attributes.dto");
42
45
  const notification_attributes_dto_1 = require("./dtos/notification.attributes.dto");
43
46
  const notification_recipient_attributes_dto_1 = require("./dtos/notification.recipient.attributes.dto");
@@ -151,6 +154,8 @@ const es6_service_1 = require("./services/es6.service");
151
154
  const file_upload_service_1 = require("./services/file.upload.service");
152
155
  const lambda_service_1 = require("./services/lambda.service");
153
156
  const pdf_document_service_1 = require("./services/pdf.document.service");
157
+ const pdf_service_1 = require("./services/pdf.service");
158
+ const zip_service_1 = require("./services/zip.service");
154
159
  const bulk_definition_load_subscriber_1 = require("./subscribers/bulk.definition.load.subscriber");
155
160
  const bulk_definition_processing_subscriber_1 = require("./subscribers/bulk.definition.processing.subscriber");
156
161
  const bulk_definition_subscriber_1 = require("./subscribers/bulk.definition.subscriber");
@@ -189,12 +194,14 @@ const es6Classes = {
189
194
  business_ui_policies_controller_1.BusinessUiPoliciesController,
190
195
  gst_state_controller_1.GstStateController,
191
196
  item_unit_controller_1.ItemUnitController,
197
+ notification_recipient_controller_1.NotificationRecipientController,
192
198
  pdf_document_controller_1.PdfDocumentController,
193
199
  violation_definition_controller_1.ViolationDefinitionController,
194
200
  ],
195
201
  dtos: [
196
202
  add_bulk_definition_dto_1.AddBulkDefinitionDto,
197
203
  add_item_unit_dto_1.AddItemUnitDto,
204
+ add_notification_recipient_dto_1.AddNotificationRecipientDto,
198
205
  add_ui_business_policies_dto_1.AddUiBusinessPoliciesDto,
199
206
  bulk_definition_attributes_dto_1.BulkDefinitionAttributesDto,
200
207
  bulk_definition_list_filter_dto_1.BulkDefinitionListFilterDto,
@@ -225,6 +232,7 @@ const es6Classes = {
225
232
  item_unit_attributes_dto_1.ItemUnitAttributesDto,
226
233
  item_unit_list_filter_dto_1.ItemUnitListFilterDto,
227
234
  item_violation_attributes_dto_1.ItemViolationAttributesDto,
235
+ lambda_zip_dto_1.LambdaZipDto,
228
236
  listing_model_attributes_dto_1.ListingModelAttributesDto,
229
237
  notification_attributes_dto_1.NotificationAttributesDto,
230
238
  notification_recipient_attributes_dto_1.NotificationRecipientAttributesDto,
@@ -335,7 +343,17 @@ const es6Classes = {
335
343
  set_bulk_upload_log_file_1.SetBulkUploadLogFile,
336
344
  slabs_util_1.SlabsUtil,
337
345
  ],
338
- services: [bulk_upload_service_1.BulkUploadService, data_access_service_1.DataAccessService, es6_jobs_service_1.Es6JobsService, es6_service_1.Es6Service, file_upload_service_1.FileUploadService, lambda_service_1.LambdaService, pdf_document_service_1.PdfDocumentService],
346
+ services: [
347
+ bulk_upload_service_1.BulkUploadService,
348
+ data_access_service_1.DataAccessService,
349
+ es6_jobs_service_1.Es6JobsService,
350
+ es6_service_1.Es6Service,
351
+ file_upload_service_1.FileUploadService,
352
+ lambda_service_1.LambdaService,
353
+ pdf_document_service_1.PdfDocumentService,
354
+ pdf_service_1.PdfService,
355
+ zip_service_1.ZipService,
356
+ ],
339
357
  subscribers: [
340
358
  bulk_definition_load_subscriber_1.BulkDefinitionLoadSubscriber,
341
359
  bulk_definition_processing_subscriber_1.BulkDefinitionProcessingSubscriber,
@@ -1 +1 @@
1
- {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/accessUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,yFAAoF;AACpF,mGAA6F;AAC7F,6EAAwE;AACxE,6EAAwE;AACxE,mFAA8E;AAC9E,mGAA8F;AAC9F,4EAAsE;AACtE,gEAA0D;AAC1D,sFAA+E;AAC/E,0FAAoF;AACpF,4FAAqF;AACrF,oGAA6F;AAC7F,gHAAyG;AACzG,kFAA4E;AAC5E,gGAAyF;AACzF,4FAAqF;AACrF,wEAAkE;AAClE,4FAAqF;AACrF,4GAAqG;AACrG,4FAAqF;AACrF,oGAA6F;AAC7F,4FAAsF;AACtF,gGAA0F;AAC1F,kFAA4E;AAC5E,oFAA8E;AAC9E,wFAAkF;AAClF,8EAAw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kB;QAClB,2DAA2B;QAC3B,yCAAkB;QAClB,mDAAuB;QACvB,iDAAsB;QACtB,mEAA+B;QAC/B,gDAAsB;QACtB,+CAAqB;QACrB,qCAAgB;QAChB,2DAA2B;QAC3B,uDAAyB;QACzB,mDAAuB;QACvB,6CAAoB;QACpB,6DAA4B;QAC5B,+DAA6B;QAC7B,qDAAwB;QACxB,iEAA8B;KACjC;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/accessUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,yFAAoF;AACpF,mGAA6F;AAC7F,6EAAwE;AACxE,6EAAwE;AACxE,uGAAkG;AAClG,mFAA8E;AAC9E,mGAA8F;AAC9F,4EAAsE;AACtE,gEAA0D;AAC1D,0FAAoF;AACpF,sFAA+E;AAC/E,0FAAoF;AACpF,4FAAqF;AACrF,oGAA6F;AAC7F,gHAAyG;AACzG,kFAA4E;AAC5E,gGAAyF;AACzF,4FAAqF;AACrF,wEAAkE;AAClE,4FAAqF;AACrF,4GAAqG;AACrG,4FAAqF;AACrF,oGAA6F;AAC7F,4FAAsF;AACtF,gGAA0F;AAC1F,kFAA4E;AAC5E,oFAA8E;AAC9E,wFAAkF;AAClF,8EAAwE;AACxE,gGAA0F;AAC1F,kEAA6D;AAC7D,4FAAsF;AACtF,gGAA0F;AAC1F,gFAA0E;AAC1E,8EAAwE;AACxE,0DAAqD;AACrD,gGAA0F;AAC1F,8EAAwE;AACxE,gFAAyE;AACzE,wFAAkF;AAClF,0DAAqD;AACrD,sFAAgF;AAChF,oFAA+E;AAC/E,wGAAkG;AAClG,oFAA8E;AAC9E,wEAAkE;AAClE,0EAAoE;AACpE,gGAA0F;AAC1F,4FAAsF;AACtF,wFAAkF;AAClF,kFAA4E;AAC5E,kGAA4F;AAC5F,oGAA8F;AAC9F,sGAA+F;AAC/F,0EAAqE;AACrE,0FAAoF;AACpF,sGAAgG;AAChG,8EAAyE;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;QACpB,6CAAoB;QACpB,2BAAW;QACX,6CAAoB;QACpB,2BAAW;QACX,qCAAgB;QAChB,mCAAe;QACf,kCAAe;QACf,qDAAwB;QACxB,uBAAS;QACT,gCAAc;QACd,yCAAiB;QACjB,6CAAoB;QACpB,yCAAkB;QAClB,qCAAgB;QAChB,+BAAa;QACb,+CAAqB;QACrB,iDAAsB;QACtB,uCAAiB;QACjB,mDAAuB;KAC1B;IACD,SAAS,EAAE;QACP,uCAAiB;QACjB,oDAAuB;QACvB,8BAAa;QACb,2BAAW;QACX,wDAAyB;QACzB,wDAAyB;QACzB,uCAAiB;QACjB,4CAAmB;QACnB,4CAAmB;QACnB,sDAAwB;QACxB,yCAAkB;QAClB,6CAAoB;QACpB,kEAA8B;QAC9B,2BAAW;QACX,+CAAoB;QACpB,sBAAS;KACZ;IACD,QAAQ,EAAE;QACN,uCAAiB;QACjB,uCAAiB;QACjB,iCAAc;QACd,wBAAU;QACV,uCAAiB;QACjB,8BAAa;QACb,yCAAkB;QAClB,wBAAU;QACV,wBAAU;KACb;IACD,WAAW,EAAE;QACT,8DAA4B;QAC5B,0EAAkC;QAClC,qDAAwB;QACxB,0DAA0B;QAC1B,sDAAwB;QACxB,6CAAoB;QACpB,sDAAwB;QACxB,sEAAgC;QAChC,8DAA4B;QAC5B,2DAA2B;QAC3B,6CAAoB;QACpB,+CAAqB;QACrB,mDAAuB;QACvB,2DAA2B;QAC3B,2DAA2B;QAC3B,yCAAkB;QAClB,2DAA2B;QAC3B,yCAAkB;QAClB,mDAAuB;QACvB,iDAAsB;QACtB,mEAA+B;QAC/B,gDAAsB;QACtB,+CAAqB;QACrB,qCAAgB;QAChB,2DAA2B;QAC3B,uDAAyB;QACzB,mDAAuB;QACvB,6CAAoB;QACpB,6DAA4B;QAC5B,+DAA6B;QAC7B,qDAAwB;QACxB,iEAA8B;KACjC;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { FileUploadService } from './file.upload.service';
2
+ import { PdfService } from './pdf.service';
2
3
  export declare class Es6Service {
3
4
  private readonly fileUploadService;
5
+ private readonly pdfService;
4
6
  private services;
5
- constructor(fileUploadService: FileUploadService);
7
+ constructor(fileUploadService: FileUploadService, pdfService: PdfService);
6
8
  alignServices(): void;
7
9
  setServices(): void;
8
10
  }
@@ -12,10 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Es6Service = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
14
  const file_upload_service_1 = require("./file.upload.service");
15
+ const pdf_service_1 = require("./pdf.service");
15
16
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
16
17
  let Es6Service = class Es6Service {
17
- constructor(fileUploadService) {
18
+ constructor(fileUploadService, pdfService) {
18
19
  this.fileUploadService = fileUploadService;
20
+ this.pdfService = pdfService;
19
21
  this.services = {};
20
22
  this.alignServices();
21
23
  this.setServices();
@@ -23,6 +25,7 @@ let Es6Service = class Es6Service {
23
25
  alignServices() {
24
26
  this.services = {
25
27
  '3d34874e5c7f60541cf15f2c6ce48916': this.fileUploadService,
28
+ '1d1bba2785aca011c9e0a6e5fbe69f64': this.pdfService,
26
29
  };
27
30
  }
28
31
  setServices() {
@@ -32,6 +35,7 @@ let Es6Service = class Es6Service {
32
35
  exports.Es6Service = Es6Service;
33
36
  exports.Es6Service = Es6Service = __decorate([
34
37
  (0, common_1.Injectable)(),
35
- __metadata("design:paramtypes", [file_upload_service_1.FileUploadService])
38
+ __metadata("design:paramtypes", [file_upload_service_1.FileUploadService,
39
+ pdf_service_1.PdfService])
36
40
  ], Es6Service);
37
41
  //# sourceMappingURL=es6.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"es6.service.js","sourceRoot":"","sources":["../../../src/accessUtility/services/es6.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+DAA0D;AAC1D,oFAAyE;AAQlE,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGnB,YAA6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 -3,3 +3,5 @@ export * from './data.access.service';
3
3
  export * from './file.upload.service';
4
4
  export * from './lambda.service';
5
5
  export * from './pdf.document.service';
6
+ export * from './pdf.service';
7
+ export * from './zip.service';
@@ -19,4 +19,6 @@ __exportStar(require("./data.access.service"), exports);
19
19
  __exportStar(require("./file.upload.service"), exports);
20
20
  __exportStar(require("./lambda.service"), exports);
21
21
  __exportStar(require("./pdf.document.service"), exports);
22
+ __exportStar(require("./pdf.service"), exports);
23
+ __exportStar(require("./zip.service"), exports);
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,mDAAiC;AAAA,yDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,mDAAiC;AAAA,yDAAuC;AAAA,gDAA8B;AAAA,gDAA6B"}
@@ -0,0 +1,14 @@
1
+ import { CommonService, PropertyService, RemoteRequestService } from '@servicelabsco/nestjs-utility-services';
2
+ import { FileUploadService } from './file.upload.service';
3
+ export declare class PdfService extends CommonService {
4
+ protected readonly propertyService: PropertyService;
5
+ protected readonly fileUploadService: FileUploadService;
6
+ protected readonly remoteRequestService: RemoteRequestService;
7
+ protected publicExposed: boolean;
8
+ protected token: any;
9
+ constructor(propertyService: PropertyService, fileUploadService: FileUploadService, remoteRequestService: RemoteRequestService);
10
+ getUrl(template: string, data: any, path: string): Promise<string>;
11
+ getHtmlUrl(template: string, data: any, path: string): Promise<string>;
12
+ getPdfFromHtmlUrl(url: string): Promise<any>;
13
+ private getToken;
14
+ }
@@ -0,0 +1,77 @@
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.PdfService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ const pdf_templates_entity_1 = require("../entities/pdf.templates.entity");
16
+ const file_upload_service_1 = require("./file.upload.service");
17
+ let PdfService = class PdfService extends nestjs_utility_services_1.CommonService {
18
+ constructor(propertyService, fileUploadService, remoteRequestService) {
19
+ super();
20
+ this.propertyService = propertyService;
21
+ this.fileUploadService = fileUploadService;
22
+ this.remoteRequestService = remoteRequestService;
23
+ this.publicExposed = true;
24
+ }
25
+ async getUrl(template, data, path) {
26
+ const htmlUrl = await this.getHtmlUrl(template, data, path);
27
+ return this.getPdfFromHtmlUrl(htmlUrl);
28
+ }
29
+ async getHtmlUrl(template, data, path) {
30
+ const { script } = await pdf_templates_entity_1.PdfTemplatesEntity.findOne({ where: { identifier: template }, relations: ['script'] });
31
+ const compiledData = Handlebars.compile(script.script);
32
+ const htmlContent = compiledData(data);
33
+ const uniqueString = nestjs_utility_services_1.PlatformUtility.getFileName('gross-collection');
34
+ const filename = `${uniqueString}.html`;
35
+ const urlKey = `${path}/${filename}`;
36
+ const bucket = await this.propertyService.get('aws.config.bucket');
37
+ const params = {
38
+ Bucket: bucket,
39
+ Key: urlKey,
40
+ Body: htmlContent,
41
+ ContentType: 'text/html',
42
+ ACL: 'public-read',
43
+ };
44
+ return this.fileUploadService.uploadToS3(params);
45
+ }
46
+ async getPdfFromHtmlUrl(url) {
47
+ const token = await this.getToken();
48
+ const options = {
49
+ url: `https://ei5oni4xxk.execute-api.ap-south-1.amazonaws.com/prod/html-pdf`,
50
+ method: 'POST',
51
+ headers: {
52
+ 'Content-Type': 'application/json',
53
+ Authorization: `Bearer ${token}`,
54
+ },
55
+ data: {
56
+ html_url: url,
57
+ },
58
+ };
59
+ const response = await this.remoteRequestService.sendThroughAxios(options);
60
+ if (!response?.success)
61
+ throw new nestjs_utility_services_1.OperationException(response?.message);
62
+ return response?.pdf?.url;
63
+ }
64
+ async getToken() {
65
+ if (this.token)
66
+ return this.token;
67
+ this.token = await this.propertyService.get('html.to.pdf.token');
68
+ }
69
+ };
70
+ exports.PdfService = PdfService;
71
+ exports.PdfService = PdfService = __decorate([
72
+ (0, common_1.Injectable)(),
73
+ __metadata("design:paramtypes", [nestjs_utility_services_1.PropertyService,
74
+ file_upload_service_1.FileUploadService,
75
+ nestjs_utility_services_1.RemoteRequestService])
76
+ ], PdfService);
77
+ //# sourceMappingURL=pdf.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.service.js","sourceRoot":"","sources":["../../../src/accessUtility/services/pdf.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmJ;AACnJ,2EAAsE;AACtE,+DAA0D;AAOnD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,uCAAa;IASzC,YACuB,eAAgC,EAChC,iBAAoC,EACpC,oBAA0C;QAE7D,KAAK,EAAE,CAAC;QAJW,oBAAe,GAAf,eAAe,CAAiB;QAChC,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,yBAAoB,GAApB,oBAAoB,CAAsB;QAXvD,kBAAa,GAAG,IAAI,CAAC;IAc/B,CAAC;IASD,KAAK,CAAC,MAAM,CAAC,QAAgB,EAAE,IAAS,EAAE,IAA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;gBACL,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,UAAU,KAAK,EAAE;aACnC;YACD,IAAI,EAAE;gBACF,QAAQ,EAAE,GAAG;aAChB;SACJ,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,QAAQ,EAAE,OAAO;YAAE,MAAM,IAAI,4CAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAExE,OAAO,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC;IAC9B,CAAC;IAMO,KAAK,CAAC,QAAQ;QAClB,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC,KAAK,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACrE,CAAC;CACJ,CAAA;AA1FY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAW+B,yCAAe;QACb,uCAAiB;QACd,8CAAoB;GAZxD,UAAU,CA0FtB"}
@@ -0,0 +1,11 @@
1
+ import { PropertyService, RemoteRequestService } from '@servicelabsco/nestjs-utility-services';
2
+ import { LambdaZipDto } from '../dtos/lambda.zip.dto';
3
+ export declare class ZipService {
4
+ protected readonly propertyService: PropertyService;
5
+ protected readonly remoteRequestService: RemoteRequestService;
6
+ private zipToken;
7
+ constructor(propertyService: PropertyService, remoteRequestService: RemoteRequestService);
8
+ zip(files: LambdaZipDto[]): Promise<any>;
9
+ unzip(zip: string): Promise<string[]>;
10
+ private getZipToken;
11
+ }
@@ -0,0 +1,52 @@
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.ZipService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let ZipService = class ZipService {
16
+ constructor(propertyService, remoteRequestService) {
17
+ this.propertyService = propertyService;
18
+ this.remoteRequestService = remoteRequestService;
19
+ }
20
+ async zip(files) {
21
+ const token = await this.getZipToken();
22
+ if (!token)
23
+ throw new nestjs_utility_services_1.OperationException('Zip token not found');
24
+ const options = {
25
+ method: 'POST',
26
+ url: 'https://5rpkoai7vk.execute-api.ap-south-1.amazonaws.com/prod/zip-files',
27
+ headers: {
28
+ Authorization: `Bearer ${token}`,
29
+ 'Content-Type': 'application/json',
30
+ },
31
+ data: files,
32
+ timeout: 900000,
33
+ };
34
+ const response = await this.remoteRequestService.sendThroughAxios(options);
35
+ return response?.data?.zipUrl;
36
+ }
37
+ async unzip(zip) {
38
+ return ['file1', 'file2', 'file3'];
39
+ }
40
+ async getZipToken() {
41
+ if (this.zipToken)
42
+ return this.zipToken;
43
+ this.zipToken = await this.propertyService.get('slabs.lambda.zip.token');
44
+ }
45
+ };
46
+ exports.ZipService = ZipService;
47
+ exports.ZipService = ZipService = __decorate([
48
+ (0, common_1.Injectable)(),
49
+ __metadata("design:paramtypes", [nestjs_utility_services_1.PropertyService,
50
+ nestjs_utility_services_1.RemoteRequestService])
51
+ ], ZipService);
52
+ //# sourceMappingURL=zip.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip.service.js","sourceRoot":"","sources":["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1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/slabs-access-manager",
3
- "version": "0.1.328",
3
+ "version": "0.1.330",
4
4
  "description": "Support for application level menus and dashboards",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",