@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,10 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource } from 'typeorm';
3
+ import { BusinessWebhookEntity } from '../entities/business.webhook.entity';
4
+ import { BusinessWebhookJob } from '../jobs/business.webhook.job';
5
+ export declare class BusinessWebhookSubscriber extends CommonSubscriber<BusinessWebhookEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: BusinessWebhookJob;
8
+ constructor(dataSource: DataSource, entityJob: BusinessWebhookJob);
9
+ listenTo(): typeof BusinessWebhookEntity;
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.BusinessWebhookSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const business_webhook_entity_1 = require("../entities/business.webhook.entity");
16
+ const business_webhook_job_1 = require("../jobs/business.webhook.job");
17
+ let BusinessWebhookSubscriber = class BusinessWebhookSubscriber 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_webhook_entity_1.BusinessWebhookEntity;
26
+ }
27
+ };
28
+ exports.BusinessWebhookSubscriber = BusinessWebhookSubscriber;
29
+ exports.BusinessWebhookSubscriber = BusinessWebhookSubscriber = __decorate([
30
+ (0, typeorm_1.EventSubscriber)(),
31
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
32
+ business_webhook_job_1.BusinessWebhookJob])
33
+ ], BusinessWebhookSubscriber);
34
+ //# sourceMappingURL=business.webhook.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.webhook.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/business.webhook.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAsD;AACtD,iFAA4E;AAC5E,uEAAkE;AAE3D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,0CAAuC;IAClF,YACqB,UAAsB,EACpB,SAA6B;QAEhD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAoB;QAGhD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,+CAAqB,CAAC;IACjC,CAAC;CACJ,CAAA;AAXY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,yCAAkB;GAH3C,yBAAyB,CAWrC"}
@@ -0,0 +1,10 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource } from 'typeorm';
3
+ import { BzNotificationChannelPreferenceEntity } from '../entities/bz.notification.channel.preference.entity';
4
+ import { BzNotificationChannelPreferenceJob } from '../jobs/bz.notification.channel.preference.job';
5
+ export declare class BzNotificationChannelPreferenceSubscriber extends CommonSubscriber<BzNotificationChannelPreferenceEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: BzNotificationChannelPreferenceJob;
8
+ constructor(dataSource: DataSource, entityJob: BzNotificationChannelPreferenceJob);
9
+ listenTo(): typeof BzNotificationChannelPreferenceEntity;
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.BzNotificationChannelPreferenceSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const bz_notification_channel_preference_entity_1 = require("../entities/bz.notification.channel.preference.entity");
16
+ const bz_notification_channel_preference_job_1 = require("../jobs/bz.notification.channel.preference.job");
17
+ let BzNotificationChannelPreferenceSubscriber = class BzNotificationChannelPreferenceSubscriber 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 bz_notification_channel_preference_entity_1.BzNotificationChannelPreferenceEntity;
26
+ }
27
+ };
28
+ exports.BzNotificationChannelPreferenceSubscriber = BzNotificationChannelPreferenceSubscriber;
29
+ exports.BzNotificationChannelPreferenceSubscriber = BzNotificationChannelPreferenceSubscriber = __decorate([
30
+ (0, typeorm_1.EventSubscriber)(),
31
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
32
+ bz_notification_channel_preference_job_1.BzNotificationChannelPreferenceJob])
33
+ ], BzNotificationChannelPreferenceSubscriber);
34
+ //# sourceMappingURL=bz.notification.channel.preference.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bz.notification.channel.preference.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/bz.notification.channel.preference.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAsD;AACtD,qHAA8G;AAC9G,2GAAoG;AAE7F,IAAM,yCAAyC,GAA/C,MAAM,yCAA0C,SAAQ,0CAAuD;IAClH,YACqB,UAAsB,EACpB,SAA6C;QAEhE,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAoC;QAGhE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,iFAAqC,CAAC;IACjD,CAAC;CACJ,CAAA;AAXY,8FAAyC;oDAAzC,yCAAyC;IADrD,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,2EAAkC;GAH3D,yCAAyC,CAWrD"}
@@ -8,8 +8,11 @@ export * from './business.group.role.subscriber';
8
8
  export * from './business.menu.subscriber';
