@servicelabsco/slabs-access-manager 0.1.328 → 0.1.329
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.
- package/dist/accessUtility/controllers/index.d.ts +1 -0
- package/dist/accessUtility/controllers/index.js +1 -0
- package/dist/accessUtility/controllers/index.js.map +1 -1
- package/dist/accessUtility/controllers/notification.recipient.controller.d.ts +7 -0
- package/dist/accessUtility/controllers/notification.recipient.controller.js +48 -0
- package/dist/accessUtility/controllers/notification.recipient.controller.js.map +1 -0
- package/dist/accessUtility/dtos/add.notification.recipient.dto.d.ts +5 -0
- package/dist/accessUtility/dtos/add.notification.recipient.dto.js +34 -0
- package/dist/accessUtility/dtos/add.notification.recipient.dto.js.map +1 -0
- package/dist/accessUtility/dtos/index.d.ts +2 -0
- package/dist/accessUtility/dtos/index.js +2 -0
- package/dist/accessUtility/dtos/index.js.map +1 -1
- package/dist/accessUtility/dtos/lambda.zip.dto.d.ts +4 -0
- package/dist/accessUtility/dtos/lambda.zip.dto.js +27 -0
- package/dist/accessUtility/dtos/lambda.zip.dto.js.map +1 -0
- package/dist/accessUtility/es6.classes.d.ts +4 -2
- package/dist/accessUtility/es6.classes.js +4 -0
- package/dist/accessUtility/es6.classes.js.map +1 -1
- package/dist/accessUtility/services/index.d.ts +1 -0
- package/dist/accessUtility/services/index.js +1 -0
- package/dist/accessUtility/services/index.js.map +1 -1
- package/dist/accessUtility/services/zip.service.d.ts +11 -0
- package/dist/accessUtility/services/zip.service.js +51 -0
- package/dist/accessUtility/services/zip.service.js.map +1 -0
- package/package.json +1 -1
|
@@ -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,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,6DAA2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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;AALA;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';
|
|
@@ -142,8 +144,8 @@ import { ViolationDefinitionSubscriber } from './subscribers/violation.definitio
|
|
|
142
144
|
import { WebhookRequestSubscriber } from './subscribers/webhook.request.subscriber';
|
|
143
145
|
import { WhatsappNotificationSubscriber } from './subscribers/whatsapp.notification.subscriber';
|
|
144
146
|
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)[];
|
|
147
|
+
controllers: (typeof BulkDefinitionController | typeof BusinessUiPoliciesController | typeof GstStateController | typeof ItemUnitController | typeof NotificationRecipientController | typeof PdfDocumentController | typeof ViolationDefinitionController)[];
|
|
148
|
+
dtos: (typeof TagAssignmentAttributesDto | typeof BulkUploadSheetDto | typeof DocumentFileUploadDto | typeof BusinessViolationApprovalDto | typeof BulkDefinitionListFilterDto | typeof ErrorHandlingDto | typeof AddUiBusinessPoliciesDto | typeof IdPayloadDto | typeof ItemUnitListFilterDto | typeof AddNotificationRecipientDto | typeof GeneratePdfDocumentDto | typeof PdfDocumentDataDto)[];
|
|
147
149
|
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
150
|
enums: (typeof UiPoliciesTypeEnum | typeof DataViolationStatusTypeEnum | typeof ViolationColumnTypeEnum | typeof ViolationTypeEnum)[];
|
|
149
151
|
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)[];
|
|
@@ -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");
|
|
@@ -189,12 +191,14 @@ const es6Classes = {
|
|
|
189
191
|
business_ui_policies_controller_1.BusinessUiPoliciesController,
|
|
190
192
|
gst_state_controller_1.GstStateController,
|
|
191
193
|
item_unit_controller_1.ItemUnitController,
|
|
194
|
+
notification_recipient_controller_1.NotificationRecipientController,
|
|
192
195
|
pdf_document_controller_1.PdfDocumentController,
|
|
193
196
|
violation_definition_controller_1.ViolationDefinitionController,
|
|
194
197
|
],
|
|
195
198
|
dtos: [
|
|
196
199
|
add_bulk_definition_dto_1.AddBulkDefinitionDto,
|
|
197
200
|
add_item_unit_dto_1.AddItemUnitDto,
|
|
201
|
+
add_notification_recipient_dto_1.AddNotificationRecipientDto,
|
|
198
202
|
add_ui_business_policies_dto_1.AddUiBusinessPoliciesDto,
|
|
199
203
|
bulk_definition_attributes_dto_1.BulkDefinitionAttributesDto,
|
|
200
204
|
bulk_definition_list_filter_dto_1.BulkDefinitionListFilterDto,
|
|
@@ -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,8EAAwE;AACxE,gGAA0F;AAC1F,kEAA6D;AAC7D,4FAAsF;AACtF,gGAA0F;AAC1F,gFAA0E;AAC1E,8EAAwE;AACxE,0DAAqD;AACrD,gGAA0F;AAC1F,8EAAwE;AACxE,gFAAyE;AACzE,wFAAkF;AAClF,sFAAgF;AAChF,oFAA+E;AAC/E,wGAAkG;AAClG,oFAA8E;AAC9E,wEAAkE;AAClE,0EA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,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,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;AACzE,wFAAkF;AAClF,oGAA8F;AAC9F,oFAA8E;AAC9E,sEAAiE;AACjE,gFAA0E;AAC1E,gFAA0E;AAC1E,gGAA0F;AAC1F,wFAAkF;AAClF,oFAA+E;AAC/E,sEAAiE;AACjE,wEAAmE;AACnE,4EAAuE;AACvE,oFAA+E;AAC/E,gFAA2E;AAC3E,wEAAmE;AACnE,oFAA+E;AAC/E,kEAA6D;AA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,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,CAAC,uCAAiB,EAAE,uCAAiB,EAAE,iCAAc,EAAE,wBAAU,EAAE,uCAAiB,EAAE,8BAAa,EAAE,yCAAkB,CAAC;IAClI,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"}
|
|
@@ -19,4 +19,5 @@ __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("./zip.service"), exports);
|
|
22
23
|
//# 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,
|
|
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,gDAA6B"}
|
|
@@ -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,51 @@
|
|
|
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, nestjs_utility_services_1.RemoteRequestService])
|
|
50
|
+
], ZipService);
|
|
51
|
+
//# sourceMappingURL=zip.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zip.service.js","sourceRoot":"","sources":["../../../src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