@escapenavigator/types 2.2.3 → 2.2.5
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/admin/aggregator-order/create-aggregator-order.dto.d.ts +6 -0
- package/dist/admin/aggregator-order/create-aggregator-order.dto.js +8 -0
- package/dist/admin/navigator-booking/navigator-booking.ro.d.ts +8 -0
- package/dist/cashbox/cashbox.ro.d.ts +2 -0
- package/dist/cashbox/cashbox.ro.js +8 -0
- package/dist/cashbox/create-online-cashbox.dto.d.ts +4 -0
- package/dist/cashbox/create-online-cashbox.dto.js +12 -0
- package/dist/cashbox/update-online-cashbox.dto.d.ts +2 -0
- package/dist/cashbox/update-online-cashbox.dto.js +12 -0
- package/dist/certificate-v2/certificate-design.ro.d.ts +3 -0
- package/dist/certificate-v2/certificate-design.ro.js +12 -0
- package/dist/certificate-v2/create-certificate-design.dto.d.ts +3 -0
- package/dist/certificate-v2/create-certificate-design.dto.js +32 -0
- package/dist/kids-party-request/create-kids-party-request.dto.d.ts +17 -0
- package/dist/kids-party-request/create-kids-party-request.dto.js +92 -0
- package/dist/kids-party-request/kids-party-request.enums.d.ts +31 -0
- package/dist/kids-party-request/kids-party-request.enums.js +39 -0
- package/dist/kids-party-request/kids-party-request.ro.d.ts +62 -0
- package/dist/kids-party-request/kids-party-request.ro.js +2 -0
- package/dist/kids-party-request/query-kids-party-requests.dto.d.ts +9 -0
- package/dist/kids-party-request/query-kids-party-requests.dto.js +59 -0
- package/dist/kids-party-request/report-kids-party-outcome.dto.d.ts +4 -0
- package/dist/kids-party-request/report-kids-party-outcome.dto.js +21 -0
- package/dist/kids-party-request/update-kids-party-request.dto.d.ts +10 -0
- package/dist/kids-party-request/update-kids-party-request.dto.js +63 -0
- package/dist/openapi/widget/bookeo/openapi-widget-create-bookeo-order.dto.d.ts +3 -0
- package/dist/openapi/widget/bookeo/openapi-widget-create-bookeo-order.dto.js +8 -0
- package/dist/order/mir-kvestov-report.ro.d.ts +11 -0
- package/dist/order/mir-kvestov-report.ro.js +40 -0
- package/dist/order/order.ro.d.ts +12 -0
- package/dist/order/order.ro.js +24 -0
- package/dist/order/send-mir-kvestov-report.dto.d.ts +7 -0
- package/dist/order/send-mir-kvestov-report.dto.js +36 -0
- package/dist/order-group/group-transaction.dto.d.ts +2 -0
- package/dist/order-group/group-transaction.dto.js +5 -0
- package/dist/order-transaction/create-order-payment.dto.d.ts +7 -0
- package/dist/order-transaction/create-order-payment.dto.js +6 -0
- package/dist/profile/mir-kvestov/mir-kvestov-lk-settings.ro.d.ts +9 -0
- package/dist/profile/mir-kvestov/mir-kvestov-lk-settings.ro.js +36 -0
- package/dist/profile/mir-kvestov/update-mir-kvestov-lk.dto.d.ts +8 -0
- package/dist/profile/mir-kvestov/update-mir-kvestov-lk.dto.js +31 -0
- package/dist/rating-badge/ranking-overview.ro.d.ts +2 -0
- package/dist/rating-badge/ranking-overview.ro.js +4 -0
- package/dist/salary/salary-debt.ro.d.ts +1 -1
- package/dist/salary/salary-my.ro.d.ts +3 -1
- package/dist/salary/salary-summary.ro.d.ts +3 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Utm } from '../../order/order.ro';
|
|
1
2
|
export declare class CreateAggregatorOrderDto {
|
|
2
3
|
phone: string;
|
|
3
4
|
/** Согласие на маркетинговую рассылку из блока согласий виджета. */
|
|
@@ -21,4 +22,9 @@ export declare class CreateAggregatorOrderDto {
|
|
|
21
22
|
holdToken?: string;
|
|
22
23
|
questroomId?: number;
|
|
23
24
|
profileId?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Откуда пришёл игрок: utm и click-id виджета. Те же поля, что у брони
|
|
27
|
+
* в нашу CRM. Без них сторонняя бронь в списке не отличима от прямого захода.
|
|
28
|
+
*/
|
|
29
|
+
utm?: Utm;
|
|
24
30
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateAggregatorOrderDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const order_ro_1 = require("../../order/order.ro");
|
|
15
16
|
class CreateAggregatorOrderDto {
|
|
16
17
|
}
|
|
17
18
|
exports.CreateAggregatorOrderDto = CreateAggregatorOrderDto;
|
|
@@ -97,3 +98,10 @@ __decorate([
|
|
|
97
98
|
(0, class_transformer_1.Expose)(),
|
|
98
99
|
__metadata("design:type", Number)
|
|
99
100
|
], CreateAggregatorOrderDto.prototype, "profileId", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
(0, class_validator_1.ValidateNested)(),
|
|
104
|
+
(0, class_transformer_1.Type)(() => order_ro_1.Utm),
|
|
105
|
+
(0, class_transformer_1.Expose)(),
|
|
106
|
+
__metadata("design:type", order_ro_1.Utm)
|
|
107
|
+
], CreateAggregatorOrderDto.prototype, "utm", void 0);
|
|
@@ -34,6 +34,14 @@ export type NavigatorBookingRO = {
|
|
|
34
34
|
commissionCharged: number;
|
|
35
35
|
commissionRefunded: number;
|
|
36
36
|
commissionNet: number;
|
|
37
|
+
utmSource: string | null;
|
|
38
|
+
utmMedium: string | null;
|
|
39
|
+
utmCampaign: string | null;
|
|
40
|
+
hasGclid: boolean;
|
|
41
|
+
hasYclid: boolean;
|
|
42
|
+
hasFbclid: boolean;
|
|
43
|
+
hasTtclid: boolean;
|
|
44
|
+
hasMsclkid: boolean;
|
|
37
45
|
actions: NavigatorBookingAction[];
|
|
38
46
|
};
|
|
39
47
|
export type NavigatorBookingSummaryRO = {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CashboxLightRO } from './cashbox-light.ro';
|
|
2
2
|
export declare class CashboxRO extends CashboxLightRO {
|
|
3
3
|
squareLocationId: string;
|
|
4
|
+
fiscalFfdVersion?: '1.05' | '1.2';
|
|
5
|
+
fiscalTaxation?: 'osn' | 'usn_income' | 'usn_income_outcome' | 'esn' | 'patent' | null;
|
|
4
6
|
hasApiSecret?: boolean;
|
|
5
7
|
}
|
|
@@ -19,6 +19,14 @@ __decorate([
|
|
|
19
19
|
(0, class_transformer_1.Expose)(),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], CashboxRO.prototype, "squareLocationId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CashboxRO.prototype, "fiscalFfdVersion", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CashboxRO.prototype, "fiscalTaxation", void 0);
|
|
22
30
|
__decorate([
|
|
23
31
|
(0, class_transformer_1.Expose)(),
|
|
24
32
|
(0, class_transformer_1.Transform)(({ obj }) => !!obj.apiSecret || !!obj.hasApiSecret),
|
|
@@ -10,4 +10,8 @@ export declare class CreateOnlineCashboxDto {
|
|
|
10
10
|
increase: number;
|
|
11
11
|
increaseType: PrepaymentTypeEnum;
|
|
12
12
|
squareLocationId: string;
|
|
13
|
+
/** ФФД чека Т‑Банка. Пусто и `1.05` не меняют чек. `1.2` включает версию. */
|
|
14
|
+
fiscalFfdVersion?: '1.05' | '1.2';
|
|
15
|
+
/** СНО чека Т‑Банка. Пусто — из НДС профиля. */
|
|
16
|
+
fiscalTaxation?: 'osn' | 'usn_income' | 'usn_income_outcome' | 'esn' | 'patent' | null;
|
|
13
17
|
}
|
|
@@ -74,3 +74,15 @@ __decorate([
|
|
|
74
74
|
(0, class_transformer_1.Expose)(),
|
|
75
75
|
__metadata("design:type", String)
|
|
76
76
|
], CreateOnlineCashboxDto.prototype, "squareLocationId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsIn)(['1.05', '1.2']),
|
|
80
|
+
(0, class_transformer_1.Expose)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], CreateOnlineCashboxDto.prototype, "fiscalFfdVersion", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsIn)(['osn', 'usn_income', 'usn_income_outcome', 'esn', 'patent']),
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], CreateOnlineCashboxDto.prototype, "fiscalTaxation", void 0);
|
|
@@ -60,3 +60,15 @@ __decorate([
|
|
|
60
60
|
(0, class_transformer_1.Expose)(),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
62
|
], UpdateOnlineCashboxDto.prototype, "squareLocationId", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsIn)(['1.05', '1.2']),
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UpdateOnlineCashboxDto.prototype, "fiscalFfdVersion", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsIn)(['osn', 'usn_income', 'usn_income_outcome', 'esn', 'patent']),
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], UpdateOnlineCashboxDto.prototype, "fiscalTaxation", void 0);
|
|
@@ -67,3 +67,15 @@ __decorate([
|
|
|
67
67
|
(0, class_transformer_1.Expose)(),
|
|
68
68
|
__metadata("design:type", Number)
|
|
69
69
|
], CertificateDesignRO.prototype, "order", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], CertificateDesignRO.prototype, "onlinePaymentsCashbox", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], CertificateDesignRO.prototype, "paypalCashbox", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], CertificateDesignRO.prototype, "ruOnlineCashbox", void 0);
|
|
@@ -17,6 +17,14 @@ const is_not_blank_1 = require("../shared/is-not-blank");
|
|
|
17
17
|
function checkBoolean({ value }, defaultValue) {
|
|
18
18
|
return value === undefined ? (defaultValue !== null && defaultValue !== void 0 ? defaultValue : false) : value;
|
|
19
19
|
}
|
|
20
|
+
/** Пустое значение — «не переопределять», касса берётся из настроек магазина. */
|
|
21
|
+
function optionalCashboxId({ value }) {
|
|
22
|
+
if (value === undefined)
|
|
23
|
+
return undefined;
|
|
24
|
+
if (value === null || value === '' || value === 0)
|
|
25
|
+
return null;
|
|
26
|
+
return Number(value);
|
|
27
|
+
}
|
|
20
28
|
class CreateCertificateDesignDto {
|
|
21
29
|
}
|
|
22
30
|
exports.CreateCertificateDesignDto = CreateCertificateDesignDto;
|
|
@@ -100,3 +108,27 @@ __decorate([
|
|
|
100
108
|
(0, class_transformer_1.Expose)(),
|
|
101
109
|
__metadata("design:type", Number)
|
|
102
110
|
], CreateCertificateDesignDto.prototype, "order", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_validator_1.IsOptional)(),
|
|
113
|
+
(0, class_transformer_1.Transform)(({ value }) => optionalCashboxId({ value })),
|
|
114
|
+
(0, class_validator_1.IsInt)(),
|
|
115
|
+
(0, class_validator_1.Min)(1),
|
|
116
|
+
(0, class_transformer_1.Expose)(),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], CreateCertificateDesignDto.prototype, "onlinePaymentsCashbox", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, class_validator_1.IsOptional)(),
|
|
121
|
+
(0, class_transformer_1.Transform)(({ value }) => optionalCashboxId({ value })),
|
|
122
|
+
(0, class_validator_1.IsInt)(),
|
|
123
|
+
(0, class_validator_1.Min)(1),
|
|
124
|
+
(0, class_transformer_1.Expose)(),
|
|
125
|
+
__metadata("design:type", Number)
|
|
126
|
+
], CreateCertificateDesignDto.prototype, "paypalCashbox", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, class_validator_1.IsOptional)(),
|
|
129
|
+
(0, class_transformer_1.Transform)(({ value }) => optionalCashboxId({ value })),
|
|
130
|
+
(0, class_validator_1.IsInt)(),
|
|
131
|
+
(0, class_validator_1.Min)(1),
|
|
132
|
+
(0, class_transformer_1.Expose)(),
|
|
133
|
+
__metadata("design:type", Number)
|
|
134
|
+
], CreateCertificateDesignDto.prototype, "ruOnlineCashbox", void 0);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { KidsPartyBudgetEnum, KidsPartyFormatEnum, KidsPartyWhenEnum } from './kids-party-request.enums';
|
|
2
|
+
export declare class CreateKidsPartyRequestDto {
|
|
3
|
+
cityId: number;
|
|
4
|
+
format: KidsPartyFormatEnum;
|
|
5
|
+
birthdayAge: number;
|
|
6
|
+
childrenCount: number;
|
|
7
|
+
whenPreset: KidsPartyWhenEnum;
|
|
8
|
+
whenDate?: string;
|
|
9
|
+
budgetPreset: KidsPartyBudgetEnum;
|
|
10
|
+
clientName: string;
|
|
11
|
+
clientPhone: string;
|
|
12
|
+
comment?: string;
|
|
13
|
+
locale?: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
/** Скрытое поле. Заполненное значение — бот, заявку не сохраняем. */
|
|
16
|
+
trap?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.CreateKidsPartyRequestDto = 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 kids_party_request_enums_1 = require("./kids-party-request.enums");
|
|
17
|
+
class CreateKidsPartyRequestDto {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateKidsPartyRequestDto = CreateKidsPartyRequestDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
22
|
+
(0, class_validator_1.IsInt)(),
|
|
23
|
+
(0, class_validator_1.Min)(1),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], CreateKidsPartyRequestDto.prototype, "cityId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(kids_party_request_enums_1.KidsPartyFormatEnum),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateKidsPartyRequestDto.prototype, "format", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
32
|
+
(0, class_validator_1.IsInt)(),
|
|
33
|
+
(0, class_validator_1.Min)(1),
|
|
34
|
+
(0, class_validator_1.Max)(18),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], CreateKidsPartyRequestDto.prototype, "birthdayAge", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
39
|
+
(0, class_validator_1.IsInt)(),
|
|
40
|
+
(0, class_validator_1.Min)(1),
|
|
41
|
+
(0, class_validator_1.Max)(80),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CreateKidsPartyRequestDto.prototype, "childrenCount", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsEnum)(kids_party_request_enums_1.KidsPartyWhenEnum),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateKidsPartyRequestDto.prototype, "whenPreset", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.Matches)(/^\d{4}-\d{2}-\d{2}$/),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateKidsPartyRequestDto.prototype, "whenDate", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsEnum)(kids_party_request_enums_1.KidsPartyBudgetEnum),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CreateKidsPartyRequestDto.prototype, "budgetPreset", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, class_validator_1.MaxLength)(120),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreateKidsPartyRequestDto.prototype, "clientName", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.MaxLength)(32),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateKidsPartyRequestDto.prototype, "clientPhone", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CreateKidsPartyRequestDto.prototype, "comment", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
(0, class_validator_1.MaxLength)(12),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], CreateKidsPartyRequestDto.prototype, "locale", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
84
|
+
(0, class_validator_1.MaxLength)(500),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], CreateKidsPartyRequestDto.prototype, "url", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsString)(),
|
|
90
|
+
(0, class_validator_1.MaxLength)(200),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], CreateKidsPartyRequestDto.prototype, "trap", void 0);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum KidsPartyFormatEnum {
|
|
2
|
+
TURNKEY = "turnkey",
|
|
3
|
+
QUEST_AND_ROOM = "quest_and_room",
|
|
4
|
+
FAMILY = "family",
|
|
5
|
+
QUEST_ONLY = "quest_only"
|
|
6
|
+
}
|
|
7
|
+
export declare enum KidsPartyWhenEnum {
|
|
8
|
+
NEAREST_WEEKEND = "nearest_weekend",
|
|
9
|
+
THIS_MONTH = "this_month",
|
|
10
|
+
SPECIFIC_DATE = "specific_date",
|
|
11
|
+
FLEXIBLE = "flexible"
|
|
12
|
+
}
|
|
13
|
+
export declare enum KidsPartyBudgetEnum {
|
|
14
|
+
UP_TO_10K = "up_to_10k",
|
|
15
|
+
UP_TO_20K = "up_to_20k",
|
|
16
|
+
UP_TO_35K = "up_to_35k",
|
|
17
|
+
UP_TO_50K = "up_to_50k",
|
|
18
|
+
FLEXIBLE = "flexible"
|
|
19
|
+
}
|
|
20
|
+
export declare enum KidsPartyStatusEnum {
|
|
21
|
+
NEW = "new",
|
|
22
|
+
IN_PROGRESS = "in_progress",
|
|
23
|
+
HANDED_TO_QUEST = "handed_to_quest",
|
|
24
|
+
CANCELLED_BY_QUEST = "cancelled_by_quest",
|
|
25
|
+
COMPLETED = "completed"
|
|
26
|
+
}
|
|
27
|
+
/** Согласование отмены. Пусто, пока квест не отменил заявку и после «Состоялась». */
|
|
28
|
+
export declare enum KidsPartyCancellationAgreementEnum {
|
|
29
|
+
NOT_AGREED = "not_agreed",
|
|
30
|
+
AGREED = "agreed"
|
|
31
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KidsPartyCancellationAgreementEnum = exports.KidsPartyStatusEnum = exports.KidsPartyBudgetEnum = exports.KidsPartyWhenEnum = exports.KidsPartyFormatEnum = void 0;
|
|
4
|
+
var KidsPartyFormatEnum;
|
|
5
|
+
(function (KidsPartyFormatEnum) {
|
|
6
|
+
KidsPartyFormatEnum["TURNKEY"] = "turnkey";
|
|
7
|
+
KidsPartyFormatEnum["QUEST_AND_ROOM"] = "quest_and_room";
|
|
8
|
+
KidsPartyFormatEnum["FAMILY"] = "family";
|
|
9
|
+
KidsPartyFormatEnum["QUEST_ONLY"] = "quest_only";
|
|
10
|
+
})(KidsPartyFormatEnum || (exports.KidsPartyFormatEnum = KidsPartyFormatEnum = {}));
|
|
11
|
+
var KidsPartyWhenEnum;
|
|
12
|
+
(function (KidsPartyWhenEnum) {
|
|
13
|
+
KidsPartyWhenEnum["NEAREST_WEEKEND"] = "nearest_weekend";
|
|
14
|
+
KidsPartyWhenEnum["THIS_MONTH"] = "this_month";
|
|
15
|
+
KidsPartyWhenEnum["SPECIFIC_DATE"] = "specific_date";
|
|
16
|
+
KidsPartyWhenEnum["FLEXIBLE"] = "flexible";
|
|
17
|
+
})(KidsPartyWhenEnum || (exports.KidsPartyWhenEnum = KidsPartyWhenEnum = {}));
|
|
18
|
+
var KidsPartyBudgetEnum;
|
|
19
|
+
(function (KidsPartyBudgetEnum) {
|
|
20
|
+
KidsPartyBudgetEnum["UP_TO_10K"] = "up_to_10k";
|
|
21
|
+
KidsPartyBudgetEnum["UP_TO_20K"] = "up_to_20k";
|
|
22
|
+
KidsPartyBudgetEnum["UP_TO_35K"] = "up_to_35k";
|
|
23
|
+
KidsPartyBudgetEnum["UP_TO_50K"] = "up_to_50k";
|
|
24
|
+
KidsPartyBudgetEnum["FLEXIBLE"] = "flexible";
|
|
25
|
+
})(KidsPartyBudgetEnum || (exports.KidsPartyBudgetEnum = KidsPartyBudgetEnum = {}));
|
|
26
|
+
var KidsPartyStatusEnum;
|
|
27
|
+
(function (KidsPartyStatusEnum) {
|
|
28
|
+
KidsPartyStatusEnum["NEW"] = "new";
|
|
29
|
+
KidsPartyStatusEnum["IN_PROGRESS"] = "in_progress";
|
|
30
|
+
KidsPartyStatusEnum["HANDED_TO_QUEST"] = "handed_to_quest";
|
|
31
|
+
KidsPartyStatusEnum["CANCELLED_BY_QUEST"] = "cancelled_by_quest";
|
|
32
|
+
KidsPartyStatusEnum["COMPLETED"] = "completed";
|
|
33
|
+
})(KidsPartyStatusEnum || (exports.KidsPartyStatusEnum = KidsPartyStatusEnum = {}));
|
|
34
|
+
/** Согласование отмены. Пусто, пока квест не отменил заявку и после «Состоялась». */
|
|
35
|
+
var KidsPartyCancellationAgreementEnum;
|
|
36
|
+
(function (KidsPartyCancellationAgreementEnum) {
|
|
37
|
+
KidsPartyCancellationAgreementEnum["NOT_AGREED"] = "not_agreed";
|
|
38
|
+
KidsPartyCancellationAgreementEnum["AGREED"] = "agreed";
|
|
39
|
+
})(KidsPartyCancellationAgreementEnum || (exports.KidsPartyCancellationAgreementEnum = KidsPartyCancellationAgreementEnum = {}));
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { KidsPartyBudgetEnum, KidsPartyCancellationAgreementEnum, KidsPartyFormatEnum, KidsPartyStatusEnum, KidsPartyWhenEnum } from './kids-party-request.enums';
|
|
2
|
+
export type KidsPartyHistoryEntry = {
|
|
3
|
+
at: string;
|
|
4
|
+
actor: 'client' | 'admin' | 'quest';
|
|
5
|
+
action: string;
|
|
6
|
+
detail: string | null;
|
|
7
|
+
};
|
|
8
|
+
export type KidsPartyQuestroomOptionRO = {
|
|
9
|
+
id: number;
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
export type KidsPartyRequestRO = {
|
|
13
|
+
id: number;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
cityId: number;
|
|
16
|
+
cityTitle: string;
|
|
17
|
+
format: KidsPartyFormatEnum;
|
|
18
|
+
birthdayAge: number;
|
|
19
|
+
childrenCount: number;
|
|
20
|
+
whenPreset: KidsPartyWhenEnum;
|
|
21
|
+
whenDate: string | null;
|
|
22
|
+
budgetPreset: KidsPartyBudgetEnum;
|
|
23
|
+
budgetMax: number | null;
|
|
24
|
+
clientName: string;
|
|
25
|
+
clientPhone: string;
|
|
26
|
+
comment: string | null;
|
|
27
|
+
status: KidsPartyStatusEnum;
|
|
28
|
+
cancellationAgreement: KidsPartyCancellationAgreementEnum | null;
|
|
29
|
+
profileId: number | null;
|
|
30
|
+
profileTitle: string | null;
|
|
31
|
+
questroomId: number | null;
|
|
32
|
+
questroomTitle: string | null;
|
|
33
|
+
chargeAmount: number | null;
|
|
34
|
+
chargedAmount: number | null;
|
|
35
|
+
internalComment: string | null;
|
|
36
|
+
locale: string | null;
|
|
37
|
+
sourceUrl: string | null;
|
|
38
|
+
history: KidsPartyHistoryEntry[];
|
|
39
|
+
questrooms?: KidsPartyQuestroomOptionRO[];
|
|
40
|
+
};
|
|
41
|
+
export type KidsPartyRequestSummaryRO = {
|
|
42
|
+
total: number;
|
|
43
|
+
new: number;
|
|
44
|
+
inProgress: number;
|
|
45
|
+
handed: number;
|
|
46
|
+
cancellationPending: number;
|
|
47
|
+
completed: number;
|
|
48
|
+
};
|
|
49
|
+
export type KidsPartyRequestListRO = {
|
|
50
|
+
items: KidsPartyRequestRO[];
|
|
51
|
+
meta: {
|
|
52
|
+
currentPage: number;
|
|
53
|
+
itemCount: number;
|
|
54
|
+
itemsPerPage: number;
|
|
55
|
+
totalItems: number;
|
|
56
|
+
totalPages: number;
|
|
57
|
+
};
|
|
58
|
+
summary: KidsPartyRequestSummaryRO;
|
|
59
|
+
};
|
|
60
|
+
export type CreateKidsPartyRequestRO = {
|
|
61
|
+
ok: true;
|
|
62
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KidsPartyStatusEnum } from './kids-party-request.enums';
|
|
2
|
+
export declare class QueryKidsPartyRequestsDto {
|
|
3
|
+
page?: number;
|
|
4
|
+
limit?: number;
|
|
5
|
+
status?: KidsPartyStatusEnum;
|
|
6
|
+
/** Только отмены, которые админ ещё не согласовал. */
|
|
7
|
+
cancellationPending?: boolean;
|
|
8
|
+
searchText?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.QueryKidsPartyRequestsDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const kids_party_request_enums_1 = require("./kids-party-request.enums");
|
|
16
|
+
const optionalBoolean = ({ value }) => value === true || value === 'true'
|
|
17
|
+
? true
|
|
18
|
+
: value === false || value === 'false'
|
|
19
|
+
? false
|
|
20
|
+
: value;
|
|
21
|
+
class QueryKidsPartyRequestsDto {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.page = 1;
|
|
24
|
+
this.limit = 30;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.QueryKidsPartyRequestsDto = QueryKidsPartyRequestsDto;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
31
|
+
(0, class_validator_1.IsInt)(),
|
|
32
|
+
(0, class_validator_1.Min)(1),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], QueryKidsPartyRequestsDto.prototype, "page", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
38
|
+
(0, class_validator_1.IsInt)(),
|
|
39
|
+
(0, class_validator_1.Min)(1),
|
|
40
|
+
(0, class_validator_1.Max)(100),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], QueryKidsPartyRequestsDto.prototype, "limit", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsEnum)(kids_party_request_enums_1.KidsPartyStatusEnum),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], QueryKidsPartyRequestsDto.prototype, "status", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_transformer_1.Transform)(optionalBoolean),
|
|
51
|
+
(0, class_validator_1.IsBoolean)(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], QueryKidsPartyRequestsDto.prototype, "cancellationPending", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.MaxLength)(120),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], QueryKidsPartyRequestsDto.prototype, "searchText", void 0);
|
|
@@ -0,0 +1,21 @@
|
|
|
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.ReportKidsPartyOutcomeDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const kids_party_request_enums_1 = require("./kids-party-request.enums");
|
|
15
|
+
class ReportKidsPartyOutcomeDto {
|
|
16
|
+
}
|
|
17
|
+
exports.ReportKidsPartyOutcomeDto = ReportKidsPartyOutcomeDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsIn)([kids_party_request_enums_1.KidsPartyStatusEnum.COMPLETED, kids_party_request_enums_1.KidsPartyStatusEnum.CANCELLED_BY_QUEST]),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ReportKidsPartyOutcomeDto.prototype, "status", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { KidsPartyCancellationAgreementEnum, KidsPartyStatusEnum } from './kids-party-request.enums';
|
|
2
|
+
export declare class UpdateKidsPartyRequestDto {
|
|
3
|
+
status?: KidsPartyStatusEnum;
|
|
4
|
+
cancellationAgreement?: KidsPartyCancellationAgreementEnum;
|
|
5
|
+
profileId?: number | null;
|
|
6
|
+
questroomId?: number | null;
|
|
7
|
+
/** Сумма в валюте компании. 0 — состоявшуюся заявку не списываем. */
|
|
8
|
+
chargeAmount?: number;
|
|
9
|
+
internalComment?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.UpdateKidsPartyRequestDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const kids_party_request_enums_1 = require("./kids-party-request.enums");
|
|
16
|
+
const optionalId = ({ value }) => {
|
|
17
|
+
if (value == null || value === '')
|
|
18
|
+
return null;
|
|
19
|
+
return Number(value);
|
|
20
|
+
};
|
|
21
|
+
class UpdateKidsPartyRequestDto {
|
|
22
|
+
}
|
|
23
|
+
exports.UpdateKidsPartyRequestDto = UpdateKidsPartyRequestDto;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsEnum)(kids_party_request_enums_1.KidsPartyStatusEnum),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpdateKidsPartyRequestDto.prototype, "status", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsEnum)(kids_party_request_enums_1.KidsPartyCancellationAgreementEnum),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpdateKidsPartyRequestDto.prototype, "cancellationAgreement", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_transformer_1.Transform)(optionalId),
|
|
37
|
+
(0, class_validator_1.ValidateIf)((_, value) => value !== null),
|
|
38
|
+
(0, class_validator_1.IsInt)(),
|
|
39
|
+
(0, class_validator_1.Min)(1),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], UpdateKidsPartyRequestDto.prototype, "profileId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_transformer_1.Transform)(optionalId),
|
|
45
|
+
(0, class_validator_1.ValidateIf)((_, value) => value !== null),
|
|
46
|
+
(0, class_validator_1.IsInt)(),
|
|
47
|
+
(0, class_validator_1.Min)(1),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], UpdateKidsPartyRequestDto.prototype, "questroomId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
53
|
+
(0, class_validator_1.IsInt)(),
|
|
54
|
+
(0, class_validator_1.Min)(0),
|
|
55
|
+
(0, class_validator_1.Max)(1000000),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], UpdateKidsPartyRequestDto.prototype, "chargeAmount", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.MaxLength)(4000),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], UpdateKidsPartyRequestDto.prototype, "internalComment", void 0);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ClientFormDto } from '../../../client/client-form.dto';
|
|
2
|
+
import { Utm } from '../../../order/order.ro';
|
|
2
3
|
export declare class OpenapiCreateBookeoOrderDto extends ClientFormDto {
|
|
3
4
|
date: string;
|
|
4
5
|
questroomId: number;
|
|
@@ -26,4 +27,6 @@ export declare class OpenapiCreateBookeoOrderDto extends ClientFormDto {
|
|
|
26
27
|
* игроку.
|
|
27
28
|
*/
|
|
28
29
|
price?: number;
|
|
30
|
+
/** Тот же объект, что у обычной брони виджета. Старые бандлы поле не шлют. */
|
|
31
|
+
utm?: Utm;
|
|
29
32
|
}
|