9
9
  export * from './business.preference.subscriber';
10
10
  export * from './business.user.group.subscriber';
11
+ export * from './business.user.notification.preference.subscriber';
11
12
  export * from './business.user.role.subscriber';
12
13
  export * from './business.user.subscriber';
14
+ export * from './business.webhook.subscriber';
15
+ export * from './bz.notification.channel.preference.subscriber';
13
16
  export * from './child.menu.subscriber';
14
17
  export * from './choice.list.subscriber';
15
18
  export * from './choice.type.subscriber';
@@ -61,6 +64,8 @@ export * from './user.notification.subscriber';
61
64
  export * from './user.preference.subscriber';
62
65
  export * from './user.role.subscriber';
63
66
  export * from './watchlist.assignment.subscriber';
67
+ export * from './webhook.event.subscriber';
68
+ export * from './webhook.log.subscriber';
64
69
  export * from './webhook.slug.subscriber';
65
70
  export * from './webhook.type.subscriber';
66
71
  export * from './whatsapp.message.subscriber';
@@ -24,8 +24,11 @@ __exportStar(require("./business.group.role.subscriber"), exports);
24
24
  __exportStar(require("./business.menu.subscriber"), exports);
25
25
  __exportStar(require("./business.preference.subscriber"), exports);
26
26
  __exportStar(require("./business.user.group.subscriber"), exports);
27
+ __exportStar(require("./business.user.notification.preference.subscriber"), exports);
27
28
  __exportStar(require("./business.user.role.subscriber"), exports);
28
29
  __exportStar(require("./business.user.subscriber"), exports);
30
+ __exportStar(require("./business.webhook.subscriber"), exports);
31
+ __exportStar(require("./bz.notification.channel.preference.subscriber"), exports);
29
32
  __exportStar(require("./child.menu.subscriber"), exports);
30
33
  __exportStar(require("./choice.list.subscriber"), exports);
31
34
  __exportStar(require("./choice.type.subscriber"), exports);
@@ -77,6 +80,8 @@ __exportStar(require("./user.notification.subscriber"), exports);
77
80
  __exportStar(require("./user.preference.subscriber"), exports);
78
81
  __exportStar(require("./user.role.subscriber"), exports);
79
82
  __exportStar(require("./watchlist.assignment.subscriber"), exports);
83
+ __exportStar(require("./webhook.event.subscriber"), exports);
84
+ __exportStar(require("./webhook.log.subscriber"), exports);
80
85
  __exportStar(require("./webhook.slug.subscriber"), exports);
81
86
  __exportStar(require("./webhook.type.subscriber"), exports);
