@servicelabsco/slabs-access-manager 0.1.169 → 0.1.171

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 (157) hide show
  1. package/dist/access/controllers/business.notification.channel.preference.controller.d.ts +17 -0
  2. package/dist/access/controllers/business.notification.channel.preference.controller.js +112 -0
  3. package/dist/access/controllers/business.notification.channel.preference.controller.js.map +1 -0
  4. package/dist/access/controllers/business.user.notification.preference.controller.d.ts +21 -0
  5. package/dist/access/controllers/business.user.notification.preference.controller.js +138 -0
  6. package/dist/access/controllers/business.user.notification.preference.controller.js.map +1 -0
  7. package/dist/access/controllers/business.webhook.controller.d.ts +13 -0
  8. package/dist/access/controllers/business.webhook.controller.js +81 -0
  9. package/dist/access/controllers/business.webhook.controller.js.map +1 -0
  10. package/dist/access/controllers/index.d.ts +3 -0
  11. package/dist/access/controllers/index.js +3 -0
  12. package/dist/access/controllers/index.js.map +1 -1
  13. package/dist/access/dtos/add.business.user.notification.preference.dto.d.ts +6 -0
  14. package/dist/access/dtos/add.business.user.notification.preference.dto.js +43 -0
  15. package/dist/access/dtos/add.business.user.notification.preference.dto.js.map +1 -0
  16. package/dist/access/dtos/add.notification.channel.preference.dto.d.ts +6 -0
  17. package/dist/access/dtos/add.notification.channel.preference.dto.js +43 -0
  18. package/dist/access/dtos/add.notification.channel.preference.dto.js.map +1 -0
  19. package/dist/access/dtos/add.webhook.dto.d.ts +5 -0
  20. package/dist/access/dtos/add.webhook.dto.js +36 -0
  21. package/dist/access/dtos/add.webhook.dto.js.map +1 -0
  22. package/dist/access/dtos/business.notification.channel.preference.list.filter.dto.d.ts +4 -0
  23. package/dist/access/dtos/business.notification.channel.preference.list.filter.dto.js +25 -0
  24. package/dist/access/dtos/business.notification.channel.preference.list.filter.dto.js.map +1 -0
  25. package/dist/access/dtos/business.user.notification.preference.attributes.dto.d.ts +3 -0
  26. package/dist/access/dtos/business.user.notification.preference.attributes.dto.js +8 -0
  27. package/dist/access/dtos/business.user.notification.preference.attributes.dto.js.map +1 -0
  28. package/dist/access/dtos/business.user.notification.preference.list.filter.dto.d.ts +5 -0
  29. package/dist/access/dtos/business.user.notification.preference.list.filter.dto.js +31 -0
  30. package/dist/access/dtos/business.user.notification.preference.list.filter.dto.js.map +1 -0
  31. package/dist/access/dtos/business.webhook.attributes.dto.d.ts +3 -0
  32. package/dist/access/dtos/business.webhook.attributes.dto.js +8 -0
  33. package/dist/access/dtos/business.webhook.attributes.dto.js.map +1 -0
  34. package/dist/access/dtos/bz.notification.channel.preference.attributes.dto.d.ts +3 -0
  35. package/dist/access/dtos/bz.notification.channel.preference.attributes.dto.js +8 -0
  36. package/dist/access/dtos/bz.notification.channel.preference.attributes.dto.js.map +1 -0
  37. package/dist/access/dtos/index.d.ts +11 -0
  38. package/dist/access/dtos/index.js +11 -0
  39. package/dist/access/dtos/index.js.map +1 -1
  40. package/dist/access/dtos/send.webhook.request.payload.d.ts +4 -0
  41. package/dist/access/dtos/send.webhook.request.payload.js +7 -0
  42. package/dist/access/dtos/send.webhook.request.payload.js.map +1 -0
  43. package/dist/access/dtos/webhook.event.attributes.dto.d.ts +3 -0
  44. package/dist/access/dtos/webhook.event.attributes.dto.js +8 -0
  45. package/dist/access/dtos/webhook.event.attributes.dto.js.map +1 -0
  46. package/dist/access/dtos/webhook.log.attributes.dto.d.ts +3 -0
  47. package/dist/access/dtos/webhook.log.attributes.dto.js +8 -0
  48. package/dist/access/dtos/webhook.log.attributes.dto.js.map +1 -0
  49. package/dist/access/entities/app.integration.entity.d.ts +1 -0
  50. package/dist/access/entities/app.integration.entity.js +4 -0
  51. package/dist/access/entities/app.integration.entity.js.map +1 -1
  52. package/dist/access/entities/business.user.notification.preference.entity.d.ts +15 -0
  53. package/dist/access/entities/business.user.notification.preference.entity.js +68 -0
  54. package/dist/access/entities/business.user.notification.preference.entity.js.map +1 -0
  55. package/dist/access/entities/business.webhook.entity.d.ts +12 -0
  56. package/dist/access/entities/business.webhook.entity.js +52 -0
  57. package/dist/access/entities/business.webhook.entity.js.map +1 -0
  58. package/dist/access/entities/bz.notification.channel.preference.entity.d.ts +13 -0
  59. package/dist/access/entities/bz.notification.channel.preference.entity.js +59 -0
  60. package/dist/access/entities/bz.notification.channel.preference.entity.js.map +1 -0
  61. package/dist/access/entities/index.d.ts +5 -0
  62. package/dist/access/entities/index.js +5 -0
  63. package/dist/access/entities/index.js.map +1 -1
  64. package/dist/access/entities/webhook.event.entity.d.ts +9 -0
  65. package/dist/access/entities/webhook.event.entity.js +42 -0
  66. package/dist/access/entities/webhook.event.entity.js.map +1 -0
  67. package/dist/access/entities/webhook.log.entity.d.ts +16 -0
  68. package/dist/access/entities/webhook.log.entity.js +66 -0
  69. package/dist/access/entities/webhook.log.entity.js.map +1 -0
  70. package/dist/access/enums/index.d.ts +1 -0
  71. package/dist/access/enums/index.js +1 -0
  72. package/dist/access/enums/index.js.map +1 -1
  73. package/dist/access/enums/notification.channel.type.enum.d.ts +7 -0
  74. package/dist/access/enums/notification.channel.type.enum.js +12 -0
  75. package/dist/access/enums/notification.channel.type.enum.js.map +1 -0
  76. package/dist/access/es6.classes.d.ts +30 -8
  77. package/dist/access/es6.classes.js +67 -2
  78. package/dist/access/es6.classes.js.map +1 -1
  79. package/dist/access/jobs/business.user.notification.preference.job.d.ts +7 -0
  80. package/dist/access/jobs/business.user.notification.preference.job.js +29 -0
  81. package/dist/access/jobs/business.user.notification.preference.job.js.map +1 -0
  82. package/dist/access/jobs/business.webhook.job.d.ts +7 -0
  83. package/dist/access/jobs/business.webhook.job.js +29 -0
  84. package/dist/access/jobs/business.webhook.job.js.map +1 -0
  85. package/dist/access/jobs/bz.notification.channel.preference.job.d.ts +7 -0
  86. package/dist/access/jobs/bz.notification.channel.preference.job.js +29 -0
  87. package/dist/access/jobs/bz.notification.channel.preference.job.js.map +1 -0
  88. package/dist/access/jobs/index.d.ts +5 -0
  89. package/dist/access/jobs/index.js +5 -0
  90. package/dist/access/jobs/index.js.map +1 -1
  91. package/dist/access/jobs/webhook.event.job.d.ts +7 -0
  92. package/dist/access/jobs/webhook.event.job.js +29 -0
  93. package/dist/access/jobs/webhook.event.job.js.map +1 -0
  94. package/dist/access/jobs/webhook.log.job.d.ts +7 -0
  95. package/dist/access/jobs/webhook.log.job.js +29 -0
  96. package/dist/access/jobs/webhook.log.job.js.map +1 -0
  97. package/dist/access/libraries/business.notification.channel.preference.list.d.ts +21 -0
  98. package/dist/access/libraries/business.notification.channel.preference.list.js +41 -0
  99. package/dist/access/libraries/business.notification.channel.preference.list.js.map +1 -0
  100. package/dist/access/libraries/business.user.notification.preference.list.d.ts +22 -0
  101. package/dist/access/libraries/business.user.notification.preference.list.js +47 -0
  102. package/dist/access/libraries/business.user.notification.preference.list.js.map +1 -0
  103. package/dist/access/libraries/index.d.ts +3 -0
  104. package/dist/access/libraries/index.js +3 -0
  105. package/dist/access/libraries/index.js.map +1 -1
  106. package/dist/access/libraries/send.webhook.request.d.ts +20 -0
  107. package/dist/access/libraries/send.webhook.request.js +71 -0
  108. package/dist/access/libraries/send.webhook.request.js.map +1 -0
  109. package/dist/access/services/es6.jobs.service.d.ts +11 -1
  110. package/dist/access/services/es6.jobs.service.js +21 -1
  111. package/dist/access/services/es6.jobs.service.js.map +1 -1
  112. package/dist/access/services/webhook.service.d.ts +5 -2
  113. package/dist/access/services/webhook.service.js +12 -2
  114. package/dist/access/services/webhook.service.js.map +1 -1
  115. package/dist/access/subscribers/business.user.notification.preference.subscriber.d.ts +10 -0
  116. package/dist/access/subscribers/business.user.notification.preference.subscriber.js +34 -0
  117. package/dist/access/subscribers/business.user.notification.preference.subscriber.js.map +1 -0
  118. package/dist/access/subscribers/business.webhook.subscriber.d.ts +10 -0
  119. package/dist/access/subscribers/business.webhook.subscriber.js +34 -0
  120. package/dist/access/subscribers/business.webhook.subscriber.js.map +1 -0
  121. package/dist/access/subscribers/bz.notification.channel.preference.subscriber.d.ts +10 -0
  122. package/dist/access/subscribers/bz.notification.channel.preference.subscriber.js +34 -0
  123. package/dist/access/subscribers/bz.notification.channel.preference.subscriber.js.map +1 -0
  124. package/dist/access/subscribers/index.d.ts +5 -0
  125. package/dist/access/subscribers/index.js +5 -0
  126. package/dist/access/subscribers/index.js.map +1 -1
  127. package/dist/access/subscribers/webhook.event.subscriber.d.ts +10 -0
  128. package/dist/access/subscribers/webhook.event.subscriber.js +34 -0
  129. package/dist/access/subscribers/webhook.event.subscriber.js.map +1 -0
  130. package/dist/access/subscribers/webhook.log.subscriber.d.ts +10 -0
  131. package/dist/access/subscribers/webhook.log.subscriber.js +34 -0
  132. package/dist/access/subscribers/webhook.log.subscriber.js.map +1 -0
  133. package/dist/config/entity.constants.d.ts +10 -0
  134. package/dist/config/entity.constants.js +10 -0
  135. package/dist/config/entity.constants.js.map +1 -1
  136. package/dist/migrations/1725343070093-AddEnabledGloballyBzAppIntegrationsTable.d.ts +5 -0
  137. package/dist/migrations/1725343070093-AddEnabledGloballyBzAppIntegrationsTable.js +15 -0
  138. package/dist/migrations/1725343070093-AddEnabledGloballyBzAppIntegrationsTable.js.map +1 -0
  139. package/dist/migrations/1725343451546-AddNotificationChannelDataSeederTable.d.ts +7 -0
  140. package/dist/migrations/1725343451546-AddNotificationChannelDataSeederTable.js +65 -0
  141. package/dist/migrations/1725343451546-AddNotificationChannelDataSeederTable.js.map +1 -0
  142. package/dist/migrations/1725343967311-CreateBzUserNotificationPreferencesTable.d.ts +5 -0
  143. package/dist/migrations/1725343967311-CreateBzUserNotificationPreferencesTable.js +22 -0
  144. package/dist/migrations/1725343967311-CreateBzUserNotificationPreferencesTable.js.map +1 -0
  145. package/dist/migrations/1725354088464-CreateBzNotificationChannelPreferenceTable.d.ts +5 -0
  146. package/dist/migrations/1725354088464-CreateBzNotificationChannelPreferenceTable.js +21 -0
  147. package/dist/migrations/1725354088464-CreateBzNotificationChannelPreferenceTable.js.map +1 -0
  148. package/dist/migrations/1725422481585-CreateBusinessWebhookTable.d.ts +5 -0
  149. package/dist/migrations/1725422481585-CreateBusinessWebhookTable.js +22 -0
  150. package/dist/migrations/1725422481585-CreateBusinessWebhookTable.js.map +1 -0
  151. package/dist/migrations/1725428002811-CreateWebhookEventTable.d.ts +5 -0
  152. package/dist/migrations/1725428002811-CreateWebhookEventTable.js +21 -0
  153. package/dist/migrations/1725428002811-CreateWebhookEventTable.js.map +1 -0
  154. package/dist/migrations/1725428278040-CreateWebhookLogTable.d.ts +5 -0
  155. package/dist/migrations/1725428278040-CreateWebhookLogTable.js +24 -0
  156. package/dist/migrations/1725428278040-CreateWebhookLogTable.js.map +1 -0
  157. package/package.json +1 -1
