@servicelabsco/slabs-access-manager 0.1.81 → 0.1.82

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 (166) hide show
  1. package/dist/access/controllers/index.d.ts +1 -0
  2. package/dist/access/controllers/index.js +1 -0
  3. package/dist/access/controllers/index.js.map +1 -1
  4. package/dist/access/controllers/user.notification.controller.d.ts +15 -0
  5. package/dist/access/controllers/user.notification.controller.js +81 -0
  6. package/dist/access/controllers/user.notification.controller.js.map +1 -0
  7. package/dist/access/dtos/index.d.ts +2 -0
  8. package/dist/access/dtos/index.js +2 -0
  9. package/dist/access/dtos/index.js.map +1 -1
  10. package/dist/access/dtos/user.notification.attributes.dto.d.ts +3 -0
  11. package/dist/access/dtos/user.notification.attributes.dto.js +8 -0
  12. package/dist/access/dtos/user.notification.attributes.dto.js.map +1 -0
  13. package/dist/access/dtos/user.notification.list.filter.dto.d.ts +4 -0
  14. package/dist/access/dtos/user.notification.list.filter.dto.js +25 -0
  15. package/dist/access/dtos/user.notification.list.filter.dto.js.map +1 -0
  16. package/dist/access/entities/index.d.ts +1 -0
  17. package/dist/access/entities/index.js +1 -0
  18. package/dist/access/entities/index.js.map +1 -1
  19. package/dist/access/entities/user.notification.entity.d.ts +20 -0
  20. package/dist/access/entities/user.notification.entity.js +83 -0
  21. package/dist/access/entities/user.notification.entity.js.map +1 -0
  22. package/dist/access/es6.classes.d.ts +12 -6
  23. package/dist/access/es6.classes.js +16 -0
  24. package/dist/access/es6.classes.js.map +1 -1
  25. package/dist/access/jobs/index.d.ts +1 -0
  26. package/dist/access/jobs/index.js +1 -0
  27. package/dist/access/jobs/index.js.map +1 -1
  28. package/dist/access/jobs/user.notification.job.d.ts +7 -0
  29. package/dist/access/jobs/user.notification.job.js +29 -0
  30. package/dist/access/jobs/user.notification.job.js.map +1 -0
  31. package/dist/access/libraries/index.d.ts +1 -0
  32. package/dist/access/libraries/index.js +1 -0
  33. package/dist/access/libraries/index.js.map +1 -1
  34. package/dist/access/libraries/process.user.notification.list.d.ts +19 -0
  35. package/dist/access/libraries/process.user.notification.list.js +31 -0
  36. package/dist/access/libraries/process.user.notification.list.js.map +1 -0
  37. package/dist/access/services/es6.jobs.service.d.ts +3 -1
  38. package/dist/access/services/es6.jobs.service.js +5 -1
  39. package/dist/access/services/es6.jobs.service.js.map +1 -1
  40. package/dist/access/services/index.d.ts +1 -0
  41. package/dist/access/services/index.js +1 -0
  42. package/dist/access/services/index.js.map +1 -1
  43. package/dist/access/services/user.notification.service.d.ts +5 -0
  44. package/dist/access/services/user.notification.service.js +31 -0
  45. package/dist/access/services/user.notification.service.js.map +1 -0
  46. package/dist/access/subscribers/index.d.ts +1 -0
  47. package/dist/access/subscribers/index.js +1 -0
  48. package/dist/access/subscribers/index.js.map +1 -1
  49. package/dist/access/subscribers/user.notification.subscriber.d.ts +12 -0
  50. package/dist/access/subscribers/user.notification.subscriber.js +40 -0
  51. package/dist/access/subscribers/user.notification.subscriber.js.map +1 -0
  52. package/dist/accessUtility/dtos/email.notification.attributes.dto.d.ts +3 -0
  53. package/dist/accessUtility/dtos/email.notification.attributes.dto.js +8 -0
  54. package/dist/accessUtility/dtos/email.notification.attributes.dto.js.map +1 -0
  55. package/dist/accessUtility/dtos/inapp.notification.attributes.dto.d.ts +3 -0
  56. package/dist/accessUtility/dtos/inapp.notification.attributes.dto.js +8 -0
  57. package/dist/accessUtility/dtos/inapp.notification.attributes.dto.js.map +1 -0
  58. package/dist/accessUtility/dtos/index.d.ts +6 -0
  59. package/dist/accessUtility/dtos/index.js +6 -0
  60. package/dist/accessUtility/dtos/index.js.map +1 -1
  61. package/dist/accessUtility/dtos/notification.attributes.dto.d.ts +3 -0
  62. package/dist/accessUtility/dtos/notification.attributes.dto.js +8 -0
  63. package/dist/accessUtility/dtos/notification.attributes.dto.js.map +1 -0
  64. package/dist/accessUtility/dtos/notification.recipient.attributes.dto.d.ts +3 -0
  65. package/dist/accessUtility/dtos/notification.recipient.attributes.dto.js +8 -0
  66. package/dist/accessUtility/dtos/notification.recipient.attributes.dto.js.map +1 -0
  67. package/dist/accessUtility/dtos/sms.notification.attributes.dto.d.ts +3 -0
  68. package/dist/accessUtility/dtos/sms.notification.attributes.dto.js +8 -0
  69. package/dist/accessUtility/dtos/sms.notification.attributes.dto.js.map +1 -0
  70. package/dist/accessUtility/dtos/whatsapp.notification.attributes.dto.d.ts +3 -0
  71. package/dist/accessUtility/dtos/whatsapp.notification.attributes.dto.js +8 -0
  72. package/dist/accessUtility/dtos/whatsapp.notification.attributes.dto.js.map +1 -0
  73. package/dist/accessUtility/entities/email.notification.entity.d.ts +12 -0
  74. package/dist/accessUtility/entities/email.notification.entity.js +53 -0
  75. package/dist/accessUtility/entities/email.notification.entity.js.map +1 -0
  76. package/dist/accessUtility/entities/inapp.notification.entity.d.ts +12 -0
  77. package/dist/accessUtility/entities/inapp.notification.entity.js +52 -0
  78. package/dist/accessUtility/entities/inapp.notification.entity.js.map +1 -0
  79. package/dist/accessUtility/entities/index.d.ts +6 -0
  80. package/dist/accessUtility/entities/index.js +6 -0
  81. package/dist/accessUtility/entities/index.js.map +1 -1
  82. package/dist/accessUtility/entities/notification.entity.d.ts +15 -0
  83. package/dist/accessUtility/entities/notification.entity.js +68 -0
  84. package/dist/accessUtility/entities/notification.entity.js.map +1 -0
  85. package/dist/accessUtility/entities/notification.recipient.entity.d.ts +12 -0
  86. package/dist/accessUtility/entities/notification.recipient.entity.js +54 -0
  87. package/dist/accessUtility/entities/notification.recipient.entity.js.map +1 -0
  88. package/dist/accessUtility/entities/sms.notification.entity.d.ts +12 -0
  89. package/dist/accessUtility/entities/sms.notification.entity.js +53 -0
  90. package/dist/accessUtility/entities/sms.notification.entity.js.map +1 -0
  91. package/dist/accessUtility/entities/whatsapp.notification.entity.d.ts +12 -0
  92. package/dist/accessUtility/entities/whatsapp.notification.entity.js +53 -0
  93. package/dist/accessUtility/entities/whatsapp.notification.entity.js.map +1 -0
  94. package/dist/accessUtility/es6.classes.d.ts +20 -3
  95. package/dist/accessUtility/es6.classes.js +48 -0
  96. package/dist/accessUtility/es6.classes.js.map +1 -1
  97. package/dist/accessUtility/jobs/email.notification.job.d.ts +7 -0
  98. package/dist/accessUtility/jobs/email.notification.job.js +29 -0
  99. package/dist/accessUtility/jobs/email.notification.job.js.map +1 -0
  100. package/dist/accessUtility/jobs/inapp.notification.job.d.ts +7 -0
  101. package/dist/accessUtility/jobs/inapp.notification.job.js +29 -0
  102. package/dist/accessUtility/jobs/inapp.notification.job.js.map +1 -0
  103. package/dist/accessUtility/jobs/index.d.ts +6 -0
  104. package/dist/accessUtility/jobs/index.js +6 -0
  105. package/dist/accessUtility/jobs/index.js.map +1 -1
  106. package/dist/accessUtility/jobs/notification.job.d.ts +7 -0
  107. package/dist/accessUtility/jobs/notification.job.js +29 -0
  108. package/dist/accessUtility/jobs/notification.job.js.map +1 -0
  109. package/dist/accessUtility/jobs/notification.recipient.job.d.ts +7 -0
  110. package/dist/accessUtility/jobs/notification.recipient.job.js +29 -0
  111. package/dist/accessUtility/jobs/notification.recipient.job.js.map +1 -0
  112. package/dist/accessUtility/jobs/sms.notification.job.d.ts +7 -0
  113. package/dist/accessUtility/jobs/sms.notification.job.js +29 -0
  114. package/dist/accessUtility/jobs/sms.notification.job.js.map +1 -0
  115. package/dist/accessUtility/jobs/whatsapp.notification.job.d.ts +7 -0
  116. package/dist/accessUtility/jobs/whatsapp.notification.job.js +29 -0
  117. package/dist/accessUtility/jobs/whatsapp.notification.job.js.map +1 -0
  118. package/dist/accessUtility/services/es6.jobs.service.d.ts +13 -1
  119. package/dist/accessUtility/services/es6.jobs.service.js +26 -2
  120. package/dist/accessUtility/services/es6.jobs.service.js.map +1 -1
  121. package/dist/accessUtility/subscribers/email.notification.subscriber.d.ts +12 -0
  122. package/dist/accessUtility/subscribers/email.notification.subscriber.js +40 -0
  123. package/dist/accessUtility/subscribers/email.notification.subscriber.js.map +1 -0
  124. package/dist/accessUtility/subscribers/inapp.notification.subscriber.d.ts +12 -0
  125. package/dist/accessUtility/subscribers/inapp.notification.subscriber.js +40 -0
  126. package/dist/accessUtility/subscribers/inapp.notification.subscriber.js.map +1 -0
  127. package/dist/accessUtility/subscribers/index.d.ts +6 -0
  128. package/dist/accessUtility/subscribers/index.js +6 -0
  129. package/dist/accessUtility/subscribers/index.js.map +1 -1
  130. package/dist/accessUtility/subscribers/notification.recipient.subscriber.d.ts +12 -0
  131. package/dist/accessUtility/subscribers/notification.recipient.subscriber.js +40 -0
  132. package/dist/accessUtility/subscribers/notification.recipient.subscriber.js.map +1 -0
  133. package/dist/accessUtility/subscribers/notification.subscriber.d.ts +12 -0
  134. package/dist/accessUtility/subscribers/notification.subscriber.js +40 -0
  135. package/dist/accessUtility/subscribers/notification.subscriber.js.map +1 -0
  136. package/dist/accessUtility/subscribers/sms.notification.subscriber.d.ts +12 -0
  137. package/dist/accessUtility/subscribers/sms.notification.subscriber.js +40 -0
  138. package/dist/accessUtility/subscribers/sms.notification.subscriber.js.map +1 -0
  139. package/dist/accessUtility/subscribers/whatsapp.notification.subscriber.d.ts +12 -0
  140. package/dist/accessUtility/subscribers/whatsapp.notification.subscriber.js +40 -0
  141. package/dist/accessUtility/subscribers/whatsapp.notification.subscriber.js.map +1 -0
  142. package/dist/config/entity.constants.d.ts +14 -0
  143. package/dist/config/entity.constants.js +14 -0
  144. package/dist/config/entity.constants.js.map +1 -1
  145. package/dist/migrations/1711969014729-CreateNotificationTable.d.ts +5 -0
  146. package/dist/migrations/1711969014729-CreateNotificationTable.js +26 -0
  147. package/dist/migrations/1711969014729-CreateNotificationTable.js.map +1 -0
  148. package/dist/migrations/1711973530629-CreateNotificationRecipientTable.d.ts +5 -0
  149. package/dist/migrations/1711973530629-CreateNotificationRecipientTable.js +23 -0
  150. package/dist/migrations/1711973530629-CreateNotificationRecipientTable.js.map +1 -0
  151. package/dist/migrations/1714934011990-CreateEmailNotificationTable.d.ts +5 -0
  152. package/dist/migrations/1714934011990-CreateEmailNotificationTable.js +21 -0
  153. package/dist/migrations/1714934011990-CreateEmailNotificationTable.js.map +1 -0
  154. package/dist/migrations/1714934451680-CreateSmsNotificationTable.d.ts +5 -0
  155. package/dist/migrations/1714934451680-CreateSmsNotificationTable.js +21 -0
  156. package/dist/migrations/1714934451680-CreateSmsNotificationTable.js.map +1 -0
  157. package/dist/migrations/1714934675041-CreateWhatsappNotificationTable.d.ts +5 -0
  158. package/dist/migrations/1714934675041-CreateWhatsappNotificationTable.js +21 -0
  159. package/dist/migrations/1714934675041-CreateWhatsappNotificationTable.js.map +1 -0
  160. package/dist/migrations/1714934790375-CreateInappNotificationTable.d.ts +5 -0
  161. package/dist/migrations/1714934790375-CreateInappNotificationTable.js +22 -0
  162. package/dist/migrations/1714934790375-CreateInappNotificationTable.js.map +1 -0
  163. package/dist/migrations/1714936884321-CreateUserNotificationTable.d.ts +5 -0
  164. package/dist/migrations/1714936884321-CreateUserNotificationTable.js +27 -0
  165. package/dist/migrations/1714936884321-CreateUserNotificationTable.js.map +1 -0
  166. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/accessUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,0FAAoF;AACpF,oGAA6F;AAC7F,gHAAyG;AACzG,kFAA4E;AAC5E,gGAAyF;AACzF,4FAAqF;AACrF,wEAAkE;AAClE,4FAAqF;AACrF,oFAA8E;AAC9E,8EAAwE;AACxE,kEAA6D;AAC7D,sFAAgF;AAChF,wFAAkF;AAClF,kGAA4F;AAC5F,0FAAoF;AACpF,8EAAyE;AACzE,wFAAkF;AAClF,oGAA8F;AAC9F,oFAA8E;AAC9E,sEAAiE;AACjE,gFAA0E;AAC1E,gFAA0E;AAC1E,wEAAmE;AACnE,0EAAqE;AACrE,4EAAuE;AACvE,sFAAiF;AACjF,8EAAyE;AACzE,4EAAsE;AACtE,oEAA+D;AAC/D,8EAAwE;AACxE,0FAAoF;AACpF,0EAAoE;AACpE,sEAAg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AW,EAAE,+CAAoB,CAAC;IAC1H,QAAQ,EAAE,CAAC,uCAAiB,EAAE,iCAAc,EAAE,uCAAiB,CAAC;IAChE,WAAW,EAAE;QACT,8DAA4B;QAC5B,0EAAkC;QAClC,qDAAwB;QACxB,0DAA0B;QAC1B,sDAAwB;QACxB,6CAAoB;QACpB,sDAAwB;QACxB,+CAAqB;QACrB,iDAAsB;QACtB,mDAAuB;QACvB,6DAA4B;QAC5B,qDAAwB;KAC3B;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/accessUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,0FAAoF;AACpF,oGAA6F;AAC7F,gHAAyG;AACzG,kFAA4E;AAC5E,gGAAyF;AACzF,4FAAqF;AACrF,wEAAkE;AAClE,4FAAqF;AACrF,oFAA8E;AAC9E,8EAAwE;AACxE,gGAA0F;AAC1F,kEAA6D;AAC7D,gGAA0F;AAC1F,sFAAgF;AAChF,oFAA+E;AAC/E,wGAAkG;AAClG,4FAAsF;AACtF,wFAAkF;AAClF,kGAA4F;AAC5F,0FAAoF;AACpF,sGAAgG;AAChG,8EAAyE;AACzE,wFAAkF;AAClF,oGAA8F;AAC9F,oFAA8E;AAC9E,sEAAiE;AACjE,gFAA0E;AAC1E,gFAA0E;AAC1E,wEAAmE;AACnE,oFAA+E;AAC/E,oFAA+E;AAC/E,0EAAqE;AACrE,wEAAoE;AACpE,4FAAuF;AACvF,gFAA2E;AAC3E,4EAAuE;AACvE,sFAAiF;AACjF,8EAAyE;AACzE,0FAAqF;AACrF,4EAAsE;AACtE,oEAA+D;AAC/D,8EAAwE;AACxE,0FAAoF;AACpF,0EAAoE;AACpE,sEAAgE;AAChE,4DAAuD;AACvD,wEAAkE;AAClE,sEAAgE;AAChE,8DAAyD;AACzD,0EAAqE;AACrE,0EAAqE;AACrE,gEAA2D;AAC3D,8DAA0D;AAC1D,kFAA6E;AAC7E,wEAAiE;A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B,+BAAa;QACb,0CAAkB;QAClB,wCAAiB;QACjB,iCAAc;QACd,6CAAoB;QACpB,6CAAoB;QACpB,mCAAe;QACf,kCAAe;QACf,qDAAwB;QACxB,yCAAiB;QACjB,yCAAkB;QAClB,qCAAgB;QAChB,+CAAqB;QACrB,uCAAiB;QACjB,mDAAuB;KAC1B;IACD,SAAS,EAAE,CAAC,uCAAiB,EAAE,oDAAuB,EAAE,2BAAW,EAAE,uCAAiB,EAAE,2BAAW,EAAE,+CAAoB,CAAC;IAC1H,QAAQ,EAAE,CAAC,uCAAiB,EAAE,iCAAc,EAAE,uCAAiB,CAAC;IAChE,WAAW,EAAE;QACT,8DAA4B;QAC5B,0EAAkC;QAClC,qDAAwB;QACxB,0DAA0B;QAC1B,sDAAwB;QACxB,6CAAoB;QACpB,sDAAwB;QACxB,+CAAqB;QACrB,2DAA2B;QAC3B,2DAA2B;QAC3B,iDAAsB;QACtB,mEAA+B;QAC/B,gDAAsB;QACtB,uDAAyB;QACzB,mDAAuB;QACvB,6DAA4B;QAC5B,qDAAwB;QACxB,iEAA8B;KACjC;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CommonJob, DatabaseEventDto, QueueService } from '@servicelabsco/nestjs-utility-services';
