@escapenavigator/types 2.0.40 → 2.0.43
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/certificate-sale/create-certificatesale.dto.d.ts +4 -0
- package/dist/certificate-sale/create-certificatesale.dto.js +24 -0
- package/dist/forms/widget/widget-client-form.dto.d.ts +2 -0
- package/dist/forms/widget/widget-client-form.dto.js +13 -1
- package/dist/invoice-express/connect-invoice-express.dto.d.ts +6 -0
- package/dist/invoice-express/connect-invoice-express.dto.js +40 -0
- package/dist/invoice-express/enum/invoice-express-document-status.enum.d.ts +5 -0
- package/dist/invoice-express/enum/invoice-express-document-status.enum.js +9 -0
- package/dist/invoice-express/enum/invoice-express-document-type.enum.d.ts +6 -0
- package/dist/invoice-express/enum/invoice-express-document-type.enum.js +10 -0
- package/dist/invoice-express/invoice-express-tax.ro.d.ts +6 -0
- package/dist/invoice-express/invoice-express-tax.ro.js +32 -0
- package/dist/invoice-express/invoice-express.ro.d.ts +9 -0
- package/dist/invoice-express/invoice-express.ro.js +42 -0
- package/dist/loyalty/loyalty-bonus.ro.d.ts +5 -0
- package/dist/loyalty/loyalty-bonus.ro.js +4 -0
- package/dist/openapi/certificates-v2/openapi-create-certificate-shop-sale.dto.d.ts +4 -0
- package/dist/openapi/certificates-v2/openapi-create-certificate-shop-sale.dto.js +24 -0
- package/dist/openapi/orders/openapi-create-preorder.dto.d.ts +4 -0
- package/dist/openapi/orders/openapi-create-preorder.dto.js +20 -0
- package/dist/openapi/widget/openapi-widget-info.ro.d.ts +6 -0
- package/dist/openapi/widget/openapi-widget-info.ro.js +5 -0
- package/dist/order/create-order.dto.d.ts +4 -0
- package/dist/order/create-order.dto.js +23 -0
- package/dist/order/order.ro.d.ts +8 -0
- package/dist/order/order.ro.js +32 -0
- package/dist/packages/create-package.dto.js +1 -1
- package/dist/packages/package-availability.dto.d.ts +13 -0
- package/dist/packages/package-availability.dto.js +27 -1
- package/dist/packages/package-availability.ro.d.ts +54 -5
- package/dist/packages/package-availability.ro.js +95 -2
- package/dist/player/player.ro.d.ts +7 -0
- package/dist/player/player.ro.js +24 -0
- package/dist/profile/profile.ro.d.ts +5 -1
- package/dist/profile/profile.ro.js +16 -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/transaction/transaction.ro.d.ts +3 -0
- package/dist/transaction/transaction.ro.js +12 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/crud/user.ro.d.ts +1 -0
- package/dist/user/crud/user.ro.js +5 -0
- package/dist/user/current/update-current-user-notifications.dto.d.ts +5 -0
- package/dist/user/current/update-current-user-notifications.dto.js +6 -0
- package/dist/widget/create-widget.dto.d.ts +2 -0
- package/dist/widget/create-widget.dto.js +9 -0
- package/dist/widget/enum/packages-widget-design.enum.d.ts +13 -0
- package/dist/widget/enum/packages-widget-design.enum.js +17 -0
- package/dist/widget/widget.ro.d.ts +6 -0
- package/package.json +2 -2
|
@@ -156,3 +156,27 @@ __decorate([
|
|
|
156
156
|
(0, class_transformer_1.Expose)(),
|
|
157
157
|
__metadata("design:type", String)
|
|
158
158
|
], CreateCertificatesaleDto.prototype, "sendingEmailUtcDate", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, class_validator_1.IsOptional)(),
|
|
161
|
+
(0, class_validator_1.IsBoolean)(),
|
|
162
|
+
(0, class_transformer_1.Expose)(),
|
|
163
|
+
__metadata("design:type", Boolean)
|
|
164
|
+
], CreateCertificatesaleDto.prototype, "billedAsCompany", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, class_validator_1.IsOptional)(),
|
|
167
|
+
(0, class_validator_1.IsString)(),
|
|
168
|
+
(0, class_transformer_1.Expose)(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], CreateCertificatesaleDto.prototype, "billingOrganizationName", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, class_validator_1.IsOptional)(),
|
|
173
|
+
(0, class_validator_1.IsString)(),
|
|
174
|
+
(0, class_transformer_1.Expose)(),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], CreateCertificatesaleDto.prototype, "billingTaxId", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, class_validator_1.IsOptional)(),
|
|
179
|
+
(0, class_validator_1.IsString)(),
|
|
180
|
+
(0, class_transformer_1.Expose)(),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], CreateCertificatesaleDto.prototype, "billingAddress", void 0);
|
|
@@ -80,10 +80,22 @@ __decorate([
|
|
|
80
80
|
__metadata("design:type", Boolean)
|
|
81
81
|
], WidgetClientFormDto.prototype, "asCompany", void 0);
|
|
82
82
|
__decorate([
|
|
83
|
-
(0, class_validator_1.
|
|
83
|
+
(0, class_validator_1.ValidateIf)((values) => values.asCompany),
|
|
84
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
84
85
|
(0, class_transformer_1.Expose)(),
|
|
85
86
|
__metadata("design:type", String)
|
|
86
87
|
], WidgetClientFormDto.prototype, "companyName", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.ValidateIf)((values) => values.asCompany),
|
|
90
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
91
|
+
(0, class_transformer_1.Expose)(),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], WidgetClientFormDto.prototype, "companyTaxId", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], WidgetClientFormDto.prototype, "companyAddress", void 0);
|
|
87
99
|
__decorate([
|
|
88
100
|
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
|
|
89
101
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
@@ -0,0 +1,40 @@
|
|
|
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.ConnectInvoiceExpressDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class ConnectInvoiceExpressDto {
|
|
16
|
+
}
|
|
17
|
+
exports.ConnectInvoiceExpressDto = ConnectInvoiceExpressDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], ConnectInvoiceExpressDto.prototype, "accountName", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ConnectInvoiceExpressDto.prototype, "apiKey", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ConnectInvoiceExpressDto.prototype, "taxName", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ConnectInvoiceExpressDto.prototype, "exemption", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceExpressDocumentStatusEnum = void 0;
|
|
4
|
+
var InvoiceExpressDocumentStatusEnum;
|
|
5
|
+
(function (InvoiceExpressDocumentStatusEnum) {
|
|
6
|
+
InvoiceExpressDocumentStatusEnum["PENDING"] = "pending";
|
|
7
|
+
InvoiceExpressDocumentStatusEnum["ISSUED"] = "issued";
|
|
8
|
+
InvoiceExpressDocumentStatusEnum["FAILED"] = "failed";
|
|
9
|
+
})(InvoiceExpressDocumentStatusEnum || (exports.InvoiceExpressDocumentStatusEnum = InvoiceExpressDocumentStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceExpressDocumentTypeEnum = void 0;
|
|
4
|
+
var InvoiceExpressDocumentTypeEnum;
|
|
5
|
+
(function (InvoiceExpressDocumentTypeEnum) {
|
|
6
|
+
InvoiceExpressDocumentTypeEnum["INVOICE_RECEIPT"] = "invoice_receipt";
|
|
7
|
+
InvoiceExpressDocumentTypeEnum["INVOICE"] = "invoice";
|
|
8
|
+
InvoiceExpressDocumentTypeEnum["RECEIPT"] = "receipt";
|
|
9
|
+
InvoiceExpressDocumentTypeEnum["CREDIT_NOTE"] = "credit_note";
|
|
10
|
+
})(InvoiceExpressDocumentTypeEnum || (exports.InvoiceExpressDocumentTypeEnum = InvoiceExpressDocumentTypeEnum = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
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.InvoiceExpressTaxRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
class InvoiceExpressTaxRO {
|
|
15
|
+
}
|
|
16
|
+
exports.InvoiceExpressTaxRO = InvoiceExpressTaxRO;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Expose)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], InvoiceExpressTaxRO.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], InvoiceExpressTaxRO.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], InvoiceExpressTaxRO.prototype, "value", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], InvoiceExpressTaxRO.prototype, "region", void 0);
|
|
@@ -0,0 +1,42 @@
|
|
|
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.InvoiceExpressRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const invoice_express_tax_ro_1 = require("./invoice-express-tax.ro");
|
|
15
|
+
class InvoiceExpressRO {
|
|
16
|
+
}
|
|
17
|
+
exports.InvoiceExpressRO = InvoiceExpressRO;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Boolean)
|
|
21
|
+
], InvoiceExpressRO.prototype, "connected", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], InvoiceExpressRO.prototype, "accountName", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], InvoiceExpressRO.prototype, "taxName", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], InvoiceExpressRO.prototype, "taxValue", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], InvoiceExpressRO.prototype, "exemption", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => invoice_express_tax_ro_1.InvoiceExpressTaxRO),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], InvoiceExpressRO.prototype, "taxes", void 0);
|
|
@@ -14,6 +14,11 @@ export declare class LoyaltyBonusRO extends RO {
|
|
|
14
14
|
balanceAfter: number;
|
|
15
15
|
orderId: number | null;
|
|
16
16
|
userId: number | null;
|
|
17
|
+
/**
|
|
18
|
+
* Снапшот имени автора на момент записи — как `log.userName`.
|
|
19
|
+
* Нужен, когда сотрудника уже нет в GET /users.
|
|
20
|
+
*/
|
|
21
|
+
userName: string | null;
|
|
17
22
|
comment: string;
|
|
18
23
|
/** Операция погашена: игру отменили или списание снял администратор. */
|
|
19
24
|
canceled: boolean;
|
|
@@ -45,6 +45,10 @@ __decorate([
|
|
|
45
45
|
(0, class_transformer_1.Expose)(),
|
|
46
46
|
__metadata("design:type", Number)
|
|
47
47
|
], LoyaltyBonusRO.prototype, "userId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], LoyaltyBonusRO.prototype, "userName", void 0);
|
|
48
52
|
__decorate([
|
|
49
53
|
(0, class_transformer_1.Expose)(),
|
|
50
54
|
__metadata("design:type", String)
|
|
@@ -61,4 +61,8 @@ export declare class OpenapiCreateCertificateShopSaleDto {
|
|
|
61
61
|
* (аналитика «чат → продажа» и авто-резолв чата после оплаты).
|
|
62
62
|
*/
|
|
63
63
|
conversationId?: number;
|
|
64
|
+
billedAsCompany?: boolean;
|
|
65
|
+
billingOrganizationName?: string;
|
|
66
|
+
billingTaxId?: string;
|
|
67
|
+
billingAddress?: string;
|
|
64
68
|
}
|
|
@@ -217,3 +217,27 @@ __decorate([
|
|
|
217
217
|
(0, class_transformer_1.Expose)(),
|
|
218
218
|
__metadata("design:type", Number)
|
|
219
219
|
], OpenapiCreateCertificateShopSaleDto.prototype, "conversationId", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, class_validator_1.IsOptional)(),
|
|
222
|
+
(0, class_validator_1.IsBoolean)(),
|
|
223
|
+
(0, class_transformer_1.Expose)(),
|
|
224
|
+
__metadata("design:type", Boolean)
|
|
225
|
+
], OpenapiCreateCertificateShopSaleDto.prototype, "billedAsCompany", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, class_validator_1.IsOptional)(),
|
|
228
|
+
(0, class_validator_1.IsString)(),
|
|
229
|
+
(0, class_transformer_1.Expose)(),
|
|
230
|
+
__metadata("design:type", String)
|
|
231
|
+
], OpenapiCreateCertificateShopSaleDto.prototype, "billingOrganizationName", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, class_validator_1.IsOptional)(),
|
|
234
|
+
(0, class_validator_1.IsString)(),
|
|
235
|
+
(0, class_transformer_1.Expose)(),
|
|
236
|
+
__metadata("design:type", String)
|
|
237
|
+
], OpenapiCreateCertificateShopSaleDto.prototype, "billingTaxId", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
(0, class_validator_1.IsOptional)(),
|
|
240
|
+
(0, class_validator_1.IsString)(),
|
|
241
|
+
(0, class_transformer_1.Expose)(),
|
|
242
|
+
__metadata("design:type", String)
|
|
243
|
+
], OpenapiCreateCertificateShopSaleDto.prototype, "billingAddress", void 0);
|
|
@@ -41,6 +41,10 @@ export declare class OpenapiCreatePreorderDto extends ClientFormDto {
|
|
|
41
41
|
duration?: number;
|
|
42
42
|
widgetUid: string;
|
|
43
43
|
comment: string;
|
|
44
|
+
billedAsCompany?: boolean;
|
|
45
|
+
billingOrganizationName?: string;
|
|
46
|
+
billingTaxId?: string;
|
|
47
|
+
billingAddress?: string;
|
|
44
48
|
language: Languages;
|
|
45
49
|
upsellingIds?: any;
|
|
46
50
|
upsellings: Array<{
|
|
@@ -147,6 +147,26 @@ __decorate([
|
|
|
147
147
|
(0, class_validator_1.MaxLength)(500),
|
|
148
148
|
__metadata("design:type", String)
|
|
149
149
|
], OpenapiCreatePreorderDto.prototype, "comment", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, class_validator_1.IsOptional)(),
|
|
152
|
+
(0, class_transformer_1.Expose)(),
|
|
153
|
+
__metadata("design:type", Boolean)
|
|
154
|
+
], OpenapiCreatePreorderDto.prototype, "billedAsCompany", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, class_validator_1.IsOptional)(),
|
|
157
|
+
(0, class_transformer_1.Expose)(),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], OpenapiCreatePreorderDto.prototype, "billingOrganizationName", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, class_validator_1.IsOptional)(),
|
|
162
|
+
(0, class_transformer_1.Expose)(),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], OpenapiCreatePreorderDto.prototype, "billingTaxId", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, class_validator_1.IsOptional)(),
|
|
167
|
+
(0, class_transformer_1.Expose)(),
|
|
168
|
+
__metadata("design:type", String)
|
|
169
|
+
], OpenapiCreatePreorderDto.prototype, "billingAddress", void 0);
|
|
150
170
|
__decorate([
|
|
151
171
|
(0, class_validator_1.IsOptional)(),
|
|
152
172
|
(0, class_transformer_1.Expose)(),
|
|
@@ -5,6 +5,7 @@ import { WidgetStyleEnum } from '../../profile/widget-customization/enum/widget-
|
|
|
5
5
|
import { WidgetViewEnum } from '../../profile/widget-customization/enum/widget-view.enum';
|
|
6
6
|
import { CountriesEnum } from '../../shared/enum/countries.enum';
|
|
7
7
|
import { Languages } from '../../shared/enum/languages.enum';
|
|
8
|
+
import { PackagesWidgetDesignEnum } from '../../widget/enum/packages-widget-design.enum';
|
|
8
9
|
import { WidgetBookingFiledEnum } from '../../widget/enum/widget-booking-filed.enum';
|
|
9
10
|
import { WidgetConsentModeEnum } from '../../widget/enum/widget-consent-mode.enum';
|
|
10
11
|
import { WidgetTypeEnum } from '../../widget/enum/widget-type.enum';
|
|
@@ -69,6 +70,11 @@ export declare class OpenapiWidgetInfoRO {
|
|
|
69
70
|
* скрывает шаг выбора дизайна (остаются номиналы и способы доставки).
|
|
70
71
|
*/
|
|
71
72
|
certificateDesignId?: number | null;
|
|
73
|
+
/**
|
|
74
|
+
* Оформление витрины пакетов. Старые виджеты без поля читаются как
|
|
75
|
+
* `classic` на клиенте.
|
|
76
|
+
*/
|
|
77
|
+
packagesDesign?: PackagesWidgetDesignEnum;
|
|
72
78
|
profile: Profile;
|
|
73
79
|
ga4Id?: string;
|
|
74
80
|
gaCoversationId?: string;
|
|
@@ -20,6 +20,7 @@ const widget_style_enum_1 = require("../../profile/widget-customization/enum/wid
|
|
|
20
20
|
const widget_view_enum_1 = require("../../profile/widget-customization/enum/widget-view.enum");
|
|
21
21
|
const countries_enum_1 = require("../../shared/enum/countries.enum");
|
|
22
22
|
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
23
|
+
const packages_widget_design_enum_1 = require("../../widget/enum/packages-widget-design.enum");
|
|
23
24
|
const widget_consent_mode_enum_1 = require("../../widget/enum/widget-consent-mode.enum");
|
|
24
25
|
const widget_type_enum_1 = require("../../widget/enum/widget-type.enum");
|
|
25
26
|
const openapi_certificates_shop_ro_1 = require("../certificates-v2/openapi-certificates-shop.ro");
|
|
@@ -192,6 +193,10 @@ __decorate([
|
|
|
192
193
|
(0, class_transformer_1.Expose)(),
|
|
193
194
|
__metadata("design:type", Number)
|
|
194
195
|
], OpenapiWidgetInfoRO.prototype, "certificateDesignId", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, class_transformer_1.Expose)(),
|
|
198
|
+
__metadata("design:type", String)
|
|
199
|
+
], OpenapiWidgetInfoRO.prototype, "packagesDesign", void 0);
|
|
195
200
|
__decorate([
|
|
196
201
|
(0, class_transformer_1.Expose)(),
|
|
197
202
|
(0, class_transformer_1.Type)(() => Profile),
|
|
@@ -24,6 +24,10 @@ export declare class CreateOrderDto {
|
|
|
24
24
|
clientId: number;
|
|
25
25
|
language?: Languages;
|
|
26
26
|
comment?: string;
|
|
27
|
+
billedAsCompany?: boolean;
|
|
28
|
+
billingOrganizationName?: string;
|
|
29
|
+
billingTaxId?: string;
|
|
30
|
+
billingAddress?: string;
|
|
27
31
|
variationHint?: string;
|
|
28
32
|
/**
|
|
29
33
|
* dealAddMode: id «якорного» ордера, к группе которого нужно
|
|
@@ -100,6 +100,29 @@ __decorate([
|
|
|
100
100
|
(0, class_transformer_1.Expose)(),
|
|
101
101
|
__metadata("design:type", String)
|
|
102
102
|
], CreateOrderDto.prototype, "comment", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
|
+
(0, class_transformer_1.Expose)(),
|
|
106
|
+
__metadata("design:type", Boolean)
|
|
107
|
+
], CreateOrderDto.prototype, "billedAsCompany", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, class_validator_1.IsOptional)(),
|
|
110
|
+
(0, class_validator_1.IsString)(),
|
|
111
|
+
(0, class_transformer_1.Expose)(),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], CreateOrderDto.prototype, "billingOrganizationName", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, class_validator_1.IsOptional)(),
|
|
116
|
+
(0, class_validator_1.IsString)(),
|
|
117
|
+
(0, class_transformer_1.Expose)(),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], CreateOrderDto.prototype, "billingTaxId", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, class_validator_1.IsOptional)(),
|
|
122
|
+
(0, class_validator_1.IsString)(),
|
|
123
|
+
(0, class_transformer_1.Expose)(),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], CreateOrderDto.prototype, "billingAddress", void 0);
|
|
103
126
|
__decorate([
|
|
104
127
|
(0, class_validator_1.IsOptional)(),
|
|
105
128
|
(0, class_validator_1.IsString)(),
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -134,6 +134,10 @@ export declare class Transactions extends RO {
|
|
|
134
134
|
includedIncrease: number;
|
|
135
135
|
userId: number;
|
|
136
136
|
invoiceLink?: string;
|
|
137
|
+
invoiceNumber?: string;
|
|
138
|
+
fiscalStatus?: string;
|
|
139
|
+
fiscalError?: string;
|
|
140
|
+
fiscalType?: string;
|
|
137
141
|
}
|
|
138
142
|
declare class CustomFiled {
|
|
139
143
|
title: string;
|
|
@@ -262,6 +266,10 @@ export declare class OrderRO extends RO {
|
|
|
262
266
|
result: number;
|
|
263
267
|
resultRating: number;
|
|
264
268
|
comment: string;
|
|
269
|
+
billedAsCompany?: boolean;
|
|
270
|
+
billingOrganizationName?: string;
|
|
271
|
+
billingTaxId?: string;
|
|
272
|
+
billingAddress?: string;
|
|
265
273
|
photos: string[];
|
|
266
274
|
source: SourceEnum;
|
|
267
275
|
client: ClientRO;
|
package/dist/order/order.ro.js
CHANGED
|
@@ -354,6 +354,22 @@ __decorate([
|
|
|
354
354
|
(0, class_transformer_1.Expose)(),
|
|
355
355
|
__metadata("design:type", String)
|
|
356
356
|
], Transactions.prototype, "invoiceLink", void 0);
|
|
357
|
+
__decorate([
|
|
358
|
+
(0, class_transformer_1.Expose)(),
|
|
359
|
+
__metadata("design:type", String)
|
|
360
|
+
], Transactions.prototype, "invoiceNumber", void 0);
|
|
361
|
+
__decorate([
|
|
362
|
+
(0, class_transformer_1.Expose)(),
|
|
363
|
+
__metadata("design:type", String)
|
|
364
|
+
], Transactions.prototype, "fiscalStatus", void 0);
|
|
365
|
+
__decorate([
|
|
366
|
+
(0, class_transformer_1.Expose)(),
|
|
367
|
+
__metadata("design:type", String)
|
|
368
|
+
], Transactions.prototype, "fiscalError", void 0);
|
|
369
|
+
__decorate([
|
|
370
|
+
(0, class_transformer_1.Expose)(),
|
|
371
|
+
__metadata("design:type", String)
|
|
372
|
+
], Transactions.prototype, "fiscalType", void 0);
|
|
357
373
|
class CustomFiled {
|
|
358
374
|
}
|
|
359
375
|
__decorate([
|
|
@@ -593,6 +609,22 @@ __decorate([
|
|
|
593
609
|
(0, class_transformer_1.Expose)(),
|
|
594
610
|
__metadata("design:type", String)
|
|
595
611
|
], OrderRO.prototype, "comment", void 0);
|
|
612
|
+
__decorate([
|
|
613
|
+
(0, class_transformer_1.Expose)(),
|
|
614
|
+
__metadata("design:type", Boolean)
|
|
615
|
+
], OrderRO.prototype, "billedAsCompany", void 0);
|
|
616
|
+
__decorate([
|
|
617
|
+
(0, class_transformer_1.Expose)(),
|
|
618
|
+
__metadata("design:type", String)
|
|
619
|
+
], OrderRO.prototype, "billingOrganizationName", void 0);
|
|
620
|
+
__decorate([
|
|
621
|
+
(0, class_transformer_1.Expose)(),
|
|
622
|
+
__metadata("design:type", String)
|
|
623
|
+
], OrderRO.prototype, "billingTaxId", void 0);
|
|
624
|
+
__decorate([
|
|
625
|
+
(0, class_transformer_1.Expose)(),
|
|
626
|
+
__metadata("design:type", String)
|
|
627
|
+
], OrderRO.prototype, "billingAddress", void 0);
|
|
596
628
|
__decorate([
|
|
597
629
|
(0, class_transformer_1.Expose)(),
|
|
598
630
|
__metadata("design:type", Array)
|
|
@@ -82,7 +82,7 @@ __decorate([
|
|
|
82
82
|
], CreatePackageDto.prototype, "features", void 0);
|
|
83
83
|
__decorate([
|
|
84
84
|
(0, class_validator_1.IsBoolean)(),
|
|
85
|
-
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value :
|
|
85
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
|
|
86
86
|
(0, class_transformer_1.Expose)(),
|
|
87
87
|
__metadata("design:type", Boolean)
|
|
88
88
|
], CreatePackageDto.prototype, "availableInWidget", void 0);
|
|
@@ -11,3 +11,16 @@ export declare class PackageAvailabilityQueryDto {
|
|
|
11
11
|
/** Игроки по позициям (для perPosition / ручного сплита). */
|
|
12
12
|
playersByPosition?: PackagePlayersByPositionDto[];
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Доступность на диапазон дат — питает подсветку календаря и открытие
|
|
16
|
+
* конфигуратора на ближайшей рабочей дате. Отдаёт только «есть/нет» на день:
|
|
17
|
+
* полные варианты грузятся отдельным запросом при выборе конкретной даты.
|
|
18
|
+
*/
|
|
19
|
+
export declare class PackageRangeAvailabilityQueryDto {
|
|
20
|
+
/** Начало диапазона (yyyy-MM-dd). */
|
|
21
|
+
from: string;
|
|
22
|
+
/** Конец диапазона включительно (yyyy-MM-dd). */
|
|
23
|
+
to: string;
|
|
24
|
+
/** Общее число игроков (для capacityModel=shared). */
|
|
25
|
+
players?: number;
|
|
26
|
+
}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PackageAvailabilityQueryDto = exports.PackagePlayersByPositionDto = void 0;
|
|
12
|
+
exports.PackageRangeAvailabilityQueryDto = exports.PackageAvailabilityQueryDto = exports.PackagePlayersByPositionDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
/** Явное распределение игроков по позициям (для splitMode=manual / perPosition). */
|
|
@@ -52,3 +52,29 @@ __decorate([
|
|
|
52
52
|
(0, class_transformer_1.Expose)(),
|
|
53
53
|
__metadata("design:type", Array)
|
|
54
54
|
], PackageAvailabilityQueryDto.prototype, "playersByPosition", void 0);
|
|
55
|
+
/**
|
|
56
|
+
* Доступность на диапазон дат — питает подсветку календаря и открытие
|
|
57
|
+
* конфигуратора на ближайшей рабочей дате. Отдаёт только «есть/нет» на день:
|
|
58
|
+
* полные варианты грузятся отдельным запросом при выборе конкретной даты.
|
|
59
|
+
*/
|
|
60
|
+
class PackageRangeAvailabilityQueryDto {
|
|
61
|
+
}
|
|
62
|
+
exports.PackageRangeAvailabilityQueryDto = PackageRangeAvailabilityQueryDto;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], PackageRangeAvailabilityQueryDto.prototype, "from", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], PackageRangeAvailabilityQueryDto.prototype, "to", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
(0, class_validator_1.IsInt)(),
|
|
76
|
+
(0, class_validator_1.Min)(0),
|
|
77
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined || value === null ? 0 : +value)),
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], PackageRangeAvailabilityQueryDto.prototype, "players", void 0);
|