@@ -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.WebhookLogJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ let WebhookLogJob = class WebhookLogJob extends nestjs_utility_services_1.CommonJob {
16
+ constructor(queueService) {
17
+ super('4147e479deae8d2de827bb0a1b9a8c2d');
18
+ this.queueService = queueService;
19
+ }
20
+ async handle(evt) {
21
+ return evt.entity;
22
+ }
23
+ };
24
+ exports.WebhookLogJob = WebhookLogJob;
25
+ exports.WebhookLogJob = WebhookLogJob = __decorate([
26
+ (0, common_1.Injectable)(),
27
+ __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
28
+ ], WebhookLogJob);
29
+ //# sourceMappingURL=webhook.log.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.log.job.js","sourceRoot":"","sources":["../../../src/access/jobs/webhook.log.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAmG;AAI5F,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,mCAAS;IACxC,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAuC;QAChD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAEoC,sCAAY;GADhD,aAAa,CAOzB"}
@@ -0,0 +1,21 @@
1
+ import { BusinessNotificationChannelPreferenceListFilterDto } from '../dtos/business.notification.channel.preference.list.filter.dto';
2
+ import { ListResponseDto } from '../dtos/list.response.dto';
3
+ import { AccessBusinessEntity } from '../entities/access.business.entity';
4
+ import { ListingService } from '../services/listing.service';
5
+ import { ProcessCommonList } from './process.common.list';
6
+ export declare class ProcessBusinessNotificationChannelPreferenceList extends ProcessCommonList {
7
+ protected readonly business: AccessBusinessEntity;
8
+ protected readonly listingService: ListingService;
9
+ protected filter: BusinessNotificationChannelPreferenceListFilterDto;
10
+ protected config: {
11
+ sql: string;
12
+ columns: string[];
13
+ order: string;
14
+ metrics: any[];
15
+ };
16
+ constructor(business: AccessBusinessEntity, listingService: ListingService);
17
+ process(filter: BusinessNotificationChannelPreferenceListFilterDto): Promise<ListResponseDto>;
18
+ private processFilters;
19
+ private filterChannel;
20
+ private search;
21
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessBusinessNotificationChannelPreferenceList = void 0;
4
+ const process_common_list_1 = require("./process.common.list");
5
+ class ProcessBusinessNotificationChannelPreferenceList extends process_common_list_1.ProcessCommonList {
6
+ constructor(business, listingService) {
7
+ super();
8
+ this.business = business;
9
+ this.listingService = listingService;
10
+ this.config = {
11
+ sql: `bz_notification_channel_preferences a LEFT JOIN sys_users b on b.id=a.user_id LEFT join sys_lookup_values c on c.id=a.channel_id WHERE a.deleted_at IS NULL`,
12
+ columns: ['a.*', 'b.name user_name', 'c.name channel_name'],
13
+ order: 'sq.name asc',
14
+ metrics: [],
15
+ };
16
+ }
17
+ async process(filter) {
18
+ this.filter = filter;
19
+ this.processFilters();
20
+ return this.handle();
21
+ }
22
+ processFilters() {
23
+ this.restrictions.push(`a.business_id = ${this.business.id}`);
24
+ this.filterActive();
25
+ this.filterChannel();
26
+ this.search();
27
+ }
28
+ filterChannel() {
29
+ if (!this.filter.channel_id)
30
+ return;
31
+ this.restrictions.push(`a.channel_id = ${this.filter.channel_id}`);
32
+ }
33
+ search() {
34
+ if (!this.filter.search)
35
+ return;
36
+ const str = this.filter.search;
37
+ this.restrictions.push(`b.name ilike '%${str}%'`);
38
+ }
39
+ }
40
+ exports.ProcessBusinessNotificationChannelPreferenceList = ProcessBusinessNotificationChannelPreferenceList;
41
+ //# sourceMappingURL=business.notification.channel.preference.list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.notification.channel.preference.list.js","sourceRoot":"","sources":["../../../src/access/libraries/business.notification.channel.preference.list.ts"],"names":[],"mappings":";;;AAKA,+DAA0D;AAO1D,MAAa,gDAAiD,SAAQ,uCAAiB;IAsBnF,YACuB,QAA8B,EAC9B,cAA8B;QAEjD,KAAK,EAAE,CAAC;QAHW,aAAQ,GAAR,QAAQ,CAAsB;QAC9B,mBAAc,GAAd,cAAc,CAAgB;QAf3C,WAAM,GAAG;YACf,GAAG,EAAE,6JAA6J;YAClK,OAAO,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,CAAC;YAC3D,KAAK,EAAE,aAAa;YACpB,OAAO,EAAE,EAAE;SACd,CAAC;IAaF,CAAC;IAQD,KAAK,CAAC,OAAO,CAAC,MAA0D;QACpE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;IAOO,cAAc;QAClB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;QAE9D,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,CAAC,aAAa,EAAE,CAAC;QAErB,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAEO,aAAa;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU;YAAE,OAAO;QACpC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;IACvE,CAAC;IAQO,MAAM;QACV,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;YAAE,OAAO;QAChC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAE/B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IACtD,CAAC;CACJ;AA1ED,4GA0EC"}
@@ -0,0 +1,22 @@
1
+ import { BusinessUserNotificationPreferenceListFilterDto } from '../dtos/business.user.notification.preference.list.filter.dto';
2
+ import { ListResponseDto } from '../dtos/list.response.dto';
3
+ import { AccessBusinessEntity } from '../entities/access.business.entity';
4
+ import { ListingService } from '../services/listing.service';
5
+ import { ProcessCommonList } from './process.common.list';
6
+ export declare class ProcessBusinessUserNotificationPreferenceList extends ProcessCommonList {
7
+ protected readonly business: AccessBusinessEntity;
8
+ protected readonly listingService: ListingService;
9
+ protected filter: BusinessUserNotificationPreferenceListFilterDto;
10
+ protected config: {
11
+ sql: string;
12
+ columns: string[];
13
+ order: string;
14
+ metrics: any[];
15
+ };
16
+ constructor(business: AccessBusinessEntity, listingService: ListingService);
17
+ process(filter: BusinessUserNotificationPreferenceListFilterDto): Promise<ListResponseDto>;
18
+ private processFilters;
19
+ private filterChannel;
20
+ private filterNotification;
21
+ private search;
22
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessBusinessUserNotificationPreferenceList = void 0;
4
+ const process_common_list_1 = require("./process.common.list");
5
+ class ProcessBusinessUserNotificationPreferenceList extends process_common_list_1.ProcessCommonList {
6
+ constructor(business, listingService) {
7
+ super();
8
+ this.business = business;
9
+ this.listingService = listingService;
10
+ this.config = {
11
+ sql: `bz_user_notification_preferences a LEFT JOIN utl_notification_details b ON a.notification_id=b.id AND b.deleted_at IS NULL LEFT JOIN sys_lookup_values c ON c.id=a.channel_id LEFT JOIN sys_users d ON d.id=a.user_id WHERE a.deleted_at IS NULL`,
12
+ columns: ['a.*', 'b.name notification_name'],
13
+ order: 'sq.name asc',
14
+ metrics: [],
15
+ };
16
+ }
17
+ async process(filter) {
18
+ this.filter = filter;
19
+ this.processFilters();
20
+ return this.handle();
21
+ }
22
+ processFilters() {
23
+ this.restrictions.push(`a.business_id = ${this.business.id}`);
24
+ this.filterActive();
25
+ this.filterChannel();
26
+ this.filterNotification();
27
+ this.search();
28
+ }
29
+ filterChannel() {
30
+ if (!this.filter.channel_id)
31
+ return;
32
+ this.restrictions.push(`a.channel_id = ${this.filter.channel_id}`);
33
+ }
34
+ filterNotification() {
35
+ if (!this.filter.notification_id)
36
+ return;
37
+ this.restrictions.push(`a.notification_id = ${this.filter.notification_id}`);
38
+ }
39
+ search() {
40
+ if (!this.filter.search)
41
+ return;
42
+ const str = this.filter.search;
43
+ this.restrictions.push(`b.name ilike '%${str}%'`);
44
+ }
45
+ }
46
+ exports.ProcessBusinessUserNotificationPreferenceList = ProcessBusinessUserNotificationPreferenceList;
47
+ //# sourceMappingURL=business.user.notification.preference.list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.user.notification.preference.list.js","sourceRoot":"","sources":["../../../src/access/libraries/business.user.notification.preference.list.ts"],"names":[],"mappings":";;;AAIA,+DAA0D;AAO1D,MAAa,6CAA8C,SAAQ,uCAAiB;IAsBhF,YACuB,QAA8B,EAC9B,cAA8B;QAEjD,KAAK,EAAE,CAAC;QAHW,aAAQ,GAAR,QAAQ,CAAsB;QAC9B,mBAAc,GAAd,cAAc,CAAgB;QAf3C,WAAM,GAAG;YACf,GAAG,EAAE,kPAAkP;YACvP,OAAO,EAAE,CAAC,KAAK,EAAE,0BAA0B,CAAC;YAC5C,KAAK,EAAE,aAAa;YACpB,OAAO,EAAE,EAAE;SACd,CAAC;IAaF,CAAC;IAQD,KAAK,CAAC,OAAO,CAAC,MAAuD;QACjE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;IAOO,cAAc;QAClB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;QAE9D,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAE1B,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAEO,aAAa;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU;YAAE,OAAO;QACpC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;IACvE,CAAC;IAEO,kBAAkB;QACtB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe;YAAE,OAAO;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,uBAAuB,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;IACjF,CAAC;IAQO,MAAM;QACV,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;YAAE,OAAO;QAChC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAE/B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IACtD,CAAC;CACJ;AAhFD,sGAgFC"}
@@ -1,3 +1,5 @@
1
+ export * from './business.notification.channel.preference.list';
2
+ export * from './business.user.notification.preference.list';
1
3
  export * from './common.tag.controller';
2
4
  export * from './conversation.controller';
3
5
  export * from './process.api.account.data';
@@ -50,6 +52,7 @@ export * from './send.gchat.message.notification';
50
52
  export * from './send.gchat.webhook.notification';
51
53
  export * from './send.slack.message.notification';
52
54
  export * from './send.slack.webhook.notification.';
55
+ export * from './send.webhook.request';
53
56
  export * from './send.whatsapp.message.notification';
54
57
  export * from './set.fcm.token';
55
58
  export * from './sync.business.user.role';
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./business.notification.channel.preference.list"), exports);
18
+ __exportStar(require("./business.user.notification.preference.list"), exports);
17
19
  __exportStar(require("./common.tag.controller"), exports);
18
20
  __exportStar(require("./conversation.controller"), exports);
19
21
  __exportStar(require("./process.api.account.data"), exports);
@@ -66,6 +68,7 @@ __exportStar(require("./send.gchat.message.notification"), exports);
66
68
  __exportStar(require("./send.gchat.webhook.notification"), exports);
67
69
  __exportStar(require("./send.slack.message.notification"), exports);
68
70
  __exportStar(require("./send.slack.webhook.notification."), exports);
71
+ __exportStar(require("./send.webhook.request"), exports);
69
72
  __exportStar(require("./send.whatsapp.message.notification"), exports);
70
73
  __exportStar(require("./set.fcm.token"), exports);
71
74
  __exportStar(require("./sync.business.user.role"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,yEAAuD;AAAA,qEAAmD;AAAA,sEAAoD;AAAA,6DAA2C;AAAA,6DAA2C;AAAA,6DAA2C;AAAA,gEAA8C;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,uEAAqD;AAAA,kEAAgD;AAAA,8DAA4C;AAAA,gEAA8C;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,oDAAkC;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,qEAAmD;AAAA,kEAAgD;AAAA,uEAAqD;AAAA,kEAAgD;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,iEAA+C;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,oEAAkD;AAAA,oEAAkD;AAAA,oEAAkD;AAAA,qEAAmD;AAAA,uEAAqD;AAAA,kDAAgC;AAAA,4DAA0C;AAAA,+DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAAgE;AAAA,+EAA6D;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,yEAAuD;AAAA,qEAAmD;AAAA,sEAAoD;AAAA,6DAA2C;AAAA,6DAA2C;AAAA,6DAA2C;AAAA,gEAA8C;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,uEAAqD;AAAA,kEAAgD;AAAA,8DAA4C;AAAA,gEAA8C;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,oDAAkC;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,qEAAmD;AAAA,kEAAgD;AAAA,uEAAqD;AAAA,kEAAgD;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,iEAA+C;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,oEAAkD;AAAA,oEAAkD;AAAA,oEAAkD;AAAA,qEAAmD;AAAA,yDAAuC;AAAA,uEAAqD;AAAA,kDAAgC;AAAA,4DAA0C;AAAA,+DAA4C"}
@@ -0,0 +1,20 @@
1
+ import { RemoteRequestService } from '@servicelabsco/nestjs-utility-services';
2
+ import { SendWebhookRequestPayload } from '../dtos/send.webhook.request.payload';
3
+ import { AccessBusinessEntity } from '../entities/access.business.entity';
4
+ import { BusinessWebhookEntity } from '../entities/business.webhook.entity';
5
+ import { WebhookEventEntity } from '../entities/webhook.event.entity';
6
+ import { WebhookLogEntity } from '../entities/webhook.log.entity';
7
+ export declare class SendWebhookRequest {
8
+ private readonly business;
9
+ private readonly remoteRequestService;
10
+ protected webhook: BusinessWebhookEntity;
11
+ protected event: WebhookEventEntity;
12
+ protected payload: SendWebhookRequestPayload;
13
+ constructor(business: AccessBusinessEntity, remoteRequestService: RemoteRequestService);
14
+ process(payload: SendWebhookRequestPayload): Promise<BusinessWebhookEntity | WebhookLogEntity>;
15
+ private validate;
16
+ private sendRequest;
17
+ private disableWebhook;
18
+ private sleep;
19
+ private saveLog;
20
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendWebhookRequest = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ const business_webhook_entity_1 = require("../entities/business.webhook.entity");
6
+ const webhook_event_entity_1 = require("../entities/webhook.event.entity");
7
+ const webhook_log_entity_1 = require("../entities/webhook.log.entity");
8
+ class SendWebhookRequest {
9
+ constructor(business, remoteRequestService) {
10
+ this.business = business;
11
+ this.remoteRequestService = remoteRequestService;
12
+ }
13
+ async process(payload) {
14
+ this.payload = payload;
15
+ await this.validate();
16
+ return this.sendRequest();
17
+ }
18
+ async validate() {
19
+ const webhook = await business_webhook_entity_1.BusinessWebhookEntity.findOne({ where: { business_id: this.business.id } });
20
+ if (!webhook?.active)
21
+ throw new nestjs_utility_services_1.OperationException('Webhook is not setup properly');
22
+ const event = await webhook_event_entity_1.WebhookEventEntity.findOne({ where: { identifier: this.payload.event_identifier } });
23
+ if (!event?.active)
24
+ throw new nestjs_utility_services_1.OperationException('Event is not setup properly');
25
+ this.webhook = webhook;
26
+ }
27
+ async sendRequest() {
28
+ const dataPayload = {
29
+ url: this.webhook.url,
30
+ methods: 'POST',
31
+ headers: {
32
+ 'Content-Type': 'application/json',
33
+ },
34
+ data: this.payload?.payload,
35
+ };
36
+ let attempts = 0;
37
+ const maxAttempts = 3;
38
+ const delay = 30000;
39
+ while (attempts < maxAttempts) {
40
+ let data = await this.remoteRequestService.getRawResponse(dataPayload);
41
+ if (data?.status === 200)
42
+ return this.saveLog(data);
43
+ attempts++;
44
+ if (attempts < maxAttempts) {
45
+ await this.sleep(delay);
46
+ this.saveLog(data);
47
+ }
48
+ if (attempts === maxAttempts)
49
+ return this.disableWebhook();
50
+ }
51
+ }
52
+ async disableWebhook() {
53
+ this.webhook.active = false;
54
+ return this.webhook.save();
55
+ }
56
+ sleep(ms) {
57
+ return new Promise((resolve) => setTimeout(resolve, ms));
58
+ }
59
+ async saveLog(request) {
60
+ const log = webhook_log_entity_1.WebhookLogEntity.create({ webhook_id: this.webhook.id });
61
+ log.event_id = this.event.id;
62
+ log.response_code = request.status;
63
+ log.attempted_at = new Date();
64
+ log.is_success = request.success;
65
+ log.payload = this.payload?.payload;
66
+ log.response_body = request.data;
67
+ return log.save();
68
+ }
69
+ }
70
+ exports.SendWebhookRequest = SendWebhookRequest;
71
+ //# sourceMappingURL=send.webhook.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send.webhook.request.js","sourceRoot":"","sources":["../../../src/access/libraries/send.webhook.request.ts"],"names":[],"mappings":";;;AAAA,oFAAwH;AAGxH,iFAA4E;AAC5E,2EAAsE;AACtE,uEAAkE;AAMlE,MAAa,kBAAkB;IAM3B,YACqB,QAA8B,EAC9B,oBAA0C;QAD1C,aAAQ,GAAR,QAAQ,CAAsB;QAC9B,yBAAoB,GAApB,oBAAoB,CAAsB;IAC5D,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,OAAkC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9B,CAAC;IAEO,KAAK,CAAC,QAAQ;QAClB,MAAM,OAAO,GAAG,MAAM,+CAAqB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAClG,IAAI,CAAC,OAAO,EAAE,MAAM;YAAE,MAAM,IAAI,4CAAkB,CAAC,+BAA+B,CAAC,CAAC;QAEpF,MAAM,KAAK,GAAG,MAAM,yCAAkB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,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,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC;IAEO,KAAK,CAAC,OAAO,CAAC,OAA6B;QAC/C,MAAM,GAAG,GAAG,qCAAgB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;QAErE,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAE7B,GAAG,CAAC,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;QACnC,GAAG,CAAC,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC;QAE9B,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC;QACjC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;QACpC,GAAG,CAAC,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;QAEjC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;CACJ;AAjFD,gDAiFC"}
@@ -10,7 +10,10 @@ import { BusinessMenuJob } from '../jobs/business.menu.job';
10
10
  import { BusinessPreferenceJob } from '../jobs/business.preference.job';
11
11
  import { BusinessUserGroupJob } from '../jobs/business.user.group.job';
12
12
  import { BusinessUserJob } from '../jobs/business.user.job';
13
+ import { BusinessUserNotificationPreferenceJob } from '../jobs/business.user.notification.preference.job';
13
14
  import { BusinessUserRoleJob } from '../jobs/business.user.role.job';
15
+ import { BusinessWebhookJob } from '../jobs/business.webhook.job';
16
+ import { BzNotificationChannelPreferenceJob } from '../jobs/bz.notification.channel.preference.job';
14
17
  import { ChildMenuJob } from '../jobs/child.menu.job';
15
18
  import { ChoiceListJob } from '../jobs/choice.list.job';
16
19
  import { ChoiceTypeJob } from '../jobs/choice.type.job';
@@ -66,6 +69,8 @@ import { UserNotificationJob } from '../jobs/user.notification.job';
66
69
  import { UserPreferenceJob } from '../jobs/user.preference.job';
67
70
  import { UserRoleJob } from '../jobs/user.role.job';
68
71
  import { WatchlistAssignmentJob } from '../jobs/watchlist.assignment.job';
72
+ import { WebhookEventJob } from '../jobs/webhook.event.job';
73
+ import { WebhookLogJob } from '../jobs/webhook.log.job';
69
74
  import { WebhookSlugJob } from '../jobs/webhook.slug.job';
70
75
  import { WebhookTypeJob } from '../jobs/webhook.type.job';
71
76
  import { WhatsappIncomingWebhookJob } from '../jobs/whatsapp.incoming.webhook.job';
@@ -84,7 +89,10 @@ export declare class Es6JobsService {
84
89
  private readonly businessPreferenceJob;
85
90
  private readonly businessUserGroupJob;
86
91
  private readonly businessUserJob;
92
+ private readonly businessUserNotificationPreferenceJob;
87
93
  private readonly businessUserRoleJob;
94
+ private readonly businessWebhookJob;
95
+ private readonly bzNotificationChannelPreferenceJob;
88
96
  private readonly childMenuJob;
89
97
  private readonly choiceListJob;
90
98
  private readonly choiceTypeJob;
@@ -140,13 +148,15 @@ export declare class Es6JobsService {
140
148
  private readonly userPreferenceJob;
141
149
  private readonly userRoleJob;
142
150
  private readonly watchlistAssignmentJob;
151
+ private readonly webhookEventJob;
152
+ private readonly webhookLogJob;
143
153
  private readonly webhookSlugJob;
144
154
  private readonly webhookTypeJob;
145
155
  private readonly whatsappIncomingWebhookJob;
146
156
  private readonly whatsappMessageJob;
147
157
  private readonly whatsappTemplateJob;
148
158
  private jobs;
149
- constructor(accessTestJob: AccessTestJob, apiAccountJob: ApiAccountJob, appIntegrationJob: AppIntegrationJob, businessAppIntegrationCredentialJob: BusinessAppIntegrationCredentialJob, businessAppIntegrationJob: BusinessAppIntegrationJob, businessAppIntegrationMessagesJob: BusinessAppIntegrationMessagesJob, businessEmailJob: BusinessEmailJob, businessGroupRoleJob: BusinessGroupRoleJob, businessMenuJob: BusinessMenuJob, businessPreferenceJob: BusinessPreferenceJob, businessUserGroupJob: BusinessUserGroupJob, businessUserJob: BusinessUserJob, businessUserRoleJob: BusinessUserRoleJob, childMenuJob: ChildMenuJob, choiceListJob: ChoiceListJob, choiceTypeJob: ChoiceTypeJob, conversationJob: ConversationJob, customFieldJob: CustomFieldJob, customReportJob: CustomReportJob, dashboardComponentJob: DashboardComponentJob, dashboardJob: DashboardJob, downloadLogJob: DownloadLogJob, emailAttachmentJob: EmailAttachmentJob, emailMessageJob: EmailMessageJob, emailRecipientJob: EmailRecipientJob, fcmMessageJob: FcmMessageJob, fcmNotificationJob: FcmNotificationJob, fcmTemplateJob: FcmTemplateJob, fcmTokenJob: FcmTokenJob, gchatIncomingWebhookJob: GchatIncomingWebhookJob, gchatMessageJob: GchatMessageJob, gchatTemplateJob: GchatTemplateJob, gchatUserJob: GchatUserJob, gchatWebhookJob: GchatWebhookJob, gchatWebhookMessageJob: GchatWebhookMessageJob, groupMemberJob: GroupMemberJob, groupRoleJob: GroupRoleJob, listPreferenceJob: ListPreferenceJob, listingColumnJob: ListingColumnJob, listingPageJob: ListingPageJob, listingPreferenceJob: ListingPreferenceJob, menuActionJob: MenuActionJob, menuJob: MenuJob, menuRoleJob: MenuRoleJob, moduleJob: ModuleJob, moduleMenuJob: ModuleMenuJob, preferenceUserGroupJob: PreferenceUserGroupJob, preferenceUsersJob: PreferenceUsersJob, processServerEmailJob: ProcessServerEmailJob, productJob: ProductJob, roleGroupJob: RoleGroupJob, scheduledReportEmailJob: ScheduledReportEmailJob, scheduledReportItemJob: ScheduledReportItemJob, scheduledReportJob: ScheduledReportJob, slackIncomingWebhookJob: SlackIncomingWebhookJob, slackIntegrationJob: SlackIntegrationJob, slackMessageJob: SlackMessageJob, slackTemplateJob: SlackTemplateJob, slackUserJob: SlackUserJob, slackWebhookJob: SlackWebhookJob, slackWebhookMessageJob: SlackWebhookMessageJob, syncBURoleJob: SyncBURoleJob, uiActionJob: UiActionJob, uiActionRoleJob: UiActionRoleJob, userNotificationJob: UserNotificationJob, userPreferenceJob: UserPreferenceJob, userRoleJob: UserRoleJob, watchlistAssignmentJob: WatchlistAssignmentJob, webhookSlugJob: WebhookSlugJob, webhookTypeJob: WebhookTypeJob, whatsappIncomingWebhookJob: WhatsappIncomingWebhookJob, whatsappMessageJob: WhatsappMessageJob, whatsappTemplateJob: WhatsappTemplateJob);
159
+ constructor(accessTestJob: AccessTestJob, apiAccountJob: ApiAccountJob, appIntegrationJob: AppIntegrationJob, businessAppIntegrationCredentialJob: BusinessAppIntegrationCredentialJob, businessAppIntegrationJob: BusinessAppIntegrationJob, businessAppIntegrationMessagesJob: BusinessAppIntegrationMessagesJob, businessEmailJob: BusinessEmailJob, businessGroupRoleJob: BusinessGroupRoleJob, businessMenuJob: BusinessMenuJob, businessPreferenceJob: BusinessPreferenceJob, businessUserGroupJob: BusinessUserGroupJob, businessUserJob: BusinessUserJob, businessUserNotificationPreferenceJob: BusinessUserNotificationPreferenceJob, businessUserRoleJob: BusinessUserRoleJob, businessWebhookJob: BusinessWebhookJob, bzNotificationChannelPreferenceJob: BzNotificationChannelPreferenceJob, childMenuJob: ChildMenuJob, choiceListJob: ChoiceListJob, choiceTypeJob: ChoiceTypeJob, conversationJob: ConversationJob, customFieldJob: CustomFieldJob, customReportJob: CustomReportJob, dashboardComponentJob: DashboardComponentJob, dashboardJob: DashboardJob, downloadLogJob: DownloadLogJob, emailAttachmentJob: EmailAttachmentJob, emailMessageJob: EmailMessageJob, emailRecipientJob: EmailRecipientJob, fcmMessageJob: FcmMessageJob, fcmNotificationJob: FcmNotificationJob, fcmTemplateJob: FcmTemplateJob, fcmTokenJob: FcmTokenJob, gchatIncomingWebhookJob: GchatIncomingWebhookJob, gchatMessageJob: GchatMessageJob, gchatTemplateJob: GchatTemplateJob, gchatUserJob: GchatUserJob, gchatWebhookJob: GchatWebhookJob, gchatWebhookMessageJob: GchatWebhookMessageJob, groupMemberJob: GroupMemberJob, groupRoleJob: GroupRoleJob, listPreferenceJob: ListPreferenceJob, listingColumnJob: ListingColumnJob, listingPageJob: ListingPageJob, listingPreferenceJob: ListingPreferenceJob, menuActionJob: MenuActionJob, menuJob: MenuJob, menuRoleJob: MenuRoleJob, moduleJob: ModuleJob, moduleMenuJob: ModuleMenuJob, preferenceUserGroupJob: PreferenceUserGroupJob, preferenceUsersJob: PreferenceUsersJob, processServerEmailJob: ProcessServerEmailJob, productJob: ProductJob, roleGroupJob: RoleGroupJob, scheduledReportEmailJob: ScheduledReportEmailJob, scheduledReportItemJob: ScheduledReportItemJob, scheduledReportJob: ScheduledReportJob, slackIncomingWebhookJob: SlackIncomingWebhookJob, slackIntegrationJob: SlackIntegrationJob, slackMessageJob: SlackMessageJob, slackTemplateJob: SlackTemplateJob, slackUserJob: SlackUserJob, slackWebhookJob: SlackWebhookJob, slackWebhookMessageJob: SlackWebhookMessageJob, syncBURoleJob: SyncBURoleJob, uiActionJob: UiActionJob, uiActionRoleJob: UiActionRoleJob, userNotificationJob: UserNotificationJob, userPreferenceJob: UserPreferenceJob, userRoleJob: UserRoleJob, watchlistAssignmentJob: WatchlistAssignmentJob, webhookEventJob: WebhookEventJob, webhookLogJob: WebhookLogJob, webhookSlugJob: WebhookSlugJob, webhookTypeJob: WebhookTypeJob, whatsappIncomingWebhookJob: WhatsappIncomingWebhookJob, whatsappMessageJob: WhatsappMessageJob, whatsappTemplateJob: WhatsappTemplateJob);
150
160
  alignJobs(): void;
151
161
  setJobs(): void;
152
162
  }
@@ -23,7 +23,10 @@ const business_menu_job_1 = require("../jobs/business.menu.job");
23
23
  const business_preference_job_1 = require("../jobs/business.preference.job");
24
24
  const business_user_group_job_1 = require("../jobs/business.user.group.job");
25
25
  const business_user_job_1 = require("../jobs/business.user.job");
26
+ const business_user_notification_preference_job_1 = require("../jobs/business.user.notification.preference.job");
26
27
  const business_user_role_job_1 = require("../jobs/business.user.role.job");
28
+ const business_webhook_job_1 = require("../jobs/business.webhook.job");
29
+ const bz_notification_channel_preference_job_1 = require("../jobs/bz.notification.channel.preference.job");
27
30
  const child_menu_job_1 = require("../jobs/child.menu.job");
28
31
  const choice_list_job_1 = require("../jobs/choice.list.job");
29
32
  const choice_type_job_1 = require("../jobs/choice.type.job");
@@ -79,6 +82,8 @@ const user_notification_job_1 = require("../jobs/user.notification.job");
79
82
  const user_preference_job_1 = require("../jobs/user.preference.job");
80
83
  const user_role_job_1 = require("../jobs/user.role.job");
81
84
  const watchlist_assignment_job_1 = require("../jobs/watchlist.assignment.job");
85
+ const webhook_event_job_1 = require("../jobs/webhook.event.job");
86
+ const webhook_log_job_1 = require("../jobs/webhook.log.job");
82
87
  const webhook_slug_job_1 = require("../jobs/webhook.slug.job");
83
88
  const webhook_type_job_1 = require("../jobs/webhook.type.job");
84
89
  const whatsapp_incoming_webhook_job_1 = require("../jobs/whatsapp.incoming.webhook.job");
@@ -86,7 +91,7 @@ const whatsapp_message_job_1 = require("../jobs/whatsapp.message.job");
86
91
  const whatsapp_template_job_1 = require("../jobs/whatsapp.template.job");
87
92
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
88
93
  let Es6JobsService = class Es6JobsService {
89
- constructor(accessTestJob, apiAccountJob, appIntegrationJob, businessAppIntegrationCredentialJob, businessAppIntegrationJob, businessAppIntegrationMessagesJob, businessEmailJob, businessGroupRoleJob, businessMenuJob, businessPreferenceJob, businessUserGroupJob, businessUserJob, businessUserRoleJob, childMenuJob, choiceListJob, choiceTypeJob, conversationJob, customFieldJob, customReportJob, dashboardComponentJob, dashboardJob, downloadLogJob, emailAttachmentJob, emailMessageJob, emailRecipientJob, fcmMessageJob, fcmNotificationJob, fcmTemplateJob, fcmTokenJob, gchatIncomingWebhookJob, gchatMessageJob, gchatTemplateJob, gchatUserJob, gchatWebhookJob, gchatWebhookMessageJob, groupMemberJob, groupRoleJob, listPreferenceJob, listingColumnJob, listingPageJob, listingPreferenceJob, menuActionJob, menuJob, menuRoleJob, moduleJob, moduleMenuJob, preferenceUserGroupJob, preferenceUsersJob, processServerEmailJob, productJob, roleGroupJob, scheduledReportEmailJob, scheduledReportItemJob, scheduledReportJob, slackIncomingWebhookJob, slackIntegrationJob, slackMessageJob, slackTemplateJob, slackUserJob, slackWebhookJob, slackWebhookMessageJob, syncBURoleJob, uiActionJob, uiActionRoleJob, userNotificationJob, userPreferenceJob, userRoleJob, watchlistAssignmentJob, webhookSlugJob, webhookTypeJob, whatsappIncomingWebhookJob, whatsappMessageJob, whatsappTemplateJob) {
94
+ constructor(accessTestJob, apiAccountJob, appIntegrationJob, businessAppIntegrationCredentialJob, businessAppIntegrationJob, businessAppIntegrationMessagesJob, businessEmailJob, businessGroupRoleJob, businessMenuJob, businessPreferenceJob, businessUserGroupJob, businessUserJob, businessUserNotificationPreferenceJob, businessUserRoleJob, businessWebhookJob, bzNotificationChannelPreferenceJob, childMenuJob, choiceListJob, choiceTypeJob, conversationJob, customFieldJob, customReportJob, dashboardComponentJob, dashboardJob, downloadLogJob, emailAttachmentJob, emailMessageJob, emailRecipientJob, fcmMessageJob, fcmNotificationJob, fcmTemplateJob, fcmTokenJob, gchatIncomingWebhookJob, gchatMessageJob, gchatTemplateJob, gchatUserJob, gchatWebhookJob, gchatWebhookMessageJob, groupMemberJob, groupRoleJob, listPreferenceJob, listingColumnJob, listingPageJob, listingPreferenceJob, menuActionJob, menuJob, menuRoleJob, moduleJob, moduleMenuJob, preferenceUserGroupJob, preferenceUsersJob, processServerEmailJob, productJob, roleGroupJob, scheduledReportEmailJob, scheduledReportItemJob, scheduledReportJob, slackIncomingWebhookJob, slackIntegrationJob, slackMessageJob, slackTemplateJob, slackUserJob, slackWebhookJob, slackWebhookMessageJob, syncBURoleJob, uiActionJob, uiActionRoleJob, userNotificationJob, userPreferenceJob, userRoleJob, watchlistAssignmentJob, webhookEventJob, webhookLogJob, webhookSlugJob, webhookTypeJob, whatsappIncomingWebhookJob, whatsappMessageJob, whatsappTemplateJob) {
90
95
  this.accessTestJob = accessTestJob;
91
96
  this.apiAccountJob = apiAccountJob;
92
97
  this.appIntegrationJob = appIntegrationJob;
@@ -99,7 +104,10 @@ let Es6JobsService = class Es6JobsService {
99
104
  this.businessPreferenceJob = businessPreferenceJob;
100
105
  this.businessUserGroupJob = businessUserGroupJob;
101
106
  this.businessUserJob = businessUserJob;
107
+ this.businessUserNotificationPreferenceJob = businessUserNotificationPreferenceJob;
102
108
  this.businessUserRoleJob = businessUserRoleJob;
109
+ this.businessWebhookJob = businessWebhookJob;
110
+ this.bzNotificationChannelPreferenceJob = bzNotificationChannelPreferenceJob;
103
111
  this.childMenuJob = childMenuJob;
104
112
  this.choiceListJob = choiceListJob;
105
113
  this.choiceTypeJob = choiceTypeJob;
@@ -155,6 +163,8 @@ let Es6JobsService = class Es6JobsService {
155
163
  this.userPreferenceJob = userPreferenceJob;
156
164
  this.userRoleJob = userRoleJob;
157
165
  this.watchlistAssignmentJob = watchlistAssignmentJob;
166
+ this.webhookEventJob = webhookEventJob;
167
+ this.webhookLogJob = webhookLogJob;
158
168
  this.webhookSlugJob = webhookSlugJob;
159
169
  this.webhookTypeJob = webhookTypeJob;
160
170
  this.whatsappIncomingWebhookJob = whatsappIncomingWebhookJob;
@@ -178,7 +188,10 @@ let Es6JobsService = class Es6JobsService {
178
188
  b31ffc403925101fb511c12e81892e68: this.businessPreferenceJob,
179
189
  '8d9bc56e4c29169dde8f2de343ce44b9': this.businessUserGroupJob,
180
190
  '1df027a19ec3d416b60ffd7024e39e5c': this.businessUserJob,
191
+ bef296dfcb922abc58344ca1934086c1: this.businessUserNotificationPreferenceJob,
181
192
  '4a7a00b3a8090e793aeabb9277e2d725': this.businessUserRoleJob,
193
+ '8ea4526f7a5a487483b9e0e4501f6e52': this.businessWebhookJob,
194
+ '46618f9a228f03defd50fa0b6e120225': this.bzNotificationChannelPreferenceJob,
182
195
  '589559e61985b6f208ec30499776da52': this.childMenuJob,
183
196
  '9d8c018247752b52610a6835efb38a47': this.choiceListJob,
184
197
  dbc4b074dd6b8172ba4d108a8d88f12d: this.choiceTypeJob,
@@ -234,6 +247,8 @@ let Es6JobsService = class Es6JobsService {
234
247
  cde37d522acab091e506685644fa3a97: this.userPreferenceJob,
235
248
  '98f60308658ff30626fe84c0b0b55165': this.userRoleJob,
236
249
  b94cb401a0d650c3f10517b174d3001d: this.watchlistAssignmentJob,
250
+ d6398176da2ef9abab52f8974d249942: this.webhookEventJob,
251
+ '4147e479deae8d2de827bb0a1b9a8c2d': this.webhookLogJob,
237
252
  e3aab928b4498843a7c7190423b970e5: this.webhookSlugJob,
238
253
  f4371a5f19fff6452debabc49b4a30b1: this.webhookTypeJob,
239
254
  d3a34304ad77ca3c3cd075b42fb50a0a: this.whatsappIncomingWebhookJob,
@@ -260,7 +275,10 @@ exports.Es6JobsService = Es6JobsService = __decorate([
260
275
  business_preference_job_1.BusinessPreferenceJob,
261
276
  business_user_group_job_1.BusinessUserGroupJob,
262
277
  business_user_job_1.BusinessUserJob,
278
+ business_user_notification_preference_job_1.BusinessUserNotificationPreferenceJob,
263
279
  business_user_role_job_1.BusinessUserRoleJob,
280
+ business_webhook_job_1.BusinessWebhookJob,
281
+ bz_notification_channel_preference_job_1.BzNotificationChannelPreferenceJob,
264
282
  child_menu_job_1.ChildMenuJob,
265
283
  choice_list_job_1.ChoiceListJob,
266
284
  choice_type_job_1.ChoiceTypeJob,
@@ -316,6 +334,8 @@ exports.Es6JobsService = Es6JobsService = __decorate([
316
334
  user_preference_job_1.UserPreferenceJob,
317
335
  user_role_job_1.UserRoleJob,
318
336
  watchlist_assignment_job_1.WatchlistAssignmentJob,
337
+ webhook_event_job_1.WebhookEventJob,
338
+ webhook_log_job_1.WebhookLogJob,
319
339
  webhook_slug_job_1.WebhookSlugJob,
320
340
  webhook_type_job_1.WebhookTypeJob,
321
341
  whatsapp_incoming_webhook_job_1.WhatsappIncomingWebhookJob,
@@ -1 +1 @@
1
- {"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/access/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6DAAwD;AACxD,6DAAwD;AACxD,qEAAgE;AAChE,6GAAsG;AACtG,uFAAiF;AACjF,yGAAkG;AAClG,mEAA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B,yCAAkB;QACb,oDAAuB;QAC3B,2CAAmB;QACvB,mCAAe;QACd,qCAAgB;QACpB,6BAAY;QACT,mCAAe;QACR,kDAAsB;QAC/B,iCAAa;QACf,2BAAW;QACP,oCAAe;QACX,2CAAmB;QACrB,uCAAiB;QACvB,2BAAW;QACA,iDAAsB;QAC9B,iCAAc;QACd,iCAAc;QACF,0DAA0B;QAClC,yCAAkB;QACjB,2CAAmB;GA5EpD,cAAc,CA2K1B"}
1
+ {"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/access/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6DAAwD;AACxD,6DAAwD;AACxD,qEAAgE;AAChE,6GAAsG;AACtG,uFAAiF;AACjF,yGAAkG;AAClG,mEAA8D;AAC9D,6EAAuE;AACvE,iEAA4D;AAC5D,6EAAwE;AACxE,6EAAuE;AACvE,iEAA4D;AAC5D,iHAA0G;AAC1G,2EAAqE;AACrE,uEAAkE;AAClE,2GAAoG;AACpG,2DAAsD;AACtD,6DAAwD;AACxD,6DAAwD;AACxD,+DAA2D;AAC3D,+DAA0D;AAC1D,iEAA4D;AAC5D,6EAAwE;AACxE,yDAAqD;AACrD,+DAA0D;AAC1D,uEAAkE;AAClE,iEAA4D;AAC5D,qEAAgE;AAChE,6DAAwD;AACxD,uEAAkE;AAClE,+DAA0D;AAC1D,yDAAoD;AACpD,mFAA6E;AAC7E,iEAA4D;AAC5D,mEAA8D;AAC9D,2DAAsD;AACtD,iEAA4D;AAC5D,iFAA2E;AAC3E,+DAA0D;AAC1D,2DAAsD;AACtD,qEAAgE;AAChE,mEAA8D;AAC9D,+DAA0D;AAC1D,2EAAsE;AACtE,6DAAwD;AACxD,+CAA2C;AAC3C,yDAAoD;AACpD,mDAA+C;AAC/C,6DAAwD;AACxD,iFAA2E;AAC3E,uEAAkE;AAClE,+EAAyE;AACzE,qDAAiD;AACjD,2DAAsD;AACtD,mFAA6E;AAC7E,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uCAAiB;QACvB,2BAAW;QACA,iDAAsB;QAC7B,mCAAe;QACjB,+BAAa;QACZ,iCAAc;QACd,iCAAc;QACF,0DAA0B;QAClC,yCAAkB;QACjB,2CAAmB;GAjFpD,cAAc,CAqL1B"}
@@ -1,8 +1,11 @@
1
- import { CacheService } from '@servicelabsco/nestjs-utility-services';
1
+ import { CacheService, RemoteRequestService } from '@servicelabsco/nestjs-utility-services';
2
+ import { SendWebhookRequestPayload } from '../dtos/send.webhook.request.payload';
2
3
  export declare class WebhookService {
3
4
  protected readonly cacheService: CacheService;
4
- constructor(cacheService: CacheService);
5
+ private readonly remoteRequestService;
6
+ constructor(cacheService: CacheService, remoteRequestService: RemoteRequestService);
5
7
  getJob(type: string): Promise<any>;
6
8
  setJobFromDb(name: string): Promise<string>;
7
9
  getSlugBusiness(slug: string): Promise<any>;
10
+ triggerEvent(business_id: number, payload: SendWebhookRequestPayload): Promise<import("..").BusinessWebhookEntity | import("..").WebhookLogEntity>;
8
11
  }
@@ -13,11 +13,14 @@ exports.WebhookService = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
14
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
15
  const date_fns_1 = require("date-fns");
16
+ const access_business_entity_1 = require("../entities/access.business.entity");
16
17
  const webhook_slug_entity_1 = require("../entities/webhook.slug.entity");
17
18
  const webhook_type_entity_1 = require("../entities/webhook.type.entity");
19
+ const send_webhook_request_1 = require("../libraries/send.webhook.request");
18
20
  let WebhookService = class WebhookService {
19
- constructor(cacheService) {
21
+ constructor(cacheService, remoteRequestService) {
20
22
  this.cacheService = cacheService;
23
+ this.remoteRequestService = remoteRequestService;
21
24
  }
22
25
  async getJob(type) {
23
26
  const identifier = `webhook.type.${type}.job.identifier`;
@@ -46,10 +49,17 @@ let WebhookService = class WebhookService {
46
49
  await this.cacheService.set(key, r);
47
50
  return r;
48
51
  }
52
+ async triggerEvent(business_id, payload) {
53
+ const business = await access_business_entity_1.AccessBusinessEntity.first(business_id);
54
+ if (!business)
55
+ return;
56
+ return new send_webhook_request_1.SendWebhookRequest(business, this.remoteRequestService).process(payload);
57
+ }
49
58
  };
50
59
  exports.WebhookService = WebhookService;
51
60
  exports.WebhookService = WebhookService = __decorate([
52
61
  (0, common_1.Injectable)(),
53
- __metadata("design:paramtypes", [nestjs_utility_services_1.CacheService])
62
+ __metadata("design:paramtypes", [nestjs_utility_services_1.CacheService,
63
+ nestjs_utility_services_1.RemoteRequestService])
54
64
  ], WebhookService);
55
65
  //# sourceMappingURL=webhook.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.service.js","sourceRoot":"","sources":["../../../src/access/services/webhook.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAsE;AACtE,uCAAoC;AACpC,yEAAoE;AACpE,yEAAoE;AAG7D,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YAA+B,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAE7D,KAAK,CAAC,MAAM,CAAC,IAAY;QACrB,MAAM,UAAU,GAAG,gBAAgB,IAAI,iBAAiB,CAAC;QACzD,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAElD,IAAI,CAAC;YAAE,OAAO,CAAC,CAAC;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAAY;QAC3B,MAAM,CAAC,GAAG,MAAM,uCAAiB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACrF,MAAM,GAAG,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC;QACjC,IAAI,CAAC,GAAG;YAAE,OAAO;QAEjB,MAAM,UAAU,GAAG,gBAAgB,IAAI,iBAAiB,C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AAC,YAAY,CAAC,WAAmB,EAAE,OAAkC;QACtE,MAAM,QAAQ,GAAG,MAAM,6CAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC/D,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEtB,OAAO,IAAI,yCAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACxF,CAAC;CACJ,CAAA;AA5CY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAG4B,sCAAY;QACN,8CAAoB;GAHtD,cAAc,CA4C1B"}
@@ -0,0 +1,10 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource } from 'typeorm';
3
+ import { BusinessUserNotificationPreferenceEntity } from '../entities/business.user.notification.preference.entity';
4
+ import { BusinessUserNotificationPreferenceJob } from '../jobs/business.user.notification.preference.job';
5
+ export declare class BusinessUserNotificationPreferenceSubscriber extends CommonSubscriber<BusinessUserNotificationPreferenceEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: BusinessUserNotificationPreferenceJob;
8
+ constructor(dataSource: DataSource, entityJob: BusinessUserNotificationPreferenceJob);
9
+ listenTo(): typeof BusinessUserNotificationPreferenceEntity;
10
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BusinessUserNotificationPreferenceSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const business_user_notification_preference_entity_1 = require("../entities/business.user.notification.preference.entity");
16
+ const business_user_notification_preference_job_1 = require("../jobs/business.user.notification.preference.job");
17
+ let BusinessUserNotificationPreferenceSubscriber = class BusinessUserNotificationPreferenceSubscriber extends nestjs_utility_services_1.CommonSubscriber {
18
+ constructor(dataSource, entityJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.entityJob = entityJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return business_user_notification_preference_entity_1.BusinessUserNotificationPreferenceEntity;
26
+ }
27
+ };
28
+ exports.BusinessUserNotificationPreferenceSubscriber = BusinessUserNotificationPreferenceSubscriber;
29
+ exports.BusinessUserNotificationPreferenceSubscriber = BusinessUserNotificationPreferenceSubscriber = __decorate([
30
+ (0, typeorm_1.EventSubscriber)(),
31
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
32
+ business_user_notification_preference_job_1.BusinessUserNotificationPreferenceJob])
33
+ ], BusinessUserNotificationPreferenceSubscriber);
34
+ //# sourceMappingURL=business.user.notification.preference.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.user.notification.preference.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/business.user.notification.preference.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAsD;AACtD,2HAAoH;AACpH,iHAA0G;AAEnG,IAAM,4CAA4C,GAAlD,MAAM,4CAA6C,SAAQ,0CAA0D;IACxH,YACqB,UAAsB,EACpB,SAAgD;QAEnE,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAuC;QAGnE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,uFAAwC,CAAC;IACpD,CAAC;CACJ,CAAA;AAXY,oGAA4C;uDAA5C,4CAA4C;IADxD,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,iFAAqC;GAH9D,4CAA4C,CAWxD"}