2
+ import { EmailNotificationEntity } from '../entities/email.notification.entity';
3
+ export declare class EmailNotificationJob extends CommonJob {
4
+ protected readonly queueService: QueueService;
5
+ constructor(queueService: QueueService);
6
+ handle(evt: DatabaseEventDto<EmailNotificationEntity>): Promise<EmailNotificationEntity>;
7
+ }
@@ -0,0 +1,29 @@
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.EmailNotificationJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let EmailNotificationJob = class EmailNotificationJob extends nestjs_utility_services_1.CommonJob {
16
+ constructor(queueService) {
17
+ super('cc985ea9d93f1b0234a89b87d2420a01');
18
+ this.queueService = queueService;
19
+ }
20
+ async handle(evt) {
21
+ return evt.entity;
22
+ }
23
+ };
24
+ exports.EmailNotificationJob = EmailNotificationJob;
25
+ exports.EmailNotificationJob = EmailNotificationJob = __decorate([
26
+ (0, common_1.Injectable)(),
27
+ __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
28
+ ], EmailNotificationJob);
29
+ //# sourceMappingURL=email.notification.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.notification.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/email.notification.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmG;AAG5F,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mCAAS;IAC/C,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAA8C;QACvD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,oBAAoB,CAOhC"}
@@ -0,0 +1,7 @@
1
+ import { CommonJob, DatabaseEventDto, QueueService } from '@servicelabsco/nestjs-utility-services';
2
+ import { InappNotificationEntity } from '../entities/inapp.notification.entity';
3
+ export declare class InappNotificationJob extends CommonJob {
4
+ protected readonly queueService: QueueService;
5
+ constructor(queueService: QueueService);
6
+ handle(evt: DatabaseEventDto<InappNotificationEntity>): Promise<InappNotificationEntity>;
7
+ }
@@ -0,0 +1,29 @@
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.InappNotificationJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let InappNotificationJob = class InappNotificationJob extends nestjs_utility_services_1.CommonJob {
16
+ constructor(queueService) {
17
+ super('3d4d4ffa395a19e8e58cd34bef0d2844');
18
+ this.queueService = queueService;
19
+ }
20
+ async handle(evt) {
21
+ return evt.entity;
22
+ }
23
+ };
24
+ exports.InappNotificationJob = InappNotificationJob;
25
+ exports.InappNotificationJob = InappNotificationJob = __decorate([
26
+ (0, common_1.Injectable)(),
27
+ __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
28
+ ], InappNotificationJob);
29
+ //# sourceMappingURL=inapp.notification.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inapp.notification.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/inapp.notification.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmG;AAG5F,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mCAAS;IAC/C,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAA8C;QACvD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,oBAAoB,CAOhC"}
@@ -8,8 +8,14 @@ export * from './bulk.upload.job';
8
8
  export * from './bulk.upload.stats.job';