82
87
  __exportStar(require("./whatsapp.message.subscriber"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,+DAA6C;AAAA,mFAAiE;AAAA,iFAA+D;AAAA,wEAAsD;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,yDAAuC;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,2DAAyC;AAAA,sDAAoC;AAAA,qEAAmD;AAAA,+DAA6C;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,sEAAoD;AAAA,qEAAmD;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,yDAAuC;AAAA,iEAA+C;AAAA,+DAA6C;AAAA,yDAAuC;AAAA,oEAAkD;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,iEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,+DAA6C;AAAA,mFAAiE;AAAA,iFAA+D;AAAA,wEAAsD;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,qFAAmE;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,gEAA8C;AAAA,kFAAgE;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,yDAAuC;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,2DAAyC;AAAA,sDAAoC;AAAA,qEAAmD;AAAA,+DAA6C;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,sEAAoD;AAAA,qEAAmD;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,yDAAuC;AAAA,iEAA+C;AAAA,+DAA6C;AAAA,yDAAuC;AAAA,oEAAkD;AAAA,6DAA2C;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,iEAA8C"}
@@ -0,0 +1,10 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource } from 'typeorm';
3
+ import { WebhookEventEntity } from '../entities/webhook.event.entity';
4
+ import { WebhookEventJob } from '../jobs/webhook.event.job';
5
+ export declare class WebhookEventSubscriber extends CommonSubscriber<WebhookEventEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: WebhookEventJob;
8
+ constructor(dataSource: DataSource, entityJob: WebhookEventJob);
9
+ listenTo(): typeof WebhookEventEntity;
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.WebhookEventSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const webhook_event_entity_1 = require("../entities/webhook.event.entity");
16
+ const webhook_event_job_1 = require("../jobs/webhook.event.job");
17
+ let WebhookEventSubscriber = class WebhookEventSubscriber 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 webhook_event_entity_1.WebhookEventEntity;
26
+ }
27
+ };
28
+ exports.WebhookEventSubscriber = WebhookEventSubscriber;
29
+ exports.WebhookEventSubscriber = WebhookEventSubscriber = __decorate([
30
+ (0, typeorm_1.EventSubscriber)(),
31
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
32
+ webhook_event_job_1.WebhookEventJob])
33
+ ], WebhookEventSubscriber);
34
+ //# sourceMappingURL=webhook.event.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.event.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/webhook.event.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,2EAAsE;AACtE,iEAA4D;AAErD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,0CAAoC;IAC5E,YACqB,UAAsB,EACpB,SAA0B;QAE7C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAiB;QAG7C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yCAAkB,CAAC;IAC9B,CAAC;CACJ,CAAA;AAXY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,mCAAe;GAHxC,sBAAsB,CAWlC"}
@@ -0,0 +1,10 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource } from 'typeorm';
3
+ import { WebhookLogEntity } from '../entities/webhook.log.entity';
4
+ import { WebhookLogJob } from '../jobs/webhook.log.job';
5
+ export declare class WebhookLogSubscriber extends CommonSubscriber<WebhookLogEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: WebhookLogJob;
8
+ constructor(dataSource: DataSource, entityJob: WebhookLogJob);
9
+ listenTo(): typeof WebhookLogEntity;
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.WebhookLogSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const webhook_log_entity_1 = require("../entities/webhook.log.entity");
16
+ const webhook_log_job_1 = require("../jobs/webhook.log.job");
17
+ let WebhookLogSubscriber = class WebhookLogSubscriber 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 webhook_log_entity_1.WebhookLogEntity;
26
+ }
27
+ };
28
+ exports.WebhookLogSubscriber = WebhookLogSubscriber;
29
+ exports.WebhookLogSubscriber = WebhookLogSubscriber = __decorate([
30
+ (0, typeorm_1.EventSubscriber)(),
31
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
32
+ webhook_log_job_1.WebhookLogJob])
33
+ ], WebhookLogSubscriber);
34
+ //# sourceMappingURL=webhook.log.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.log.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/webhook.log.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAsD;AACtD,uEAAkE;AAClE,6DAAwD;AAEjD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,0CAAkC;IACxE,YACqB,UAAsB,EACpB,SAAwB;QAE3C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAe;QAG3C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,qCAAgB,CAAC;IAC5B,CAAC;CACJ,CAAA;AAXY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,+BAAa;GAHtC,oBAAoB,CAWhC"}
@@ -10,7 +10,10 @@ import { BusinessMenuEntity } from '../access/entities/business.menu.entity';
10
10
  import { BusinessPreferenceEntity } from '../access/entities/business.preference.entity';
11
11
  import { BusinessUserEntity } from '../access/entities/business.user.entity';
12
12
  import { BusinessUserGroupEntity } from '../access/entities/business.user.group.entity';
13
+ import { BusinessUserNotificationPreferenceEntity } from '../access/entities/business.user.notification.preference.entity';
13
14
  import { BusinessUserRoleEntity } from '../access/entities/business.user.role.entity';
