@escapenavigator/types 2.2.7 → 2.2.8
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-light.ro.d.ts +1 -0
- package/dist/cashbox/cashbox-light.ro.js +4 -0
- package/dist/cashbox/create-cashbox.dto.d.ts +1 -0
- package/dist/cashbox/create-cashbox.dto.js +19 -12
- package/dist/cashbox/create-online-cashbox.dto.d.ts +1 -0
- package/dist/cashbox/create-online-cashbox.dto.js +6 -0
- package/dist/cashbox/update-online-cashbox.dto.d.ts +1 -0
- package/dist/cashbox/update-online-cashbox.dto.js +6 -0
- package/dist/constants/all-languages-by-namespace.js +1 -0
- package/dist/constants/country-by-namespace.js +1 -0
- package/dist/constants/country-name-by-country.js +1 -0
- package/dist/constants/currency-by-country.js +1 -0
- package/dist/constants/emergency-phones.js +6 -0
- package/dist/constants/language-by-country.js +1 -0
- package/dist/constants/namespace-by-country.js +1 -0
- package/dist/constants/navigator-certificate-nominals-by-country.d.ts +2 -2
- package/dist/constants/navigator-certificate-nominals-by-country.js +1 -0
- package/dist/email-builder/index.d.ts +2 -1
- package/dist/email-builder/index.js +1 -0
- package/dist/kids-party-request/query-kids-party-requests.dto.d.ts +2 -0
- package/dist/kids-party-request/query-kids-party-requests.dto.js +6 -0
- package/dist/lead/lead-form-field.type.d.ts +1 -0
- package/dist/lead/lead-form-layout.d.ts +17 -0
- package/dist/lead/lead-form-layout.js +88 -0
- package/dist/lead/lead-form.ro.d.ts +6 -0
- package/dist/lead/lead-form.ro.js +14 -0
- package/dist/lead/public/public-lead-form.ro.d.ts +3 -0
- package/dist/lead/query-leads.dto.d.ts +4 -0
- package/dist/lead/query-leads.dto.js +12 -1
- package/dist/lead/update-lead-form.dto.d.ts +3 -0
- package/dist/lead/update-lead-form.dto.js +12 -0
- package/dist/openapi/order-groups/openapi-batch-create-preorder.dto.d.ts +1 -0
- package/dist/openapi/order-groups/openapi-batch-create-preorder.dto.js +1 -0
- package/dist/openapi/orders/openapi-order.ro.d.ts +3 -0
- package/dist/openapi/orders/openapi-order.ro.js +12 -0
- package/dist/openapi/ru-aggregators/aggregators-info.js +4 -0
- package/dist/openapi/ru-aggregators/aggregators.enum.d.ts +2 -1
- package/dist/openapi/ru-aggregators/aggregators.enum.js +1 -0
- package/dist/openapi/shared/openapi-questroom.ro.d.ts +5 -0
- package/dist/openapi/shared/openapi-questroom.ro.js +15 -0
- package/dist/order/order.ro.d.ts +5 -0
- package/dist/order/order.ro.js +20 -0
- package/dist/packages/create-package.dto.js +4 -2
- package/dist/packages/package-audience.enum.d.ts +1 -0
- package/dist/packages/package-audience.enum.js +1 -0
- package/dist/profile/company/profile-company.dto.d.ts +22 -0
- package/dist/profile/company/profile-company.dto.js +108 -0
- package/dist/profile/enum/profile-currency.d.ts +2 -1
- package/dist/profile/enum/profile-currency.js +1 -0
- package/dist/profile/marketing-automation/custom-email-rule.dto.d.ts +33 -0
- package/dist/profile/marketing-automation/custom-email-rule.dto.js +133 -0
- package/dist/profile/telephony/novofon.d.ts +44 -0
- package/dist/profile/telephony/novofon.js +80 -0
- package/dist/profile/waiver/profile-waiver.ro.d.ts +1 -0
- package/dist/profile/waiver/profile-waiver.ro.js +4 -0
- package/dist/profile/waiver/update-waiver.dto.d.ts +1 -0
- package/dist/profile/waiver/update-waiver.dto.js +18 -11
- package/dist/questroom/booking-completion-text.d.ts +8 -0
- package/dist/questroom/booking-completion-text.js +51 -0
- package/dist/questroom/create-questroom.dto.d.ts +7 -0
- package/dist/questroom/create-questroom.dto.js +32 -0
- package/dist/questroom/enum/questroom-mode-icon.enum.d.ts +53 -0
- package/dist/questroom/enum/questroom-mode-icon.enum.js +155 -0
- package/dist/questroom/questroom-light.ro.d.ts +6 -0
- package/dist/questroom/questroom-light.ro.js +19 -0
- package/dist/shared/enum/countries.enum.d.ts +2 -1
- package/dist/shared/enum/countries.enum.js +1 -0
- package/dist/shared/enum/namespaces.enum.d.ts +2 -1
- package/dist/shared/enum/namespaces.enum.js +1 -0
- package/dist/shared/source.enum.d.ts +2 -1
- package/dist/shared/source.enum.js +1 -0
- package/dist/shared/timezone.enum.d.ts +1 -0
- package/dist/shared/timezone.enum.js +1 -0
- package/dist/slot/slot.ro.d.ts +2 -0
- package/dist/slot-rule/create-rule.dto.d.ts +1 -0
- package/dist/slot-rule/create-rule.dto.js +7 -0
- package/dist/slot-rule/defailt-rule.d.ts +1 -0
- package/dist/slot-rule/defailt-rule.js +1 -0
- package/dist/slot-rule/rule.ro.d.ts +1 -0
- package/dist/slot-rule/rule.ro.js +4 -0
- package/dist/transaction/transaction.ro.d.ts +1 -0
- package/dist/transaction/transaction.ro.js +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget/create-widget.dto.d.ts +1 -0
- package/dist/widget/create-widget.dto.js +8 -0
- package/dist/widget/widget.ro.d.ts +2 -0
- package/dist/widget-chat/widget-chat-message.ro.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BookingCompletionText } from '../../questroom/booking-completion-text';
|
|
2
|
+
import { QuestroomModeIconEnum } from '../../questroom/enum/questroom-mode-icon.enum';
|
|
1
3
|
import { PlayersSelectModeEnum } from '../../questroom/enum/players-select-mode.enum';
|
|
2
4
|
import { QuestroomConfirmTypeEnum } from '../../questroom/enum/questroom-confirm-type.enum';
|
|
3
5
|
import { QuestroomTypeEnum } from '../../questroom/enum/questroom-type.enum';
|
|
@@ -20,6 +22,8 @@ declare class LocationLocale {
|
|
|
20
22
|
language: Languages;
|
|
21
23
|
}
|
|
22
24
|
declare class Mode {
|
|
25
|
+
icon?: QuestroomModeIconEnum | null;
|
|
26
|
+
duration?: number | null;
|
|
23
27
|
title: string;
|
|
24
28
|
description: string;
|
|
25
29
|
popular: boolean;
|
|
@@ -79,6 +83,7 @@ export declare class OpenapiQuestroomRO {
|
|
|
79
83
|
ruOnlineCashbox: number;
|
|
80
84
|
paypalCashbox: number;
|
|
81
85
|
importantInfo: string;
|
|
86
|
+
bookingCompletionTexts?: BookingCompletionText[];
|
|
82
87
|
modes: Mode[];
|
|
83
88
|
minAge: number;
|
|
84
89
|
location: Location;
|
|
@@ -21,6 +21,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.QuestroomRow = exports.OpenapiQuestroomRO = exports.OpenapiQuestroomAnytimeRO = exports.transformQuestroom = void 0;
|
|
24
|
+
const booking_completion_text_1 = require("../../questroom/booking-completion-text");
|
|
25
|
+
const questroom_mode_icon_enum_1 = require("../../questroom/enum/questroom-mode-icon.enum");
|
|
24
26
|
/* eslint-disable max-classes-per-file */
|
|
25
27
|
const class_transformer_1 = require("class-transformer");
|
|
26
28
|
const players_select_mode_enum_1 = require("../../questroom/enum/players-select-mode.enum");
|
|
@@ -75,6 +77,14 @@ __decorate([
|
|
|
75
77
|
], LocationLocale.prototype, "language", void 0);
|
|
76
78
|
class Mode {
|
|
77
79
|
}
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], Mode.prototype, "icon", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_transformer_1.Expose)(),
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
|
+
], Mode.prototype, "duration", void 0);
|
|
78
88
|
__decorate([
|
|
79
89
|
(0, class_transformer_1.Expose)(),
|
|
80
90
|
__metadata("design:type", String)
|
|
@@ -241,6 +251,11 @@ __decorate([
|
|
|
241
251
|
(0, class_transformer_1.Expose)(),
|
|
242
252
|
__metadata("design:type", String)
|
|
243
253
|
], OpenapiQuestroomRO.prototype, "importantInfo", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
(0, class_transformer_1.Expose)(),
|
|
256
|
+
(0, class_transformer_1.Type)(() => booking_completion_text_1.BookingCompletionText),
|
|
257
|
+
__metadata("design:type", Array)
|
|
258
|
+
], OpenapiQuestroomRO.prototype, "bookingCompletionTexts", void 0);
|
|
244
259
|
__decorate([
|
|
245
260
|
(0, class_transformer_1.Expose)(),
|
|
246
261
|
(0, class_transformer_1.Type)(() => Mode),
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -154,6 +154,7 @@ export declare class Transactions extends RO {
|
|
|
154
154
|
cashboxId: number;
|
|
155
155
|
deleted: boolean;
|
|
156
156
|
paymentId: string;
|
|
157
|
+
providerOrderId?: string;
|
|
157
158
|
comment: string;
|
|
158
159
|
amount: number;
|
|
159
160
|
includedIncrease: number;
|
|
@@ -174,6 +175,8 @@ declare class ReturnedPromocode {
|
|
|
174
175
|
discount: number;
|
|
175
176
|
}
|
|
176
177
|
export declare class OrderRO extends RO {
|
|
178
|
+
companyId?: number | null;
|
|
179
|
+
companySnapshot?: import('../profile/company/profile-company.dto').CompanyDetails | null;
|
|
177
180
|
/**
|
|
178
181
|
* UTM-метки — flat-поля прямо на ордере. Источник истины —
|
|
179
182
|
* денормализованные колонки `OrderEntity.utm*`.
|
|
@@ -220,6 +223,8 @@ export declare class OrderRO extends RO {
|
|
|
220
223
|
[x: string]: number;
|
|
221
224
|
};
|
|
222
225
|
mode: string;
|
|
226
|
+
modeIcon?: string | null;
|
|
227
|
+
modeDuration?: number | null;
|
|
223
228
|
moderatorId?: number;
|
|
224
229
|
otherPayment?: number;
|
|
225
230
|
additionalInfo: string;
|
package/dist/order/order.ro.js
CHANGED
|
@@ -392,6 +392,10 @@ __decorate([
|
|
|
392
392
|
(0, class_transformer_1.Expose)(),
|
|
393
393
|
__metadata("design:type", String)
|
|
394
394
|
], Transactions.prototype, "paymentId", void 0);
|
|
395
|
+
__decorate([
|
|
396
|
+
(0, class_transformer_1.Expose)(),
|
|
397
|
+
__metadata("design:type", String)
|
|
398
|
+
], Transactions.prototype, "providerOrderId", void 0);
|
|
395
399
|
__decorate([
|
|
396
400
|
(0, class_transformer_1.Expose)(),
|
|
397
401
|
__metadata("design:type", String)
|
|
@@ -455,6 +459,14 @@ __decorate([
|
|
|
455
459
|
class OrderRO extends ro_class_1.RO {
|
|
456
460
|
}
|
|
457
461
|
exports.OrderRO = OrderRO;
|
|
462
|
+
__decorate([
|
|
463
|
+
(0, class_transformer_1.Expose)(),
|
|
464
|
+
__metadata("design:type", Number)
|
|
465
|
+
], OrderRO.prototype, "companyId", void 0);
|
|
466
|
+
__decorate([
|
|
467
|
+
(0, class_transformer_1.Expose)(),
|
|
468
|
+
__metadata("design:type", Object)
|
|
469
|
+
], OrderRO.prototype, "companySnapshot", void 0);
|
|
458
470
|
__decorate([
|
|
459
471
|
(0, class_transformer_1.Expose)(),
|
|
460
472
|
__metadata("design:type", String)
|
|
@@ -561,6 +573,14 @@ __decorate([
|
|
|
561
573
|
(0, class_transformer_1.Expose)(),
|
|
562
574
|
__metadata("design:type", String)
|
|
563
575
|
], OrderRO.prototype, "mode", void 0);
|
|
576
|
+
__decorate([
|
|
577
|
+
(0, class_transformer_1.Expose)(),
|
|
578
|
+
__metadata("design:type", String)
|
|
579
|
+
], OrderRO.prototype, "modeIcon", void 0);
|
|
580
|
+
__decorate([
|
|
581
|
+
(0, class_transformer_1.Expose)(),
|
|
582
|
+
__metadata("design:type", Number)
|
|
583
|
+
], OrderRO.prototype, "modeDuration", void 0);
|
|
564
584
|
__decorate([
|
|
565
585
|
(0, class_transformer_1.Expose)(),
|
|
566
586
|
__metadata("design:type", Number)
|
|
@@ -94,13 +94,15 @@ __decorate([
|
|
|
94
94
|
], CreatePackageDto.prototype, "saved", void 0);
|
|
95
95
|
__decorate([
|
|
96
96
|
(0, class_validator_1.IsOptional)(),
|
|
97
|
-
(0, class_validator_1.
|
|
97
|
+
(0, class_validator_1.IsISO8601)({ strict: true }),
|
|
98
|
+
(0, class_validator_1.Matches)(/^\d{4}-\d{2}-\d{2}$/),
|
|
98
99
|
(0, class_transformer_1.Expose)(),
|
|
99
100
|
__metadata("design:type", String)
|
|
100
101
|
], CreatePackageDto.prototype, "activeFrom", void 0);
|
|
101
102
|
__decorate([
|
|
102
103
|
(0, class_validator_1.IsOptional)(),
|
|
103
|
-
(0, class_validator_1.
|
|
104
|
+
(0, class_validator_1.IsISO8601)({ strict: true }),
|
|
105
|
+
(0, class_validator_1.Matches)(/^\d{4}-\d{2}-\d{2}$/),
|
|
104
106
|
(0, class_transformer_1.Expose)(),
|
|
105
107
|
__metadata("design:type", String)
|
|
106
108
|
], CreatePackageDto.prototype, "activeTo", void 0);
|
|
@@ -6,5 +6,6 @@ var PackageAudienceEnum;
|
|
|
6
6
|
(function (PackageAudienceEnum) {
|
|
7
7
|
PackageAudienceEnum["ANY"] = "any";
|
|
8
8
|
PackageAudienceEnum["KIDS"] = "kids";
|
|
9
|
+
PackageAudienceEnum["TEENS"] = "teens";
|
|
9
10
|
PackageAudienceEnum["ADULTS"] = "adults";
|
|
10
11
|
})(PackageAudienceEnum || (exports.PackageAudienceEnum = PackageAudienceEnum = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare class ProfileCompanyDto {
|
|
2
|
+
title?: string;
|
|
3
|
+
legalTitle?: string;
|
|
4
|
+
legalAddress?: string;
|
|
5
|
+
legalTaxId?: string;
|
|
6
|
+
legalKpp?: string;
|
|
7
|
+
ogrn?: string;
|
|
8
|
+
legalManagingDirector?: string;
|
|
9
|
+
logo?: string;
|
|
10
|
+
phoneForCustomers?: string;
|
|
11
|
+
site?: string;
|
|
12
|
+
mainEmail?: string;
|
|
13
|
+
tax?: number;
|
|
14
|
+
taxIncluded?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type CompanyDetails = Pick<ProfileCompanyDto, 'title' | 'legalTitle' | 'legalAddress' | 'legalTaxId' | 'legalKpp' | 'ogrn' | 'legalManagingDirector' | 'logo' | 'phoneForCustomers' | 'site' | 'mainEmail' | 'tax' | 'taxIncluded'>;
|
|
17
|
+
export interface ProfileCompanyRO extends CompanyDetails {
|
|
18
|
+
id: number;
|
|
19
|
+
profileId: number;
|
|
20
|
+
isPrimary: boolean;
|
|
21
|
+
archived: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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.ProfileCompanyDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class ProfileCompanyDto {
|
|
16
|
+
}
|
|
17
|
+
exports.ProfileCompanyDto = ProfileCompanyDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.MinLength)(1),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ProfileCompanyDto.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ProfileCompanyDto.prototype, "legalTitle", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ProfileCompanyDto.prototype, "legalAddress", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ProfileCompanyDto.prototype, "legalTaxId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ProfileCompanyDto.prototype, "legalKpp", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ProfileCompanyDto.prototype, "ogrn", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], ProfileCompanyDto.prototype, "legalManagingDirector", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], ProfileCompanyDto.prototype, "logo", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.IsString)(),
|
|
77
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], ProfileCompanyDto.prototype, "phoneForCustomers", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
84
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
85
|
+
(0, class_transformer_1.Expose)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], ProfileCompanyDto.prototype, "site", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
92
|
+
(0, class_transformer_1.Expose)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], ProfileCompanyDto.prototype, "mainEmail", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_validator_1.IsOptional)(),
|
|
97
|
+
(0, class_validator_1.IsNumber)(),
|
|
98
|
+
(0, class_validator_1.Min)(0),
|
|
99
|
+
(0, class_validator_1.Max)(100),
|
|
100
|
+
(0, class_transformer_1.Expose)(),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], ProfileCompanyDto.prototype, "tax", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
|
+
(0, class_validator_1.IsBoolean)(),
|
|
106
|
+
(0, class_transformer_1.Expose)(),
|
|
107
|
+
__metadata("design:type", Boolean)
|
|
108
|
+
], ProfileCompanyDto.prototype, "taxIncluded", void 0);
|
|
@@ -37,6 +37,7 @@ var ProfileCurrencyEnum;
|
|
|
37
37
|
ProfileCurrencyEnum["MXN"] = "MXN";
|
|
38
38
|
ProfileCurrencyEnum["JPY"] = "JPY";
|
|
39
39
|
ProfileCurrencyEnum["SGD"] = "SGD";
|
|
40
|
+
ProfileCurrencyEnum["AED"] = "AED";
|
|
40
41
|
})(ProfileCurrencyEnum || (exports.ProfileCurrencyEnum = ProfileCurrencyEnum = {}));
|
|
41
42
|
// export enum ProfileCurrencyEnum {
|
|
42
43
|
// EUR = 'EUR',
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Languages } from '../../shared/enum/languages.enum';
|
|
2
|
+
import { MarketingAutomationLocaleDto } from './marketing-automation.dto';
|
|
3
|
+
export declare enum CustomEmailTriggerEnum {
|
|
4
|
+
BOOKING_CREATED = "booking_created",
|
|
5
|
+
BOOKING_CONFIRMED = "booking_confirmed",
|
|
6
|
+
BEFORE_GAME = "before_game",
|
|
7
|
+
AFTER_GAME = "after_game",
|
|
8
|
+
CANCELED_BY_CLIENT = "canceled_by_client",
|
|
9
|
+
CANCELED_BY_COMPANY = "canceled_by_company",
|
|
10
|
+
CERTIFICATE_PAID = "certificate_paid",
|
|
11
|
+
CERTIFICATE_REDEEMED = "certificate_redeemed",
|
|
12
|
+
CERTIFICATE_CELEBRATION = "certificate_celebration"
|
|
13
|
+
}
|
|
14
|
+
export declare class CustomEmailRuleDto {
|
|
15
|
+
name: string;
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
trigger: CustomEmailTriggerEnum;
|
|
18
|
+
questroomIds: number[];
|
|
19
|
+
/** Legacy certificate templates, not individual certificate sales. */
|
|
20
|
+
certificateIds: number[];
|
|
21
|
+
nominalIds: number[];
|
|
22
|
+
designIds: number[];
|
|
23
|
+
/** Before-game subtracts this interval; all other triggers add it. */
|
|
24
|
+
offsetMinutes: number;
|
|
25
|
+
locales: MarketingAutomationLocaleDto[];
|
|
26
|
+
}
|
|
27
|
+
export declare class CustomEmailRuleRO extends CustomEmailRuleDto {
|
|
28
|
+
id: number;
|
|
29
|
+
}
|
|
30
|
+
export declare class TestCustomEmailRuleDto {
|
|
31
|
+
email: string;
|
|
32
|
+
language?: Languages;
|
|
33
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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.TestCustomEmailRuleDto = exports.CustomEmailRuleRO = exports.CustomEmailRuleDto = exports.CustomEmailTriggerEnum = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
16
|
+
const marketing_automation_dto_1 = require("./marketing-automation.dto");
|
|
17
|
+
var CustomEmailTriggerEnum;
|
|
18
|
+
(function (CustomEmailTriggerEnum) {
|
|
19
|
+
CustomEmailTriggerEnum["BOOKING_CREATED"] = "booking_created";
|
|
20
|
+
CustomEmailTriggerEnum["BOOKING_CONFIRMED"] = "booking_confirmed";
|
|
21
|
+
CustomEmailTriggerEnum["BEFORE_GAME"] = "before_game";
|
|
22
|
+
CustomEmailTriggerEnum["AFTER_GAME"] = "after_game";
|
|
23
|
+
CustomEmailTriggerEnum["CANCELED_BY_CLIENT"] = "canceled_by_client";
|
|
24
|
+
CustomEmailTriggerEnum["CANCELED_BY_COMPANY"] = "canceled_by_company";
|
|
25
|
+
CustomEmailTriggerEnum["CERTIFICATE_PAID"] = "certificate_paid";
|
|
26
|
+
CustomEmailTriggerEnum["CERTIFICATE_REDEEMED"] = "certificate_redeemed";
|
|
27
|
+
CustomEmailTriggerEnum["CERTIFICATE_CELEBRATION"] = "certificate_celebration";
|
|
28
|
+
})(CustomEmailTriggerEnum || (exports.CustomEmailTriggerEnum = CustomEmailTriggerEnum = {}));
|
|
29
|
+
class CustomEmailRuleDto {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.questroomIds = [];
|
|
32
|
+
/** Legacy certificate templates, not individual certificate sales. */
|
|
33
|
+
this.certificateIds = [];
|
|
34
|
+
this.nominalIds = [];
|
|
35
|
+
this.designIds = [];
|
|
36
|
+
/** Before-game subtracts this interval; all other triggers add it. */
|
|
37
|
+
this.offsetMinutes = 0;
|
|
38
|
+
this.locales = [];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.CustomEmailRuleDto = CustomEmailRuleDto;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.MinLength)(1),
|
|
46
|
+
(0, class_validator_1.MaxLength)(120),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CustomEmailRuleDto.prototype, "name", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_validator_1.IsBoolean)(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], CustomEmailRuleDto.prototype, "enabled", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
(0, class_validator_1.IsEnum)(CustomEmailTriggerEnum),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CustomEmailRuleDto.prototype, "trigger", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
(0, class_validator_1.IsArray)(),
|
|
62
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
63
|
+
(0, class_validator_1.ArrayMaxSize)(500),
|
|
64
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
65
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], CustomEmailRuleDto.prototype, "questroomIds", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
(0, class_validator_1.IsArray)(),
|
|
71
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
72
|
+
(0, class_validator_1.ArrayMaxSize)(500),
|
|
73
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
74
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
75
|
+
__metadata("design:type", Array)
|
|
76
|
+
], CustomEmailRuleDto.prototype, "certificateIds", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsArray)(),
|
|
81
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
82
|
+
(0, class_validator_1.ArrayMaxSize)(500),
|
|
83
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
84
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
85
|
+
__metadata("design:type", Array)
|
|
86
|
+
], CustomEmailRuleDto.prototype, "nominalIds", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_transformer_1.Expose)(),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, class_validator_1.IsArray)(),
|
|
91
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
92
|
+
(0, class_validator_1.ArrayMaxSize)(500),
|
|
93
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
94
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
95
|
+
__metadata("design:type", Array)
|
|
96
|
+
], CustomEmailRuleDto.prototype, "designIds", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_transformer_1.Expose)(),
|
|
99
|
+
(0, class_validator_1.IsInt)(),
|
|
100
|
+
(0, class_validator_1.Min)(0),
|
|
101
|
+
(0, class_validator_1.Max)(525600),
|
|
102
|
+
__metadata("design:type", Number)
|
|
103
|
+
], CustomEmailRuleDto.prototype, "offsetMinutes", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_transformer_1.Expose)(),
|
|
106
|
+
(0, class_validator_1.IsArray)(),
|
|
107
|
+
(0, class_validator_1.ArrayMaxSize)(30),
|
|
108
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
109
|
+
(0, class_transformer_1.Type)(() => marketing_automation_dto_1.MarketingAutomationLocaleDto),
|
|
110
|
+
__metadata("design:type", Array)
|
|
111
|
+
], CustomEmailRuleDto.prototype, "locales", void 0);
|
|
112
|
+
class CustomEmailRuleRO extends CustomEmailRuleDto {
|
|
113
|
+
}
|
|
114
|
+
exports.CustomEmailRuleRO = CustomEmailRuleRO;
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, class_transformer_1.Expose)(),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], CustomEmailRuleRO.prototype, "id", void 0);
|
|
119
|
+
class TestCustomEmailRuleDto {
|
|
120
|
+
}
|
|
121
|
+
exports.TestCustomEmailRuleDto = TestCustomEmailRuleDto;
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, class_transformer_1.Expose)(),
|
|
124
|
+
(0, class_validator_1.IsEmail)(),
|
|
125
|
+
(0, class_validator_1.MaxLength)(254),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], TestCustomEmailRuleDto.prototype, "email", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, class_transformer_1.Expose)(),
|
|
130
|
+
(0, class_validator_1.IsOptional)(),
|
|
131
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], TestCustomEmailRuleDto.prototype, "language", void 0);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare class UpdateNovofonDto {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
accessToken?: string;
|
|
4
|
+
virtualPhone: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class UpdateNovofonLineDto {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
employeeId?: number;
|
|
9
|
+
webrtcToken?: string;
|
|
10
|
+
canListen: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class StartNovofonCallDto {
|
|
13
|
+
phone: string;
|
|
14
|
+
clientId?: number;
|
|
15
|
+
orderId?: number;
|
|
16
|
+
leadId?: number;
|
|
17
|
+
}
|
|
18
|
+
export type NovofonSettingsRO = {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
hasAccessToken: boolean;
|
|
21
|
+
virtualPhone: string;
|
|
22
|
+
webhookUrl: string | null;
|
|
23
|
+
lastEventAt: string | null;
|
|
24
|
+
};
|
|
25
|
+
export type NovofonLineRO = {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
employeeId: number | null;
|
|
28
|
+
hasWebrtcToken: boolean;
|
|
29
|
+
canListen: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type NovofonCallRO = {
|
|
32
|
+
id: number;
|
|
33
|
+
direction: string;
|
|
34
|
+
status: string;
|
|
35
|
+
phone: string;
|
|
36
|
+
duration: number;
|
|
37
|
+
startedAt: string;
|
|
38
|
+
recordingUrl: string | null;
|
|
39
|
+
userId: number | null;
|
|
40
|
+
clientId: number | null;
|
|
41
|
+
orderId: number | null;
|
|
42
|
+
leadId: number | null;
|
|
43
|
+
clientName?: string | null;
|
|
44
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
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.StartNovofonCallDto = exports.UpdateNovofonLineDto = exports.UpdateNovofonDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpdateNovofonDto {
|
|
15
|
+
}
|
|
16
|
+
exports.UpdateNovofonDto = UpdateNovofonDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsBoolean)(),
|
|
19
|
+
__metadata("design:type", Boolean)
|
|
20
|
+
], UpdateNovofonDto.prototype, "enabled", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], UpdateNovofonDto.prototype, "accessToken", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.Matches)(/^\+?[0-9]{10,15}$/),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], UpdateNovofonDto.prototype, "virtualPhone", void 0);
|
|
32
|
+
class UpdateNovofonLineDto {
|
|
33
|
+
}
|
|
34
|
+
exports.UpdateNovofonLineDto = UpdateNovofonLineDto;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsBoolean)(),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], UpdateNovofonLineDto.prototype, "enabled", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsInt)(),
|
|
42
|
+
(0, class_validator_1.Min)(1),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], UpdateNovofonLineDto.prototype, "employeeId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], UpdateNovofonLineDto.prototype, "webrtcToken", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsBoolean)(),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], UpdateNovofonLineDto.prototype, "canListen", void 0);
|
|
55
|
+
class StartNovofonCallDto {
|
|
56
|
+
}
|
|
57
|
+
exports.StartNovofonCallDto = StartNovofonCallDto;
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, class_validator_1.Matches)(/^\+?[0-9 ()-]{7,25}$/),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], StartNovofonCallDto.prototype, "phone", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsInt)(),
|
|
66
|
+
(0, class_validator_1.Min)(1),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], StartNovofonCallDto.prototype, "clientId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsInt)(),
|
|
72
|
+
(0, class_validator_1.Min)(1),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], StartNovofonCallDto.prototype, "orderId", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsInt)(),
|
|
78
|
+
(0, class_validator_1.Min)(1),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], StartNovofonCallDto.prototype, "leadId", void 0);
|
|
@@ -15,6 +15,10 @@ const ro_class_1 = require("../../shared/ro-class");
|
|
|
15
15
|
class ProfileWaiverRO extends ro_class_1.RO {
|
|
16
16
|
}
|
|
17
17
|
exports.ProfileWaiverRO = ProfileWaiverRO;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], ProfileWaiverRO.prototype, "companyId", void 0);
|
|
18
22
|
__decorate([
|
|
19
23
|
(0, class_transformer_1.Expose)(),
|
|
20
24
|
__metadata("design:type", Number)
|