9
9
  export * from './bulk.upload.type.job';
10
10
  export * from './data.mapping.job';
11
+ export * from './email.notification.job';
12
+ export * from './inapp.notification.job';
11
13
  export * from './listing.model.job';
14
+ export * from './notification.job';
15
+ export * from './notification.recipient.job';
12
16
  export * from './push.to.bulk.item.job';
17
+ export * from './sms.notification.job';
13
18
  export * from './tag.assignment.job';
14
19
  export * from './upload.modification.job';
15
20
  export * from './webhook.request.job';
21
+ export * from './whatsapp.notification.job';
@@ -24,9 +24,15 @@ __exportStar(require("./bulk.upload.job"), exports);
24
24
  __exportStar(require("./bulk.upload.stats.job"), exports);
25
25
  __exportStar(require("./bulk.upload.type.job"), exports);
26
26
  __exportStar(require("./data.mapping.job"), exports);
27
+ __exportStar(require("./email.notification.job"), exports);
28
+ __exportStar(require("./inapp.notification.job"), exports);
27
29
  __exportStar(require("./listing.model.job"), exports);
30
+ __exportStar(require("./notification.job"), exports);
31
+ __exportStar(require("./notification.recipient.job"), exports);
28
32
  __exportStar(require("./push.to.bulk.item.job"), exports);
