@servicelabsco/slabs-access-manager 0.1.252 → 0.1.254

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/access/es6.classes.d.ts +1 -1
  2. package/dist/access/services/listing.service.js +1 -10
  3. package/dist/access/services/listing.service.js.map +1 -1
  4. package/dist/accessUtility/access.utility.module.js +1 -0
  5. package/dist/accessUtility/access.utility.module.js.map +1 -1
  6. package/dist/accessUtility/controllers/index.d.ts +1 -0
  7. package/dist/accessUtility/controllers/index.js +18 -0
  8. package/dist/accessUtility/controllers/index.js.map +1 -0
  9. package/dist/accessUtility/controllers/pdf.document.controller.d.ts +16 -0
  10. package/dist/accessUtility/controllers/pdf.document.controller.js +95 -0
  11. package/dist/accessUtility/controllers/pdf.document.controller.js.map +1 -0
  12. package/dist/accessUtility/dtos/generate.pdf.document.dto.d.ts +5 -0
  13. package/dist/accessUtility/dtos/generate.pdf.document.dto.js +35 -0
  14. package/dist/accessUtility/dtos/generate.pdf.document.dto.js.map +1 -0
  15. package/dist/accessUtility/dtos/index.d.ts +2 -0
  16. package/dist/accessUtility/dtos/index.js +2 -0
  17. package/dist/accessUtility/dtos/index.js.map +1 -1
  18. package/dist/accessUtility/dtos/pdf.log.attributes.dto.d.ts +3 -0
  19. package/dist/accessUtility/dtos/pdf.log.attributes.dto.js +8 -0
  20. package/dist/accessUtility/dtos/pdf.log.attributes.dto.js.map +1 -0
  21. package/dist/accessUtility/entities/index.d.ts +1 -0
  22. package/dist/accessUtility/entities/index.js +1 -0
  23. package/dist/accessUtility/entities/index.js.map +1 -1
  24. package/dist/accessUtility/entities/pdf.documents.entity.d.ts +5 -0
  25. package/dist/accessUtility/entities/pdf.documents.entity.js +17 -0
  26. package/dist/accessUtility/entities/pdf.documents.entity.js.map +1 -1
  27. package/dist/accessUtility/entities/pdf.log.entity.d.ts +14 -0
  28. package/dist/accessUtility/entities/pdf.log.entity.js +60 -0
  29. package/dist/accessUtility/entities/pdf.log.entity.js.map +1 -0
  30. package/dist/accessUtility/entities/pdf.templates.entity.d.ts +8 -0
  31. package/dist/accessUtility/entities/pdf.templates.entity.js +31 -0
  32. package/dist/accessUtility/entities/pdf.templates.entity.js.map +1 -1
  33. package/dist/accessUtility/es6.classes.d.ts +13 -7
  34. package/dist/accessUtility/es6.classes.js +14 -0
  35. package/dist/accessUtility/es6.classes.js.map +1 -1
  36. package/dist/accessUtility/index.d.ts +1 -0
  37. package/dist/accessUtility/index.js +1 -0
  38. package/dist/accessUtility/index.js.map +1 -1
  39. package/dist/accessUtility/jobs/index.d.ts +1 -0
  40. package/dist/accessUtility/jobs/index.js +1 -0
  41. package/dist/accessUtility/jobs/index.js.map +1 -1
  42. package/dist/accessUtility/jobs/pdf.log.job.d.ts +7 -0
  43. package/dist/accessUtility/jobs/pdf.log.job.js +29 -0
  44. package/dist/accessUtility/jobs/pdf.log.job.js.map +1 -0
  45. package/dist/accessUtility/jobs/pdfDocument.job.d.ts +8 -2
  46. package/dist/accessUtility/jobs/pdfDocument.job.js +19 -2
  47. package/dist/accessUtility/jobs/pdfDocument.job.js.map +1 -1
  48. package/dist/accessUtility/libraries/index.d.ts +1 -0
  49. package/dist/accessUtility/libraries/index.js +1 -0
  50. package/dist/accessUtility/libraries/index.js.map +1 -1
  51. package/dist/accessUtility/libraries/process.manual.pdf.document.d.ts +19 -0
  52. package/dist/accessUtility/libraries/process.manual.pdf.document.js +75 -0
  53. package/dist/accessUtility/libraries/process.manual.pdf.document.js.map +1 -0
  54. package/dist/accessUtility/services/es6.jobs.service.d.ts +3 -1
  55. package/dist/accessUtility/services/es6.jobs.service.js +6 -2
  56. package/dist/accessUtility/services/es6.jobs.service.js.map +1 -1
  57. package/dist/accessUtility/services/pdf.document.service.d.ts +5 -0
  58. package/dist/accessUtility/services/pdf.document.service.js +34 -0
  59. package/dist/accessUtility/services/pdf.document.service.js.map +1 -1
  60. package/dist/accessUtility/subscribers/index.d.ts +1 -0
  61. package/dist/accessUtility/subscribers/index.js +1 -0
  62. package/dist/accessUtility/subscribers/index.js.map +1 -1
  63. package/dist/accessUtility/subscribers/pdf.log.subscriber.d.ts +10 -0
  64. package/dist/accessUtility/subscribers/pdf.log.subscriber.js +34 -0
  65. package/dist/accessUtility/subscribers/pdf.log.subscriber.js.map +1 -0
  66. package/dist/config/entity.constants.d.ts +2 -0
  67. package/dist/config/entity.constants.js +2 -0
  68. package/dist/config/entity.constants.js.map +1 -1
  69. package/dist/migrations/1753080904376-AddGenericPdfTemplateColumnsUtlPdfTemplatesTable.d.ts +5 -0
  70. package/dist/migrations/1753080904376-AddGenericPdfTemplateColumnsUtlPdfTemplatesTable.js +19 -0
  71. package/dist/migrations/1753080904376-AddGenericPdfTemplateColumnsUtlPdfTemplatesTable.js.map +1 -0
  72. package/dist/migrations/1753081342178-AddSourceColumnUtlPdfDocumentsTable.d.ts +5 -0
  73. package/dist/migrations/1753081342178-AddSourceColumnUtlPdfDocumentsTable.js +17 -0
  74. package/dist/migrations/1753081342178-AddSourceColumnUtlPdfDocumentsTable.js.map +1 -0
  75. package/dist/migrations/1753081619806-CreatePdfLogTable.d.ts +5 -0
  76. package/dist/migrations/1753081619806-CreatePdfLogTable.js +24 -0
  77. package/dist/migrations/1753081619806-CreatePdfLogTable.js.map +1 -0
  78. package/package.json +1 -1
