@servicelabsco/slabs-access-manager 0.1.265 → 0.1.267
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/access/controllers/bulk.upload.controller.js +10 -1
- package/dist/access/controllers/bulk.upload.controller.js.map +1 -1
- package/dist/access/es6.classes.d.ts +3 -3
- package/dist/access/jobs/business.group.role.job.js.map +1 -1
- package/dist/access/jobs/business.user.group.job.d.ts +2 -0
- package/dist/access/jobs/business.user.group.job.js +41 -0
- package/dist/access/jobs/business.user.group.job.js.map +1 -1
- package/dist/access/jobs/group.member.job.js.map +1 -1
- package/dist/access/libraries/process.application.menu.js.map +1 -1
- package/dist/access/libraries/process.business.group.role.updation.d.ts +1 -4
- package/dist/access/libraries/process.business.group.role.updation.js +13 -3
- package/dist/access/libraries/process.business.group.role.updation.js.map +1 -1
- package/dist/access/libraries/process.group.member.updation.d.ts +1 -1
- package/dist/access/libraries/process.group.member.updation.js +2 -2
- package/dist/access/libraries/process.group.member.updation.js.map +1 -1
- package/dist/accessUtility/controllers/bulk.definition.controller.d.ts +20 -0
- package/dist/accessUtility/controllers/bulk.definition.controller.js +152 -0
- package/dist/accessUtility/controllers/bulk.definition.controller.js.map +1 -0
- 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/dtos/add.bulk.definition.dto.d.ts +7 -0
- package/dist/accessUtility/dtos/add.bulk.definition.dto.js +44 -0
- package/dist/accessUtility/dtos/add.bulk.definition.dto.js.map +1 -0
- package/dist/accessUtility/dtos/bulk.definition.list.filter.dto.d.ts +4 -0
- package/dist/accessUtility/dtos/bulk.definition.list.filter.dto.js +24 -0
- package/dist/accessUtility/dtos/bulk.definition.list.filter.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/entities/bulk.definition.entity.d.ts +5 -0
- package/dist/accessUtility/entities/bulk.definition.entity.js +18 -0
- package/dist/accessUtility/entities/bulk.definition.entity.js.map +1 -1
- package/dist/accessUtility/es6.classes.d.ts +8 -3
- package/dist/accessUtility/es6.classes.js +10 -1
- package/dist/accessUtility/es6.classes.js.map +1 -1
- package/dist/accessUtility/libraries/index.d.ts +2 -0
- package/dist/accessUtility/libraries/index.js +2 -0
- package/dist/accessUtility/libraries/index.js.map +1 -1
- package/dist/accessUtility/libraries/process.bulk.definition.data.d.ts +15 -0
- package/dist/accessUtility/libraries/process.bulk.definition.data.js +86 -0
- package/dist/accessUtility/libraries/process.bulk.definition.data.js.map +1 -0
- package/dist/accessUtility/libraries/process.bulk.definition.list.d.ts +21 -0
- package/dist/accessUtility/libraries/process.bulk.definition.list.js +41 -0
- package/dist/accessUtility/libraries/process.bulk.definition.list.js.map +1 -0
- package/dist/accessUtility/libraries/read.xls.file.js.map +1 -1
- package/dist/app.controller.d.ts +1 -1
- package/dist/app.controller.js +10 -1
- package/dist/app.controller.js.map +1 -1
- package/dist/migrations/1755835361591-AddSourceAndDescriptionUtlBulkDefinitionsTable.d.ts +5 -0
- package/dist/migrations/1755835361591-AddSourceAndDescriptionUtlBulkDefinitionsTable.js +17 -0
- package/dist/migrations/1755835361591-AddSourceAndDescriptionUtlBulkDefinitionsTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -61,7 +61,16 @@ let BulkUploadController = class BulkUploadController {
|
|
|
61
61
|
throw new nestjs_utility_services_1.AccessException();
|
|
62
62
|
upload.definition = await bulk_definition_entity_1.BulkDefinitionEntity.findOne({
|
|
63
63
|
where: { id: upload.definition_id },
|
|
64
|
-
relations: [
|
|
64
|
+
relations: [
|
|
65
|
+
'script',
|
|
66
|
+
'post_script',
|
|
67
|
+
'loads',
|
|
68
|
+
'loads.type',
|
|
69
|
+
'loads.type.columns',
|
|
70
|
+
'processings',
|
|
71
|
+
'processings.type',
|
|
72
|
+
'processings.type.columns',
|
|
73
|
+
],
|
|
65
74
|
});
|
|
66
75
|
return upload;
|
|
67
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.upload.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/bulk.upload.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAuF;AACvF,oFAAyG;AACzG,qCAAsC;AACtC,gGAA0F;AAC1F,gGAA2F;AAC3F,0GAAoG;AACpG,sGAAgG;AAChG,wFAAmF;AACnF,kGAA4F;AAC5F,yGAAmG;AACnG,0FAAqF;AACrF,+FAAuF;AACvF,qFAA8E;AAC9E,mEAA8D;AAC9D,8FAAuF;AACvF,oFAA8E;AAC9E,iFAA4E;AAC5E,iEAA6D;AAQtD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YACqB,qBAA4C,EAC5C,aAA4B,EAC5B,iBAAoC,EACpC,cAA8B,EAC9B,eAAgC;QAJhC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,kBAAa,GAAb,aAAa,CAAe;QAC5B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,oBAAe,GAAf,eAAe,CAAiB;IAClD,CAAC;IAGE,AAAN,KAAK,CAAC,MAAM,CAAS,IAA6B;QAC9C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,OAAO,IAAI,gDAAqB,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAU,MAAwB;QACxC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,MAAM,CAAC,GAAG,MAAM,qCAAgB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE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AAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;mDAM9C;AAGK;IADL,IAAA,YAAG,EAAC,4BAA4B,CAAC;IAChB,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;sDAmBjD;AAGK;IADL,IAAA,aAAI,EAAC,kBAAkB,CAAC;IACT,WAAA,IAAA,cAAK,GAAE,CAAA;IAA4B,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAzB,qCAAgB,EAAgB,8DAA2B;;oDAM1F;AAGK;IADL,IAAA,YAAG,EAAC,YAAY,CAAC;IACH,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;mDAa9C;+BA9HQ,oBAAoB;IADhC,IAAA,mBAAU,EAAC,mBAAmB,CAAC;qCAGgB,+CAAqB;QAC7B,uCAAa;QACT,uCAAiB;QACpB,gCAAc;QACb,yCAAe;GAN5C,oBAAoB,CA+HhC"}
|
|
@@ -409,13 +409,13 @@ import { WhitelistedWhatsappNumberSubscriber } from './subscribers/whitelisted.w
|
|
|
409
409
|
declare const es6Classes: {
|
|
410
410
|
commands: (typeof WebhookPollCommand)[];
|
|
411
411
|
controllers: (typeof AccessMenuController | typeof ApiAccountController | typeof BulkUploadController | typeof BulkUploadItemController | typeof BusinessAppIntegrationController | typeof BusinessNotificationChannelPreferenceController | typeof BusinessPreferenceController | typeof BusinessReportController | typeof BusinessUserGroupController | typeof BusinessUserNotificationPreferenceController | typeof BusinessWebhookController | typeof ChoiceListController | typeof ChoiceTypeController | typeof CommonWebhookController | typeof CustomFieldController | typeof DashboardBuilderController | typeof DashboardComponentController | typeof DashboardController | typeof DashboardReportController | typeof DeveloperModeController | typeof DownloadLogController | typeof EmailRuleController | typeof FcmTokenController | typeof GroupMemberController | typeof GroupRoleController | typeof ListingController | typeof ListingPreferenceController | typeof ScheduledReportController | typeof ScheduledReportItemController | typeof TagController | typeof UserBusinessSecretController | typeof UserNotificationController | typeof UserPreferenceController)[];
|
|
412
|
-
dtos: (typeof EmailRuleAttributesDto | typeof EmailMessageNormalizedDto | typeof NotificationPayloadDto | typeof SendEmailNotificationDataDto | typeof EmailRecipientToDto | typeof GchatPostingPayloadDto | typeof BoardCastInternalStatusMessageDto | typeof WhatsappPostingPayloadDto | typeof SendWhatsappMessagePayloadDto | typeof AddShortUrlDto | typeof BankAccountPayloadDto | typeof RecurringDefinitionDto | typeof
|
|
412
|
+
dtos: (typeof EmailRuleAttributesDto | typeof EmailMessageNormalizedDto | typeof NotificationPayloadDto | typeof SendEmailNotificationDataDto | typeof EmailRecipientToDto | typeof GchatPostingPayloadDto | typeof BoardCastInternalStatusMessageDto | typeof WhatsappPostingPayloadDto | typeof SendWhatsappMessagePayloadDto | typeof AddShortUrlDto | typeof BankAccountPayloadDto | typeof RecurringDefinitionDto | typeof DbFindDto | typeof AddListingPreferenceDto | typeof ListResponseDto | typeof DateRangeFilterDto | typeof DateFilterDto | typeof ListResponseFormatDto | typeof NumberRangeFilterDto | typeof CommonListFilterDto | typeof ProcessCommonListConfigDto | typeof SendWebhookRequestPayload | typeof AccessBusinessParamDto | typeof AddIntegrationPreferenceDto | typeof AddBusinessPreferenceDto | typeof GenerateBusinessReportDto | typeof AddBusinessUserNotificationPreferenceDto | typeof AddWebhookDto | typeof ModifyCustomFieldStatusDto | typeof GetScriptValuesDto | typeof AddDashboardComponentPropertiesDto | typeof AddDashboardComponentDto | typeof StringSearchDto | typeof EditQueryDto | typeof TokenPayloadDto | typeof AddGroupMemberDto | typeof AddRoleDto | typeof AddScheduledReportDto | typeof AddBusinessAppIntegrationDto | typeof AddConversationDto | typeof AddTagDto | typeof BusinessAppIntegrationMessagePayloadDto | typeof ProcessListingPayloadDto | typeof RequestLogOptionsDto | typeof ServerEmailRecipientsDto | typeof ServerEmailMessageDto | typeof SlackMessageDataDto)[];
|
|
413
413
|
entities: (typeof AccessBusinessEntity | typeof BusinessEmailEntity | typeof EmailMessageEntity | typeof EmailRecipientEntity | typeof BusinessUserEntity | typeof ProductEntity | typeof EmailStyleEntity | typeof EmailTemplateLogEntity | typeof EmailTemplateRecipientEntity | typeof FcmMessageEntity | typeof FcmTokenEntity | typeof GchatUserEntity | typeof GchatMessageEntity | typeof GchatWebhookMessageEntity | typeof SlackMessageEntity | typeof BzNotificationChannelPreferenceEntity | typeof SlackIntegrationEntity | typeof SlackUserEntity | typeof WhatsappMessageEntity | typeof WhatsappPreferenceEntity | typeof BusinessAppIntegrationCredentialEntity | typeof BusinessAppIntegrationMessagesEntity | typeof BusinessDownloadableReportEntity | typeof BusinessGroupRoleEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof UiActionRoleEntity | typeof MenuActionEntity | typeof ChildMenuEntity | typeof BusinessMenuEntity | typeof BusinessReportEntity | typeof GroupRoleEntity | typeof BusinessUserRoleEntity | typeof BusinessWebhookEntity | typeof ConversationEntity | typeof DashboardComponentEntity | typeof DownloadLogEntity | typeof GroupMemberEntity | typeof PreferenceUserEntity | typeof PreferenceUserGroupEntity | typeof ModuleMenuEntity | typeof ReportLogEntity | typeof RequestLogEntity | typeof ScheduledReportEntity | typeof ScheduledReportEmailEntity | typeof ScheduledReportItemEntity | typeof SlackWebhookMessageEntity | typeof UserNotificationEntity | typeof UserRoleEntity | typeof WatchlistAssignmentEntity | typeof WebhookLogEntity | typeof WebhookSlugEntity)[];
|
|
414
414
|
enums: (typeof NotificationTypeEnum | typeof NotificationChannelTypeEnum | typeof RecurringPeriodEnum | typeof CustomColumnTypeEnum | typeof ProductTypeEnum | typeof PlatformTypeEnum)[];
|
|
415
415
|
jobs: (typeof EvaluateEmailRuleJob | typeof WhatsappMessagePayloadDto | typeof AccessTestJob | typeof ApiAccountJob | typeof AppIntegrationJob | typeof BusinessAppIntegrationCredentialJob | typeof BusinessAppIntegrationJob | typeof BusinessAppIntegrationMessagesJob | typeof BusinessDownloadableReportJob | typeof BusinessEmailJob | typeof BusinessGroupRoleJob | typeof BusinessMenuJob | typeof BusinessPreferenceJob | typeof GenerateBusinessReportJob | typeof BusinessReportJob | typeof BusinessUserGroupJob | typeof BusinessUserJob | typeof BusinessUserNotificationPreferenceJob | typeof BusinessUserRoleJob | typeof BusinessWebhookJob | typeof BzNotificationChannelPreferenceJob | typeof ChildMenuJob | typeof ChoiceListJob | typeof ChoiceTypeJob | typeof ConversationJob | typeof CustomFieldJob | typeof CustomReportJob | typeof DashboardComponentJob | typeof DashboardJob | typeof DownloadLogJob | typeof EmailAttachmentJob | typeof EmailMessageJob | typeof EmailRecipientJob | typeof EmailRuleJob | typeof EmailStyleJob | typeof EmailTemplateLogJob | typeof EmailTemplateRecipientJob | typeof FcmMessageJob | typeof FcmNotificationJob | typeof FcmTemplateJob | typeof FcmTokenJob | typeof GchatIncomingWebhookJob | typeof GchatMessageJob | typeof GchatTemplateJob | typeof GchatUserJob | typeof GchatWebhookJob | typeof GchatWebhookMessageJob | typeof GroupMemberJob | typeof GroupRoleJob | typeof ListPreferenceJob | typeof ListingColumnJob | typeof ListingPageJob | typeof ListingPreferenceJob | typeof MenuActionJob | typeof MenuJob | typeof MenuRoleJob | typeof ModuleJob | typeof ModuleMenuJob | typeof PreferenceUserGroupJob | typeof PreferenceUsersJob | typeof ProcessServerEmailJob | typeof ProductJob | typeof ReportLogJob | typeof RequestLogJob | typeof RoleGroupJob | typeof ScheduledReportEmailJob | typeof ScheduledReportItemJob | typeof ScheduledReportJob | typeof SlackIncomingWebhookJob | typeof SlackIntegrationJob | typeof SlackMessageJob | typeof SlackTemplateJob | typeof SlackUserJob | typeof SlackWebhookJob | typeof SlackWebhookMessageJob | typeof SyncBURoleJob | typeof UiActionJob | typeof UiActionRoleJob | typeof UserBusinessSecretJob | typeof UserNotificationJob | typeof UserPreferenceJob | typeof UserRoleJob | typeof WatchlistAssignmentJob | typeof WebhookEventJob | typeof WebhookLogJob | typeof WebhookSlugJob | typeof WebhookTypeJob | typeof WhatsappIncomingWebhookJob | typeof WhatsappMessageJob | typeof WhatsappTemplateJob | typeof WhitelistedWhatsappNumberJob)[];
|
|
416
|
-
libraries: (typeof EvaluateEmailRule | typeof ProcessEmailNotification | typeof SendEmailNotification | typeof SendFcmNotification | typeof SendGchatMessageNotification | typeof SendGchatWebhookNotification | typeof SendSlackMessageNotification | typeof SendSlackWebhookNotification | typeof ProcessWhatsappMessage | typeof SendWhatsappMessageNotification | typeof
|
|
416
|
+
libraries: (typeof EvaluateEmailRule | typeof ProcessEmailNotification | typeof SendEmailNotification | typeof SendFcmNotification | typeof SendGchatMessageNotification | typeof SendGchatWebhookNotification | typeof SendSlackMessageNotification | typeof SendSlackWebhookNotification | typeof ProcessWhatsappMessage | typeof SendWhatsappMessageNotification | typeof ProcessDbFind | typeof ProcessDateFilter | typeof ProcessCommonList | typeof ProcessListingCsvFile | typeof SendWebhookRequest | typeof ProcessApplicationMenu | typeof ProcessMenuDetails | typeof ProcessApiAccountData | typeof ProcessApiAccountList | typeof ProcessBulkUploadItemList | typeof ProcessBulkUploadList | typeof ProcessWhatsappIntegration | typeof ProcessAppIntegration | typeof ProcessBusinessNotificationChannelPreferenceList | typeof ProcessBusinessUserGroupList | typeof ProcessUserGroupCreation | typeof ProcessBusinessUserNotificationPreferenceList | typeof ProcessChoiceListData | typeof ProcessChoiceTypeList | typeof ProcessChoiceTypeData | typeof ProcessSlackIntegration | typeof ProcessZohoIntegration | typeof ProcessCustomFieldList | typeof ProcessCustomFieldCreation | typeof ProcessDashboardReportData | typeof ProcessReportData | typeof ProcessCreateDashboardComponent | typeof ProcessDashboardComponent | typeof ProcessDashboardReport | typeof ProcessDownloadLogList | typeof ProcessEmailRuleData | typeof ProcessEmailRuleList | typeof SetFcmToken | typeof ProcessGroupMemberList | typeof ProcessGroupRoleList | typeof ProcessPreferenceData | typeof ProcessScheduledReportData | typeof ProcessScheduledReportList | typeof ProcessScheduledReportItemList | typeof CreateUserBusinessSecret | typeof ProcessUserNotificationList | typeof ProcessRevokeSlackIntegration | typeof ProcessRevokeZohoIntegration | typeof ProcessBusinessGroupRoleUpdation | typeof ProcessBusinessUserRoleUpdate | typeof ProcessGroupMemberUpdation | typeof SyncBusinessUserRole | typeof CommonTagController | typeof ProcessConversationData | typeof ConversationController | typeof ValidateCustomFieldData | typeof ProcessCommonCustomField | typeof ProcessNotification | typeof ProcessSlackMessage | typeof ProcessTestList)[];
|
|
417
417
|
middlewares: (typeof BusinessMiddleware | typeof ExternalAccessMiddleware | typeof UserBusinessAccessMiddleware)[];
|
|
418
|
-
services: (typeof SendEmailService | typeof GchatService | typeof SlackService | typeof WhatsappService | typeof NotificationService | typeof SlabsService | typeof AccessBusinessService | typeof
|
|
418
|
+
services: (typeof SendEmailService | typeof GchatService | typeof SlackService | typeof WhatsappService | typeof NotificationService | typeof SlabsService | typeof AccessBusinessService | typeof ListingService | typeof WebhookService | typeof AuditLogService | typeof AccessReportService | typeof PlatformService | typeof ListingPreferenceService | typeof ScheduledReportService | typeof BusinessUserRoleService | typeof UtilityService | typeof CustomFieldService | typeof ApiAccountService | typeof UserBusinessAccessService | typeof AppIntegrationService | typeof BusinessPreferenceService | typeof Es6JobsService | typeof Es6Service | typeof GptService | typeof LoadEntityService | typeof RequestLogService | typeof UserNotificationService | typeof UserPreferenceService)[];
|
|
419
419
|
subscribers: (typeof ApiAccountSubscriber | typeof AppIntegrationSubscriber | typeof BusinessAppIntegrationCredentialSubscriber | typeof BusinessAppIntegrationMessagesSubscriber | typeof BusinessAppIntegrationSubscriber | typeof BusinessDownloadableReportSubscriber | typeof BusinessEmailSubscriber | typeof BusinessGroupRoleSubscriber | typeof BusinessMenuSubscriber | typeof BusinessPreferenceSubscriber | typeof BusinessReportSubscriber | typeof BusinessUserGroupSubscriber | typeof BusinessUserNotificationPreferenceSubscriber | typeof BusinessUserRoleSubscriber | typeof BusinessUserSubscriber | typeof BusinessWebhookSubscriber | typeof BzNotificationChannelPreferenceSubscriber | typeof ChildMenuSubscriber | typeof ChoiceListSubscriber | typeof ChoiceTypeSubscriber | typeof ConversationSubscriber | typeof CustomFieldSubscriber | typeof CustomReportSubscriber | typeof DashboardComponentSubscriber | typeof DashboardSubscriber | typeof DownloadLogSubscriber | typeof EmailAttachmentSubscriber | typeof EmailMessageSubscriber | typeof EmailRecipientSubscriber | typeof EmailRuleSubscriber | typeof EmailStyleSubscriber | typeof EmailTemplateLogSubscriber | typeof EmailTemplateRecipientSubscriber | typeof FcmMessageSubscriber | typeof FcmNotificationSubscriber | typeof FcmTemplateSubscriber | typeof FcmTokenSubscriber | typeof GchatMessageSubscriber | typeof GchatTemplateSubscriber | typeof GchatUserSubscriber | typeof GchatWebhookMessageSubscriber | typeof GchatWebhookSubscriber | typeof GroupMemberSubscriber | typeof GroupRoleSubscriber | typeof ListPreferenceSubscriber | typeof ListingColumnSubscriber | typeof ListingPageSubscriber | typeof ListingPreferenceSubscriber | typeof MenuActionSubscriber | typeof MenuRoleSubscriber | typeof MenuSubscriber | typeof ModuleMenuSubscriber | typeof ModuleSubscriber | typeof PreferenceUserGroupSubscriber | typeof PreferenceUserSubscriber | typeof ProductSubscriber | typeof ReportLogSubscriber | typeof RequestLogSubscriber | typeof RoleGroupSubscriber | typeof ScheduledReportEmailSubscriber | typeof ScheduledReportItemSubscriber | typeof ScheduledReportSubscriber | typeof SlackIntegrationSubscriber | typeof SlackMessageSubscriber | typeof SlackTemplateSubscriber | typeof SlackUserSubscriber | typeof SlackWebhookMessageSubscriber | typeof SlackWebhookSubscriber | typeof UiActionRoleSubscriber | typeof UiActionSubscriber | typeof UserBusinessSecretSubscriber | typeof UserNotificationSubscriber | typeof UserPreferenceSubscriber | typeof UserRoleSubscriber | typeof WatchlistAssignmentSubscriber | typeof WebhookEventSubscriber | typeof WebhookLogSubscriber | typeof WebhookSlugSubscriber | typeof WebhookTypeSubscriber | typeof WhatsappMessageSubscriber | typeof WhatsappTemplateSubscriber | typeof WhitelistedWhatsappNumberSubscriber)[];
|
|
420
420
|
};
|
|
421
421
|
export default es6Classes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.group.role.job.js","sourceRoot":"","sources":["../../../src/access/jobs/business.group.role.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA+G;AAE/G,uFAAiF;AACjF,4GAAqG;AAG9F,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mCAAS;IAC/C,YACuB,YAA0B,EAC5B,UAAsB;QAEvC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,eAAU,GAAV,UAAU,CAAY;IAG3C,CAAC;
|
|
1
|
+
{"version":3,"file":"business.group.role.job.js","sourceRoot":"","sources":["../../../src/access/jobs/business.group.role.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA+G;AAE/G,uFAAiF;AACjF,4GAAqG;AAG9F,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mCAAS;IAC/C,YACuB,YAA0B,EAC5B,UAAsB;QAEvC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,eAAU,GAAV,UAAU,CAAY;IAG3C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAA8C;QACvD,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,GAA8C;QACvE,OAAO,IAAI,uEAAgC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtE,CAAC;IAEO,KAAK,CAAC,eAAe,CAAC,EAAU;QACpC,MAAM,KAAK,GAAG,MAAM,oDAAuB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK;YAAE,OAAO;QAEnB,MAAM,GAAG,GAAG,8DAA8D,EAAE,yBAAyB,CAAC;QAEtG,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QAE/C,KAAK,CAAC,UAAU,GAAG,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,EAAE,CAAC;QACjE,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACJ,CAAA;AA5BY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAG4B,sCAAY;QAChB,oCAAU;GAHlC,oBAAoB,CA4BhC"}
|
|
@@ -12,7 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BusinessUserGroupJob = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
15
|
+
const entities_1 = require("../entities");
|
|
15
16
|
const group_member_entity_1 = require("../entities/group.member.entity");
|
|
17
|
+
const SourceHash = require("../../config/source.hash");
|
|
16
18
|
let BusinessUserGroupJob = class BusinessUserGroupJob extends nestjs_utility_services_1.CommonJob {
|
|
17
19
|
constructor(queueService) {
|
|
18
20
|
super('8d9bc56e4c29169dde8f2de343ce44b9');
|
|
@@ -20,12 +22,51 @@ let BusinessUserGroupJob = class BusinessUserGroupJob extends nestjs_utility_ser
|
|
|
20
22
|
}
|
|
21
23
|
async handle(evt) {
|
|
22
24
|
await this.setManagerAsMember(evt);
|
|
25
|
+
await this.handleActive(evt);
|
|
26
|
+
await this.handleInactive(evt);
|
|
23
27
|
}
|
|
24
28
|
async setManagerAsMember(evt) {
|
|
25
29
|
if (!evt.entity.manager_id)
|
|
26
30
|
return;
|
|
27
31
|
await group_member_entity_1.GroupMemberEntity.firstOrCreate({ group_id: evt.entity.id, user_id: evt.entity.manager_id });
|
|
28
32
|
}
|
|
33
|
+
async handleInactive(evt) {
|
|
34
|
+
if (this.isNewRecord(evt))
|
|
35
|
+
return null;
|
|
36
|
+
if (!this.isColumnUpdated(evt, ['active', 'deleted_at']))
|
|
37
|
+
return null;
|
|
38
|
+
if (evt.entity.active && !evt.entity.deleted_at)
|
|
39
|
+
return null;
|
|
40
|
+
const members = await group_member_entity_1.GroupMemberEntity.find({ where: { group_id: evt.entity.id } });
|
|
41
|
+
for (const member of members) {
|
|
42
|
+
await entities_1.UserRoleEntity.softDelete({
|
|
43
|
+
business_id: evt.entity.business_id,
|
|
44
|
+
source_type: SourceHash.groupMember,
|
|
45
|
+
source_id: member.id,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async handleActive(evt) {
|
|
50
|
+
if (this.isNewRecord(evt))
|
|
51
|
+
return null;
|
|
52
|
+
if (!this.isColumnUpdated(evt, ['active']))
|
|
53
|
+
return null;
|
|
54
|
+
if (!evt.entity.active)
|
|
55
|
+
return null;
|
|
56
|
+
const members = await group_member_entity_1.GroupMemberEntity.find({ where: { group_id: evt.entity.id } });
|
|
57
|
+
const roles = await entities_1.BusinessGroupRoleEntity.find({ where: { group_id: evt.entity.id } });
|
|
58
|
+
for (const member of members) {
|
|
59
|
+
for (const role of roles) {
|
|
60
|
+
await entities_1.UserRoleEntity.firstOrCreate({
|
|
61
|
+
business_id: evt.entity.business_id,
|
|
62
|
+
source_type: SourceHash.groupMember,
|
|
63
|
+
source_id: member.id,
|
|
64
|
+
role_id: role.role_id,
|
|
65
|
+
user_id: member.user_id,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
29
70
|
};
|
|
30
71
|
exports.BusinessUserGroupJob = BusinessUserGroupJob;
|
|
31
72
|
exports.BusinessUserGroupJob = BusinessUserGroupJob = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.user.group.job.js","sourceRoot":"","sources":["../../../src/access/jobs/business.user.group.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;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,OAAO,EAAE,MAAM,CAAC,OAAO;iBAC1B,CAAC,CAAC;YACP,CAAC;QACL,CAAC;IACL,CAAC;CACJ,CAAA;AArDY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,oBAAoB,CAqDhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.member.job.js","sourceRoot":"","sources":["../../../src/access/jobs/group.member.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA+G;AAC/G,uFAAiF;AAEjF,8FAAwF;
|
|
1
|
+
{"version":3,"file":"group.member.job.js","sourceRoot":"","sources":["../../../src/access/jobs/group.member.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA+G;AAC/G,uFAAiF;AAEjF,8FAAwF;AAGjF,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,mCAAS;IACzC,YACuB,YAA0B,EAC5B,UAAsB;QAEvC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,eAAU,GAAV,UAAU,CAAY;IAG3C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAAwC;QACjD,MAAM,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClD,MAAM,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,GAAwC;QACrE,OAAO,IAAI,0DAA0B,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChE,CAAC;IAEO,KAAK,CAAC,iBAAiB,CAAC,EAAU;QACtC,MAAM,KAAK,GAAG,MAAM,oDAAuB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK;YAAE,OAAO;QAEnB,MAAM,GAAG,GAAG,gEAAgE,EAAE,yBAAyB,CAAC;QAExG,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QAE/C,KAAK,CAAC,UAAU,GAAG,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,EAAE,CAAC;QACnE,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACJ,CAAA;AA5BY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAG4B,sCAAY;QAChB,oCAAU;GAHlC,cAAc,CA4B1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.application.menu.js","sourceRoot":"","sources":["../../../src/access/libraries/process.application.menu.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAGlG,uCAAsC;AACtC,6DAAyD;AACzD,qCAAiC;AACjC,2EAAsE;AAEtE,MAAa,sBAAsB;IAI/B,YACqB,YAA0B,EAC1B,aAA4B,EAC5B,QAA8B,EAC9B,OAAsB;QAHtB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAe;QAC5B,aAAQ,GAAR,QAAQ,CAAsB;QAC9B,YAAO,GAAP,OAAO,CAAe;QAPnC,sBAAiB,GAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"process.application.menu.js","sourceRoot":"","sources":["../../../src/access/libraries/process.application.menu.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAGlG,uCAAsC;AACtC,6DAAyD;AACzD,qCAAiC;AACjC,2EAAsE;AAEtE,MAAa,sBAAsB;IAI/B,YACqB,YAA0B,EAC1B,aAA4B,EAC5B,QAA8B,EAC9B,OAAsB;QAHtB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAe;QAC5B,aAAQ,GAAR,QAAQ,CAAsB;QAC9B,YAAO,GAAP,O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;YAC7B,CAAC;YAED,GAAG,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC;YAC5E,OAAO,GAAG,CAAC,YAAY,CAAC;YAExB,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM;gBAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1C,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA/GD,wDA+GC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { BusinessGroupRoleEntity } from '../entities/business.group.role.entity';
|
|
2
|
-
import { BusinessUserGroupEntity } from '../entities/business.user.group.entity';
|
|
3
|
-
import { UserRoleEntity } from '../entities/user.role.entity';
|
|
4
2
|
export declare class ProcessBusinessGroupRoleUpdation {
|
|
5
|
-
|
|
6
|
-
process(entity: BusinessGroupRoleEntity): Promise<void | UserRoleEntity[]>;
|
|
3
|
+
process(entity: BusinessGroupRoleEntity): Promise<void>;
|
|
7
4
|
private handleInsertion;
|
|
8
5
|
private handleDeletion;
|
|
9
6
|
}
|
|
@@ -7,25 +7,35 @@ const user_role_entity_1 = require("../entities/user.role.entity");
|
|
|
7
7
|
const SourceHash = require("../../config/source.hash");
|
|
8
8
|
class ProcessBusinessGroupRoleUpdation {
|
|
9
9
|
async process(entity) {
|
|
10
|
-
this.group = await business_user_group_entity_1.BusinessUserGroupEntity.first(entity.group_id);
|
|
11
10
|
if (entity.deleted_at)
|
|
12
11
|
return this.handleDeletion(entity);
|
|
13
12
|
return this.handleInsertion(entity);
|
|
14
13
|
}
|
|
15
14
|
async handleInsertion(entity) {
|
|
15
|
+
const group = await business_user_group_entity_1.BusinessUserGroupEntity.first(entity.group_id);
|
|
16
16
|
const members = await group_member_entity_1.GroupMemberEntity.find({ where: { group_id: entity.group_id } });
|
|
17
17
|
for (const member of members) {
|
|
18
18
|
await user_role_entity_1.UserRoleEntity.firstOrCreate({
|
|
19
19
|
source_type: SourceHash.groupMember,
|
|
20
20
|
source_id: member.id,
|
|
21
21
|
role_id: entity.role_id,
|
|
22
|
-
business_id:
|
|
22
|
+
business_id: group.business_id,
|
|
23
23
|
user_id: member.user_id,
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
async handleDeletion(entity) {
|
|
28
|
-
|
|
28
|
+
const group = await business_user_group_entity_1.BusinessUserGroupEntity.first(entity.group_id);
|
|
29
|
+
const members = await group_member_entity_1.GroupMemberEntity.find({ where: { group_id: entity.group_id } });
|
|
30
|
+
for (const member of members) {
|
|
31
|
+
await user_role_entity_1.UserRoleEntity.softDelete({
|
|
32
|
+
source_type: SourceHash.groupMember,
|
|
33
|
+
source_id: member.id,
|
|
34
|
+
role_id: entity.role_id,
|
|
35
|
+
business_id: group.business_id,
|
|
36
|
+
user_id: member.user_id,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
41
|
exports.ProcessBusinessGroupRoleUpdation = ProcessBusinessGroupRoleUpdation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.business.group.role.updation.js","sourceRoot":"","sources":["../../../src/access/libraries/process.business.group.role.updation.ts"],"names":[],"mappings":";;;AACA,uFAAiF;AACjF,yEAAoE;AACpE,mEAA8D;AAC9D,uDAAwD;AAExD,MAAa,gCAAgC;
|
|
1
|
+
{"version":3,"file":"process.business.group.role.updation.js","sourceRoot":"","sources":["../../../src/access/libraries/process.business.group.role.updation.ts"],"names":[],"mappings":";;;AACA,uFAAiF;AACjF,yEAAoE;AACpE,mEAA8D;AAC9D,uDAAwD;AAExD,MAAa,gCAAgC;IACzC,KAAK,CAAC,OAAO,CAAC,MAA+B;QACzC,IAAI,MAAM,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAE1D,OAAO,IAA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}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserRoleEntity } from '../entities/user.role.entity';
|
|
2
1
|
import { BusinessUserGroupEntity } from '../entities/business.user.group.entity';
|
|
3
2
|
import { GroupMemberEntity } from '../entities/group.member.entity';
|
|
3
|
+
import { UserRoleEntity } from '../entities/user.role.entity';
|
|
4
4
|
export declare class ProcessGroupMemberUpdation {
|
|
5
5
|
protected group: BusinessUserGroupEntity;
|
|
6
6
|
process(entity: GroupMemberEntity): Promise<void | UserRoleEntity[]>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProcessGroupMemberUpdation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const business_group_role_entity_1 = require("../entities/business.group.role.entity");
|
|
5
5
|
const business_user_group_entity_1 = require("../entities/business.user.group.entity");
|
|
6
|
+
const user_role_entity_1 = require("../entities/user.role.entity");
|
|
6
7
|
const SourceHash = require("../../config/source.hash");
|
|
7
|
-
const business_group_role_entity_1 = require("../entities/business.group.role.entity");
|
|
8
8
|
class ProcessGroupMemberUpdation {
|
|
9
9
|
async process(entity) {
|
|
10
10
|
this.group = await business_user_group_entity_1.BusinessUserGroupEntity.first(entity.group_id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.group.member.updation.js","sourceRoot":"","sources":["../../../src/access/libraries/process.group.member.updation.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"process.group.member.updation.js","sourceRoot":"","sources":["../../../src/access/libraries/process.group.member.updation.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AACjF,uFAAiF;AAEjF,mEAA8D;AAC9D,uDAAwD;AAExD,MAAa,0BAA0B;IAGnC,KAAK,CAAC,OAAO,CAAC,MAAyB;QACnC,IAAI,CAAC,KAAK,GAAG,MAAM,oDAAuB,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAElE,IAAI,MAAM,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAEO,KAAK,CAAC,eAAe,CAAC,MAAyB;QACnD,MAAM,KAAK,GAAG,MAAM,oDAAuB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAE3F,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,iCAAc,CAAC,aAAa,CAAC;gBAC/B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW;gBACnC,WAAW,EAAE,UAAU,CAAC,WAAW;gBACnC,SAAS,EAAE,MAAM,CAAC,EAAE;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,OAAO,EAAE,MAAM,CAAC,OAAO;aAC1B,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,MAAyB;QAClD,OAAO,iCAAc,CAAC,UAAU,CAAC;YAC7B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW;YACnC,WAAW,EAAE,UAAU,CAAC,WAAW;YACnC,SAAS,EAAE,MAAM,CAAC,EAAE;SACvB,CAAC,CAAC;IACP,CAAC;CACJ;AAhCD,gEAgCC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SqlService } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { BusinessParamDto } from '../../access/dtos/business.param.dto';
|
|
3
|
+
import { DbFindDto } from '../../access/dtos/db.find.dto';
|
|
4
|
+
import { AccessBusinessService } from '../../access/services/access.business.service';
|
|
5
|
+
import { ListingService } from '../../access/services/listing.service';
|
|
6
|
+
import { AddBulkDefinitionDto } from '../dtos/add.bulk.definition.dto';
|
|
7
|
+
import { BulkDefinitionListFilterDto } from '../dtos/bulk.definition.list.filter.dto';
|
|
8
|
+
import { BulkDefinitionEntity } from '../entities/bulk.definition.entity';
|
|
9
|
+
export declare class BulkDefinitionController {
|
|
10
|
+
private readonly accessBusinessService;
|
|
11
|
+
private readonly listingService;
|
|
12
|
+
private readonly sqlService;
|
|
13
|
+
constructor(accessBusinessService: AccessBusinessService, listingService: ListingService, sqlService: SqlService);
|
|
14
|
+
search(body: BulkDefinitionListFilterDto): Promise<import("../..").ListResponseDto>;
|
|
15
|
+
find(body: DbFindDto): Promise<any>;
|
|
16
|
+
show(params: BusinessParamDto): Promise<BulkDefinitionEntity>;
|
|
17
|
+
create(body: AddBulkDefinitionDto): Promise<BulkDefinitionEntity>;
|
|
18
|
+
activate(params: BusinessParamDto): Promise<BulkDefinitionEntity>;
|
|
19
|
+
deactivate(params: BusinessParamDto): Promise<BulkDefinitionEntity>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
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.BulkDefinitionController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const business_param_dto_1 = require("../../access/dtos/business.param.dto");
|
|
19
|
+
const db_find_dto_1 = require("../../access/dtos/db.find.dto");
|
|
20
|
+
const process_db_find_1 = require("../../access/libraries/process.db.find");
|
|
21
|
+
const access_business_service_1 = require("../../access/services/access.business.service");
|
|
22
|
+
const listing_service_1 = require("../../access/services/listing.service");
|
|
23
|
+
const add_bulk_definition_dto_1 = require("../dtos/add.bulk.definition.dto");
|
|
24
|
+
const bulk_definition_list_filter_dto_1 = require("../dtos/bulk.definition.list.filter.dto");
|
|
25
|
+
const bulk_definition_entity_1 = require("../entities/bulk.definition.entity");
|
|
26
|
+
const process_bulk_definition_data_1 = require("../libraries/process.bulk.definition.data");
|
|
27
|
+
const process_bulk_definition_list_1 = require("../libraries/process.bulk.definition.list");
|
|
28
|
+
let BulkDefinitionController = class BulkDefinitionController {
|
|
29
|
+
constructor(accessBusinessService, listingService, sqlService) {
|
|
30
|
+
this.accessBusinessService = accessBusinessService;
|
|
31
|
+
this.listingService = listingService;
|
|
32
|
+
this.sqlService = sqlService;
|
|
33
|
+
}
|
|
34
|
+
async search(body) {
|
|
35
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
36
|
+
return new process_bulk_definition_list_1.ProcessBulkDefinitionList(business, this.listingService).process(body);
|
|
37
|
+
}
|
|
38
|
+
async find(body) {
|
|
39
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
40
|
+
const config = {
|
|
41
|
+
tableName: 'utl_bulk_definitions a',
|
|
42
|
+
primaryCondition: `a.deleted_at is null and (a.business_id = ${business.id} or a.business_id is null)`,
|
|
43
|
+
searchCompareKeys: ['a.name', 'a.identifier'],
|
|
44
|
+
columns: [
|
|
45
|
+
'a.id',
|
|
46
|
+
'a.source_type',
|
|
47
|
+
'a.business_id',
|
|
48
|
+
'a.name',
|
|
49
|
+
'a.description',
|
|
50
|
+
'a.active',
|
|
51
|
+
'a.identifier',
|
|
52
|
+
'a.script_id',
|
|
53
|
+
'a.post_script_id',
|
|
54
|
+
'jsonb(a.attributes) attributes',
|
|
55
|
+
],
|
|
56
|
+
order: `a.created_at desc`,
|
|
57
|
+
idsCompareKey: 'a.id',
|
|
58
|
+
...body,
|
|
59
|
+
};
|
|
60
|
+
return new process_db_find_1.ProcessDbFind(this.sqlService).process(config);
|
|
61
|
+
}
|
|
62
|
+
async show(params) {
|
|
63
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
64
|
+
const record = await bulk_definition_entity_1.BulkDefinitionEntity.first(params.id, {
|
|
65
|
+
relations: [
|
|
66
|
+
'script',
|
|
67
|
+
'post_script',
|
|
68
|
+
'loads',
|
|
69
|
+
'loads.type',
|
|
70
|
+
'loads.type.columns',
|
|
71
|
+
'processings',
|
|
72
|
+
'processings.type',
|
|
73
|
+
'processings.type.columns',
|
|
74
|
+
],
|
|
75
|
+
});
|
|
76
|
+
if (!record)
|
|
77
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
78
|
+
if (record.business_id && record.business_id !== business.id)
|
|
79
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
80
|
+
return record;
|
|
81
|
+
}
|
|
82
|
+
async create(body) {
|
|
83
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
84
|
+
return new process_bulk_definition_data_1.ProcessBulkDefinitionData(business).process(body);
|
|
85
|
+
}
|
|
86
|
+
async activate(params) {
|
|
87
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
88
|
+
const record = await bulk_definition_entity_1.BulkDefinitionEntity.findOne({ where: { business_id: business.id, id: params.id } });
|
|
89
|
+
if (!record)
|
|
90
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
91
|
+
record.active = true;
|
|
92
|
+
return record.save();
|
|
93
|
+
}
|
|
94
|
+
async deactivate(params) {
|
|
95
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
96
|
+
const record = await bulk_definition_entity_1.BulkDefinitionEntity.findOne({ where: { business_id: business.id, id: params.id } });
|
|
97
|
+
if (!record)
|
|
98
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
99
|
+
record.active = false;
|
|
100
|
+
return record.save();
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
exports.BulkDefinitionController = BulkDefinitionController;
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, common_1.Post)('search'),
|
|
106
|
+
__param(0, (0, common_1.Body)()),
|
|
107
|
+
__metadata("design:type", Function),
|
|
108
|
+
__metadata("design:paramtypes", [bulk_definition_list_filter_dto_1.BulkDefinitionListFilterDto]),
|
|
109
|
+
__metadata("design:returntype", Promise)
|
|
110
|
+
], BulkDefinitionController.prototype, "search", null);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, common_1.Post)('find'),
|
|
113
|
+
__param(0, (0, common_1.Body)()),
|
|
114
|
+
__metadata("design:type", Function),
|
|
115
|
+
__metadata("design:paramtypes", [db_find_dto_1.DbFindDto]),
|
|
116
|
+
__metadata("design:returntype", Promise)
|
|
117
|
+
], BulkDefinitionController.prototype, "find", null);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, common_1.Get)(':id'),
|
|
120
|
+
__param(0, (0, common_1.Param)()),
|
|
121
|
+
__metadata("design:type", Function),
|
|
122
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
123
|
+
__metadata("design:returntype", Promise)
|
|
124
|
+
], BulkDefinitionController.prototype, "show", null);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, common_1.Post)(),
|
|
127
|
+
__param(0, (0, common_1.Body)()),
|
|
128
|
+
__metadata("design:type", Function),
|
|
129
|
+
__metadata("design:paramtypes", [add_bulk_definition_dto_1.AddBulkDefinitionDto]),
|
|
130
|
+
__metadata("design:returntype", Promise)
|
|
131
|
+
], BulkDefinitionController.prototype, "create", null);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, common_1.Post)(':id/activate'),
|
|
134
|
+
__param(0, (0, common_1.Param)()),
|
|
135
|
+
__metadata("design:type", Function),
|
|
136
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
137
|
+
__metadata("design:returntype", Promise)
|
|
138
|
+
], BulkDefinitionController.prototype, "activate", null);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, common_1.Post)(':id/deactivate'),
|
|
141
|
+
__param(0, (0, common_1.Param)()),
|
|
142
|
+
__metadata("design:type", Function),
|
|
143
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
144
|
+
__metadata("design:returntype", Promise)
|
|
145
|
+
], BulkDefinitionController.prototype, "deactivate", null);
|
|
146
|
+
exports.BulkDefinitionController = BulkDefinitionController = __decorate([
|
|
147
|
+
(0, common_1.Controller)('api/b/bulk-definition'),
|
|
148
|
+
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
|
|
149
|
+
listing_service_1.ListingService,
|
|
150
|
+
nestjs_utility_services_1.SqlService])
|
|
151
|
+
], BulkDefinitionController);
|
|
152
|
+
//# sourceMappingURL=bulk.definition.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk.definition.controller.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/bulk.definition.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAqF;AACrF,6EAAwE;AACxE,+DAA0D;AAE1D,4EAAuE;AACvE,2FAAsF;AACtF,2EAAuE;AACvE,6EAAuE;AACvE,6FAAsF;AACtF,+EAA0E;AAC1E,4FAAsF;AACtF,4FAAsF;AAG/E,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACjC,YACqB,qBAA4C,EAC5C,cAA8B,EAC9B,UAAsB;QAFtB,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,eAAU,GAAV,UAAU,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AC;QAEzC,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC;QAEtB,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACJ,CAAA;AA9FY,4DAAwB;AAQ3B;IADL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,6DAA2B;;sDAIrD;AAGK;IADL,IAAA,aAAI,EAAC,MAAM,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,uBAAS;;oDAyBjC;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;oDAmB3C;AAGK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,8CAAoB;;sDAI9C;AAGK;IADL,IAAA,aAAI,EAAC,cAAc,CAAC;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;wDAS/C;AAGK;IADL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;0DASjD;mCA7FQ,wBAAwB;IADpC,IAAA,mBAAU,EAAC,uBAAuB,CAAC;qCAGY,+CAAqB;QAC5B,gCAAc;QAClB,oCAAU;GAJlC,wBAAwB,CA8FpC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./bulk.definition.controller"), exports);
|
|
17
18
|
__exportStar(require("./business.ui.policies.controller"), exports);
|
|
18
19
|
__exportStar(require("./pdf.document.controller"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAAA,4DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAAA,oEAAkD;AAAA,4DAAyC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.AddBulkDefinitionDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class AddBulkDefinitionDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AddBulkDefinitionDto = AddBulkDefinitionDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsNumber)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], AddBulkDefinitionDto.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AddBulkDefinitionDto.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AddBulkDefinitionDto.prototype, "source_type", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], AddBulkDefinitionDto.prototype, "description", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], AddBulkDefinitionDto.prototype, "identifier", void 0);
|
|
44
|
+
//# sourceMappingURL=add.bulk.definition.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.bulk.definition.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/add.bulk.definition.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAmE;AAEnE,MAAa,oBAAoB;CAqBhC;AArBD,oDAqBC;AAjBG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACC;AAIZ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;kDACA;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;yDACO;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;yDACQ;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;wDACO"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.BulkDefinitionListFilterDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const common_list_filter_dto_1 = require("../../access/dtos/common.list.filter.dto");
|
|
16
|
+
class BulkDefinitionListFilterDto extends common_list_filter_dto_1.CommonListFilterDto {
|
|
17
|
+
}
|
|
18
|
+
exports.BulkDefinitionListFilterDto = BulkDefinitionListFilterDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BulkDefinitionListFilterDto.prototype, "source_type", void 0);
|
|
24
|
+
//# sourceMappingURL=bulk.definition.list.filter.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk.definition.list.filter.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/bulk.definition.list.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA6C;AAC7C,qFAA+E;AAE/E,MAAa,2BAA4B,SAAQ,4CAAmB;CAInE;AAJD,kEAIC;AADG;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;gEACQ"}
|