33
+ __exportStar(require("./sms.notification.job"), exports);
29
34
  __exportStar(require("./tag.assignment.job"), exports);
30
35
  __exportStar(require("./upload.modification.job"), exports);
31
36
  __exportStar(require("./webhook.request.job"), exports);
37
+ __exportStar(require("./whatsapp.notification.job"), exports);
32
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,qDAAmC;AAAA,sDAAoC;AAAA,0DAAwC;AAAA,uDAAqC;AAAA,4DAA0C;AAAA,wDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,qDAAmC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,sDAAoC;AAAA,qDAAmC;AAAA,+DAA6C;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,uDAAqC;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,8DAA2C"}
@@ -0,0 +1,7 @@
1
+ import { CommonJob, DatabaseEventDto, QueueService } from '@servicelabsco/nestjs-utility-services';
2
+ import { NotificationEntity } from '../entities/notification.entity';
3
+ export declare class NotificationJob extends CommonJob {
4
+ protected readonly queueService: QueueService;
5
+ constructor(queueService: QueueService);
6
+ handle(evt: DatabaseEventDto<NotificationEntity>): Promise<NotificationEntity>;
7
+ }
@@ -0,0 +1,29 @@
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.NotificationJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let NotificationJob = class NotificationJob extends nestjs_utility_services_1.CommonJob {
16
+ constructor(queueService) {
17
+ super('1f75f7eda5e984e375142e34cfe206fc');
18
+ this.queueService = queueService;
19
+ }
20
+ async handle(evt) {
21
+ return evt.entity;
22
+ }
23
+ };
24
+ exports.NotificationJob = NotificationJob;
25
+ exports.NotificationJob = NotificationJob = __decorate([
26
+ (0, common_1.Injectable)(),
27
+ __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
28
+ ], NotificationJob);
29
+ //# sourceMappingURL=notification.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/notification.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmG;AAG5F,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,mCAAS;IAC1C,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAyC;QAClD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,eAAe,CAO3B"}
@@ -0,0 +1,7 @@
1
+ import { CommonJob, DatabaseEventDto, QueueService } from '@servicelabsco/nestjs-utility-services';
2
+ import { NotificationRecipientEntity } from '../entities/notification.recipient.entity';
3
+ export declare class NotificationRecipientJob extends CommonJob {
4
+ protected readonly queueService: QueueService;
5
+ constructor(queueService: QueueService);
6
+ handle(evt: DatabaseEventDto<NotificationRecipientEntity>): Promise<NotificationRecipientEntity>;
7
+ }
@@ -0,0 +1,29 @@
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.NotificationRecipientJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let NotificationRecipientJob = class NotificationRecipientJob extends nestjs_utility_services_1.CommonJob {
16
+ constructor(queueService) {
17
+ super('ebe3a94cc176d7e4e9493d4e9c1a6909');
18
+ this.queueService = queueService;
19
+ }
20
+ async handle(evt) {
21
+ return evt.entity;
22
+ }
23
+ };
24
+ exports.NotificationRecipientJob = NotificationRecipientJob;
25
+ exports.NotificationRecipientJob = NotificationRecipientJob = __decorate([
26
+ (0, common_1.Injectable)(),
27
+ __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
28
+ ], NotificationRecipientJob);
29
+ //# sourceMappingURL=notification.recipient.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.recipient.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/notification.recipient.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmG;AAG5F,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,mCAAS;IACnD,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAkD;QAC3D,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,wBAAwB,CAOpC"}
@@ -0,0 +1,7 @@
1
+ import { CommonJob, DatabaseEventDto, QueueService } from '@servicelabsco/nestjs-utility-services';
2
+ import { SmsNotificationEntity } from '../entities/sms.notification.entity';
3
+ export declare class SmsNotificationJob extends CommonJob {
4
+ protected readonly queueService: QueueService;
5
+ constructor(queueService: QueueService);
6
+ handle(evt: DatabaseEventDto<SmsNotificationEntity>): Promise<SmsNotificationEntity>;
7
+ }
@@ -0,0 +1,29 @@
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.SmsNotificationJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let SmsNotificationJob = class SmsNotificationJob extends nestjs_utility_services_1.CommonJob {
16
+ constructor(queueService) {
17
+ super('1e4e1511e38858dbc1c7b867bf3ae1b8');
18
+ this.queueService = queueService;
19
+ }
20
+ async handle(evt) {
21
+ return evt.entity;
22
+ }
23
+ };
24
+ exports.SmsNotificationJob = SmsNotificationJob;
25
+ exports.SmsNotificationJob = SmsNotificationJob = __decorate([
26
+ (0, common_1.Injectable)(),
27
+ __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
28
+ ], SmsNotificationJob);
29
+ //# sourceMappingURL=sms.notification.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sms.notification.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/sms.notification.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmG;AAG5F,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,mCAAS;IAC7C,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAA4C;QACrD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,kBAAkB,CAO9B"}
@@ -0,0 +1,7 @@
1
+ import { CommonJob, DatabaseEventDto, QueueService } from '@servicelabsco/nestjs-utility-services';
2
+ import { WhatsappNotificationEntity } from '../entities/whatsapp.notification.entity';
3
+ export declare class WhatsappNotificationJob extends CommonJob {
4
+ protected readonly queueService: QueueService;
5
+ constructor(queueService: QueueService);
6
+ handle(evt: DatabaseEventDto<WhatsappNotificationEntity>): Promise<WhatsappNotificationEntity>;
7
+ }
@@ -0,0 +1,29 @@
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.WhatsappNotificationJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let WhatsappNotificationJob = class WhatsappNotificationJob extends nestjs_utility_services_1.CommonJob {
16
+ constructor(queueService) {
17
+ super('80a3b6b88886deb293d8cd57fa2e5dc2');
18
+ this.queueService = queueService;
19
+ }
20
+ async handle(evt) {
21
+ return evt.entity;
22
+ }
23
+ };
24
+ exports.WhatsappNotificationJob = WhatsappNotificationJob;
25
+ exports.WhatsappNotificationJob = WhatsappNotificationJob = __decorate([
26
+ (0, common_1.Injectable)(),
27
+ __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
28
+ ], WhatsappNotificationJob);
29
+ //# sourceMappingURL=whatsapp.notification.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp.notification.job.js","sourceRoot":"","sources":["../../../src/accessUtility/jobs/whatsapp.notification.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmG;AAG5F,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,mCAAS;IAClD,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAiD;QAC1D,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,uBAAuB,CAOnC"}
@@ -8,11 +8,17 @@ import { BulkUploadJob } from '../jobs/bulk.upload.job';
8
8
  import { BulkUploadStatsJob } from '../jobs/bulk.upload.stats.job';