@@ -411,7 +411,7 @@ declare const es6Classes: {
411
411
  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 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)[];
412
412
  libraries: (typeof EvaluateEmailRule | typeof ProcessEmailNotification | typeof SendEmailNotification | typeof SendFcmNotification | typeof SendGchatMessageNotification | typeof SendGchatWebhookNotification | typeof SendSlackMessageNotification | typeof SendSlackWebhookNotification | typeof ProcessWhatsappMessage | typeof SendWhatsappMessageNotification | typeof SendWebhookRequest | typeof ProcessApplicationMenu | typeof ProcessMenuDetails | typeof ProcessApiAccountData | typeof ProcessDateFilter | typeof ProcessCommonList | typeof ProcessListingCsvFile | typeof ProcessApiAccountList | typeof ProcessDbFind | 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 ProcessEmailRuleList | typeof ProcessEmailRuleData | 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)[];
413
413
  middlewares: (typeof BusinessMiddleware | typeof ExternalAccessMiddleware | typeof UserBusinessAccessMiddleware)[];
414
- services: (typeof SendEmailService | typeof GchatService | typeof SlackService | typeof WhatsappService | typeof NotificationService | typeof SlabsService | typeof WebhookService | typeof AccessBusinessService | typeof ListingService | 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)[];
414
+ services: (typeof SendEmailService | typeof GchatService | typeof SlackService | typeof WhatsappService | typeof NotificationService | typeof SlabsService | typeof AccessBusinessService | typeof WebhookService | typeof ListingService | 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)[];
415
415
  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 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)[];
416
416
  };
417
417
  export default es6Classes;
@@ -64,16 +64,7 @@ let ListingService = class ListingService {
64
64
  return { definition, preferences };
65
65
  }
66
66
  async getBusinessWiseListingFromCacheService(listing_id, business_id) {
67
- const isProd = nestjs_utility_services_1.PlatformUtility.isProductionEnvironment();
68
- if (!isProd)
69
- return this.getBusinessWiseListing(listing_id, business_id);
70
- const CACHE_KEY = `business.wise.listing.${listing_id}.definition.${business_id}`;
71
- const cacheData = await this.cacheService.get(CACHE_KEY);
72
- if (cacheData)
73
- return cacheData;
74
- const definition = await this.getBusinessWiseListing(listing_id, business_id);
75
- await this.cacheService.set(CACHE_KEY, definition);
76
- return definition;
67
+ return this.getBusinessWiseListing(listing_id, business_id);
77
68
  }