15
+ import { BusinessWebhookEntity } from '../access/entities/business.webhook.entity';
16
+ import { BzNotificationChannelPreferenceEntity } from '../access/entities/bz.notification.channel.preference.entity';
14
17
  import { ChildMenuEntity } from '../access/entities/child.menu.entity';
15
18
  import { ChoiceListEntity } from '../access/entities/choice.list.entity';
16
19
  import { ChoiceTypeEntity } from '../access/entities/choice.type.entity';
@@ -60,6 +63,8 @@ import { UserNotificationEntity } from '../access/entities/user.notification.ent
60
63
  import { UserPreferenceEntity } from '../access/entities/user.preference.entity';
61
64
  import { UserRoleEntity } from '../access/entities/user.role.entity';
62
65
  import { WatchlistAssignmentEntity } from '../access/entities/watchlist.assignment.entity';
66
+ import { WebhookEventEntity } from '../access/entities/webhook.event.entity';
67
+ import { WebhookLogEntity } from '../access/entities/webhook.log.entity';
63
68
  import { WebhookSlugEntity } from '../access/entities/webhook.slug.entity';
64
69
  import { WebhookTypeEntity } from '../access/entities/webhook.type.entity';
65
70
  import { WhatsappMessageEntity } from '../access/entities/whatsapp.message.entity';
