@servicelabsco/slabs-access-manager 0.1.325 → 0.1.327
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/entities/data.violation.entity.d.ts +1 -0
- package/dist/accessUtility/entities/data.violation.entity.js +4 -0
- package/dist/accessUtility/entities/data.violation.entity.js.map +1 -1
- package/dist/accessUtility/es6.classes.d.ts +2 -1
- package/dist/accessUtility/jobs/data.violation.job.js +4 -3
- package/dist/accessUtility/jobs/data.violation.job.js.map +1 -1
- package/dist/migrations/1770748766117-AddActiveBzDataViolationsTable.ts.d.ts +5 -0
- package/dist/migrations/1770748766117-AddActiveBzDataViolationsTable.ts.js +15 -0
- package/dist/migrations/1770748766117-AddActiveBzDataViolationsTable.ts.js.map +1 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export declare class DataViolationEntity extends CommonEntity {
|
|
|
11
11
|
source_type: string;
|
|
12
12
|
user_comments: string;
|
|
13
13
|
closure_comments: string;
|
|
14
|
+
active: boolean;
|
|
14
15
|
attributes: DataViolationAttributesDto;
|
|
15
16
|
business: AccessBusinessEntity;
|
|
16
17
|
violation: BusinessViolationEntity;
|
|
@@ -50,6 +50,10 @@ __decorate([
|
|
|
50
50
|
(0, typeorm_1.Column)(),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], DataViolationEntity.prototype, "closure_comments", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ default: true }),
|
|
55
|
+
__metadata("design:type", Boolean)
|
|
56
|
+
], DataViolationEntity.prototype, "active", void 0);
|
|
53
57
|
__decorate([
|
|
54
58
|
(0, typeorm_1.Column)('json'),
|
|
55
59
|
__metadata("design:type", data_violation_attributes_dto_1.DataViolationAttributesDto)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.violation.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/data.violation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAqG;AACrG,qCAAgE;AAChE,yFAAoF;AACpF,yFAAmF;AACnF,2EAAsE;AAS/D,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,sCAAY;
|
|
1
|
+
{"version":3,"file":"data.violation.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/data.violation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAqG;AACrG,qCAAgE;AAChE,yFAAoF;AACpF,yFAAmF;AACnF,2EAAsE;AAS/D,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,sCAAY;CAoCpD,CAAA;AApCY,kDAAmB;AAE5B;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;yDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;sDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;sDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;0DACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;6DACgB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDACV;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,0DAA0B;uDAAC;AAGqC;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;qDAAC;AAC3B;IAA/E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mDAAuB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BAAY,mDAAuB;sDAAC;AAC5C;IAAtE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAAS,2CAAiB;mDAAC;AAC/B;IAAjE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,oCAAU;qDAAC;8BAnC9E,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,mBAAmB,CAoC/B"}
|
|
@@ -33,6 +33,7 @@ import { FcmTemplateEntity } from './entities/fcm.template.entity';
|
|
|
33
33
|
import { GstStateEntity } from './entities/gst.state.entity';
|
|
34
34
|
import { InappNotificationEntity } from './entities/inapp.notification.entity';
|
|
35
35
|
import { ItemUnitEntity } from './entities/item.unit.entity';
|
|
36
|
+
import { ItemViolationEntity } from './entities/item.violation.entity';
|
|
36
37
|
import { ListingModelEntity } from './entities/listing.model.entity';
|
|
37
38
|
import { NotificationEntity } from './entities/notification.entity';
|
|
38
39
|
import { NotificationRecipientEntity } from './entities/notification.recipient.entity';
|
|
@@ -143,7 +144,7 @@ import { WhatsappNotificationSubscriber } from './subscribers/whatsapp.notificat
|
|
|
143
144
|
declare const es6Classes: {
|
|
144
145
|
controllers: (typeof BulkDefinitionController | typeof BusinessUiPoliciesController | typeof GstStateController | typeof ItemUnitController | typeof PdfDocumentController | typeof ViolationDefinitionController)[];
|
|
145
146
|
dtos: (typeof TagAssignmentAttributesDto | typeof BulkUploadSheetDto | typeof DocumentFileUploadDto | typeof BusinessViolationApprovalDto | typeof BulkDefinitionListFilterDto | typeof ErrorHandlingDto | typeof AddUiBusinessPoliciesDto | typeof IdPayloadDto | typeof ItemUnitListFilterDto | typeof GeneratePdfDocumentDto | typeof PdfDocumentDataDto)[];
|
|
146
|
-
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 NotificationRecipientEntity | typeof PdfLogEntity | typeof PdfDocumentsEntity | typeof PdfTemplatesEntity | typeof WebhookRequestEntity)[];
|
|
147
|
+
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)[];
|
|
147
148
|
enums: (typeof UiPoliciesTypeEnum | typeof DataViolationStatusTypeEnum | typeof ViolationColumnTypeEnum | typeof ViolationTypeEnum)[];
|
|
148
149
|
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)[];
|
|
149
150
|
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)[];
|
|
@@ -30,10 +30,11 @@ let DataViolationJob = class DataViolationJob extends nestjs_utility_services_1.
|
|
|
30
30
|
const source = await nestjs_utility_services_1.PlatformUtility.getSourceData({ source_type, source_id });
|
|
31
31
|
if (!source)
|
|
32
32
|
return null;
|
|
33
|
-
const count = await data_violation_entity_1.DataViolationEntity.count({
|
|
33
|
+
const count = await data_violation_entity_1.DataViolationEntity.count({
|
|
34
|
+
where: { source_type, source_id, status_id: (0, typeorm_1.Not)(data_violation_status_type_enum_1.DataViolationStatusTypeEnum.APPROVED), active: true },
|
|
35
|
+
});
|
|
34
36
|
source.attributes = { ...source.attributes, violations_count: count || 0 };
|
|
35
|
-
|
|
36
|
-
return null;
|
|
37
|
+
return source.save();
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
exports.DataViolationJob = DataViolationJob;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.violation.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/data.violation.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAoH;AACpH,qCAA8B;AAC9B,6EAAwE;AACxE,8FAAuF;AAMhF,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,mCAAS;IAC3C,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IAOD,KAAK,CAAC,MAAM,CAAC,GAA0C;QACnD,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,GAA0C;QACvE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;QAErG,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;QAE9C,MAAM,MAAM,GAAG,MAAM,yCAAe,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;QAC/E,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAEzB,MAAM,KAAK,GAAG,MAAM,2CAAmB,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"data.violation.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/data.violation.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAoH;AACpH,qCAA8B;AAC9B,6EAAwE;AACxE,8FAAuF;AAMhF,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,mCAAS;IAC3C,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IAOD,KAAK,CAAC,MAAM,CAAC,GAA0C;QACnD,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,GAA0C;QACvE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;QAErG,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;QAE9C,MAAM,MAAM,GAAG,MAAM,yCAAe,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;QAC/E,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAEzB,MAAM,KAAK,GAAG,MAAM,2CAAmB,CAAC,KAAK,CAAC;YAC1C,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,IAAA,aAAG,EAAC,6DAA2B,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;SACxG,CAAC,CAAC;QAEH,MAAM,CAAC,UAAU,GAAG,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QAC3E,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACJ,CAAA;AA7BY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,gBAAgB,CA6B5B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddActiveBzDataViolationsTable1770748766117 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class AddActiveBzDataViolationsTable1770748766117 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('bz_data_violations');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.boolean('active');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.AddActiveBzDataViolationsTable1770748766117 = AddActiveBzDataViolationsTable1770748766117;
|
|
15
|
+
//# sourceMappingURL=1770748766117-AddActiveBzDataViolationsTable.ts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1770748766117-AddActiveBzDataViolationsTable.ts.js","sourceRoot":"","sources":["../../src/migrations/1770748766117-AddActiveBzDataViolationsTable.ts.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,2CAA4C,SAAQ,0CAAgB;IAC7E;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC;CACJ;AATD,kGASC"}
|
package/package.json
CHANGED