78
69
  async getBusinessWiseListing(listing_id, business_id) {
79
70
  const listings = await listing_column_entity_1.ListingColumnEntity.find({
@@ -1 +1 @@
1
- {"version":3,"file":"listing.service.js","sourceRoot":"","sources":["../../../src/access/services/listing.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAUgD;AAChD,uCAAoC;AACpC,qCAAiC;AAIjC,uFAAkF;AAClF,6EAAwE;AAExE,qFAAgF;AAEhF,oFAA8E;AAOvE,IAAM,cAAc,GAApB,MAAM,cAAc;IAKvB,YACqB,aAA4B,EAC5B,UAAsB,EACtB,aAA4B,EAC5B,eAAgC,EAChC,YAA0B;QAJ1B,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAT/C,YAAO,GAAe;YAClB,aAAa,EAAE,MAAM;YACrB,GAAG,EAAE,EAAE;SACV,CAAC;IAOC,CAAC;IAEJ,KAAK,CAAC,cAAc,CAChB,OAA0B,EAC1B,QAA8B,EAC9B,OAAgC;QAEhC,IAAI,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,YAAY,EAAE;YAAE,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAE3G,MAAM,IAAI,GAAG,8BAAI,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,UAAU,GAAG,MAAM,mDAAuB,CAAC,UAAU,CAAC;Y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AC;QACxE,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEpD,OAAO,IAAI,gDAAqB,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAC7H,CAAC;CACJ,CAAA;AAvRY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAO2B,uCAAa;QAChB,oCAAU;QACP,uCAAa;QACX,yCAAe;QAClB,sCAAY;GAVtC,cAAc,CAuR1B"}
@@ -18,6 +18,7 @@ exports.AccessUtilityModule = AccessUtilityModule;
18
18
  exports.AccessUtilityModule = AccessUtilityModule = __decorate([
19
19
  (0, common_1.Module)({
20
20
  imports: [typeorm_1.TypeOrmModule.forFeature(es6_classes_1.default.entities), nestjs_utility_services_1.PlatformUtilityModule, nestjs_utility_services_1.AuthModule, nestjs_utility_services_1.SystemModule, (0, common_1.forwardRef)(() => access_module_1.AccessModule)],
21
+ controllers: es6_classes_1.default.controllers,
21
22
  providers: [...es6_classes_1.default.services, ...es6_classes_1.default.jobs, ...es6_classes_1.default.subscribers],
22
23
  exports: [...es6_classes_1.default.services, ...es6_classes_1.default.jobs],
23
24
  })
@@ -1 +1 @@
1
- {"version":3,"file":"access.utility.module.js","sourceRoot":"","sources":["../../src/accessUtility/access.utility.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,oFAAyG;AACzG,2DAAuD;AACvD,+CAAuC;AAOhC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAL/B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,qBAAU,CAAC,QAAQ,CAAC,EAAE,+CAAqB,EAAE,oCAAU,EAAE,sCAAY,EAAE,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC,CAAC;QACzI,SAAS,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,IAAI,EAAE,GAAG,qBAAU,CAAC,WAAW,CAAC;QAClF,OAAO,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,IAAI,CAAC;KACxD,CAAC;GACW,mBAAmB,CAAG"}
1
+ {"version":3,"file":"access.utility.module.js","sourceRoot":"","sources":["../../src/accessUtility/access.utility.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,oFAAyG;AACzG,2DAAuD;AACvD,+CAAuC;AAQhC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAN/B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,qBAAU,CAAC,QAAQ,CAAC,EAAE,+CAAqB,EAAE,oCAAU,EAAE,sCAAY,EAAE,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC,CAAC;QACzI,WAAW,EAAE,qBAAU,CAAC,WAAW;QACnC,SAAS,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,IAAI,EAAE,GAAG,qBAAU,CAAC,WAAW,CAAC;QAClF,OAAO,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,IAAI,CAAC;KACxD,CAAC;GACW,mBAAmB,CAAG"}
@@ -0,0 +1 @@
1
+ export * from './pdf.document.controller';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./pdf.document.controller"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC"}
@@ -0,0 +1,16 @@
1
+ import { Response } from 'express';
2
+ import { BusinessParamDto } from '../../access/dtos/business.param.dto';
3
+ import { AccessBusinessService } from '../../access/services/access.business.service';
4
+ import { GeneratePdfDocumentDto } from '../dtos/generate.pdf.document.dto';
5
+ import { PdfDocumentsEntity } from '../entities/pdf.documents.entity';
6
+ import { PdfTemplatesEntity } from '../entities/pdf.templates.entity';
7
+ import { PdfDocumentService } from '../services/pdf.document.service';
8
+ export declare class PdfDocumentController {
9
+ private readonly accessBusinessService;
10
+ protected readonly pdfDocumentService: PdfDocumentService;
11
+ constructor(accessBusinessService: AccessBusinessService, pdfDocumentService: PdfDocumentService);
12
+ getDocuments(params: BusinessParamDto): Promise<PdfTemplatesEntity[]>;
13
+ getDocumentPrev(params: BusinessParamDto, body: any, res: Response): Promise<Response<any, Record<string, any>>>;
14
+ generatePdf(body: GeneratePdfDocumentDto): Promise<PdfDocumentsEntity>;
15
+ detail(params: BusinessParamDto): Promise<PdfDocumentsEntity>;
16
+ }
@@ -0,0 +1,95 @@
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.PdfDocumentController = 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 email_style_entity_1 = require("../../access/entities/email.style.entity");
20
+ const access_business_service_1 = require("../../access/services/access.business.service");
21
+ const generate_pdf_document_dto_1 = require("../dtos/generate.pdf.document.dto");
22
+ const pdf_documents_entity_1 = require("../entities/pdf.documents.entity");
23
+ const pdf_templates_entity_1 = require("../entities/pdf.templates.entity");
24
+ const pdf_document_service_1 = require("../services/pdf.document.service");
25
+ let PdfDocumentController = class PdfDocumentController {
26
+ constructor(accessBusinessService, pdfDocumentService) {
27
+ this.accessBusinessService = accessBusinessService;
28
+ this.pdfDocumentService = pdfDocumentService;
29
+ }
30
+ async getDocuments(params) {
31
+ const business = await this.accessBusinessService.validateAccess();
32
+ const condition = { active: true, source_type: params.slug };
33
+ return pdf_templates_entity_1.PdfTemplatesEntity.find({
34
+ where: [
35
+ { business_id: null, ...condition },
36
+ { business_id: business?.id, ...condition },
37
+ ],
38
+ order: { updated_at: 'DESC' },
39
+ });
40
+ }
41
+ async getDocumentPrev(params, body, res) {
42
+ const business = await this.accessBusinessService.validateAccess();
43
+ const business_style = await email_style_entity_1.EmailStyleEntity.findOne({ where: { business_id: business.id } });
44
+ const htmlContent = await this.pdfDocumentService.getHtmlPreview({ business, ...body?.data, business_style }, params?.id);
45
+ return res.type('text/html').send(htmlContent);
46
+ }
47
+ async generatePdf(body) {
48
+ const business = await this.accessBusinessService.validateAccess();
49
+ const data = await this.pdfDocumentService.generatePdf(body, business.id);
50
+ if (!data)
51
+ throw new nestjs_utility_services_1.OperationException('Requested Pdf not found');
52
+ return data;
53
+ }
54
+ async detail(params) {
55
+ const business = await this.accessBusinessService.validateAccess();
56
+ return pdf_documents_entity_1.PdfDocumentsEntity.findOne({ where: { business_id: business.id, id: params.id }, relations: ['pdf_logs', 'template'] });
57
+ }
58
+ };
59
+ exports.PdfDocumentController = PdfDocumentController;
60
+ __decorate([
61
+ (0, common_1.Post)(':slug/templates'),
62
+ __param(0, (0, common_1.Param)()),
63
+ __metadata("design:type", Function),
64
+ __metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
65
+ __metadata("design:returntype", Promise)
66
+ ], PdfDocumentController.prototype, "getDocuments", null);
67
+ __decorate([
68
+ (0, common_1.Post)(':id/preview'),
69
+ __param(0, (0, common_1.Param)()),
70
+ __param(1, (0, common_1.Body)()),
71
+ __param(2, (0, common_1.Res)()),
72
+ __metadata("design:type", Function),
73
+ __metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, Object, Object]),
74
+ __metadata("design:returntype", Promise)
75
+ ], PdfDocumentController.prototype, "getDocumentPrev", null);
76
+ __decorate([
77
+ (0, common_1.Post)('generate-pdf'),
78
+ __param(0, (0, common_1.Body)()),
79
+ __metadata("design:type", Function),
80
+ __metadata("design:paramtypes", [generate_pdf_document_dto_1.GeneratePdfDocumentDto]),
81
+ __metadata("design:returntype", Promise)
82
+ ], PdfDocumentController.prototype, "generatePdf", null);
83
+ __decorate([
84
+ (0, common_1.Get)(':id'),
85
+ __param(0, (0, common_1.Param)()),
86
+ __metadata("design:type", Function),
87
+ __metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
88
+ __metadata("design:returntype", Promise)
89
+ ], PdfDocumentController.prototype, "detail", null);
90
+ exports.PdfDocumentController = PdfDocumentController = __decorate([
91
+ (0, common_1.Controller)('api/b/pdf-document'),
92
+ __metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
93
+ pdf_document_service_1.PdfDocumentService])
94
+ ], PdfDocumentController);
95
+ //# sourceMappingURL=pdf.document.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.document.controller.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/pdf.document.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,oFAA4E;AAE5E,6EAAwE;AACxE,iFAA4E;AAC5E,2FAAsF;AACtF,iFAA2E;AAC3E,2EAAsE;AACtE,2EAAsE;AACtE,2EAAsE;AAG/D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAC9B,YACqB,qBAA4C,EAC1C,kBAAsC;QADxC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC1C,uBAAkB,GAAlB,kBAAkB,CAAoB;IAC1D,CAAC;IAGE,AAAN,KAAK,CAAC,YAAY,CAAU,MAAwB;QAChD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,MAAM,SAAS,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;QAC7D,OAAO,yCAAkB,CAAC,IAAI,CAAC;YAC3B,KAAK,EAAE;gBACH,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,SAAS,EAAE;gBACnC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,SAAS,EAAE;aAC9C;YACD,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;SAChC,CAAC,CAAC;IACP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C;CACJ,CAAA;AA5CY,sDAAqB;AAOxB;IADL,IAAA,aAAI,EAAC,iBAAiB,CAAC;IACJ,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;yDAWnD;AAGK;IADL,IAAA,aAAI,EAAC,aAAa,CAAC;IACG,WAAA,IAAA,cAAK,GAAE,CAAA;IAA4B,WAAA,IAAA,aAAI,GAAE,CAAA;IAAa,WAAA,IAAA,YAAG,GAAE,CAAA;;qCAA3C,qCAAgB;;4DAMtD;AAGK;IADL,IAAA,aAAI,EAAC,cAAc,CAAC;IACF,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,kDAAsB;;wDAOrD;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACG,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;mDAG7C;gCA3CQ,qBAAqB;IADjC,IAAA,mBAAU,EAAC,oBAAoB,CAAC;qCAGe,+CAAqB;QACtB,yCAAkB;GAHpD,qBAAqB,CA4CjC"}
@@ -0,0 +1,5 @@
1
+ export declare class GeneratePdfDocumentDto {
2
+ data?: any;
3
+ source_id: number;
4
+ template_id: number;
5
+ }
@@ -0,0 +1,35 @@
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.GeneratePdfDocumentDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class GeneratePdfDocumentDto {
16
+ }
17
+ exports.GeneratePdfDocumentDto = GeneratePdfDocumentDto;
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", Object)
22
+ ], GeneratePdfDocumentDto.prototype, "data", 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
+ ], GeneratePdfDocumentDto.prototype, "source_id", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ (0, class_validator_1.IsNumber)(),
33
+ __metadata("design:type", Number)
34
+ ], GeneratePdfDocumentDto.prototype, "template_id", void 0);
35
+ //# sourceMappingURL=generate.pdf.document.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.pdf.document.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/generate.pdf.document.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAuD;AAEvD,MAAa,sBAAsB;CAclC;AAdD,wDAcC;AAXG;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;oDACF;AAKX;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACO;AAKlB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACS"}
@@ -12,6 +12,7 @@ export * from './email.notification.attributes.dto';
12
12
  export * from './error.handling.dto';