@@ -103,7 +108,10 @@ declare const entityConstants: {
103
108
  '5d4d889f8f5bd4a2dfca3cb6e0ee2360': typeof BusinessPreferenceEntity;
104
109
  f140008ee5cd24094504c17ec2bdb681: typeof BusinessUserEntity;
105
110
  a699176389a8f376116bc1adc00df79c: typeof BusinessUserGroupEntity;
111
+ '642b58a70418b62501b4d1144ac88a86': typeof BusinessUserNotificationPreferenceEntity;
106
112
  db2456e356ed67bad6d4d1b02760663e: typeof BusinessUserRoleEntity;
113
+ '2afb23dfdf4bcf46c31ee75ca14ec4e7': typeof BusinessWebhookEntity;
114
+ '3ba267116d92692a2248e1d845fd26d9': typeof BzNotificationChannelPreferenceEntity;
107
115
  '70d7e2ccf454713ab4774a37daf4188d': typeof ChildMenuEntity;
108
116
  '7874e58032a1eaf165d2151c1db160b5': typeof ChoiceListEntity;
109
117
  '615ea717c42c26609e3a4441ef01cdc2': typeof ChoiceTypeEntity;
@@ -153,6 +161,8 @@ declare const entityConstants: {
153
161
  '0c52a732ac1a3d79a48d5706ac8254f6': typeof UserPreferenceEntity;
154
162
  '04e801c3e17dd4d1d958265e1d8b86a7': typeof UserRoleEntity;
155
163
  '9c47e38e41415ac04d219f522982a5ed': typeof WatchlistAssignmentEntity;
164
+ '7b054afa4e6c8413ed29ddee4c460388': typeof WebhookEventEntity;
165
+ d02c7d264e77460ed3dddf12daa896ad: typeof WebhookLogEntity;
156
166
  af8230a0faa4eb5bedae009c6be3b4c1: typeof WebhookSlugEntity;
157
167
  '1d96e27411fc5a0b9e1ddb689def1682': typeof WebhookTypeEntity;
158
168
  '7975ac5d988d6b11ee7e5d0c9ce21ab5': typeof WhatsappMessageEntity;
@@ -11,7 +11,10 @@ const business_menu_entity_1 = require("../access/entities/business.menu.entity"
11
11
  const business_preference_entity_1 = require("../access/entities/business.preference.entity");
12
12
  const business_user_entity_1 = require("../access/entities/business.user.entity");
13
13
  const business_user_group_entity_1 = require("../access/entities/business.user.group.entity");
14
+ const business_user_notification_preference_entity_1 = require("../access/entities/business.user.notification.preference.entity");
14
15
  const business_user_role_entity_1 = require("../access/entities/business.user.role.entity");
16
+ const business_webhook_entity_1 = require("../access/entities/business.webhook.entity");
17
+ const bz_notification_channel_preference_entity_1 = require("../access/entities/bz.notification.channel.preference.entity");
15
18
  const child_menu_entity_1 = require("../access/entities/child.menu.entity");
16
19
  const choice_list_entity_1 = require("../access/entities/choice.list.entity");
17
20
  const choice_type_entity_1 = require("../access/entities/choice.type.entity");
@@ -61,6 +64,8 @@ const user_notification_entity_1 = require("../access/entities/user.notification
61
64
  const user_preference_entity_1 = require("../access/entities/user.preference.entity");
62
65
  const user_role_entity_1 = require("../access/entities/user.role.entity");
63
66
  const watchlist_assignment_entity_1 = require("../access/entities/watchlist.assignment.entity");
67
+ const webhook_event_entity_1 = require("../access/entities/webhook.event.entity");
68
+ const webhook_log_entity_1 = require("../access/entities/webhook.log.entity");
64
69
  const webhook_slug_entity_1 = require("../access/entities/webhook.slug.entity");
65
70
  const webhook_type_entity_1 = require("../access/entities/webhook.type.entity");
66
71
  const whatsapp_message_entity_1 = require("../access/entities/whatsapp.message.entity");
@@ -104,7 +109,10 @@ const entityConstants = {
104
109
  '5d4d889f8f5bd4a2dfca3cb6e0ee2360': business_preference_entity_1.BusinessPreferenceEntity,
105
110
  f140008ee5cd24094504c17ec2bdb681: business_user_entity_1.BusinessUserEntity,
106
111
  a699176389a8f376116bc1adc00df79c: business_user_group_entity_1.BusinessUserGroupEntity,
112
+ '642b58a70418b62501b4d1144ac88a86': business_user_notification_preference_entity_1.BusinessUserNotificationPreferenceEntity,
107
113
  db2456e356ed67bad6d4d1b02760663e: business_user_role_entity_1.BusinessUserRoleEntity,
114
+ '2afb23dfdf4bcf46c31ee75ca14ec4e7': business_webhook_entity_1.BusinessWebhookEntity,
115
+ '3ba267116d92692a2248e1d845fd26d9': bz_notification_channel_preference_entity_1.BzNotificationChannelPreferenceEntity,
108
116
  '70d7e2ccf454713ab4774a37daf4188d': child_menu_entity_1.ChildMenuEntity,
109
117
  '7874e58032a1eaf165d2151c1db160b5': choice_list_entity_1.ChoiceListEntity,
110
118
  '615ea717c42c26609e3a4441ef01cdc2': choice_type_entity_1.ChoiceTypeEntity,
@@ -154,6 +162,8 @@ const entityConstants = {
154
162
  '0c52a732ac1a3d79a48d5706ac8254f6': user_preference_entity_1.UserPreferenceEntity,
155
163
  '04e801c3e17dd4d1d958265e1d8b86a7': user_role_entity_1.UserRoleEntity,
156
164
  '9c47e38e41415ac04d219f522982a5ed': watchlist_assignment_entity_1.WatchlistAssignmentEntity,
165
+ '7b054afa4e6c8413ed29ddee4c460388': webhook_event_entity_1.WebhookEventEntity,
166
+ d02c7d264e77460ed3dddf12daa896ad: webhook_log_entity_1.WebhookLogEntity,
157
167
  af8230a0faa4eb5bedae009c6be3b4c1: webhook_slug_entity_1.WebhookSlugEntity,
158
168
  '1d96e27411fc5a0b9e1ddb689def1682': webhook_type_entity_1.WebhookTypeEntity,
159
169
  '7975ac5d988d6b11ee7e5d0c9ce21ab5': whatsapp_message_entity_1.WhatsappMessageEntity,
@@ -1 +1 @@
1
- {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,8EAAyE;AACzE,sFAAiF;AACjF,8HAAuH;AACvH,wGAAkG;AAClG,0HAAmH;AACnH,oFAA+E;AAC/E,8FAAwF;AACxF,kFAA6E;AAC7E,8FAAyF;AACzF,kFAA6E;AAC7E,8FAAwF;AACxF,4FAAsF;AACtF,4EAAuE;AACvE,8EAAyE;AACzE,8EAAyE;AACzE,gFAA4E;AAC5E,gFAA2E;AAC3E,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,gFAA2E;AAC3E,wFAAmF;AACnF,kFAA6E;AAC7E,sFAAiF;AACjF,8EAAyE;AACzE,0EAAqE;AACrE,kFAA6E;AAC7E,oFAA+E;AAC/E,4EAAuE;AACvE,kFAA6E;AAC7E,kGAA4F;AAC5F,gFAA2E;AAC3E,4EAAuE;AACvE,sFAAiF;AACjF,oFAA+E;AAC/E,gFAA2E;AAC3E,4FAAuF;AACvF,8EAAyE;AACzE,gEAA4D;AAC5D,0EAAqE;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gCAAgC,EAAE,iDAAsB;IACxD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,uDAAyB;IAC7D,gCAAgC,EAAE,uCAAiB;IACnD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,+CAAqB;IACzD,gCAAgC,EAAE,qDAAwB;IAC1D,kCAAkC,EAAE,iDAAsB;IAC1D,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,sDAAwB;IAC5D,gCAAgC,EAAE,kEAA8B;IAChE,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,8CAAoB;IACtD,gCAAgC,EAAE,8CAAoB;IACtD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,mDAAuB;IAC3D,gCAAgC,EAAE,+CAAqB;IACvD,gCAAgC,EAAE,uCAAiB;IACnD,gCAAgC,EAAE,mDAAuB;IACzD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,iCAAc;IAClD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,wCAAkB;IACpD,gCAAgC,EAAE,2DAA2B;IAC7D,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,2CAAmB;IACvD,kCAAkC,EAAE,qDAAwB;IAC5D,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,yDAA0B;CACjE,CAAC;AAEF,iBAAS,eAAe,CAAC"}
1
+ {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,8EAAyE;AACzE,sFAAiF;AACjF,8HAAuH;AACvH,wGAAkG;AAClG,0HAAmH;AACnH,oFAA+E;AAC/E,8FAAwF;AACxF,kFAA6E;AAC7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E,+CAAqB;IACvD,gCAAgC,EAAE,uCAAiB;IACnD,gCAAgC,EAAE,mDAAuB;IACzD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,iCAAc;IAClD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,wCAAkB;IACpD,gCAAgC,EAAE,2DAA2B;IAC7D,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,2CAAmB;IACvD,kCAAkC,EAAE,qDAAwB;IAC5D,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,yDAA0B;CACjE,CAAC;AAEF,iBAAS,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class AddEnabledGloballyBzAppIntegrationsTable1725343070093 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddEnabledGloballyBzAppIntegrationsTable1725343070093 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class AddEnabledGloballyBzAppIntegrationsTable1725343070093 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_app_integrations');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.boolean('enabled_globally', true);
12
+ }
13
+ }
14
+ exports.AddEnabledGloballyBzAppIntegrationsTable1725343070093 = AddEnabledGloballyBzAppIntegrationsTable1725343070093;
15
+ //# sourceMappingURL=1725343070093-AddEnabledGloballyBzAppIntegrationsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1725343070093-AddEnabledGloballyBzAppIntegrationsTable.js","sourceRoot":"","sources":["../../src/migrations/1725343070093-AddEnabledGloballyBzAppIntegrationsTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,qDAAsD,SAAQ,0CAAgB;IACvF;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;CACJ;AATD,sHASC"}
@@ -0,0 +1,7 @@
1
+ import { SeederUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class AddNotificationChannelDataSeederTable1725343451546 extends SeederUtility {
3
+ constructor();
4
+ process(): void;
5
+ addLookupType(): void;
6
+ addLookupValues(): void;
7
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddNotificationChannelDataSeederTable1725343451546 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class AddNotificationChannelDataSeederTable1725343451546 extends nestjs_utility_services_1.SeederUtility {
6
+ constructor() {
7
+ super('sys_lookup_values');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.addLookupType();
12
+ this.addLookupValues();
13
+ }
14
+ addLookupType() {
15
+ this.addRecord({
16
+ id: 155,
17
+ name: 'Notification Channels',
18
+ description: 'Different type of Notification Channels',
19
+ }, 'sys_lookup_types');
20
+ }
21
+ addLookupValues() {
22
+ const records = [
23
+ {
24
+ id: 5000,
25
+ name: 'Slack',
26
+ value: 'Slack',
27
+ description: 'Slack Notification Channel',
28
+ lookup_type_id: 155,
29
+ },
30
+ {
31
+ id: 5001,
32
+ name: 'Email',
33
+ value: 'Email',
34
+ description: 'Email Notification Channel',
35
+ lookup_type_id: 155,
36
+ },
37
+ {
38
+ id: 5002,
39
+ name: 'Whatsapp',
40
+ value: 'Whatsapp',
41
+ description: 'Whatsapp Notification Channel',
42
+ lookup_type_id: 155,
43
+ },
44
+ {
45
+ id: 5003,
46
+ name: 'Teams',
47
+ value: 'teams',
48
+ description: 'teams Notification Channel',
49
+ lookup_type_id: 155,
50
+ },
51
+ {
52
+ id: 5004,
53
+ name: 'Google Chat',
54
+ value: 'Google Chat',
55
+ description: 'Google Chat Notification Channel',
56
+ lookup_type_id: 155,
57
+ },
58
+ ];
59
+ for (const record of records) {
60
+ this.addRecord(record);
61
+ }
62
+ }
63
+ }
64
+ exports.AddNotificationChannelDataSeederTable1725343451546 = AddNotificationChannelDataSeederTable1725343451546;
65
+ //# sourceMappingURL=1725343451546-AddNotificationChannelDataSeederTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1725343451546-AddNotificationChannelDataSeederTable.js","sourceRoot":"","sources":["../../src/migrations/1725343451546-AddNotificationChannelDataSeederTable.ts"],"names":[],"mappings":";;;AAAA,oFAAuE;AAEvE,MAAa,kDAAmD,SAAQ,uCAAa;IACjF;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;IAED,aAAa;QACT,IAAI,CAAC,SAAS,CACV;YACI,EAAE,EAAE,GAAG;YACP,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,yCAAyC;SACzD,EACD,kBAAkB,CACrB,CAAC;IACN,CAAC;IAED,eAAe;QACX,MAAM,OAAO,GAAG;YACZ;gBACI,EAAE,EAAE,IAAI;gBACR,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,4BAA4B;gBACzC,cAAc,EAAE,GAAG;aACtB;YACD;gBACI,EAAE,EAAE,IAAI;gBACR,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,4BAA4B;gBACzC,cAAc,EAAE,GAAG;aACtB;YACD;gBACI,EAAE,EAAE,IAAI;gBACR,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,+BAA+B;gBAC5C,cAAc,EAAE,GAAG;aACtB;YACD;gBACI,EAAE,EAAE,IAAI;gBACR,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,4BAA4B;gBACzC,cAAc,EAAE,GAAG;aACtB;YACD;gBACI,EAAE,EAAE,IAAI;gBACR,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,kCAAkC;gBAC/C,cAAc,EAAE,GAAG;aACtB;SACJ,CAAC;QAEF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC3B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC;CACJ;AAjED,gHAiEC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateBzUserNotificationPreferencesTable1725343967311 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBzUserNotificationPreferencesTable1725343967311 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateBzUserNotificationPreferencesTable1725343967311 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_user_notification_preferences');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.boolean('active', true);
13
+ this.foreign({ name: 'business_id', foreignTable: 'bz_business_details' });
14
+ this.foreign({ name: 'user_id', foreignTable: 'sys_users' });
15
+ this.foreign({ name: 'channel_id', foreignTable: 'sys_lookup_values' });
16
+ this.foreign({ name: 'notification_id', foreignTable: 'utl_notification_details' });
17
+ this.json('attributes');
18
+ this.whoColumns();
19
+ }
20
+ }
21
+ exports.CreateBzUserNotificationPreferencesTable1725343967311 = CreateBzUserNotificationPreferencesTable1725343967311;
22
+ //# sourceMappingURL=1725343967311-CreateBzUserNotificationPreferencesTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1725343967311-CreateBzUserNotificationPreferencesTable.js","sourceRoot":"","sources":["../../src/migrations/1725343967311-CreateBzUserNotificationPreferencesTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,qDAAsD,SAAQ,0CAAgB;IACvF;QACI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAC3E,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QACxE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,YAAY,EAAE,0BAA0B,EAAE,CAAC,CAAC;QAEpF,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAnBD,sHAmBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateBzNotificationChannelPreferenceTable1725354088464 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBzNotificationChannelPreferenceTable1725354088464 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateBzNotificationChannelPreferenceTable1725354088464 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_notification_channel_preferences');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.boolean('active', true);
13
+ this.foreign({ name: 'business_id', foreignTable: 'bz_business_details' });
14
+ this.foreign({ name: 'user_id', foreignTable: 'sys_users' });
15
+ this.foreign({ name: 'channel_id', foreignTable: 'sys_lookup_values' });
16
+ this.json('attributes');
17
+ this.whoColumns();
18
+ }
19
+ }
20
+ exports.CreateBzNotificationChannelPreferenceTable1725354088464 = CreateBzNotificationChannelPreferenceTable1725354088464;
21
+ //# sourceMappingURL=1725354088464-CreateBzNotificationChannelPreferenceTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1725354088464-CreateBzNotificationChannelPreferenceTable.js","sourceRoot":"","sources":["../../src/migrations/1725354088464-CreateBzNotificationChannelPreferenceTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,uDAAwD,SAAQ,0CAAgB;IACzF;QACI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAC3E,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAExE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAlBD,0HAkBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateBusinessWebhookTable1725422481585 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBusinessWebhookTable1725422481585 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateBusinessWebhookTable1725422481585 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_webhook_details');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.boolean('active', true);
13
+ this.string('url');
14
+ this.string('secret');
15
+ this.foreign({ name: 'business_id', foreignTable: 'bz_business_details' });
16
+ this.json('event_type');
17
+ this.json('attributes');
18
+ this.whoColumns();
19
+ }
20
+ }
21
+ exports.CreateBusinessWebhookTable1725422481585 = CreateBusinessWebhookTable1725422481585;
22
+ //# sourceMappingURL=1725422481585-CreateBusinessWebhookTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1725422481585-CreateBusinessWebhookTable.js","sourceRoot":"","sources":["../../src/migrations/1725422481585-CreateBusinessWebhookTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,uCAAwC,SAAQ,0CAAgB;IACzE;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAE7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEtB,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAE3E,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AArBD,0FAqBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateWebhookEventTable1725428002811 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateWebhookEventTable1725428002811 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateWebhookEventTable1725428002811 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('utl_webhook_events');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.string('name');
13
+ this.string('identifier', { isUnique: true });
14
+ this.string('description');
15
+ this.boolean('active', true);
16
+ this.json('attributes');
17
+ this.whoColumns();
18
+ }
19
+ }
20
+ exports.CreateWebhookEventTable1725428002811 = CreateWebhookEventTable1725428002811;
21
+ //# sourceMappingURL=1725428002811-CreateWebhookEventTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1725428002811-CreateWebhookEventTable.js","sourceRoot":"","sources":["../../src/migrations/1725428002811-CreateWebhookEventTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,oCAAqC,SAAQ,0CAAgB;IACtE;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAE9C,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAE3B,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAE7B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAnBD,oFAmBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateWebhookLogTable1725428278040 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }