@escapenavigator/types 2.0.43 → 2.0.45
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/cashbox/cashbox.ro.d.ts +1 -0
- package/dist/cashbox/cashbox.ro.js +5 -0
- package/dist/cashbox/create-online-cashbox.dto.d.ts +2 -1
- package/dist/cashbox/create-online-cashbox.dto.js +10 -1
- package/dist/cashbox/enum/cashbox-type.enum.d.ts +5 -1
- package/dist/cashbox/enum/cashbox-type.enum.js +9 -1
- package/dist/cashbox/update-online-cashbox.dto.d.ts +2 -0
- package/dist/cashbox/update-online-cashbox.dto.js +10 -0
- package/dist/certificate/certificate.ro.d.ts +1 -0
- package/dist/certificate/certificate.ro.js +4 -0
- package/dist/certificate/create-certificate.dto.d.ts +1 -0
- package/dist/certificate/create-certificate.dto.js +5 -0
- package/dist/certificate-sale/certificate-sale.ro.d.ts +4 -0
- package/dist/certificate-sale/certificate-sale.ro.js +16 -0
- package/dist/certificate-v2/certificate-settings.ro.d.ts +1 -0
- package/dist/certificate-v2/certificate-settings.ro.js +4 -0
- package/dist/certificate-v2/update-certificate-settings.dto.d.ts +1 -0
- package/dist/certificate-v2/update-certificate-settings.dto.js +5 -0
- package/dist/emails/enum/email.senders.d.ts +3 -0
- package/dist/emails/enum/email.senders.js +10 -1
- package/dist/emails/index.d.ts +2 -2
- package/dist/emails/send-email.dto.d.ts +2 -2
- package/dist/emails/send-email.dto.js +2 -2
- package/dist/fiscal/enum/fiscal-provider.enum.d.ts +4 -0
- package/dist/fiscal/enum/fiscal-provider.enum.js +8 -0
- package/dist/fiscal/fiscal-option.ro.d.ts +5 -0
- package/dist/fiscal/fiscal-option.ro.js +28 -0
- package/dist/fiscal/fiscal-settings.ro.d.ts +40 -0
- package/dist/fiscal/fiscal-settings.ro.js +157 -0
- package/dist/fiscal/update-fiscal-settings.dto.d.ts +18 -0
- package/dist/fiscal/update-fiscal-settings.dto.js +114 -0
- package/dist/forms/widget/widget-players-form.dto.d.ts +2 -0
- package/dist/forms/widget/widget-players-form.dto.js +5 -0
- package/dist/lead/create-lead.dto.d.ts +19 -0
- package/dist/lead/create-lead.dto.js +89 -0
- package/dist/lead/enums/lead-event-type.enum.d.ts +11 -0
- package/dist/lead/enums/lead-event-type.enum.js +15 -0
- package/dist/lead/enums/lead-field-mapping.enum.d.ts +23 -0
- package/dist/lead/enums/lead-field-mapping.enum.js +27 -0
- package/dist/lead/enums/lead-field-type.enum.d.ts +29 -0
- package/dist/lead/enums/lead-field-type.enum.js +33 -0
- package/dist/lead/enums/lead-lost-reason.enum.d.ts +11 -0
- package/dist/lead/enums/lead-lost-reason.enum.js +15 -0
- package/dist/lead/enums/lead-source.enum.d.ts +17 -0
- package/dist/lead/enums/lead-source.enum.js +21 -0
- package/dist/lead/enums/lead-stage-kind.enum.d.ts +18 -0
- package/dist/lead/enums/lead-stage-kind.enum.js +22 -0
- package/dist/lead/enums/lead-widget-placement.enum.d.ts +13 -0
- package/dist/lead/enums/lead-widget-placement.enum.js +17 -0
- package/dist/lead/lead-answer.type.d.ts +17 -0
- package/dist/lead/lead-answer.type.js +2 -0
- package/dist/lead/lead-board.ro.d.ts +39 -0
- package/dist/lead/lead-board.ro.js +16 -0
- package/dist/lead/lead-conversion-prefill.ro.d.ts +20 -0
- package/dist/lead/lead-conversion-prefill.ro.js +11 -0
- package/dist/lead/lead-counters.ro.d.ts +9 -0
- package/dist/lead/lead-counters.ro.js +7 -0
- package/dist/lead/lead-event.ro.d.ts +13 -0
- package/dist/lead/lead-event.ro.js +37 -0
- package/dist/lead/lead-form-defaults.ro.d.ts +15 -0
- package/dist/lead/lead-form-defaults.ro.js +11 -0
- package/dist/lead/lead-form-field.type.d.ts +59 -0
- package/dist/lead/lead-form-field.type.js +2 -0
- package/dist/lead/lead-form.ro.d.ts +24 -0
- package/dist/lead/lead-form.ro.js +72 -0
- package/dist/lead/lead-meta.type.d.ts +19 -0
- package/dist/lead/lead-meta.type.js +2 -0
- package/dist/lead/lead-realtime.ro.d.ts +18 -0
- package/dist/lead/lead-realtime.ro.js +13 -0
- package/dist/lead/lead-stage.ro.d.ts +20 -0
- package/dist/lead/lead-stage.ro.js +49 -0
- package/dist/lead/lead-widget-display.ro.d.ts +5 -0
- package/dist/lead/lead-widget-display.ro.js +21 -0
- package/dist/lead/lead-widget-placement.type.d.ts +12 -0
- package/dist/lead/lead-widget-placement.type.js +2 -0
- package/dist/lead/lead.ro.d.ts +42 -0
- package/dist/lead/lead.ro.js +126 -0
- package/dist/lead/link-lead-conversion.dto.d.ts +9 -0
- package/dist/lead/link-lead-conversion.dto.js +39 -0
- package/dist/lead/public/public-lead-form.ro.d.ts +43 -0
- package/dist/lead/public/public-lead-form.ro.js +24 -0
- package/dist/lead/public/submit-lead.dto.d.ts +22 -0
- package/dist/lead/public/submit-lead.dto.js +62 -0
- package/dist/lead/public/submit-lead.ro.d.ts +10 -0
- package/dist/lead/public/submit-lead.ro.js +10 -0
- package/dist/lead/query-leads.dto.d.ts +29 -0
- package/dist/lead/query-leads.dto.js +111 -0
- package/dist/lead/update-lead-form.dto.d.ts +25 -0
- package/dist/lead/update-lead-form.dto.js +85 -0
- package/dist/lead/update-lead-stages.dto.d.ts +20 -0
- package/dist/lead/update-lead-stages.dto.js +69 -0
- package/dist/lead/update-lead-widget-display.dto.d.ts +16 -0
- package/dist/lead/update-lead-widget-display.dto.js +74 -0
- package/dist/lead/update-lead.dto.d.ts +23 -0
- package/dist/lead/update-lead.dto.js +108 -0
- package/dist/openapi/orders/enum/payment-type.enum.d.ts +3 -1
- package/dist/openapi/orders/enum/payment-type.enum.js +2 -0
- package/dist/openapi/orders/openapi-create-preorder.dto.d.ts +6 -0
- package/dist/openapi/orders/openapi-create-preorder.dto.js +7 -0
- package/dist/openapi/orders/openapi-order.ro.d.ts +17 -0
- package/dist/openapi/orders/openapi-order.ro.js +21 -0
- package/dist/openapi/orders/openapi-update-order-players.dto.d.ts +5 -0
- package/dist/openapi/orders/openapi-update-order-players.dto.js +7 -0
- package/dist/openapi/orders/openapi-update-order.dto.d.ts +5 -0
- package/dist/openapi/orders/openapi-update-order.dto.js +7 -0
- package/dist/openapi/shared/openapi-create-payment.ro.d.ts +1 -0
- package/dist/openapi/shared/openapi-create-payment.ro.js +4 -0
- package/dist/openapi/shared/openapi-questroom.ro.d.ts +1 -0
- package/dist/openapi/shared/openapi-questroom.ro.js +4 -0
- package/dist/openapi/slots/openapi-slot-tariff.ro.d.ts +1 -0
- package/dist/openapi/slots/openapi-slot-tariff.ro.js +9 -0
- package/dist/openapi/slots/openapi-slot-variation.ro.d.ts +6 -0
- package/dist/openapi/slots/openapi-slot-variation.ro.js +46 -0
- package/dist/openapi/slots/openapi-upcoming-schedule.dto.d.ts +5 -0
- package/dist/openapi/slots/openapi-upcoming-schedule.dto.js +53 -0
- package/dist/openapi/slots/openapi-upcoming-slots.ro.d.ts +4 -0
- package/dist/openapi/slots/openapi-upcoming-slots.ro.js +29 -0
- package/dist/openapi/widget/openapi-widget-info.ro.d.ts +13 -0
- package/dist/openapi/widget/openapi-widget-info.ro.js +8 -0
- package/dist/order/create-order.dto.d.ts +6 -0
- package/dist/order/create-order.dto.js +7 -0
- package/dist/order/order.ro.d.ts +12 -0
- package/dist/order/order.ro.js +21 -0
- package/dist/order/update-order-slot.dto.d.ts +6 -0
- package/dist/order/update-order-slot.dto.js +7 -0
- package/dist/order/update-players.dto.d.ts +6 -0
- package/dist/order/update-players.dto.js +7 -0
- package/dist/profile/email/profile-email-type.enum.d.ts +2 -0
- package/dist/profile/email/profile-email-type.enum.js +2 -0
- package/dist/profile/notification-chanel/notification-chanel-action.enum.d.ts +13 -1
- package/dist/profile/notification-chanel/notification-chanel-action.enum.js +14 -1
- package/dist/profile/profile.ro.d.ts +2 -0
- package/dist/profile/profile.ro.js +8 -0
- package/dist/profile/telephony/dto/ingest-telephony-call.dto.d.ts +16 -0
- package/dist/profile/telephony/dto/ingest-telephony-call.dto.js +83 -0
- package/dist/profile/telephony/dto/send-telephony-test-call.dto.d.ts +3 -0
- package/dist/profile/telephony/dto/send-telephony-test-call.dto.js +23 -0
- package/dist/profile/telephony/dto/update-telephony-settings.dto.d.ts +3 -0
- package/dist/profile/telephony/dto/update-telephony-settings.dto.js +22 -0
- package/dist/profile/telephony/enum/call-direction.enum.d.ts +4 -0
- package/dist/profile/telephony/enum/call-direction.enum.js +8 -0
- package/dist/profile/telephony/enum/call-status.enum.d.ts +7 -0
- package/dist/profile/telephony/enum/call-status.enum.js +11 -0
- package/dist/profile/telephony/ro/telephony-call.ro.d.ts +19 -0
- package/dist/profile/telephony/ro/telephony-call.ro.js +75 -0
- package/dist/profile/telephony/ro/telephony-settings.ro.d.ts +18 -0
- package/dist/profile/telephony/ro/telephony-settings.ro.js +65 -0
- package/dist/questroom/create-questroom.dto.d.ts +1 -0
- package/dist/questroom/create-questroom.dto.js +5 -0
- package/dist/questroom/questroom-light.ro.d.ts +1 -0
- package/dist/questroom/questroom-light.ro.js +4 -0
- package/dist/role/create-role.dto.d.ts +1 -0
- package/dist/role/create-role.dto.js +6 -0
- package/dist/role/role.ro.d.ts +1 -0
- package/dist/role/role.ro.js +4 -0
- package/dist/shared/localized-string.type.d.ts +8 -0
- package/dist/shared/localized-string.type.js +2 -0
- package/dist/tariff/create-tariff.dto.d.ts +20 -0
- package/dist/tariff/create-tariff.dto.js +34 -0
- package/dist/tariff/enum/tariff-reduced-rate-mode.enum.d.ts +12 -0
- package/dist/tariff/enum/tariff-reduced-rate-mode.enum.js +16 -0
- package/dist/tariff/tariff-light.ro.d.ts +11 -4
- package/dist/tariff/tariff-light.ro.js +23 -4
- package/dist/tariff/tariff.ro.d.ts +1 -0
- package/dist/tariff/tariff.ro.js +4 -0
- package/dist/transaction/enum/transaction-source.enum.d.ts +3 -1
- package/dist/transaction/enum/transaction-source.enum.js +2 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/task/user-task.dto.d.ts +1 -0
- package/dist/user/task/user-task.dto.js +5 -0
- package/dist/user/task/user-task.ro.d.ts +1 -0
- package/dist/user/task/user-task.ro.js +4 -0
- package/dist/user-message/create-user-message.dto.d.ts +1 -0
- package/dist/user-message/create-user-message.dto.js +5 -0
- package/dist/user-message/user-message.ro.d.ts +1 -0
- package/dist/widget/create-widget.dto.d.ts +1 -0
- package/dist/widget/create-widget.dto.js +7 -0
- package/dist/widget/enum/widget-type.enum.d.ts +3 -1
- package/dist/widget/enum/widget-type.enum.js +2 -0
- package/dist/widget/widget.ro.d.ts +5 -0
- package/package.json +2 -2
package/dist/order/order.ro.js
CHANGED
|
@@ -23,6 +23,7 @@ const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-c
|
|
|
23
23
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
24
24
|
const ro_class_1 = require("../shared/ro-class");
|
|
25
25
|
const source_enum_1 = require("../shared/source.enum");
|
|
26
|
+
const tariff_reduced_rate_mode_enum_1 = require("../tariff/enum/tariff-reduced-rate-mode.enum");
|
|
26
27
|
const transaction_source_enum_1 = require("../transaction/enum/transaction-source.enum");
|
|
27
28
|
const transaction_type_enum_1 = require("../transaction/enum/transaction-type.enum");
|
|
28
29
|
const client_cancel_reason_enum_1 = require("./enum/client-cancel-reason.enum");
|
|
@@ -568,6 +569,26 @@ __decorate([
|
|
|
568
569
|
(0, class_transformer_1.Expose)(),
|
|
569
570
|
__metadata("design:type", Number)
|
|
570
571
|
], OrderRO.prototype, "children", void 0);
|
|
572
|
+
__decorate([
|
|
573
|
+
(0, class_transformer_1.Expose)(),
|
|
574
|
+
__metadata("design:type", Number)
|
|
575
|
+
], OrderRO.prototype, "reducedPlayers", void 0);
|
|
576
|
+
__decorate([
|
|
577
|
+
(0, class_transformer_1.Expose)(),
|
|
578
|
+
__metadata("design:type", Number)
|
|
579
|
+
], OrderRO.prototype, "minGameAmount", void 0);
|
|
580
|
+
__decorate([
|
|
581
|
+
(0, class_transformer_1.Expose)(),
|
|
582
|
+
__metadata("design:type", String)
|
|
583
|
+
], OrderRO.prototype, "reducedRateMode", void 0);
|
|
584
|
+
__decorate([
|
|
585
|
+
(0, class_transformer_1.Expose)(),
|
|
586
|
+
__metadata("design:type", Number)
|
|
587
|
+
], OrderRO.prototype, "reducedRate", void 0);
|
|
588
|
+
__decorate([
|
|
589
|
+
(0, class_transformer_1.Expose)(),
|
|
590
|
+
__metadata("design:type", String)
|
|
591
|
+
], OrderRO.prototype, "reducedTitle", void 0);
|
|
571
592
|
__decorate([
|
|
572
593
|
(0, class_transformer_1.Expose)(),
|
|
573
594
|
__metadata("design:type", Boolean)
|
|
@@ -15,6 +15,12 @@ export declare class UpdateOrderSlotDto {
|
|
|
15
15
|
* When omitted, the existing order children value is preserved.
|
|
16
16
|
*/
|
|
17
17
|
children?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Optional new reduced-rate seats count. When omitted, the existing order
|
|
20
|
+
* value is preserved (and re-validated against the new tariff's minimum
|
|
21
|
+
* game price — a cheaper tariff may fit fewer reduced seats).
|
|
22
|
+
*/
|
|
23
|
+
reducedPlayers?: number;
|
|
18
24
|
/**
|
|
19
25
|
* Free-form text describing the resolved variation/duration (e.g. the
|
|
20
26
|
* variation title for fix slots or `${duration} мин` for flex slots).
|
|
@@ -59,6 +59,13 @@ __decorate([
|
|
|
59
59
|
(0, class_transformer_1.Expose)(),
|
|
60
60
|
__metadata("design:type", Number)
|
|
61
61
|
], UpdateOrderSlotDto.prototype, "children", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsInt)(),
|
|
65
|
+
(0, class_validator_1.Min)(0),
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], UpdateOrderSlotDto.prototype, "reducedPlayers", void 0);
|
|
62
69
|
__decorate([
|
|
63
70
|
(0, class_validator_1.IsOptional)(),
|
|
64
71
|
(0, class_validator_1.IsString)(),
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare class UpdatePlayersrDto {
|
|
2
2
|
players: number;
|
|
3
3
|
children: number;
|
|
4
|
+
/**
|
|
5
|
+
* Сколько мест идёт по льготной ставке. Не передан — оставляем как было
|
|
6
|
+
* (эндпоинт правит только состав). Верхнюю границу считает бэк из
|
|
7
|
+
* минимальной стоимости игры, а не доверяет клиенту.
|
|
8
|
+
*/
|
|
9
|
+
reducedPlayers?: number;
|
|
4
10
|
}
|
|
@@ -25,3 +25,10 @@ __decorate([
|
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
27
|
], UpdatePlayersrDto.prototype, "children", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsInt)(),
|
|
31
|
+
(0, class_validator_1.Min)(0),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], UpdatePlayersrDto.prototype, "reducedPlayers", void 0);
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* - `Manual` — ручное письмо клиенту из модалки заказа.
|
|
18
18
|
* - `Certificate` — все письма по сертификатам (новый, неоплаченный,
|
|
19
19
|
* напоминания, повторная отправка).
|
|
20
|
+
* - `LeadAutoreply` — автоответ «заявка принята» (`email.lead.service`).
|
|
20
21
|
* - `Other` — fallback для нерасклассифицированного.
|
|
21
22
|
*/
|
|
22
23
|
export declare enum ProfileEmailTypeEnum {
|
|
@@ -33,5 +34,6 @@ export declare enum ProfileEmailTypeEnum {
|
|
|
33
34
|
MarketingCampaign = "marketing_campaign",
|
|
34
35
|
Manual = "manual",
|
|
35
36
|
Certificate = "certificate",
|
|
37
|
+
LeadAutoreply = "lead_autoreply",
|
|
36
38
|
Other = "other"
|
|
37
39
|
}
|
|
@@ -20,6 +20,7 @@ exports.ProfileEmailTypeEnum = void 0;
|
|
|
20
20
|
* - `Manual` — ручное письмо клиенту из модалки заказа.
|
|
21
21
|
* - `Certificate` — все письма по сертификатам (новый, неоплаченный,
|
|
22
22
|
* напоминания, повторная отправка).
|
|
23
|
+
* - `LeadAutoreply` — автоответ «заявка принята» (`email.lead.service`).
|
|
23
24
|
* - `Other` — fallback для нерасклассифицированного.
|
|
24
25
|
*/
|
|
25
26
|
var ProfileEmailTypeEnum;
|
|
@@ -37,5 +38,6 @@ var ProfileEmailTypeEnum;
|
|
|
37
38
|
ProfileEmailTypeEnum["MarketingCampaign"] = "marketing_campaign";
|
|
38
39
|
ProfileEmailTypeEnum["Manual"] = "manual";
|
|
39
40
|
ProfileEmailTypeEnum["Certificate"] = "certificate";
|
|
41
|
+
ProfileEmailTypeEnum["LeadAutoreply"] = "lead_autoreply";
|
|
40
42
|
ProfileEmailTypeEnum["Other"] = "other";
|
|
41
43
|
})(ProfileEmailTypeEnum || (exports.ProfileEmailTypeEnum = ProfileEmailTypeEnum = {}));
|
|
@@ -15,7 +15,13 @@ export declare enum NotificationTriggerEnum {
|
|
|
15
15
|
*/
|
|
16
16
|
CERTIFICATE_UPDATED = "certificate-updated",
|
|
17
17
|
/** Аннулирование сертификата (сотрудником, клиентом или по API). */
|
|
18
|
-
CERTIFICATE_ANNUL = "certificate-annul"
|
|
18
|
+
CERTIFICATE_ANNUL = "certificate-annul",
|
|
19
|
+
/**
|
|
20
|
+
* Новая входящая заявка: форма на сайте, standalone-страница с QR,
|
|
21
|
+
* «оставить заявку» в записи или подбор пакета. Заявки, созданные
|
|
22
|
+
* сотрудником вручную, событие не поднимают.
|
|
23
|
+
*/
|
|
24
|
+
NEW_LEAD = "new-lead"
|
|
19
25
|
}
|
|
20
26
|
/**
|
|
21
27
|
* События, payload которых строится вокруг продажи сертификата, а не заказа.
|
|
@@ -23,3 +29,9 @@ export declare enum NotificationTriggerEnum {
|
|
|
23
29
|
*/
|
|
24
30
|
export declare const CERTIFICATE_NOTIFICATION_TRIGGERS: NotificationTriggerEnum[];
|
|
25
31
|
export declare const isCertificateNotificationTrigger: (trigger: NotificationTriggerEnum) => boolean;
|
|
32
|
+
/**
|
|
33
|
+
* События, payload которых строится вокруг заявки. Тест канала берёт для них
|
|
34
|
+
* последнюю заявку профиля: спрашивать у оператора id заявки бессмысленно —
|
|
35
|
+
* он его нигде не видит.
|
|
36
|
+
*/
|
|
37
|
+
export declare const isLeadNotificationTrigger: (trigger: NotificationTriggerEnum) => trigger is NotificationTriggerEnum.NEW_LEAD;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isCertificateNotificationTrigger = exports.CERTIFICATE_NOTIFICATION_TRIGGERS = exports.NotificationTriggerEnum = void 0;
|
|
3
|
+
exports.isLeadNotificationTrigger = exports.isCertificateNotificationTrigger = exports.CERTIFICATE_NOTIFICATION_TRIGGERS = exports.NotificationTriggerEnum = void 0;
|
|
4
4
|
var NotificationTriggerEnum;
|
|
5
5
|
(function (NotificationTriggerEnum) {
|
|
6
6
|
NotificationTriggerEnum["NEW_ORDER"] = "new-order";
|
|
@@ -20,6 +20,12 @@ var NotificationTriggerEnum;
|
|
|
20
20
|
NotificationTriggerEnum["CERTIFICATE_UPDATED"] = "certificate-updated";
|
|
21
21
|
/** Аннулирование сертификата (сотрудником, клиентом или по API). */
|
|
22
22
|
NotificationTriggerEnum["CERTIFICATE_ANNUL"] = "certificate-annul";
|
|
23
|
+
/**
|
|
24
|
+
* Новая входящая заявка: форма на сайте, standalone-страница с QR,
|
|
25
|
+
* «оставить заявку» в записи или подбор пакета. Заявки, созданные
|
|
26
|
+
* сотрудником вручную, событие не поднимают.
|
|
27
|
+
*/
|
|
28
|
+
NotificationTriggerEnum["NEW_LEAD"] = "new-lead";
|
|
23
29
|
})(NotificationTriggerEnum || (exports.NotificationTriggerEnum = NotificationTriggerEnum = {}));
|
|
24
30
|
/**
|
|
25
31
|
* События, payload которых строится вокруг продажи сертификата, а не заказа.
|
|
@@ -32,3 +38,10 @@ exports.CERTIFICATE_NOTIFICATION_TRIGGERS = [
|
|
|
32
38
|
];
|
|
33
39
|
const isCertificateNotificationTrigger = (trigger) => exports.CERTIFICATE_NOTIFICATION_TRIGGERS.includes(trigger);
|
|
34
40
|
exports.isCertificateNotificationTrigger = isCertificateNotificationTrigger;
|
|
41
|
+
/**
|
|
42
|
+
* События, payload которых строится вокруг заявки. Тест канала берёт для них
|
|
43
|
+
* последнюю заявку профиля: спрашивать у оператора id заявки бессмысленно —
|
|
44
|
+
* он его нигде не видит.
|
|
45
|
+
*/
|
|
46
|
+
const isLeadNotificationTrigger = (trigger) => trigger === NotificationTriggerEnum.NEW_LEAD;
|
|
47
|
+
exports.isLeadNotificationTrigger = isLeadNotificationTrigger;
|
|
@@ -241,3 +241,11 @@ __decorate([
|
|
|
241
241
|
(0, class_transformer_1.Expose)(),
|
|
242
242
|
__metadata("design:type", String)
|
|
243
243
|
], ProfileRO.prototype, "invoiceExpressExemption", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, class_transformer_1.Expose)(),
|
|
246
|
+
__metadata("design:type", String)
|
|
247
|
+
], ProfileRO.prototype, "fiscalProvider", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, class_transformer_1.Expose)(),
|
|
250
|
+
__metadata("design:type", Boolean)
|
|
251
|
+
], ProfileRO.prototype, "fiscalReady", void 0);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CallDirectionEnum } from '../enum/call-direction.enum';
|
|
2
|
+
import { CallStatusEnum } from '../enum/call-status.enum';
|
|
3
|
+
/**
|
|
4
|
+
* Единый контракт Level 1: АТС шлёт события звонка, голос до нас не доходит.
|
|
5
|
+
* Лишние поля провайдера отрезаются на webhook-контроллере (whitelist).
|
|
6
|
+
*/
|
|
7
|
+
export declare class IngestTelephonyCallDto {
|
|
8
|
+
externalId: string;
|
|
9
|
+
direction: CallDirectionEnum;
|
|
10
|
+
status: CallStatusEnum;
|
|
11
|
+
from: string;
|
|
12
|
+
to: string;
|
|
13
|
+
duration?: number;
|
|
14
|
+
recordingUrl?: string;
|
|
15
|
+
startedAt?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.IngestTelephonyCallDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../../../shared/is-not-blank");
|
|
16
|
+
const call_direction_enum_1 = require("../enum/call-direction.enum");
|
|
17
|
+
const call_status_enum_1 = require("../enum/call-status.enum");
|
|
18
|
+
const toOptionalNumber = ({ value }) => {
|
|
19
|
+
if (value === '' || value == null)
|
|
20
|
+
return undefined;
|
|
21
|
+
const n = Number(value);
|
|
22
|
+
return Number.isFinite(n) ? n : undefined;
|
|
23
|
+
};
|
|
24
|
+
const toOptionalString = ({ value }) => {
|
|
25
|
+
if (value == null)
|
|
26
|
+
return undefined;
|
|
27
|
+
const text = String(value).trim();
|
|
28
|
+
return text.length ? text : undefined;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Единый контракт Level 1: АТС шлёт события звонка, голос до нас не доходит.
|
|
32
|
+
* Лишние поля провайдера отрезаются на webhook-контроллере (whitelist).
|
|
33
|
+
*/
|
|
34
|
+
class IngestTelephonyCallDto {
|
|
35
|
+
}
|
|
36
|
+
exports.IngestTelephonyCallDto = IngestTelephonyCallDto;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
40
|
+
(0, class_validator_1.MaxLength)(128),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], IngestTelephonyCallDto.prototype, "externalId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_validator_1.IsEnum)(call_direction_enum_1.CallDirectionEnum),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], IngestTelephonyCallDto.prototype, "direction", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_validator_1.IsEnum)(call_status_enum_1.CallStatusEnum),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], IngestTelephonyCallDto.prototype, "status", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
56
|
+
(0, class_validator_1.MaxLength)(32),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], IngestTelephonyCallDto.prototype, "from", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
62
|
+
(0, class_validator_1.MaxLength)(32),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], IngestTelephonyCallDto.prototype, "to", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_transformer_1.Transform)(toOptionalNumber),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], IngestTelephonyCallDto.prototype, "duration", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_transformer_1.Transform)(toOptionalString),
|
|
75
|
+
(0, class_validator_1.MaxLength)(4000),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], IngestTelephonyCallDto.prototype, "recordingUrl", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_transformer_1.Transform)(toOptionalString),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], IngestTelephonyCallDto.prototype, "startedAt", void 0);
|
|
@@ -0,0 +1,23 @@
|
|
|
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.SendTelephonyTestCallDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class SendTelephonyTestCallDto {
|
|
16
|
+
}
|
|
17
|
+
exports.SendTelephonyTestCallDto = SendTelephonyTestCallDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.MaxLength)(32),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SendTelephonyTestCallDto.prototype, "from", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
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.UpdateTelephonySettingsDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class UpdateTelephonySettingsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateTelephonySettingsDto = UpdateTelephonySettingsDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsBoolean)(),
|
|
21
|
+
__metadata("design:type", Boolean)
|
|
22
|
+
], UpdateTelephonySettingsDto.prototype, "isActive", void 0);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallDirectionEnum = void 0;
|
|
4
|
+
var CallDirectionEnum;
|
|
5
|
+
(function (CallDirectionEnum) {
|
|
6
|
+
CallDirectionEnum["INBOUND"] = "inbound";
|
|
7
|
+
CallDirectionEnum["OUTBOUND"] = "outbound";
|
|
8
|
+
})(CallDirectionEnum || (exports.CallDirectionEnum = CallDirectionEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallStatusEnum = void 0;
|
|
4
|
+
var CallStatusEnum;
|
|
5
|
+
(function (CallStatusEnum) {
|
|
6
|
+
CallStatusEnum["RINGING"] = "ringing";
|
|
7
|
+
CallStatusEnum["ANSWERED"] = "answered";
|
|
8
|
+
CallStatusEnum["COMPLETED"] = "completed";
|
|
9
|
+
CallStatusEnum["MISSED"] = "missed";
|
|
10
|
+
CallStatusEnum["FAILED"] = "failed";
|
|
11
|
+
})(CallStatusEnum || (exports.CallStatusEnum = CallStatusEnum = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RO } from '../../../shared/ro-class';
|
|
2
|
+
import { CallDirectionEnum } from '../enum/call-direction.enum';
|
|
3
|
+
import { CallStatusEnum } from '../enum/call-status.enum';
|
|
4
|
+
export declare class TelephonyCallRO extends RO {
|
|
5
|
+
externalId: string;
|
|
6
|
+
direction: CallDirectionEnum;
|
|
7
|
+
status: CallStatusEnum;
|
|
8
|
+
fromPhone: string;
|
|
9
|
+
toPhone: string;
|
|
10
|
+
duration: number;
|
|
11
|
+
recordingUrl: string | null;
|
|
12
|
+
startedAt: Date;
|
|
13
|
+
clientId: number | null;
|
|
14
|
+
clientName: string | null;
|
|
15
|
+
orderId: number | null;
|
|
16
|
+
orderCode: string | null;
|
|
17
|
+
orderUtcDate: string | null;
|
|
18
|
+
orderGroupId: number | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.TelephonyCallRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../../../shared/ro-class");
|
|
15
|
+
const call_direction_enum_1 = require("../enum/call-direction.enum");
|
|
16
|
+
const call_status_enum_1 = require("../enum/call-status.enum");
|
|
17
|
+
class TelephonyCallRO extends ro_class_1.RO {
|
|
18
|
+
}
|
|
19
|
+
exports.TelephonyCallRO = TelephonyCallRO;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], TelephonyCallRO.prototype, "externalId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], TelephonyCallRO.prototype, "direction", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], TelephonyCallRO.prototype, "status", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], TelephonyCallRO.prototype, "fromPhone", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], TelephonyCallRO.prototype, "toPhone", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], TelephonyCallRO.prototype, "duration", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], TelephonyCallRO.prototype, "recordingUrl", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", Date)
|
|
51
|
+
], TelephonyCallRO.prototype, "startedAt", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], TelephonyCallRO.prototype, "clientId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], TelephonyCallRO.prototype, "clientName", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], TelephonyCallRO.prototype, "orderId", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], TelephonyCallRO.prototype, "orderCode", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], TelephonyCallRO.prototype, "orderUtcDate", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], TelephonyCallRO.prototype, "orderGroupId", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CallDirectionEnum } from '../enum/call-direction.enum';
|
|
2
|
+
import { CallStatusEnum } from '../enum/call-status.enum';
|
|
3
|
+
export declare class TelephonyWebhookExampleRO {
|
|
4
|
+
externalId: string;
|
|
5
|
+
direction: CallDirectionEnum;
|
|
6
|
+
status: CallStatusEnum;
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
duration: number;
|
|
10
|
+
recordingUrl: string | null;
|
|
11
|
+
startedAt: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class TelephonySettingsRO {
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
/** Полный URL для поля «webhook» в АТС. Null, пока телефонию ни разу не включали. */
|
|
16
|
+
webhookUrl: string | null;
|
|
17
|
+
examplePayload: TelephonyWebhookExampleRO;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.TelephonySettingsRO = exports.TelephonyWebhookExampleRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const call_direction_enum_1 = require("../enum/call-direction.enum");
|
|
15
|
+
const call_status_enum_1 = require("../enum/call-status.enum");
|
|
16
|
+
class TelephonyWebhookExampleRO {
|
|
17
|
+
}
|
|
18
|
+
exports.TelephonyWebhookExampleRO = TelephonyWebhookExampleRO;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], TelephonyWebhookExampleRO.prototype, "externalId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], TelephonyWebhookExampleRO.prototype, "direction", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], TelephonyWebhookExampleRO.prototype, "status", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], TelephonyWebhookExampleRO.prototype, "from", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], TelephonyWebhookExampleRO.prototype, "to", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], TelephonyWebhookExampleRO.prototype, "duration", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], TelephonyWebhookExampleRO.prototype, "recordingUrl", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], TelephonyWebhookExampleRO.prototype, "startedAt", void 0);
|
|
51
|
+
class TelephonySettingsRO {
|
|
52
|
+
}
|
|
53
|
+
exports.TelephonySettingsRO = TelephonySettingsRO;
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], TelephonySettingsRO.prototype, "isActive", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], TelephonySettingsRO.prototype, "webhookUrl", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", TelephonyWebhookExampleRO)
|
|
65
|
+
], TelephonySettingsRO.prototype, "examplePayload", void 0);
|
|
@@ -168,6 +168,11 @@ __decorate([
|
|
|
168
168
|
(0, class_transformer_1.Expose)(),
|
|
169
169
|
__metadata("design:type", Number)
|
|
170
170
|
], CreateQuestroomDto.prototype, "bsCashbox", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, class_validator_1.IsOptional)(),
|
|
173
|
+
(0, class_transformer_1.Expose)(),
|
|
174
|
+
__metadata("design:type", Number)
|
|
175
|
+
], CreateQuestroomDto.prototype, "ruOnlineCashbox", void 0);
|
|
171
176
|
__decorate([
|
|
172
177
|
(0, class_validator_1.IsOptional)(),
|
|
173
178
|
(0, class_transformer_1.Expose)(),
|
|
@@ -74,6 +74,7 @@ export declare class QuestroomLightRO extends RO {
|
|
|
74
74
|
confirmType: QuestroomConfirmTypeEnum;
|
|
75
75
|
daysForBooking: number;
|
|
76
76
|
bsCashbox: number;
|
|
77
|
+
ruOnlineCashbox: number;
|
|
77
78
|
onlinePaymentsAvailable: boolean;
|
|
78
79
|
awailableForWidgets: boolean;
|
|
79
80
|
slotStepMinutes: number;
|
|
@@ -206,6 +206,10 @@ __decorate([
|
|
|
206
206
|
(0, class_transformer_1.Expose)(),
|
|
207
207
|
__metadata("design:type", Number)
|
|
208
208
|
], QuestroomLightRO.prototype, "bsCashbox", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, class_transformer_1.Expose)(),
|
|
211
|
+
__metadata("design:type", Number)
|
|
212
|
+
], QuestroomLightRO.prototype, "ruOnlineCashbox", void 0);
|
|
209
213
|
__decorate([
|
|
210
214
|
(0, class_transformer_1.Expose)(),
|
|
211
215
|
__metadata("design:type", Boolean)
|
|
@@ -7,6 +7,7 @@ export declare class CreateRoleDto {
|
|
|
7
7
|
canLockBookings: boolean;
|
|
8
8
|
accessToClientsSection: boolean;
|
|
9
9
|
canUseChat: boolean;
|
|
10
|
+
accessToLeadsSection: boolean;
|
|
10
11
|
accessToMarketingSection: boolean;
|
|
11
12
|
accessToFinanceSection: boolean;
|
|
12
13
|
accessToStatisticSection: boolean;
|
|
@@ -63,6 +63,12 @@ __decorate([
|
|
|
63
63
|
(0, class_transformer_1.Expose)(),
|
|
64
64
|
__metadata("design:type", Boolean)
|
|
65
65
|
], CreateRoleDto.prototype, "canUseChat", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsBoolean)(),
|
|
68
|
+
(0, class_transformer_1.Transform)(({ value }) => (value !== undefined ? value : false)),
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], CreateRoleDto.prototype, "accessToLeadsSection", void 0);
|
|
66
72
|
__decorate([
|
|
67
73
|
(0, class_validator_1.IsBoolean)(),
|
|
68
74
|
(0, class_transformer_1.Transform)(({ value }) => (value !== undefined ? value : false)),
|