9
9
  import { BulkUploadTypeJob } from '../jobs/bulk.upload.type.job';
10
10
  import { DataMappingJob } from '../jobs/data.mapping.job';
11
+ import { EmailNotificationJob } from '../jobs/email.notification.job';
12
+ import { InappNotificationJob } from '../jobs/inapp.notification.job';
11
13
  import { ListingModelJob } from '../jobs/listing.model.job';
14
+ import { NotificationJob } from '../jobs/notification.job';
15
+ import { NotificationRecipientJob } from '../jobs/notification.recipient.job';
12
16
  import { PushToBulkItemJob } from '../jobs/push.to.bulk.item.job';
17
+ import { SmsNotificationJob } from '../jobs/sms.notification.job';
13
18
  import { TagAssignmentJob } from '../jobs/tag.assignment.job';
14
19
  import { UploadModificationJob } from '../jobs/upload.modification.job';
15
20
  import { WebhookRequestJob } from '../jobs/webhook.request.job';
21
+ import { WhatsappNotificationJob } from '../jobs/whatsapp.notification.job';
16
22
  export declare class Es6JobsService {
17
23
  private readonly analyseBulkUploadJob;
18
24
  private readonly bulkDefinitionJob;
@@ -24,13 +30,19 @@ export declare class Es6JobsService {
24
30
  private readonly bulkUploadStatsJob;
25
31
  private readonly bulkUploadTypeJob;
26
32
  private readonly dataMappingJob;
33
+ private readonly emailNotificationJob;
34
+ private readonly inappNotificationJob;
27
35
  private readonly listingModelJob;
36
+ private readonly notificationJob;
37
+ private readonly notificationRecipientJob;
28
38
  private readonly pushToBulkItemJob;
39
+ private readonly smsNotificationJob;
29
40
  private readonly tagAssignmentJob;
30
41
  private readonly uploadModificationJob;
31
42
  private readonly webhookRequestJob;
43
+ private readonly whatsappNotificationJob;
32
44
  private jobs;
33
- constructor(analyseBulkUploadJob: AnalyseBulkUploadJob, bulkDefinitionJob: BulkDefinitionJob, bulkDefinitionLoadJob: BulkDefinitionLoadJob, bulkDefinitionProcessingJob: BulkDefinitionProcessingJob, bulkUploadColumnJob: BulkUploadColumnJob, bulkUploadItemJob: BulkUploadItemJob, bulkUploadJob: BulkUploadJob, bulkUploadStatsJob: BulkUploadStatsJob, bulkUploadTypeJob: BulkUploadTypeJob, dataMappingJob: DataMappingJob, listingModelJob: ListingModelJob, pushToBulkItemJob: PushToBulkItemJob, tagAssignmentJob: TagAssignmentJob, uploadModificationJob: UploadModificationJob, webhookRequestJob: WebhookRequestJob);
45
+ constructor(analyseBulkUploadJob: AnalyseBulkUploadJob, bulkDefinitionJob: BulkDefinitionJob, bulkDefinitionLoadJob: BulkDefinitionLoadJob, bulkDefinitionProcessingJob: BulkDefinitionProcessingJob, bulkUploadColumnJob: BulkUploadColumnJob, bulkUploadItemJob: BulkUploadItemJob, bulkUploadJob: BulkUploadJob, bulkUploadStatsJob: BulkUploadStatsJob, bulkUploadTypeJob: BulkUploadTypeJob, dataMappingJob: DataMappingJob, emailNotificationJob: EmailNotificationJob, inappNotificationJob: InappNotificationJob, listingModelJob: ListingModelJob, notificationJob: NotificationJob, notificationRecipientJob: NotificationRecipientJob, pushToBulkItemJob: PushToBulkItemJob, smsNotificationJob: SmsNotificationJob, tagAssignmentJob: TagAssignmentJob, uploadModificationJob: UploadModificationJob, webhookRequestJob: WebhookRequestJob, whatsappNotificationJob: WhatsappNotificationJob);
34
46
  alignJobs(): void;
35
47
  setJobs(): void;
36
48
  }
@@ -21,14 +21,20 @@ const bulk_upload_job_1 = require("../jobs/bulk.upload.job");
21
21
  const bulk_upload_stats_job_1 = require("../jobs/bulk.upload.stats.job");
22
22
  const bulk_upload_type_job_1 = require("../jobs/bulk.upload.type.job");
23
23
  const data_mapping_job_1 = require("../jobs/data.mapping.job");
24
+ const email_notification_job_1 = require("../jobs/email.notification.job");
25
+ const inapp_notification_job_1 = require("../jobs/inapp.notification.job");
24
26
  const listing_model_job_1 = require("../jobs/listing.model.job");
27
+ const notification_job_1 = require("../jobs/notification.job");
28
+ const notification_recipient_job_1 = require("../jobs/notification.recipient.job");
25
29
  const push_to_bulk_item_job_1 = require("../jobs/push.to.bulk.item.job");
30
+ const sms_notification_job_1 = require("../jobs/sms.notification.job");
26
31
  const tag_assignment_job_1 = require("../jobs/tag.assignment.job");
27
32
  const upload_modification_job_1 = require("../jobs/upload.modification.job");
28
33
  const webhook_request_job_1 = require("../jobs/webhook.request.job");
34
+ const whatsapp_notification_job_1 = require("../jobs/whatsapp.notification.job");
29
35
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
30
36
  let Es6JobsService = class Es6JobsService {
31
- constructor(analyseBulkUploadJob, bulkDefinitionJob, bulkDefinitionLoadJob, bulkDefinitionProcessingJob, bulkUploadColumnJob, bulkUploadItemJob, bulkUploadJob, bulkUploadStatsJob, bulkUploadTypeJob, dataMappingJob, listingModelJob, pushToBulkItemJob, tagAssignmentJob, uploadModificationJob, webhookRequestJob) {
37
+ constructor(analyseBulkUploadJob, bulkDefinitionJob, bulkDefinitionLoadJob, bulkDefinitionProcessingJob, bulkUploadColumnJob, bulkUploadItemJob, bulkUploadJob, bulkUploadStatsJob, bulkUploadTypeJob, dataMappingJob, emailNotificationJob, inappNotificationJob, listingModelJob, notificationJob, notificationRecipientJob, pushToBulkItemJob, smsNotificationJob, tagAssignmentJob, uploadModificationJob, webhookRequestJob, whatsappNotificationJob) {
32
38
  this.analyseBulkUploadJob = analyseBulkUploadJob;
33
39
  this.bulkDefinitionJob = bulkDefinitionJob;
34
40
  this.bulkDefinitionLoadJob = bulkDefinitionLoadJob;
@@ -39,11 +45,17 @@ let Es6JobsService = class Es6JobsService {
39
45
  this.bulkUploadStatsJob = bulkUploadStatsJob;
40
46
  this.bulkUploadTypeJob = bulkUploadTypeJob;
41
47
  this.dataMappingJob = dataMappingJob;
48
+ this.emailNotificationJob = emailNotificationJob;
49
+ this.inappNotificationJob = inappNotificationJob;
42
50
  this.listingModelJob = listingModelJob;
51
+ this.notificationJob = notificationJob;
52
+ this.notificationRecipientJob = notificationRecipientJob;
43
53
  this.pushToBulkItemJob = pushToBulkItemJob;
54
+ this.smsNotificationJob = smsNotificationJob;
44
55
  this.tagAssignmentJob = tagAssignmentJob;
45
56
  this.uploadModificationJob = uploadModificationJob;
46
57
  this.webhookRequestJob = webhookRequestJob;
58
+ this.whatsappNotificationJob = whatsappNotificationJob;
47
59
  this.jobs = {};
48
60
  this.alignJobs();
49
61
  this.setJobs();
@@ -60,11 +72,17 @@ let Es6JobsService = class Es6JobsService {
60
72
  '7c7894dce6e63f8dfdc96762052ebf78': this.bulkUploadStatsJob,
61
73
  b18f0d1dd2bec92c1fbc6a07a9ac6d33: this.bulkUploadTypeJob,
62
74
  '518c9259f8a996051ef1a8dcdd5b5498': this.dataMappingJob,
75
+ cc985ea9d93f1b0234a89b87d2420a01: this.emailNotificationJob,
76
+ '3d4d4ffa395a19e8e58cd34bef0d2844': this.inappNotificationJob,
63
77
  '02b3275741183ecabec395645cef8415': this.listingModelJob,
78
+ '1f75f7eda5e984e375142e34cfe206fc': this.notificationJob,
79
+ ebe3a94cc176d7e4e9493d4e9c1a6909: this.notificationRecipientJob,
64
80
  '74802720e87b9c71c5afe3c375e45a46': this.pushToBulkItemJob,
81
+ '1e4e1511e38858dbc1c7b867bf3ae1b8': this.smsNotificationJob,
65
82
  '83d1f1a159cc83a0f7530050be74a2dc': this.tagAssignmentJob,
66
83
  '3df180588e626a20bbb81ad7003a4930': this.uploadModificationJob,
67
84
  b5b03a9172904a27654f9b0b2bdfc699: this.webhookRequestJob,
85
+ '80a3b6b88886deb293d8cd57fa2e5dc2': this.whatsappNotificationJob,
68
86
  };
69
87
  }
70
88
  setJobs() {
@@ -84,10 +102,16 @@ exports.Es6JobsService = Es6JobsService = __decorate([
84
102
  bulk_upload_stats_job_1.BulkUploadStatsJob,
85
103
  bulk_upload_type_job_1.BulkUploadTypeJob,
86
104
  data_mapping_job_1.DataMappingJob,
105
+ email_notification_job_1.EmailNotificationJob,
106
+ inapp_notification_job_1.InappNotificationJob,
87
107
  listing_model_job_1.ListingModelJob,
108
+ notification_job_1.NotificationJob,
109
+ notification_recipient_job_1.NotificationRecipientJob,
88
110
  push_to_bulk_item_job_1.PushToBulkItemJob,
111
+ sms_notification_job_1.SmsNotificationJob,
89
112
  tag_assignment_job_1.TagAssignmentJob,
90
113
  upload_modification_job_1.UploadModificationJob,
91
- webhook_request_job_1.WebhookRequestJob])
114
+ webhook_request_job_1.WebhookRequestJob,
115
+ whatsapp_notification_job_1.WhatsappNotificationJob])
92
116
  ], Es6JobsService);
93
117
  //# sourceMappingURL=es6.jobs.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/accessUtility/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6EAAuE;AACvE,qEAAgE;AAChE,+EAAyE;AACzE,2FAAqF;AACrF,2EAAqE;AACrE,uEAAiE;AACjE,6DAAwD;AACxD,yEAAmE;AACnE,uEAAiE;AACjE,+DAA0D;AAC1D,iEAA4D;AAC5D,yEAAkE;AAClE,mEAA8D;AAC9D,6EAAwE;AACxE,qEAAgE;AAChE,oFAAyE;AAQlE,IAAM,cAAc,GAApB,MAAM,cAAc;IAGvB,YACqB,oBAA0C,EAC1C,iBAAoC,EACpC,qBAA4C,EAC5C,2BAAwD,EACxD,mBAAwC,EACxC,iBAAoC,EACpC,aAA4B,EAC5B,kBAAsC,EACtC,iBAAoC,EACpC,cAA8B,EAC9B,eAAgC,EAChC,iBAAoC,EACpC,gBAAk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D,kCAAkC,EAAE,IAAI,CAAC,gBAAgB;YACzD,kCAAkC,EAAE,IAAI,CAAC,qBAAqB;YAC9D,gCAAgC,EAAE,IAAI,CAAC,iBAAiB;SAC3D,CAAC;IACN,CAAC;IAMD,OAAO;QACH,yCAAe,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ,CAAA;AAvDY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAKkC,8CAAoB;QACvB,uCAAiB;QACb,gDAAqB;QACf,4DAA2B;QACnC,4CAAmB;QACrB,wCAAiB;QACrB,+BAAa;QACR,0CAAkB;QACnB,wCAAiB;QACpB,iCAAc;QACb,mCAAe;QACb,yCAAiB;QAClB,qCAAgB;QACX,+CAAqB;QACzB,uCAAiB;GAlBhD,cAAc,CAuD1B"}
1
+ {"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/accessUtility/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6EAAuE;AACvE,qEAAgE;AAChE,+EAAyE;AACzE,2FAAqF;AACrF,2EAAqE;AACrE,uEAAiE;AACjE,6DAAwD;AACxD,yEAAmE;AACnE,uEAAiE;AACjE,+DAA0D;AAC1D,2EAAsE;AACtE,2EAAsE;AACtE,iEAA4D;AAC5D,+DAA2D;AAC3D,mFAA8E;AAC9E,yEAAkE;AAClE,uEAAkE;AAClE,mEAA8D;AAC9D,6EAAwE;AACxE,qEAAgE;AAChE,iFAA4E;AAC5E,oFAAyE;AAQlE,IAAM,cAAc,GAApB,MAAM,cAAc;IAGvB,YACqB,oBAA0C,EAC1C,iBAAoC,EACpC,qBAA4C,EAC5C,2BAAwD,EACxD,mBAAwC,EACxC,iBAAoC,EACpC,aAA4B,EAC5B,kBAAsC,EACtC,iBAAoC,EACpC,cAA8B,EAC9B,oBAA0C,EAC1C,oBAA0C,EAC1C,eAAgC,EAChC,eAAgC,EAChC,wBAA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CAAgC,EAAE,IAAI,CAAC,iBAAiB;YACxD,kCAAkC,EAAE,IAAI,CAAC,aAAa;YACtD,kCAAkC,EAAE,IAAI,CAAC,kBAAkB;YAC3D,gCAAgC,EAAE,IAAI,CAAC,iBAAiB;YACxD,kCAAkC,EAAE,IAAI,CAAC,cAAc;YACvD,gCAAgC,EAAE,IAAI,CAAC,oBAAoB;YAC3D,kCAAkC,EAAE,IAAI,CAAC,oBAAoB;YAC7D,kCAAkC,EAAE,IAAI,CAAC,eAAe;YACxD,kCAAkC,EAAE,IAAI,CAAC,eAAe;YACxD,gCAAgC,EAAE,IAAI,CAAC,wBAAwB;YAC/D,kCAAkC,EAAE,IAAI,CAAC,iBAAiB;YAC1D,kCAAkC,EAAE,IAAI,CAAC,kBAAkB;YAC3D,kCAAkC,EAAE,IAAI,CAAC,gBAAgB;YACzD,kCAAkC,EAAE,IAAI,CAAC,qBAAqB;YAC9D,gCAAgC,EAAE,IAAI,CAAC,iBAAiB;YACxD,kCAAkC,EAAE,IAAI,CAAC,uBAAuB;SACnE,CAAC;IACN,CAAC;IAMD,OAAO;QACH,yCAAe,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ,CAAA;AAnEY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAKkC,8CAAoB;QACvB,uCAAiB;QACb,gDAAqB;QACf,4DAA2B;QACnC,4CAAmB;QACrB,wCAAiB;QACrB,+BAAa;QACR,0CAAkB;QACnB,wCAAiB;QACpB,iCAAc;QACR,6CAAoB;QACpB,6CAAoB;QACzB,mCAAe;QACf,kCAAe;QACN,qDAAwB;QAC/B,yCAAiB;QAChB,yCAAkB;QACpB,qCAAgB;QACX,+CAAqB;QACzB,uCAAiB;QACX,mDAAuB;GAxB5D,cAAc,CAmE1B"}
@@ -0,0 +1,12 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
3
+ import { EmailNotificationEntity } from '../entities/email.notification.entity';
4
+ import { EmailNotificationJob } from '../jobs/email.notification.job';
5
+ export declare class EmailNotificationSubscriber extends CommonSubscriber<EmailNotificationEntity> {
6
+ private readonly dataSource;
7
+ private readonly emailNotificationJob;
8
+ constructor(dataSource: DataSource, emailNotificationJob: EmailNotificationJob);
9
+ listenTo(): typeof EmailNotificationEntity;
10
+ afterInsert(evt: InsertEvent<EmailNotificationEntity>): Promise<void>;
11
+ afterUpdate(evt: UpdateEvent<EmailNotificationEntity>): Promise<void>;
12
+ }
@@ -0,0 +1,40 @@
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.EmailNotificationSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const email_notification_entity_1 = require("../entities/email.notification.entity");
16
+ const email_notification_job_1 = require("../jobs/email.notification.job");
17
+ let EmailNotificationSubscriber = class EmailNotificationSubscriber extends nestjs_utility_services_1.CommonSubscriber {
18
+ constructor(dataSource, emailNotificationJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.emailNotificationJob = emailNotificationJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return email_notification_entity_1.EmailNotificationEntity;
26
+ }
27
+ async afterInsert(evt) {
28
+ await this.emailNotificationJob.delayedDispatch(this.getEventData(evt));
29
+ }
30
+ async afterUpdate(evt) {
31
+ await this.emailNotificationJob.delayedDispatch(this.getEventData(evt));
32
+ }
33
+ };
34
+ exports.EmailNotificationSubscriber = EmailNotificationSubscriber;
35
+ exports.EmailNotificationSubscriber = EmailNotificationSubscriber = __decorate([
36
+ (0, typeorm_1.EventSubscriber)(),
37
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
38
+ email_notification_job_1.EmailNotificationJob])
39
+ ], EmailNotificationSubscriber);
40
+ //# sourceMappingURL=email.notification.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.notification.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/email.notification.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,qFAAgF;AAChF,2EAAsE;AAG/D,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,0CAAyC;IACtF,YACqB,UAAsB,EACtB,oBAA0C;QAE3D,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,yBAAoB,GAApB,oBAAoB,CAAsB;QAG3D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,mDAAuB,CAAC;IACnC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAyC;QACvD,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAyC;QACvD,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAlBY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACA,6CAAoB;GAHtD,2BAA2B,CAkBvC"}
@@ -0,0 +1,12 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
3
+ import { InappNotificationEntity } from '../entities/inapp.notification.entity';
4
+ import { InappNotificationJob } from '../jobs/inapp.notification.job';
5
+ export declare class InappNotificationSubscriber extends CommonSubscriber<InappNotificationEntity> {
6
+ private readonly dataSource;
7
+ private readonly inappNotificationJob;
8
+ constructor(dataSource: DataSource, inappNotificationJob: InappNotificationJob);
9
+ listenTo(): typeof InappNotificationEntity;
10
+ afterInsert(evt: InsertEvent<InappNotificationEntity>): Promise<void>;
11
+ afterUpdate(evt: UpdateEvent<InappNotificationEntity>): Promise<void>;
12
+ }
@@ -0,0 +1,40 @@
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.InappNotificationSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const inapp_notification_entity_1 = require("../entities/inapp.notification.entity");
16
+ const inapp_notification_job_1 = require("../jobs/inapp.notification.job");
17
+ let InappNotificationSubscriber = class InappNotificationSubscriber extends nestjs_utility_services_1.CommonSubscriber {
18
+ constructor(dataSource, inappNotificationJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.inappNotificationJob = inappNotificationJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return inapp_notification_entity_1.InappNotificationEntity;
26
+ }
27
+ async afterInsert(evt) {
28
+ await this.inappNotificationJob.delayedDispatch(this.getEventData(evt));
29
+ }
30
+ async afterUpdate(evt) {
31
+ await this.inappNotificationJob.delayedDispatch(this.getEventData(evt));
32
+ }
33
+ };
34
+ exports.InappNotificationSubscriber = InappNotificationSubscriber;
35
+ exports.InappNotificationSubscriber = InappNotificationSubscriber = __decorate([
36
+ (0, typeorm_1.EventSubscriber)(),
37
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
38
+ inapp_notification_job_1.InappNotificationJob])
39
+ ], InappNotificationSubscriber);
40
+ //# sourceMappingURL=inapp.notification.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inapp.notification.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/inapp.notification.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,qFAAgF;AAChF,2EAAsE;AAG/D,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,0CAAyC;IACtF,YACqB,UAAsB,EACtB,oBAA0C;QAE3D,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,yBAAoB,GAApB,oBAAoB,CAAsB;QAG3D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,mDAAuB,CAAC;IACnC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAyC;QACvD,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAyC;QACvD,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAlBY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACA,6CAAoB;GAHtD,2BAA2B,CAkBvC"}
@@ -6,7 +6,13 @@ export * from './bulk.upload.item.subscriber';
6
6
  export * from './bulk.upload.subscriber';
