@servicelabsco/slabs-access-manager 0.1.170 → 0.1.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access/controllers/business.app.integration.controller.d.ts +2 -0
- package/dist/access/controllers/business.app.integration.controller.js +17 -0
- package/dist/access/controllers/business.app.integration.controller.js.map +1 -1
- package/dist/access/controllers/business.user.notification.preference.controller.js +3 -4
- package/dist/access/controllers/business.user.notification.preference.controller.js.map +1 -1
- package/dist/access/controllers/business.webhook.controller.d.ts +16 -0
- package/dist/access/controllers/business.webhook.controller.js +109 -0
- package/dist/access/controllers/business.webhook.controller.js.map +1 -0
- package/dist/access/controllers/index.d.ts +1 -0
- package/dist/access/controllers/index.js +1 -0
- package/dist/access/controllers/index.js.map +1 -1
- package/dist/access/dtos/add.business.user.notification.preference.dto.d.ts +1 -1
- package/dist/access/dtos/add.business.user.notification.preference.dto.js.map +1 -1
- package/dist/access/dtos/add.integration.preference.dto.d.ts +3 -0
- package/dist/access/dtos/add.integration.preference.dto.js +24 -0
- package/dist/access/dtos/add.integration.preference.dto.js.map +1 -0
- package/dist/access/dtos/add.notification.channel.preference.dto.d.ts +0 -1
- package/dist/access/dtos/add.notification.channel.preference.dto.js +0 -6
- package/dist/access/dtos/add.notification.channel.preference.dto.js.map +1 -1
- package/dist/access/dtos/add.webhook.dto.d.ts +5 -0
- package/dist/access/dtos/add.webhook.dto.js +36 -0
- package/dist/access/dtos/add.webhook.dto.js.map +1 -0
- package/dist/access/dtos/business.webhook.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/business.webhook.attributes.dto.js +8 -0
- package/dist/access/dtos/business.webhook.attributes.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +6 -0
- package/dist/access/dtos/index.js +6 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/send.webhook.request.payload.d.ts +4 -0
- package/dist/access/dtos/send.webhook.request.payload.js +7 -0
- package/dist/access/dtos/send.webhook.request.payload.js.map +1 -0
- package/dist/access/dtos/webhook.event.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/webhook.event.attributes.dto.js +8 -0
- package/dist/access/dtos/webhook.event.attributes.dto.js.map +1 -0
- package/dist/access/dtos/webhook.log.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/webhook.log.attributes.dto.js +8 -0
- package/dist/access/dtos/webhook.log.attributes.dto.js.map +1 -0
- package/dist/access/entities/app.integration.entity.d.ts +0 -1
- package/dist/access/entities/app.integration.entity.js +0 -4
- package/dist/access/entities/app.integration.entity.js.map +1 -1
- package/dist/access/entities/business.app.integration.entity.d.ts +2 -1
- package/dist/access/entities/business.app.integration.entity.js +6 -2
- package/dist/access/entities/business.app.integration.entity.js.map +1 -1
- package/dist/access/entities/business.webhook.entity.d.ts +12 -0
- package/dist/access/entities/business.webhook.entity.js +52 -0
- package/dist/access/entities/business.webhook.entity.js.map +1 -0
- package/dist/access/entities/index.d.ts +3 -0
- package/dist/access/entities/index.js +3 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/entities/webhook.event.entity.d.ts +9 -0
- package/dist/access/entities/webhook.event.entity.js +42 -0
- package/dist/access/entities/webhook.event.entity.js.map +1 -0
- package/dist/access/entities/webhook.log.entity.d.ts +16 -0
- package/dist/access/entities/webhook.log.entity.js +66 -0
- package/dist/access/entities/webhook.log.entity.js.map +1 -0
- package/dist/access/es6.classes.d.ts +19 -7
- package/dist/access/es6.classes.js +32 -0
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/jobs/business.webhook.job.d.ts +7 -0
- package/dist/access/jobs/business.webhook.job.js +29 -0
- package/dist/access/jobs/business.webhook.job.js.map +1 -0
- package/dist/access/jobs/email.message.job.js +2 -0
- package/dist/access/jobs/email.message.job.js.map +1 -1
- package/dist/access/jobs/index.d.ts +3 -0
- package/dist/access/jobs/index.js +3 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/webhook.event.job.d.ts +7 -0
- package/dist/access/jobs/webhook.event.job.js +29 -0
- package/dist/access/jobs/webhook.event.job.js.map +1 -0
- package/dist/access/jobs/webhook.log.job.d.ts +7 -0
- package/dist/access/jobs/webhook.log.job.js +29 -0
- package/dist/access/jobs/webhook.log.job.js.map +1 -0
- package/dist/access/libraries/business.notification.channel.preference.list.d.ts +0 -1
- package/dist/access/libraries/business.notification.channel.preference.list.js +0 -1
- package/dist/access/libraries/business.notification.channel.preference.list.js.map +1 -1
- package/dist/access/libraries/business.user.notification.preference.list.d.ts +0 -1
- package/dist/access/libraries/business.user.notification.preference.list.js +9 -3
- package/dist/access/libraries/business.user.notification.preference.list.js.map +1 -1
- package/dist/access/libraries/index.d.ts +1 -0
- package/dist/access/libraries/index.js +1 -0
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/process.slack.integration.js +1 -0
- package/dist/access/libraries/process.slack.integration.js.map +1 -1
- package/dist/access/libraries/process.whatsapp.integration.js +1 -0
- package/dist/access/libraries/process.whatsapp.integration.js.map +1 -1
- package/dist/access/libraries/send.slack.message.notification.d.ts +3 -1
- package/dist/access/libraries/send.slack.message.notification.js +15 -3
- package/dist/access/libraries/send.slack.message.notification.js.map +1 -1
- package/dist/access/libraries/send.webhook.request.d.ts +20 -0
- package/dist/access/libraries/send.webhook.request.js +71 -0
- package/dist/access/libraries/send.webhook.request.js.map +1 -0
- package/dist/access/libraries/send.whatsapp.message.notification.js +9 -2
- package/dist/access/libraries/send.whatsapp.message.notification.js.map +1 -1
- package/dist/access/services/es6.jobs.service.d.ts +7 -1
- package/dist/access/services/es6.jobs.service.js +13 -1
- package/dist/access/services/es6.jobs.service.js.map +1 -1
- package/dist/access/services/index.d.ts +1 -0
- package/dist/access/services/index.js +1 -0
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/services/notification.preference.service.d.ts +9 -0
- package/dist/access/services/notification.preference.service.js +50 -0
- package/dist/access/services/notification.preference.service.js.map +1 -0
- package/dist/access/services/notification.service.d.ts +6 -4
- package/dist/access/services/notification.service.js +7 -4
- package/dist/access/services/notification.service.js.map +1 -1
- package/dist/access/services/webhook.service.d.ts +5 -2
- package/dist/access/services/webhook.service.js +12 -2
- package/dist/access/services/webhook.service.js.map +1 -1
- package/dist/access/services/whatsapp.service.d.ts +8 -1
- package/dist/access/services/whatsapp.service.js +40 -2
- package/dist/access/services/whatsapp.service.js.map +1 -1
- package/dist/access/subscribers/business.webhook.subscriber.d.ts +10 -0
- package/dist/access/subscribers/business.webhook.subscriber.js +34 -0
- package/dist/access/subscribers/business.webhook.subscriber.js.map +1 -0
- package/dist/access/subscribers/index.d.ts +3 -0
- package/dist/access/subscribers/index.js +3 -0
- package/dist/access/subscribers/index.js.map +1 -1
- package/dist/access/subscribers/webhook.event.subscriber.d.ts +10 -0
- package/dist/access/subscribers/webhook.event.subscriber.js +34 -0
- package/dist/access/subscribers/webhook.event.subscriber.js.map +1 -0
- package/dist/access/subscribers/webhook.log.subscriber.d.ts +10 -0
- package/dist/access/subscribers/webhook.log.subscriber.js +34 -0
- package/dist/access/subscribers/webhook.log.subscriber.js.map +1 -0
- package/dist/accessUtility/es6.classes.d.ts +3 -3
- package/dist/config/entity.constants.d.ts +6 -0
- package/dist/config/entity.constants.js +6 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/migrations/1725422481585-CreateBusinessWebhookTable.d.ts +5 -0
- package/dist/migrations/1725422481585-CreateBusinessWebhookTable.js +22 -0
- package/dist/migrations/1725422481585-CreateBusinessWebhookTable.js.map +1 -0
- package/dist/migrations/1725428002811-CreateWebhookEventTable.d.ts +5 -0
- package/dist/migrations/1725428002811-CreateWebhookEventTable.js +21 -0
- package/dist/migrations/1725428002811-CreateWebhookEventTable.js.map +1 -0
- package/dist/migrations/1725428278040-CreateWebhookLogTable.d.ts +5 -0
- package/dist/migrations/1725428278040-CreateWebhookLogTable.js +24 -0
- package/dist/migrations/1725428278040-CreateWebhookLogTable.js.map +1 -0
- package/dist/migrations/1725439900529-AddVisibleColumnUtlNotificationDetailsTable.d.ts +5 -0
- package/dist/migrations/1725439900529-AddVisibleColumnUtlNotificationDetailsTable.js +15 -0
- package/dist/migrations/1725439900529-AddVisibleColumnUtlNotificationDetailsTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropertyService, SqlService } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { AddIntegrationPreferenceDto } from '../dtos/add.integration.preference.dto';
|
|
2
3
|
import { BusinessParamDto } from '../dtos/business.param.dto';
|
|
3
4
|
import { DbFindDto } from '../dtos/db.find.dto';
|
|
4
5
|
import { AppIntegrationEntity } from '../entities/app.integration.entity';
|
|
@@ -17,4 +18,5 @@ export declare class BusinessAppIntegrationController {
|
|
|
17
18
|
}>;
|
|
18
19
|
show(params: BusinessParamDto): Promise<BusinessAppIntegrationEntity>;
|
|
19
20
|
revokeIntegration(params: BusinessParamDto): Promise<BusinessAppIntegrationEntity>;
|
|
21
|
+
enableGlobal(params: BusinessParamDto, body: AddIntegrationPreferenceDto): Promise<BusinessAppIntegrationEntity>;
|
|
20
22
|
}
|
|
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.BusinessAppIntegrationController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const add_integration_preference_dto_1 = require("../dtos/add.integration.preference.dto");
|
|
18
19
|
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
19
20
|
const db_find_dto_1 = require("../dtos/db.find.dto");
|
|
20
21
|
const app_integration_entity_1 = require("../entities/app.integration.entity");
|
|
@@ -68,6 +69,14 @@ let BusinessAppIntegrationController = class BusinessAppIntegrationController {
|
|
|
68
69
|
bz_integration.active = false;
|
|
69
70
|
return bz_integration.save();
|
|
70
71
|
}
|
|
72
|
+
async enableGlobal(params, body) {
|
|
73
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
74
|
+
const bz_integration = await business_app_integration_entity_1.BusinessAppIntegrationEntity.findOne({ where: { id: params.id, business_id: business.id } });
|
|
75
|
+
if (!bz_integration)
|
|
76
|
+
throw new nestjs_utility_services_1.OperationException('There is no any integration');
|
|
77
|
+
bz_integration.enabled_globally = body.enabled_globally;
|
|
78
|
+
return bz_integration.save();
|
|
79
|
+
}
|
|
71
80
|
};
|
|
72
81
|
exports.BusinessAppIntegrationController = BusinessAppIntegrationController;
|
|
73
82
|
__decorate([
|
|
@@ -110,6 +119,14 @@ __decorate([
|
|
|
110
119
|
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
111
120
|
__metadata("design:returntype", Promise)
|
|
112
121
|
], BusinessAppIntegrationController.prototype, "revokeIntegration", null);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, common_1.Post)(':id/preference'),
|
|
124
|
+
__param(0, (0, common_1.Param)()),
|
|
125
|
+
__param(1, (0, common_1.Body)()),
|
|
126
|
+
__metadata("design:type", Function),
|
|
127
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, add_integration_preference_dto_1.AddIntegrationPreferenceDto]),
|
|
128
|
+
__metadata("design:returntype", Promise)
|
|
129
|
+
], BusinessAppIntegrationController.prototype, "enableGlobal", null);
|
|
113
130
|
exports.BusinessAppIntegrationController = BusinessAppIntegrationController = __decorate([
|
|
114
131
|
(0, common_1.Controller)('api/b/app-integration'),
|
|
115
132
|
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.app.integration.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/business.app.integration.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAyG;AACzG,mEAA8D;AAC9D,qDAAgD;AAEhD,+EAA0E;AAC1E,iGAA2F;AAC3F,kFAA6E;AAC7E,kEAA6D;AAC7D,iFAA4E;AAQrE,IAAM,gCAAgC,G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AC;IAGK,AAAN,KAAK,CAAC,YAAY,CAAU,MAAwB;QAChD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEtB,OAAO,IAAI,+CAAqB,CAAC,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACxF,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAU,MAAwB;QACxC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,OAAO,8DAA4B,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACxG,CAAC;IAGK,AAAN,KAAK,CAAC,iBAAiB,CAAU,MAAwB;QACrD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,MAAM,cAAc,GAAG,MAAM,8DAA4B,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC1H,IAAI,CAAC,cAAc;YAAE,MAAM,IAAI,4CAAkB,CAAC,6BAA6B,CAAC,CAAC;QAEjF,cAAc,CAAC,MAAM,GAAG,KAAK,CAAC;QAE9B,OAAO,cAAc,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"business.app.integration.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/business.app.integration.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAyG;AACzG,2FAAqF;AACrF,mEAA8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e;GAJ5C,gCAAgC,CA0E5C"}
|
|
@@ -48,12 +48,11 @@ let BusinessUserNotificationPreferenceController = class BusinessUserNotificatio
|
|
|
48
48
|
async findNotifications(body) {
|
|
49
49
|
const business = await this.accessBusinessService.validateAccess();
|
|
50
50
|
const config = {
|
|
51
|
-
primaryCondition: `a.deleted_at is null`,
|
|
51
|
+
primaryCondition: `a.deleted_at is null and a.visible = true`,
|
|
52
52
|
tableName: 'utl_notification_details a',
|
|
53
|
-
columns: ['a.id', '
|
|
53
|
+
columns: ['a.id', 'a.name', 'a.identifier', 'a.description'],
|
|
54
54
|
idsCompareKey: 'a.id',
|
|
55
|
-
searchCompareKeys: ['
|
|
56
|
-
statusCompareKeys: ['a.active', 'b.active'],
|
|
55
|
+
searchCompareKeys: ['a.name'],
|
|
57
56
|
order: 'a.id desc',
|
|
58
57
|
...body,
|
|
59
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.user.notification.preference.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/business.user.notification.preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAyG;AACzG,yHAAiH;AACjH,mEAA8D;AAC9D,yIAAgI;AAChI,qDAAgD;AAEhD,2HAAoH;AACpH,wHAAwH;AACxH,kEAA6D;AAC7D,iFAA4E;AAC5E,iEAA6D;AAQtD,IAAM,4CAA4C,GAAlD,MAAM,4CAA4C;IACrD,YACqB,qBAA4C,EAC5C,cAA8B,EAC9B,UAAsB;QAFtB,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,eAAU,GAAV,UAAU,CAAY;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,MAAM,CAAS,IAAqD;QACtE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,OAAO,IAAI,0FAA6C,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1G,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,IAA8C;QAC/D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,IAAI,CAAC,GAAG,uFAAwC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;QACtF,IAAI,IAAI,EAAE,EAAE;YAAE,CAAC,GAAG,MAAM,uFAAwC,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAEjF,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QACzB,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAC/B,CAAC,CAAC,eAAe,GAAG,IAAI,EAAE,eAAe,CAAC;QAC1C,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC;QAEhB,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;IAGK,AAAN,KAAK,CAAC,iBAAiB,CAAS,IAAe;QAC3C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,MAAM,MAAM,GAAqB;YAC7B,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"business.user.notification.preference.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/business.user.notification.preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAyG;AACzG,yHAAiH;AACjH,mEAA8D;AAC9D,yIAAgI;AAChI,qDAAgD;AAEhD,2HAAoH;AACpH,wHAAwH;AACxH,kEAA6D;AAC7D,iFAA4E;AAC5E,iEAA6D;AAQtD,IAAM,4CAA4C,GAAlD,MAAM,4CAA4C;IACrD,YACqB,qBAA4C,EAC5C,cAA8B,EAC9B,UAAsB;QAFtB,0BAAqB,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,IAAI,MAAM,KAAK,CAAC,CAAC,MAAM;YAAE,MAAM,IAAI,4CAAkB,CAAC,mBAAmB,CAAC,CAAC;QAE3E,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC;QAClB,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;CACJ,CAAA;AA/EY,oGAA4C;AAQ/C;IADL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,uGAA+C;;0EAGzE;AAGK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,wFAAwC;;0EAYlE;AAGK;IADL,IAAA,aAAI,EAAC,oBAAoB,CAAC;IACF,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,uBAAS;;qFAc9C;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;wEAW3C;AAGK;IADL,IAAA,aAAI,EAAC,cAAc,CAAC;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;4EAE/C;AAGK;IADL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;8EAEjD;uDAnEQ,4CAA4C;IADxD,IAAA,mBAAU,EAAC,yBAAyB,CAAC;qCAGU,+CAAqB;QAC5B,gCAAc;QAClB,oCAAU;GAJlC,4CAA4C,CA+ExD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SqlService, StringSearchDto } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { AddWebhookDto } from '../dtos/add.webhook.dto';
|
|
3
|
+
import { BusinessParamDto } from '../dtos/business.param.dto';
|
|
4
|
+
import { BusinessWebhookEntity } from '../entities/business.webhook.entity';
|
|
5
|
+
import { AccessBusinessService } from '../services/access.business.service';
|
|
6
|
+
export declare class BusinessWebhookController {
|
|
7
|
+
private readonly accessBusinessService;
|
|
8
|
+
private readonly sqlService;
|
|
9
|
+
constructor(accessBusinessService: AccessBusinessService, sqlService: SqlService);
|
|
10
|
+
find(body: StringSearchDto): Promise<any>;
|
|
11
|
+
show(params: BusinessParamDto): Promise<BusinessWebhookEntity>;
|
|
12
|
+
create(body: AddWebhookDto): Promise<BusinessWebhookEntity>;
|
|
13
|
+
activate(): Promise<BusinessWebhookEntity>;
|
|
14
|
+
deactivate(): Promise<BusinessWebhookEntity>;
|
|
15
|
+
handleStatus(status: boolean): Promise<BusinessWebhookEntity>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.BusinessWebhookController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const add_webhook_dto_1 = require("../dtos/add.webhook.dto");
|
|
19
|
+
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
20
|
+
const business_webhook_entity_1 = require("../entities/business.webhook.entity");
|
|
21
|
+
const process_db_find_1 = require("../libraries/process.db.find");
|
|
22
|
+
const access_business_service_1 = require("../services/access.business.service");
|
|
23
|
+
let BusinessWebhookController = class BusinessWebhookController {
|
|
24
|
+
constructor(accessBusinessService, sqlService) {
|
|
25
|
+
this.accessBusinessService = accessBusinessService;
|
|
26
|
+
this.sqlService = sqlService;
|
|
27
|
+
}
|
|
28
|
+
async find(body) {
|
|
29
|
+
await this.accessBusinessService.validateAccess();
|
|
30
|
+
const config = {
|
|
31
|
+
tableName: 'utl_webhook_events a',
|
|
32
|
+
primaryCondition: `a.deleted_at is null`,
|
|
33
|
+
searchCompareKeys: ['a.name'],
|
|
34
|
+
columns: ['a.*'],
|
|
35
|
+
order: `a.name asc`,
|
|
36
|
+
idsCompareKey: 'a.id',
|
|
37
|
+
...body,
|
|
38
|
+
};
|
|
39
|
+
return new process_db_find_1.ProcessDbFind(this.sqlService).process(config);
|
|
40
|
+
}
|
|
41
|
+
async show(params) {
|
|
42
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
43
|
+
return business_webhook_entity_1.BusinessWebhookEntity.findOne({ where: { id: params.id, business_id: business.id } });
|
|
44
|
+
}
|
|
45
|
+
async create(body) {
|
|
46
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
47
|
+
const wh = await business_webhook_entity_1.BusinessWebhookEntity.firstOrCreate({ business_id: business.id });
|
|
48
|
+
wh.active = true;
|
|
49
|
+
wh.url = body.url;
|
|
50
|
+
wh.event_type = JSON.stringify(body.events);
|
|
51
|
+
return wh.save();
|
|
52
|
+
}
|
|
53
|
+
async activate() {
|
|
54
|
+
return this.handleStatus(true);
|
|
55
|
+
}
|
|
56
|
+
async deactivate() {
|
|
57
|
+
return this.handleStatus(false);
|
|
58
|
+
}
|
|
59
|
+
async handleStatus(status) {
|
|
60
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
61
|
+
const r = await business_webhook_entity_1.BusinessWebhookEntity.findOne({ where: { business_id: business.id } });
|
|
62
|
+
if (r?.business_id !== business.id)
|
|
63
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
64
|
+
if (status === r.active)
|
|
65
|
+
throw new nestjs_utility_services_1.OperationException(`Invalid Operation`);
|
|
66
|
+
r.active = status;
|
|
67
|
+
return r.save();
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
exports.BusinessWebhookController = BusinessWebhookController;
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, common_1.Post)('find-event'),
|
|
73
|
+
__param(0, (0, common_1.Body)()),
|
|
74
|
+
__metadata("design:type", Function),
|
|
75
|
+
__metadata("design:paramtypes", [nestjs_utility_services_1.StringSearchDto]),
|
|
76
|
+
__metadata("design:returntype", Promise)
|
|
77
|
+
], BusinessWebhookController.prototype, "find", null);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, common_1.Get)('detail'),
|
|
80
|
+
__param(0, (0, common_1.Param)()),
|
|
81
|
+
__metadata("design:type", Function),
|
|
82
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
83
|
+
__metadata("design:returntype", Promise)
|
|
84
|
+
], BusinessWebhookController.prototype, "show", null);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, common_1.Post)(),
|
|
87
|
+
__param(0, (0, common_1.Body)()),
|
|
88
|
+
__metadata("design:type", Function),
|
|
89
|
+
__metadata("design:paramtypes", [add_webhook_dto_1.AddWebhookDto]),
|
|
90
|
+
__metadata("design:returntype", Promise)
|
|
91
|
+
], BusinessWebhookController.prototype, "create", null);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, common_1.Post)('activate'),
|
|
94
|
+
__metadata("design:type", Function),
|
|
95
|
+
__metadata("design:paramtypes", []),
|
|
96
|
+
__metadata("design:returntype", Promise)
|
|
97
|
+
], BusinessWebhookController.prototype, "activate", null);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, common_1.Post)('deactivate'),
|
|
100
|
+
__metadata("design:type", Function),
|
|
101
|
+
__metadata("design:paramtypes", []),
|
|
102
|
+
__metadata("design:returntype", Promise)
|
|
103
|
+
], BusinessWebhookController.prototype, "deactivate", null);
|
|
104
|
+
exports.BusinessWebhookController = BusinessWebhookController = __decorate([
|
|
105
|
+
(0, common_1.Controller)('api/b/webhook'),
|
|
106
|
+
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
|
|
107
|
+
nestjs_utility_services_1.SqlService])
|
|
108
|
+
], BusinessWebhookController);
|
|
109
|
+
//# sourceMappingURL=business.webhook.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.webhook.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/business.webhook.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAA0H;AAC1H,6DAAwD;AACxD,mEAA8D;AAE9D,iFAA4E;AAC5E,kEAA6D;AAC7D,iFAA4E;AAQrE,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAClC,YACqB,qBAA4C,EAC5C,UAAsB;QADtB,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,eAAU,GAAV,UAAU,CAAY;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,IAAI,CAAS,IAAqB;QACpC,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAElD,MAAM,MAAM,GAAqB;YAC7B,SAAS,EAAE,sBAAsB;YACjC,gBAAgB,EAAE,sBAAsB;YACxC,iBAAiB,EAAE,CAAC,QAAQ,CAAC;YAC7B,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,KAAK,EAAE,YAAY;YACnB,aAAa,EAAE,MAAM;YACrB,GAAG,IAAI;SACV,CAAC;QAEF,OAAO,IAAI,+BAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9D,CAA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,QAAQ,CAAC,EAAE;YAAE,MAAM,IAAI,yCAAe,EAAE,CAAC;QAChE,IAAI,MAAM,KAAK,CAAC,CAAC,MAAM;YAAE,MAAM,IAAI,4CAAkB,CAAC,mBAAmB,CAAC,CAAC;QAE3E,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC;QAClB,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;CACJ,CAAA;AA9DY,8DAAyB;AAO5B;IADL,IAAA,aAAI,EAAC,YAAY,CAAC;IACP,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,yCAAe;;qDAcvC;AAGK;IADL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACF,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;qDAG3C;AAGK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,+BAAa;;uDAUvC;AAGK;IADL,IAAA,aAAI,EAAC,UAAU,CAAC;;;;yDAGhB;AAGK;IADL,IAAA,aAAI,EAAC,YAAY,CAAC;;;;2DAGlB;oCAlDQ,yBAAyB;IADrC,IAAA,mBAAU,EAAC,eAAe,CAAC;qCAGoB,+CAAqB;QAChC,oCAAU;GAHlC,yBAAyB,CA8DrC"}
|
|
@@ -7,6 +7,7 @@ export * from './business.notification.channel.preference.controller';
|
|
|
7
7
|
export * from './business.preference.controller';
|
|
8
8
|
export * from './business.user.group.controller';
|
|
9
9
|
export * from './business.user.notification.preference.controller';
|
|
10
|
+
export * from './business.webhook.controller';
|
|
10
11
|
export * from './choice.list.controller';
|
|
11
12
|
export * from './choice.type.controller';
|
|
12
13
|
export * from './common.webhook.controller';
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./business.notification.channel.preference.controller"), e
|
|
|
23
23
|
__exportStar(require("./business.preference.controller"), exports);
|
|
24
24
|
__exportStar(require("./business.user.group.controller"), exports);
|
|
25
25
|
__exportStar(require("./business.user.notification.preference.controller"), exports);
|
|
26
|
+
__exportStar(require("./business.webhook.controller"), exports);
|
|
26
27
|
__exportStar(require("./choice.list.controller"), exports);
|
|
27
28
|
__exportStar(require("./choice.type.controller"), exports);
|
|
28
29
|
__exportStar(require("./common.webhook.controller"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,wEAAsD;AAAA,wFAAsE;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,qFAAmE;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,uDAAqC;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,mDAAiC;AAAA,iEAA+C;AAAA,+DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,wEAAsD;AAAA,wFAAsE;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,qFAAmE;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,uDAAqC;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,mDAAiC;AAAA,iEAA+C;AAAA,+DAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.business.user.notification.preference.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.business.user.notification.preference.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA2E;AAC3E,4FAAsF;AAEtF,MAAa,wCAAwC;CAoBpD;AApBD,4FAoBC;AAhBG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACC;AAKZ;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yEACG;AAKhB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,4DAA2B,CAAC;IACnC,IAAA,4BAAU,GAAE;;4EACM;AAKnB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;
|
|
1
|
+
{"version":3,"file":"add.business.user.notification.preference.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.business.user.notification.preference.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA2E;AAC3E,4FAAsF;AAEtF,MAAa,wCAAwC;CAoBpD;AApBD,4FAoBC;AAhBG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACC;AAKZ;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yEACG;AAKhB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,4DAA2B,CAAC;IACnC,IAAA,4BAAU,GAAE;;4EACM;AAKnB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iFACW"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AddIntegrationPreferenceDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class AddIntegrationPreferenceDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AddIntegrationPreferenceDto = AddIntegrationPreferenceDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsBoolean)(),
|
|
22
|
+
__metadata("design:type", Boolean)
|
|
23
|
+
], AddIntegrationPreferenceDto.prototype, "enabled_globally", void 0);
|
|
24
|
+
//# sourceMappingURL=add.integration.preference.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.integration.preference.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.integration.preference.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAwD;AAExD,MAAa,2BAA2B;CAKvC;AALD,kEAKC;AADG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;qEACe"}
|
|
@@ -34,10 +34,4 @@ __decorate([
|
|
|
34
34
|
(0, class_validator_1.IsNotEmpty)(),
|
|
35
35
|
__metadata("design:type", Number)
|
|
36
36
|
], AddNotificationChannelPreferenceDto.prototype, "channel_id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_transformer_1.Expose)(),
|
|
39
|
-
(0, class_validator_1.IsNumber)(),
|
|
40
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], AddNotificationChannelPreferenceDto.prototype, "notification_id", void 0);
|
|
43
37
|
//# sourceMappingURL=add.notification.channel.preference.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.notification.channel.preference.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.notification.channel.preference.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA2E;AAC3E,4FAAsF;AAEtF,MAAa,mCAAmC;
|
|
1
|
+
{"version":3,"file":"add.notification.channel.preference.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.notification.channel.preference.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA2E;AAC3E,4FAAsF;AAEtF,MAAa,mCAAmC;CAe/C;AAfD,kFAeC;AAXG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACD;AAKZ;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACG;AAKhB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,4DAA2B,CAAC;IACnC,IAAA,4BAAU,GAAE;;uEACM"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.AddWebhookDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class AddWebhookDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AddWebhookDto = AddWebhookDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsNumber)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], AddWebhookDto.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AddWebhookDto.prototype, "url", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
(0, class_validator_1.IsArray)(),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], AddWebhookDto.prototype, "events", void 0);
|
|
36
|
+
//# sourceMappingURL=add.webhook.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.webhook.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.webhook.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAsF;AAEtF,MAAa,aAAa;CAezB;AAfD,sCAeC;AAXG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yCACC;AAKZ;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACE;AAKb;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;6CACO"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BusinessWebhookAttributesDto = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class BusinessWebhookAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
|
|
6
|
+
}
|
|
7
|
+
exports.BusinessWebhookAttributesDto = BusinessWebhookAttributesDto;
|
|
8
|
+
//# sourceMappingURL=business.webhook.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.webhook.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/business.webhook.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,4BAA6B,SAAQ,6CAAmB;CAAG;AAAxE,oEAAwE"}
|
|
@@ -11,6 +11,7 @@ export * from './add.custom.field.dto';
|
|
|
11
11
|
export * from './add.dashboard.component.dto';
|
|
12
12
|
export * from './add.dashboard.component.properties.dto';
|
|
13
13
|
export * from './add.group.member.dto';
|
|
14
|
+
export * from './add.integration.preference.dto';
|
|
14
15
|
export * from './add.listing.preference.dto';
|
|
15
16
|
export * from './add.notification.channel.preference.dto';
|
|
16
17
|
export * from './add.role.dto';
|
|
@@ -18,6 +19,7 @@ export * from './add.scheduled.report.dto';
|
|
|
18
19
|
export * from './add.short.url.dto';
|
|
19
20
|
export * from './add.tag.dto';
|
|
20
21
|
export * from './add.user.preference.dto';
|
|
22
|
+
export * from './add.webhook.dto';
|
|
21
23
|
export * from './api.account.attributes.dto';
|
|
22
24
|
export * from './api.account.list.filter.dto';
|
|
23
25
|
export * from './app.integration.attributes.dto';
|
|
@@ -39,6 +41,7 @@ export * from './business.user.group.list.filter.dto';
|
|
|
39
41
|
export * from './business.user.notification.preference.attributes.dto';
|
|
40
42
|
export * from './business.user.notification.preference.list.filter.dto';
|
|
41
43
|
export * from './business.user.role.attributes.dto';
|
|
44
|
+
export * from './business.webhook.attributes.dto';
|
|
42
45
|
export * from './bz.notification.channel.preference.attributes.dto';
|
|
43
46
|
export * from './child.menu.attributes.dto';
|
|
44
47
|
export * from './choice.list.attributes.dto';
|
|
@@ -107,6 +110,7 @@ export * from './scheduled.report.item.attributes.dto';
|
|
|
107
110
|
export * from './scheduled.report.item.list.filter.dto';
|
|
108
111
|
export * from './scheduled.report.list.filter.dto';
|
|
109
112
|
export * from './send.email.notification.data.dto';
|
|
113
|
+
export * from './send.webhook.request.payload';
|
|
110
114
|
export * from './server.email.attachment.dto';
|
|
111
115
|
export * from './server.email.message.dto';
|
|
112
116
|
export * from './server.email.recipient.dto';
|
|
@@ -130,6 +134,8 @@ export * from './user.notification.list.filter.dto';
|
|
|
130
134
|
export * from './user.preference.attributes.dto';
|
|
131
135
|
export * from './user.role.attributes.dto';
|
|
132
136
|
export * from './watchlist.assignment.attributes.dto';
|
|
137
|
+
export * from './webhook.event.attributes.dto';
|
|
138
|
+
export * from './webhook.log.attributes.dto';
|
|
133
139
|
export * from './webhook.slug.attributes.dto';
|
|
134
140
|
export * from './webhook.type.attributes.dto';
|
|
135
141
|
export * from './whatsapp.message.attributes.dto';
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./add.custom.field.dto"), exports);
|
|
|
27
27
|
__exportStar(require("./add.dashboard.component.dto"), exports);
|
|
28
28
|
__exportStar(require("./add.dashboard.component.properties.dto"), exports);
|
|
29
29
|
__exportStar(require("./add.group.member.dto"), exports);
|
|
30
|
+
__exportStar(require("./add.integration.preference.dto"), exports);
|
|
30
31
|
__exportStar(require("./add.listing.preference.dto"), exports);
|
|
31
32
|
__exportStar(require("./add.notification.channel.preference.dto"), exports);
|
|
32
33
|
__exportStar(require("./add.role.dto"), exports);
|
|
@@ -34,6 +35,7 @@ __exportStar(require("./add.scheduled.report.dto"), exports);
|
|
|
34
35
|
__exportStar(require("./add.short.url.dto"), exports);
|
|
35
36
|
__exportStar(require("./add.tag.dto"), exports);
|
|
36
37
|
__exportStar(require("./add.user.preference.dto"), exports);
|
|
38
|
+
__exportStar(require("./add.webhook.dto"), exports);
|
|
37
39
|
__exportStar(require("./api.account.attributes.dto"), exports);
|
|
38
40
|
__exportStar(require("./api.account.list.filter.dto"), exports);
|
|
39
41
|
__exportStar(require("./app.integration.attributes.dto"), exports);
|
|
@@ -55,6 +57,7 @@ __exportStar(require("./business.user.group.list.filter.dto"), exports);
|
|
|
55
57
|
__exportStar(require("./business.user.notification.preference.attributes.dto"), exports);
|
|
56
58
|
__exportStar(require("./business.user.notification.preference.list.filter.dto"), exports);
|
|
57
59
|
__exportStar(require("./business.user.role.attributes.dto"), exports);
|
|
60
|
+
__exportStar(require("./business.webhook.attributes.dto"), exports);
|
|
58
61
|
__exportStar(require("./bz.notification.channel.preference.attributes.dto"), exports);
|
|
59
62
|
__exportStar(require("./child.menu.attributes.dto"), exports);
|
|
60
63
|
__exportStar(require("./choice.list.attributes.dto"), exports);
|
|
@@ -123,6 +126,7 @@ __exportStar(require("./scheduled.report.item.attributes.dto"), exports);
|
|
|
123
126
|
__exportStar(require("./scheduled.report.item.list.filter.dto"), exports);
|
|
124
127
|
__exportStar(require("./scheduled.report.list.filter.dto"), exports);
|
|
125
128
|
__exportStar(require("./send.email.notification.data.dto"), exports);
|
|
129
|
+
__exportStar(require("./send.webhook.request.payload"), exports);
|
|
126
130
|
__exportStar(require("./server.email.attachment.dto"), exports);
|
|
127
131
|
__exportStar(require("./server.email.message.dto"), exports);
|
|
128
132
|
__exportStar(require("./server.email.recipient.dto"), exports);
|
|
@@ -146,6 +150,8 @@ __exportStar(require("./user.notification.list.filter.dto"), exports);
|
|
|
146
150
|
__exportStar(require("./user.preference.attributes.dto"), exports);
|
|
147
151
|
__exportStar(require("./user.role.attributes.dto"), exports);
|
|
148
152
|
__exportStar(require("./watchlist.assignment.attributes.dto"), exports);
|
|
153
|
+
__exportStar(require("./webhook.event.attributes.dto"), exports);
|
|
154
|
+
__exportStar(require("./webhook.log.attributes.dto"), exports);
|
|
149
155
|
__exportStar(require("./webhook.slug.attributes.dto"), exports);
|
|
150
156
|
__exportStar(require("./webhook.type.attributes.dto"), exports);
|
|
151
157
|
__exportStar(require("./whatsapp.message.attributes.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAAA,wDAAsC;AAAA,qEAAmD;AAAA,gEAA8C;AAAA,gEAA8C;AAAA,kFAAgE;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,2EAAyD;AAAA,yDAAuC;AAAA,+DAA6C;AAAA,4EAA0D;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,4DAA0C;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,qEAAmD;AAAA,gEAA8C;AAAA,4EAA0D;AAAA,uFAAqE;AAAA,iFAA+D;AAAA,qFAAm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AAAA,qEAAkD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendWebhookRequestPayload = void 0;
|
|
4
|
+
class SendWebhookRequestPayload {
|
|
5
|
+
}
|
|
6
|
+
exports.SendWebhookRequestPayload = SendWebhookRequestPayload;
|
|
7
|
+
//# sourceMappingURL=send.webhook.request.payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send.webhook.request.payload.js","sourceRoot":"","sources":["../../../src/access/dtos/send.webhook.request.payload.ts"],"names":[],"mappings":";;;AAAA,MAAa,yBAAyB;CAGrC;AAHD,8DAGC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookEventAttributesDto = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class WebhookEventAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
|
|
6
|
+
}
|
|
7
|
+
exports.WebhookEventAttributesDto = WebhookEventAttributesDto;
|
|
8
|
+
//# sourceMappingURL=webhook.event.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.event.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/webhook.event.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,yBAA0B,SAAQ,6CAAmB;CAAG;AAArE,8DAAqE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookLogAttributesDto = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class WebhookLogAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
|
|
6
|
+
}
|
|
7
|
+
exports.WebhookLogAttributesDto = WebhookLogAttributesDto;
|
|
8
|
+
//# sourceMappingURL=webhook.log.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.log.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/webhook.log.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,uBAAwB,SAAQ,6CAAmB;CAAG;AAAnE,0DAAmE"}
|
|
@@ -3,7 +3,6 @@ import { AppIntegrationAttributesDto } from '../dtos/app.integration.attributes.
|
|
|
3
3
|
export declare class AppIntegrationEntity extends CommonEntity {
|
|
4
4
|
name: string;
|
|
5
5
|
active: boolean;
|
|
6
|
-
enabled_globally: boolean;
|
|
7
6
|
integration_identifier: string;
|
|
8
7
|
url: string;
|
|
9
8
|
image: string;
|
|
@@ -24,10 +24,6 @@ __decorate([
|
|
|
24
24
|
(0, typeorm_1.Column)(),
|
|
25
25
|
__metadata("design:type", Boolean)
|
|
26
26
|
], AppIntegrationEntity.prototype, "active", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)(),
|
|
29
|
-
__metadata("design:type", Boolean)
|
|
30
|
-
], AppIntegrationEntity.prototype, "enabled_globally", void 0);
|
|
31
27
|
__decorate([
|
|
32
28
|
(0, typeorm_1.Column)({ unique: true }),
|
|
33
29
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.integration.entity.js","sourceRoot":"","sources":["../../../src/access/entities/app.integration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAyC;AACzC,2FAAqF;AAS9E,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,sCAAY;
|
|
1
|
+
{"version":3,"file":"app.integration.entity.js","sourceRoot":"","sources":["../../../src/access/entities/app.integration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAyC;AACzC,2FAAqF;AAS9E,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,sCAAY;CAqBrD,CAAA;AArBY,oDAAoB;AAE7B;IADC,IAAA,gBAAM,GAAE;;kDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;oDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;oEACM;AAG/B;IADC,IAAA,gBAAM,GAAE;;iDACG;AAGZ;IADC,IAAA,gBAAM,GAAE;;mDACK;AAGd;IADC,IAAA,gBAAM,GAAE;;yDACW;AAGpB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,4DAA2B;wDAAC;+BApB/B,oBAAoB;IADhC,IAAA,gBAAM,EAAC,sBAAsB,CAAC;GAClB,oBAAoB,CAqBhC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
|
|
2
2
|
import { BusinessAppIntegrationAttributesDto } from '../dtos/business.app.integration.attributes.dto';
|
|
3
|
-
import { AppIntegrationEntity } from './app.integration.entity';
|
|
4
3
|
import { AccessBusinessEntity } from './access.business.entity';
|
|
4
|
+
import { AppIntegrationEntity } from './app.integration.entity';
|
|
5
5
|
export declare class BusinessAppIntegrationEntity extends CommonEntity {
|
|
6
6
|
business_id: number;
|
|
7
7
|
integration_id: number;
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
10
10
|
active: boolean;
|
|
11
|
+
enabled_globally: boolean;
|
|
11
12
|
attributes: BusinessAppIntegrationAttributesDto;
|
|
12
13
|
business: AccessBusinessEntity;
|
|
13
14
|
integration: AppIntegrationEntity;
|