13
13
  export * from './fcm.notification.attributes.dto';
14
14
  export * from './gchat.notification.attributes.dto';
15
+ export * from './generate.pdf.document.dto';
15
16
  export * from './inapp.notification.attributes.dto';
16
17
  export * from './item.unit.attributes.dto';
17
18
  export * from './listing.model.attributes.dto';
@@ -19,6 +20,7 @@ export * from './notification.attributes.dto';
19
20
  export * from './notification.recipient.attributes.dto';
20
21
  export * from './pdf.document.attributes.dto';
21
22
  export * from './pdf.document.data.dto';
23
+ export * from './pdf.log.attributes.dto';
22
24
  export * from './slack.notification.attributes.dto';
23
25
  export * from './sms.notification.attributes.dto';
24
26
  export * from './tag.assignment.attributes.dto';
@@ -28,6 +28,7 @@ __exportStar(require("./email.notification.attributes.dto"), exports);
28
28
  __exportStar(require("./error.handling.dto"), exports);
29
29
  __exportStar(require("./fcm.notification.attributes.dto"), exports);
30
30
  __exportStar(require("./gchat.notification.attributes.dto"), exports);
31
+ __exportStar(require("./generate.pdf.document.dto"), exports);
31
32
  __exportStar(require("./inapp.notification.attributes.dto"), exports);