7
7
  export * from './bulk.upload.type.subscriber';
8
8
  export * from './data.mapping.subscriber';
9
+ export * from './email.notification.subscriber';
10
+ export * from './inapp.notification.subscriber';
9
11
  export * from './listing.model.subscriber';
12
+ export * from './notification.recipient.subscriber';
13
+ export * from './notification.subscriber';
14
+ export * from './sms.notification.subscriber';
10
15
  export * from './tag.assignment.subscriber';
11
16
  export * from './upload.modification.subscriber';
12
17
  export * from './webhook.request.subscriber';
18
+ export * from './whatsapp.notification.subscriber';
@@ -22,8 +22,14 @@ __exportStar(require("./bulk.upload.item.subscriber"), exports);
22
22
  __exportStar(require("./bulk.upload.subscriber"), exports);
23
23
  __exportStar(require("./bulk.upload.type.subscriber"), exports);
24
24
  __exportStar(require("./data.mapping.subscriber"), exports);
25
+ __exportStar(require("./email.notification.subscriber"), exports);
26
+ __exportStar(require("./inapp.notification.subscriber"), exports);
25
27
  __exportStar(require("./listing.model.subscriber"), exports);
28
+ __exportStar(require("./notification.recipient.subscriber"), exports);
29
+ __exportStar(require("./notification.subscriber"), exports);
30
+ __exportStar(require("./sms.notification.subscriber"), exports);
26
31
  __exportStar(require("./tag.assignment.subscriber"), exports);
27
32
  __exportStar(require("./upload.modification.subscriber"), exports);
28
33
  __exportStar(require("./webhook.request.subscriber"), exports);
34
+ __exportStar(require("./whatsapp.notification.subscriber"), exports);
29
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAAA,0EAAwD;AAAA,+DAA6C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,+DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAAA,0EAAwD;AAAA,+DAA6C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,+DAA6C;AAAA,qEAAkD"}