32
33
  __exportStar(require("./item.unit.attributes.dto"), exports);
33
34
  __exportStar(require("./listing.model.attributes.dto"), exports);
@@ -35,6 +36,7 @@ __exportStar(require("./notification.attributes.dto"), exports);
35
36
  __exportStar(require("./notification.recipient.attributes.dto"), exports);
36
37
  __exportStar(require("./pdf.document.attributes.dto"), exports);
37
38
  __exportStar(require("./pdf.document.data.dto"), exports);
39
+ __exportStar(require("./pdf.log.attributes.dto"), exports);
38
40
  __exportStar(require("./slack.notification.attributes.dto"), exports);
39
41
  __exportStar(require("./sms.notification.attributes.dto"), exports);
40
42
  __exportStar(require("./tag.assignment.attributes.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AAAA,wEAAsD;AAAA,8EAA4D;AAAA,+DAA6C;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,0DAAwC;AAAA,oEAAkD;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,uDAAqC;AAAA,oEAAkD;AAAA,sEAAoD;AAAA,sEAAoD;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,gEAA8C;AAAA,0EAAwD;AAAA,gEAA8C;AAAA,0DAAwC;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,kEAAgD;AAAA,uEAAqD;AAAA,2DAAyC;AAAA,mEAAiD;AAAA,yEAAsD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AAAA,wEAAsD;AAAA,8EAA4D;AAAA,+DAA6C;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,0DAAwC;AAAA,oEAAkD;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,uDAAqC;AAAA,oEAAkD;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,sEAAoD;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,gEAA8C;AAAA,0EAAwD;AAAA,gEAA8C;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,kEAAgD;AAAA,uEAAqD;AAAA,2DAAyC;AAAA,mEAAiD;AAAA,yEAAsD"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class PdfLogAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PdfLogAttributesDto = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class PdfLogAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
+ }
7
+ exports.PdfLogAttributesDto = PdfLogAttributesDto;
8
+ //# sourceMappingURL=pdf.log.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.log.attributes.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/pdf.log.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,mBAAoB,SAAQ,6CAAmB;CAAG;AAA/D,kDAA+D"}
@@ -16,6 +16,7 @@ export * from './listing.model.entity';
16
16
  export * from './notification.entity';
17
17
  export * from './notification.recipient.entity';
18
18
  export * from './pdf.documents.entity';
19
+ export * from './pdf.log.entity';
19
20
  export * from './pdf.templates.entity';
20
21
  export * from './slack.notification.entity';
21
22
  export * from './sms.notification.entity';
@@ -32,6 +32,7 @@ __exportStar(require("./listing.model.entity"), exports);
32
32
  __exportStar(require("./notification.entity"), exports);
33
33
  __exportStar(require("./notification.recipient.entity"), exports);
34
34
  __exportStar(require("./pdf.documents.entity"), exports);
35
+ __exportStar(require("./pdf.log.entity"), exports);
35
36
  __exportStar(require("./pdf.templates.entity"), exports);
36
37
  __exportStar(require("./slack.notification.entity"), exports);
37
38
  __exportStar(require("./sms.notification.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,uDAAqC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,8DAA4C;AAAA,qDAAmC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,kEAAgD;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,iEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,uDAAqC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,8DAA4C;AAAA,qDAAmC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,kEAAgD;AAAA,yDAAuC;AAAA,mDAAiC;AAAA,yDAAuC;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,iEAA8C"}
@@ -1,6 +1,7 @@
1
1
  import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
2
  import { AccessBusinessEntity } from '../../access/entities/access.business.entity';
3
3
  import { PdfDocumentAttributesDto } from '../dtos/pdf.document.attributes.dto';
4
+ import { PdfLogEntity } from './pdf.log.entity';
4
5
  import { PdfTemplatesEntity } from './pdf.templates.entity';
5
6
  export declare class PdfDocumentsEntity extends CommonEntity {
6
7
  business_id: number;
@@ -8,7 +9,11 @@ export declare class PdfDocumentsEntity extends CommonEntity {
8
9
  source_type: string;
9
10
  source_id: number;
10
11
  pdf_url: string;
12
+ initiated_at: Date;
13
+ processed_at: Date;
11
14
  attributes: PdfDocumentAttributesDto;
15
+ data: any;
12
16
  business: AccessBusinessEntity;
13
17
  template: PdfTemplatesEntity;
18
+ pdf_logs: PdfLogEntity[];
14
19
  }
@@ -14,6 +14,7 @@ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-service
14
14
  const typeorm_1 = require("typeorm");
15
15
  const access_business_entity_1 = require("../../access/entities/access.business.entity");
16
16
  const pdf_document_attributes_dto_1 = require("../dtos/pdf.document.attributes.dto");
17
+ const pdf_log_entity_1 = require("./pdf.log.entity");
17
18
  const pdf_templates_entity_1 = require("./pdf.templates.entity");
18
19
  let PdfDocumentsEntity = class PdfDocumentsEntity extends nestjs_utility_services_1.CommonEntity {
19
20
  };
@@ -38,10 +39,22 @@ __decorate([
38
39
  (0, typeorm_1.Column)(),
39
40
  __metadata("design:type", String)
40
41
  ], PdfDocumentsEntity.prototype, "pdf_url", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)(),
44
+ __metadata("design:type", Date)
45
+ ], PdfDocumentsEntity.prototype, "initiated_at", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)(),
48
+ __metadata("design:type", Date)
49
+ ], PdfDocumentsEntity.prototype, "processed_at", void 0);
41
50
  __decorate([
42
51
  (0, typeorm_1.Column)('json'),
43
52
  __metadata("design:type", pdf_document_attributes_dto_1.PdfDocumentAttributesDto)
44
53
  ], PdfDocumentsEntity.prototype, "attributes", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)('json'),
56
+ __metadata("design:type", Object)
57
+ ], PdfDocumentsEntity.prototype, "data", void 0);
45
58
  __decorate([
46
59
  (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
47
60
  (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
@@ -52,6 +65,10 @@ __decorate([
52
65
  (0, typeorm_1.JoinColumn)({ name: 'template_id' }),
53
66
  __metadata("design:type", pdf_templates_entity_1.PdfTemplatesEntity)
54
67
  ], PdfDocumentsEntity.prototype, "template", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.OneToMany)(() => pdf_log_entity_1.PdfLogEntity, (pdf_logs) => pdf_logs.document),
70
+ __metadata("design:type", Array)
71
+ ], PdfDocumentsEntity.prototype, "pdf_logs", void 0);
55
72
  exports.PdfDocumentsEntity = PdfDocumentsEntity = __decorate([
56
73
  (0, typeorm_1.Entity)('utl_pdf_documents')
57
74
  ], PdfDocumentsEntity);
@@ -1 +1 @@
1
- {"version":3,"file":"pdf.documents.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/pdf.documents.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAgE;AAChE,yFAAoF;AACpF,qFAA+E;AAC/E,iEAA4D;AASrD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,sCAAY;CAsBnD,CAAA;AAtBY,gDAAkB;AAE3B;IADC,IAAA,gBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;qDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,sDAAwB;sDAAC;AAGuC;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;oDAAC;AACjC;IAAzE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,yCAAkB;oDAAC;6BArB9F,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,kBAAkB,CAsB9B"}
1
+ {"version":3,"file":"pdf.documents.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/pdf.documents.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAA2E;AAC3E,yFAAoF;AACpF,qFAA+E;AAC/E,qDAAgD;AAChD,iEAA4D;AASrD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,sCAAY;CAkCnD,CAAA;AAlCY,gDAAkB;AAE3B;IADC,IAAA,gBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;qDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;8BACK,IAAI;wDAAC;AAGnB;IADC,IAAA,gBAAM,GAAE;8BACK,IAAI;wDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,sDAAwB;sDAAC;AAGrC;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;gDACL;AAGkE;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;oDAAC;AACjC;IAAzE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,yCAAkB;oDAAC;AAGvG;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAY,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC;;oDACtC;6BAjChB,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,kBAAkB,CAkC9B"}
@@ -0,0 +1,14 @@
1
+ import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { PdfLogAttributesDto } from '../dtos/pdf.log.attributes.dto';
3
+ import { PdfDocumentsEntity } from './pdf.documents.entity';
4
+ export declare class PdfLogEntity extends CommonEntity {
5
+ document_id: number;
6
+ server_identifier: string;
7
+ is_success: boolean;
8
+ attributes: PdfLogAttributesDto;
9
+ processed_data: any;
10
+ request: any;
11
+ response: any;
12
+ webhook_response: any;
13
+ document: PdfDocumentsEntity;
14
+ }
@@ -0,0 +1,60 @@
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.PdfLogEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const pdf_log_attributes_dto_1 = require("../dtos/pdf.log.attributes.dto");
16
+ const pdf_documents_entity_1 = require("./pdf.documents.entity");
17
+ let PdfLogEntity = class PdfLogEntity extends nestjs_utility_services_1.CommonEntity {
18
+ };
19
+ exports.PdfLogEntity = PdfLogEntity;
20
+ __decorate([
21
+ (0, typeorm_1.Column)(),
22
+ __metadata("design:type", Number)
23
+ ], PdfLogEntity.prototype, "document_id", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)(),
26
+ __metadata("design:type", String)
27
+ ], PdfLogEntity.prototype, "server_identifier", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)(),
30
+ __metadata("design:type", Boolean)
31
+ ], PdfLogEntity.prototype, "is_success", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)('json'),
34
+ __metadata("design:type", pdf_log_attributes_dto_1.PdfLogAttributesDto)
35
+ ], PdfLogEntity.prototype, "attributes", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)('json'),
38
+ __metadata("design:type", Object)
39
+ ], PdfLogEntity.prototype, "processed_data", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)('json'),
42
+ __metadata("design:type", Object)
43
+ ], PdfLogEntity.prototype, "request", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)('json'),
46
+ __metadata("design:type", Object)
47
+ ], PdfLogEntity.prototype, "response", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)('json'),
50
+ __metadata("design:type", Object)
51
+ ], PdfLogEntity.prototype, "webhook_response", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.ManyToOne)(() => pdf_documents_entity_1.PdfDocumentsEntity),
54
+ (0, typeorm_1.JoinColumn)({ name: 'document_id' }),
55
+ __metadata("design:type", pdf_documents_entity_1.PdfDocumentsEntity)
56
+ ], PdfLogEntity.prototype, "document", void 0);
57
+ exports.PdfLogEntity = PdfLogEntity = __decorate([
58
+ (0, typeorm_1.Entity)('utl_pdf_logs')
59
+ ], PdfLogEntity);
60
+ //# sourceMappingURL=pdf.log.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.log.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/pdf.log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAgE;AAChE,2EAAqE;AACrE,iEAA4D;AASrD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,sCAAY;CA2B7C,CAAA;AA3BY,oCAAY;AAErB;IADC,IAAA,gBAAM,GAAE;;iDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;uDACiB;AAG1B;IADC,IAAA,gBAAM,GAAE;;gDACW;AAGpB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,4CAAmB;gDAAC;AAGhC;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;oDACK;AAGpB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;6CACF;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;8CACD;AAGd;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;sDACO;AAGoD;IAAzE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,yCAAkB;8CAAC;uBA1B9F,YAAY;IADxB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,YAAY,CA2BxB"}
@@ -1,9 +1,17 @@
1
1
  import { CommonAttributesDto, CommonEntity, SystemScriptEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { AccessBusinessEntity } from '../../access/entities/access.business.entity';
2
3
  export declare class PdfTemplatesEntity extends CommonEntity {
3
4
  name: string;
4
5
  identifier: string;
6
+ description: string;
7
+ source_type: string;
5
8
  active: boolean;
6
9
  attributes: CommonAttributesDto;
10
+ style: any;
7
11
  script_id: number;
12
+ business_id: number;
13
+ processor_id: number;
8
14
  script: SystemScriptEntity;
15
+ processor: SystemScriptEntity;
16
+ business: AccessBusinessEntity;
9
17
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PdfTemplatesEntity = void 0;
13
13
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
14
  const typeorm_1 = require("typeorm");
15
+ const access_business_entity_1 = require("../../access/entities/access.business.entity");
15
16
  let PdfTemplatesEntity = class PdfTemplatesEntity extends nestjs_utility_services_1.CommonEntity {
16
17
  };
17
18
  exports.PdfTemplatesEntity = PdfTemplatesEntity;
@@ -23,6 +24,14 @@ __decorate([
23
24
  (0, typeorm_1.Column)(),
24
25
  __metadata("design:type", String)
25
26
  ], PdfTemplatesEntity.prototype, "identifier", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", String)
30
+ ], PdfTemplatesEntity.prototype, "description", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", String)
34
+ ], PdfTemplatesEntity.prototype, "source_type", void 0);
26
35
  __decorate([
27
36
  (0, typeorm_1.Column)(),
28
37
  __metadata("design:type", Boolean)
@@ -31,15 +40,37 @@ __decorate([
31
40
  (0, typeorm_1.Column)('json'),
32
41
  __metadata("design:type", nestjs_utility_services_1.CommonAttributesDto)
33
42
  ], PdfTemplatesEntity.prototype, "attributes", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)('json'),
45
+ __metadata("design:type", Object)
46
+ ], PdfTemplatesEntity.prototype, "style", void 0);
34
47
  __decorate([
35
48
  (0, typeorm_1.Column)(),
36
49
  __metadata("design:type", Number)
37
50
  ], PdfTemplatesEntity.prototype, "script_id", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)(),
53
+ __metadata("design:type", Number)
54
+ ], PdfTemplatesEntity.prototype, "business_id", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)(),
57
+ __metadata("design:type", Number)
58
+ ], PdfTemplatesEntity.prototype, "processor_id", void 0);
38
59
  __decorate([
39
60
  (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.SystemScriptEntity),
40
61
  (0, typeorm_1.JoinColumn)({ name: 'script_id' }),
41
62
  __metadata("design:type", nestjs_utility_services_1.SystemScriptEntity)
42
63
  ], PdfTemplatesEntity.prototype, "script", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.SystemScriptEntity),
66
+ (0, typeorm_1.JoinColumn)({ name: 'processor_id' }),
67
+ __metadata("design:type", nestjs_utility_services_1.SystemScriptEntity)
68
+ ], PdfTemplatesEntity.prototype, "processor", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
71
+ (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
72
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
73
+ ], PdfTemplatesEntity.prototype, "business", void 0);
43
74
  exports.PdfTemplatesEntity = PdfTemplatesEntity = __decorate([
44
75
  (0, typeorm_1.Entity)('utl_pdf_templates')
45
76
  ], PdfTemplatesEntity);