@escapenavigator/types 1.8.5 → 1.8.7
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/agregator/agregator-city.ro.js +2 -1
- package/dist/certificate-sale/certificate-sale.ro.d.ts +7 -0
- package/dist/certificate-sale/certificate-sale.ro.js +23 -0
- package/dist/certificate-sale/promocode/certificate-promocode.ro.d.ts +8 -0
- package/dist/certificate-sale/promocode/certificate-promocode.ro.js +2 -0
- package/dist/certificate-sale/promocode/create-certificate-promocode.dto.d.ts +4 -0
- package/dist/certificate-sale/promocode/create-certificate-promocode.dto.js +27 -0
- package/dist/client/client-form.dto.d.ts +1 -1
- package/dist/client/client-form.dto.js +4 -4
- package/dist/forms/widget/widget-client-form.dto.d.ts +3 -0
- package/dist/forms/widget/widget-client-form.dto.js +17 -0
- package/dist/log/log-title.enum.d.ts +3 -1
- package/dist/log/log-title.enum.js +2 -0
- package/dist/openapi/certificates/openapi-certificate-sale.ro.d.ts +2 -0
- package/dist/openapi/certificates/openapi-certificate-sale.ro.js +6 -0
- package/dist/openapi/orders/openapi-order.ro.d.ts +2 -2
- package/dist/openapi/orders/openapi-order.ro.js +2 -2
- package/dist/openapi/shared/openapi-order-transaction.ro.d.ts +1 -0
- package/dist/openapi/shared/openapi-order-transaction.ro.js +4 -0
- package/dist/openapi/{orders → shared}/openapi-promocode-apply.dto.d.ts +1 -1
- package/dist/openapi/{orders → shared}/openapi-promocode-apply.dto.js +1 -1
- package/dist/openapi/{orders → shared}/openapi-promocode-remove.dto.d.ts +1 -1
- package/dist/openapi/{orders → shared}/openapi-promocode-remove.dto.js +1 -1
- package/dist/openapi/shared/{openapi-order-promocode.ro.d.ts → openapi-promocode.ro.d.ts} +1 -1
- package/dist/openapi/shared/{openapi-order-promocode.ro.js → openapi-promocode.ro.js} +7 -7
- package/dist/order/order.ro.d.ts +2 -0
- package/dist/order/order.ro.js +8 -0
- package/dist/profile/enum/profile-tag.enum.d.ts +2 -1
- package/dist/profile/enum/profile-tag.enum.js +1 -0
- package/dist/profile/profile.ro.d.ts +1 -0
- package/dist/profile/profile.ro.js +4 -0
- package/dist/profile/update-current-ga.dto.d.ts +0 -6
- package/dist/profile/update-current-ga.dto.js +0 -26
- package/dist/profile/update-current.dto.d.ts +1 -0
- package/dist/profile/update-current.dto.js +6 -0
- package/dist/promocode/create-promocode.dto.d.ts +2 -0
- package/dist/promocode/create-promocode.dto.js +12 -0
- package/dist/promocode/promocode.ro.d.ts +2 -0
- package/dist/promocode/promocode.ro.js +8 -0
- package/dist/slot/update-breaks.dto.js +2 -0
- package/dist/statistics/general.d.ts +8 -0
- package/dist/transaction/transaction.ro.d.ts +1 -1
- package/dist/transaction/transaction.ro.js +4 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -61,9 +61,10 @@ __decorate([
|
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, class_transformer_1.Expose)(),
|
|
63
63
|
(0, class_transformer_1.Transform)(({ value }) => {
|
|
64
|
+
var _a;
|
|
64
65
|
if (typeof value === 'object')
|
|
65
66
|
return value.coordinates;
|
|
66
|
-
return value.slice(1, -1).split(',');
|
|
67
|
+
return ((_a = value === null || value === void 0 ? void 0 : value.slice(1, -1)) === null || _a === void 0 ? void 0 : _a.split(',')) || [];
|
|
67
68
|
}),
|
|
68
69
|
__metadata("design:type", Array)
|
|
69
70
|
], AgregatorCityRO.prototype, "coordinates", void 0);
|
|
@@ -6,6 +6,12 @@ import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-deliver
|
|
|
6
6
|
declare class Order extends RO {
|
|
7
7
|
orderId: number;
|
|
8
8
|
}
|
|
9
|
+
declare class Promocodes extends RO {
|
|
10
|
+
amount: number;
|
|
11
|
+
code: string;
|
|
12
|
+
userId: number;
|
|
13
|
+
canUseWithOtherPromocodes: boolean;
|
|
14
|
+
}
|
|
9
15
|
declare class Certificate {
|
|
10
16
|
title: string;
|
|
11
17
|
allQuestrooms: boolean;
|
|
@@ -43,6 +49,7 @@ export declare class CertificateSaleRO extends RO {
|
|
|
43
49
|
toPay: number;
|
|
44
50
|
order: Order;
|
|
45
51
|
client: ClientRO;
|
|
52
|
+
promocodes: Promocodes[];
|
|
46
53
|
discounts: Discounts[];
|
|
47
54
|
transactions: Transactions[];
|
|
48
55
|
}
|
|
@@ -23,6 +23,24 @@ __decorate([
|
|
|
23
23
|
(0, class_transformer_1.Expose)(),
|
|
24
24
|
__metadata("design:type", Number)
|
|
25
25
|
], Order.prototype, "orderId", void 0);
|
|
26
|
+
class Promocodes extends ro_class_1.RO {
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], Promocodes.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Promocodes.prototype, "code", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], Promocodes.prototype, "userId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], Promocodes.prototype, "canUseWithOtherPromocodes", void 0);
|
|
26
44
|
class Certificate {
|
|
27
45
|
}
|
|
28
46
|
__decorate([
|
|
@@ -178,6 +196,11 @@ __decorate([
|
|
|
178
196
|
(0, class_transformer_1.Type)(() => client_ro_1.ClientRO),
|
|
179
197
|
__metadata("design:type", client_ro_1.ClientRO)
|
|
180
198
|
], CertificateSaleRO.prototype, "client", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, class_transformer_1.Expose)(),
|
|
201
|
+
(0, class_transformer_1.Type)(() => Promocodes),
|
|
202
|
+
__metadata("design:type", Array)
|
|
203
|
+
], CertificateSaleRO.prototype, "promocodes", void 0);
|
|
181
204
|
__decorate([
|
|
182
205
|
(0, class_transformer_1.Expose)(),
|
|
183
206
|
(0, class_transformer_1.Type)(() => order_ro_1.Discounts),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ResponseObject } from '../../shared/ro';
|
|
2
|
+
import { CertificateSaleRO } from '../certificate-sale.ro';
|
|
3
|
+
export declare type CertificatePromocodeRO = ResponseObject & {
|
|
4
|
+
amount: number;
|
|
5
|
+
code: string;
|
|
6
|
+
promocodeId: number;
|
|
7
|
+
certificatesale: CertificateSaleRO;
|
|
8
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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.CreateCertificatePromocodeDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateCertificatePromocodeDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], CreateCertificatePromocodeDto.prototype, "certificateId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateCertificatePromocodeDto.prototype, "code", void 0);
|
|
27
|
+
exports.CreateCertificatePromocodeDto = CreateCertificatePromocodeDto;
|
|
@@ -35,17 +35,17 @@ __decorate([
|
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], ClientFormDto.prototype, "email", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.
|
|
38
|
+
(0, class_validator_1.ValidateIf)(({ fields, clientType }) => clientType === client_type_enum_1.ClientTypeEnum.MINOR || fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.BIRTHDAY)),
|
|
39
39
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
40
40
|
(0, class_transformer_1.Expose)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
], ClientFormDto.prototype, "
|
|
42
|
+
], ClientFormDto.prototype, "birthday", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, class_validator_1.ValidateIf)(({ fields
|
|
44
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.NAME)),
|
|
45
45
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
46
46
|
(0, class_transformer_1.Expose)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
|
-
], ClientFormDto.prototype, "
|
|
48
|
+
], ClientFormDto.prototype, "name", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.SURNAME)),
|
|
51
51
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
@@ -3,9 +3,12 @@ export declare class WidgetClientFormDto {
|
|
|
3
3
|
fields: WidgetBookingFiledEnum[];
|
|
4
4
|
name: string;
|
|
5
5
|
surname: string;
|
|
6
|
+
birthday: string;
|
|
6
7
|
email: string;
|
|
7
8
|
phone: string;
|
|
8
9
|
address: string;
|
|
10
|
+
asCompany: boolean;
|
|
11
|
+
companyName: string;
|
|
9
12
|
postcode: string;
|
|
10
13
|
city: string;
|
|
11
14
|
sendAds: boolean;
|
|
@@ -34,6 +34,13 @@ __decorate([
|
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], WidgetClientFormDto.prototype, "surname", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.BIRTHDAY)),
|
|
38
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], WidgetClientFormDto.prototype, "birthday", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.EMAIL)),
|
|
37
44
|
(0, class_validator_1.IsEmail)(),
|
|
38
45
|
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
39
46
|
(0, class_transformer_1.Expose)(),
|
|
@@ -51,6 +58,16 @@ __decorate([
|
|
|
51
58
|
(0, class_transformer_1.Expose)(),
|
|
52
59
|
__metadata("design:type", String)
|
|
53
60
|
], WidgetClientFormDto.prototype, "address", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], WidgetClientFormDto.prototype, "asCompany", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_transformer_1.Expose)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], WidgetClientFormDto.prototype, "companyName", void 0);
|
|
54
71
|
__decorate([
|
|
55
72
|
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
|
|
56
73
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
@@ -28,5 +28,7 @@ export declare enum LogTitleEnum {
|
|
|
28
28
|
updateDeliveryInfo = "updateDeliveryInfo",
|
|
29
29
|
/** платежи */
|
|
30
30
|
createTransaction = "createTransaction",
|
|
31
|
-
createRefund = "createRefund"
|
|
31
|
+
createRefund = "createRefund",
|
|
32
|
+
recoverTransaction = "recoverTransaction",
|
|
33
|
+
removeTransaction = "removeTransaction"
|
|
32
34
|
}
|
|
@@ -33,4 +33,6 @@ var LogTitleEnum;
|
|
|
33
33
|
/** платежи */
|
|
34
34
|
LogTitleEnum["createTransaction"] = "createTransaction";
|
|
35
35
|
LogTitleEnum["createRefund"] = "createRefund";
|
|
36
|
+
LogTitleEnum["recoverTransaction"] = "recoverTransaction";
|
|
37
|
+
LogTitleEnum["removeTransaction"] = "removeTransaction";
|
|
36
38
|
})(LogTitleEnum = exports.LogTitleEnum || (exports.LogTitleEnum = {}));
|
|
@@ -3,6 +3,7 @@ import { ProfileCurrencyEnum } from '../../profile/enum/profile-currency';
|
|
|
3
3
|
import { RO } from '../../shared/ro-class';
|
|
4
4
|
import { OpenapiClientRO } from '../shared/openapi-client.ro';
|
|
5
5
|
import { OpenapiOrderTransactionRO } from '../shared/openapi-order-transaction.ro';
|
|
6
|
+
import { OpenapiPromocodeRO } from '../shared/openapi-promocode.ro';
|
|
6
7
|
import { OpenapiCertificateTemplateRO } from './openapi-certificate-template.ro';
|
|
7
8
|
declare class Order extends RO {
|
|
8
9
|
orderId: number;
|
|
@@ -15,6 +16,7 @@ export declare class OpenapiCertificateSaleRO {
|
|
|
15
16
|
sended: boolean;
|
|
16
17
|
certificateId: number;
|
|
17
18
|
certificate: OpenapiCertificateTemplateRO;
|
|
19
|
+
promocodes: OpenapiPromocodeRO[];
|
|
18
20
|
transactions: OpenapiOrderTransactionRO[];
|
|
19
21
|
extraPrice: number;
|
|
20
22
|
client: OpenapiClientRO;
|
|
@@ -18,6 +18,7 @@ const ro_class_1 = require("../../shared/ro-class");
|
|
|
18
18
|
const transaction_type_enum_1 = require("../../transaction/enum/transaction-type.enum");
|
|
19
19
|
const openapi_client_ro_1 = require("../shared/openapi-client.ro");
|
|
20
20
|
const openapi_order_transaction_ro_1 = require("../shared/openapi-order-transaction.ro");
|
|
21
|
+
const openapi_promocode_ro_1 = require("../shared/openapi-promocode.ro");
|
|
21
22
|
const openapi_certificate_template_ro_1 = require("./openapi-certificate-template.ro");
|
|
22
23
|
class Order extends ro_class_1.RO {
|
|
23
24
|
}
|
|
@@ -57,6 +58,11 @@ __decorate([
|
|
|
57
58
|
(0, class_transformer_1.Type)(() => openapi_certificate_template_ro_1.OpenapiCertificateTemplateRO),
|
|
58
59
|
__metadata("design:type", openapi_certificate_template_ro_1.OpenapiCertificateTemplateRO)
|
|
59
60
|
], OpenapiCertificateSaleRO.prototype, "certificate", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
(0, class_transformer_1.Type)(() => openapi_promocode_ro_1.OpenapiPromocodeRO),
|
|
64
|
+
__metadata("design:type", Array)
|
|
65
|
+
], OpenapiCertificateSaleRO.prototype, "promocodes", void 0);
|
|
60
66
|
__decorate([
|
|
61
67
|
(0, class_transformer_1.Expose)(),
|
|
62
68
|
(0, class_transformer_1.Transform)((data) => {
|
|
@@ -4,9 +4,9 @@ import { QuestroomCancelationTypeEnum } from '../../questroom/enum/questroom-can
|
|
|
4
4
|
import { Languages } from '../../shared/enum/languages.enum';
|
|
5
5
|
import { OpenapiClientRO } from '../shared/openapi-client.ro';
|
|
6
6
|
import { OpenapiOrderCertificateRO } from '../shared/openapi-order-certificate.ro';
|
|
7
|
-
import { OpenapiOrderPromocodeRO } from '../shared/openapi-order-promocode.ro';
|
|
8
7
|
import { OpenapiOrderTransactionRO } from '../shared/openapi-order-transaction.ro';
|
|
9
8
|
import { OpenapiOrderUpsellingRO } from '../shared/openapi-order-upselling.ro';
|
|
9
|
+
import { OpenapiPromocodeRO } from '../shared/openapi-promocode.ro';
|
|
10
10
|
import { QuestroomRow } from '../shared/openapi-questroom.ro';
|
|
11
11
|
import { OpenapiTariffRO } from '../shared/openapi-tariff.ro';
|
|
12
12
|
declare class Discount {
|
|
@@ -50,7 +50,7 @@ export declare class OpenapiOrderRO extends QuestroomRow {
|
|
|
50
50
|
discounts: Discount[];
|
|
51
51
|
upsellings: OpenapiOrderUpsellingRO[];
|
|
52
52
|
certificates: OpenapiOrderCertificateRO[];
|
|
53
|
-
promocodes:
|
|
53
|
+
promocodes: OpenapiPromocodeRO[];
|
|
54
54
|
transactions: OpenapiOrderTransactionRO[];
|
|
55
55
|
initialPayment?: OpenapiOrderTransactionRO;
|
|
56
56
|
}
|
|
@@ -19,9 +19,9 @@ const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
|
19
19
|
const transaction_type_enum_1 = require("../../transaction/enum/transaction-type.enum");
|
|
20
20
|
const openapi_client_ro_1 = require("../shared/openapi-client.ro");
|
|
21
21
|
const openapi_order_certificate_ro_1 = require("../shared/openapi-order-certificate.ro");
|
|
22
|
-
const openapi_order_promocode_ro_1 = require("../shared/openapi-order-promocode.ro");
|
|
23
22
|
const openapi_order_transaction_ro_1 = require("../shared/openapi-order-transaction.ro");
|
|
24
23
|
const openapi_order_upselling_ro_1 = require("../shared/openapi-order-upselling.ro");
|
|
24
|
+
const openapi_promocode_ro_1 = require("../shared/openapi-promocode.ro");
|
|
25
25
|
const openapi_questroom_ro_1 = require("../shared/openapi-questroom.ro");
|
|
26
26
|
const openapi_tariff_ro_1 = require("../shared/openapi-tariff.ro");
|
|
27
27
|
class Discount {
|
|
@@ -172,7 +172,7 @@ __decorate([
|
|
|
172
172
|
], OpenapiOrderRO.prototype, "certificates", void 0);
|
|
173
173
|
__decorate([
|
|
174
174
|
(0, class_transformer_1.Expose)(),
|
|
175
|
-
(0, class_transformer_1.Type)(() =>
|
|
175
|
+
(0, class_transformer_1.Type)(() => openapi_promocode_ro_1.OpenapiPromocodeRO),
|
|
176
176
|
__metadata("design:type", Array)
|
|
177
177
|
], OpenapiOrderRO.prototype, "promocodes", void 0);
|
|
178
178
|
__decorate([
|
|
@@ -27,6 +27,10 @@ __decorate([
|
|
|
27
27
|
(0, class_transformer_1.Expose)(),
|
|
28
28
|
__metadata("design:type", Number)
|
|
29
29
|
], OpenapiOrderTransactionRO.prototype, "amount", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], OpenapiOrderTransactionRO.prototype, "deleted", void 0);
|
|
30
34
|
__decorate([
|
|
31
35
|
(0, class_transformer_1.Expose)(),
|
|
32
36
|
__metadata("design:type", String)
|
|
@@ -20,5 +20,5 @@ __decorate([
|
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
], OpenapiPromocodeApplyDto.prototype, "
|
|
23
|
+
], OpenapiPromocodeApplyDto.prototype, "token", void 0);
|
|
24
24
|
exports.OpenapiPromocodeApplyDto = OpenapiPromocodeApplyDto;
|
|
@@ -23,5 +23,5 @@ __decorate([
|
|
|
23
23
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
|
-
], OpenapiPromocodeRemoveDto.prototype, "
|
|
26
|
+
], OpenapiPromocodeRemoveDto.prototype, "token", void 0);
|
|
27
27
|
exports.OpenapiPromocodeRemoveDto = OpenapiPromocodeRemoveDto;
|
|
@@ -9,24 +9,24 @@ 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.
|
|
12
|
+
exports.OpenapiPromocodeRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
class
|
|
14
|
+
class OpenapiPromocodeRO {
|
|
15
15
|
}
|
|
16
16
|
__decorate([
|
|
17
17
|
(0, class_transformer_1.Expose)(),
|
|
18
18
|
__metadata("design:type", Number)
|
|
19
|
-
],
|
|
19
|
+
], OpenapiPromocodeRO.prototype, "id", void 0);
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", Date)
|
|
23
|
-
],
|
|
23
|
+
], OpenapiPromocodeRO.prototype, "createdAt", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
|
-
],
|
|
27
|
+
], OpenapiPromocodeRO.prototype, "amount", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_transformer_1.Expose)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
32
|
-
exports.
|
|
31
|
+
], OpenapiPromocodeRO.prototype, "code", void 0);
|
|
32
|
+
exports.OpenapiPromocodeRO = OpenapiPromocodeRO;
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export declare class Discounts extends RO {
|
|
|
37
37
|
}
|
|
38
38
|
declare class Promocodes extends RO {
|
|
39
39
|
amount: number;
|
|
40
|
+
canUseWithOtherPromocodes: boolean;
|
|
40
41
|
code: string;
|
|
41
42
|
userId: number;
|
|
42
43
|
}
|
|
@@ -66,6 +67,7 @@ export declare class Transactions extends RO {
|
|
|
66
67
|
type: TransactionTypeEnum;
|
|
67
68
|
provider: TransactionSourceEnum;
|
|
68
69
|
cashboxId: number;
|
|
70
|
+
deleted: boolean;
|
|
69
71
|
paymentId: string;
|
|
70
72
|
comment: string;
|
|
71
73
|
amount: number;
|
package/dist/order/order.ro.js
CHANGED
|
@@ -114,6 +114,10 @@ __decorate([
|
|
|
114
114
|
(0, class_transformer_1.Expose)(),
|
|
115
115
|
__metadata("design:type", Number)
|
|
116
116
|
], Promocodes.prototype, "amount", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_transformer_1.Expose)(),
|
|
119
|
+
__metadata("design:type", Boolean)
|
|
120
|
+
], Promocodes.prototype, "canUseWithOtherPromocodes", void 0);
|
|
117
121
|
__decorate([
|
|
118
122
|
(0, class_transformer_1.Expose)(),
|
|
119
123
|
__metadata("design:type", String)
|
|
@@ -201,6 +205,10 @@ __decorate([
|
|
|
201
205
|
(0, class_transformer_1.Expose)(),
|
|
202
206
|
__metadata("design:type", Number)
|
|
203
207
|
], Transactions.prototype, "cashboxId", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, class_transformer_1.Expose)(),
|
|
210
|
+
__metadata("design:type", Boolean)
|
|
211
|
+
], Transactions.prototype, "deleted", void 0);
|
|
204
212
|
__decorate([
|
|
205
213
|
(0, class_transformer_1.Expose)(),
|
|
206
214
|
__metadata("design:type", String)
|
|
@@ -138,4 +138,8 @@ __decorate([
|
|
|
138
138
|
(0, class_transformer_1.Expose)(),
|
|
139
139
|
__metadata("design:type", Array)
|
|
140
140
|
], ProfileRO.prototype, "bookingFields", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_transformer_1.Expose)(),
|
|
143
|
+
__metadata("design:type", Array)
|
|
144
|
+
], ProfileRO.prototype, "adminBookingFields", void 0);
|
|
141
145
|
exports.ProfileRO = ProfileRO;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
|
|
2
1
|
import { UpdateCurrentBaseDto } from './update-current-base.dto';
|
|
3
2
|
export declare class UpdateCurrentGaDto extends UpdateCurrentBaseDto {
|
|
4
|
-
agreementLink: string;
|
|
5
|
-
site: string;
|
|
6
|
-
bookingFields: WidgetBookingFiledEnum[];
|
|
7
|
-
logo: string;
|
|
8
3
|
gaEnabled: boolean;
|
|
9
4
|
ga4Id: string;
|
|
10
5
|
gaCoversationId: string;
|
|
11
6
|
gaCoversationLabel: string;
|
|
12
|
-
nowEscape: boolean;
|
|
13
7
|
}
|
|
@@ -16,27 +16,6 @@ const is_not_blank_1 = require("../shared/is-not-blank");
|
|
|
16
16
|
const update_current_base_dto_1 = require("./update-current-base.dto");
|
|
17
17
|
class UpdateCurrentGaDto extends update_current_base_dto_1.UpdateCurrentBaseDto {
|
|
18
18
|
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsUrl)(),
|
|
21
|
-
(0, class_transformer_1.Expose)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], UpdateCurrentGaDto.prototype, "agreementLink", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsUrl)(),
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], UpdateCurrentGaDto.prototype, "site", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsArray)(),
|
|
31
|
-
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
32
|
-
(0, class_transformer_1.Expose)(),
|
|
33
|
-
__metadata("design:type", Array)
|
|
34
|
-
], UpdateCurrentGaDto.prototype, "bookingFields", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_transformer_1.Expose)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], UpdateCurrentGaDto.prototype, "logo", void 0);
|
|
40
19
|
__decorate([
|
|
41
20
|
(0, class_validator_1.IsOptional)(),
|
|
42
21
|
(0, class_transformer_1.Expose)(),
|
|
@@ -60,9 +39,4 @@ __decorate([
|
|
|
60
39
|
(0, class_transformer_1.Expose)(),
|
|
61
40
|
__metadata("design:type", String)
|
|
62
41
|
], UpdateCurrentGaDto.prototype, "gaCoversationLabel", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_transformer_1.Expose)(),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], UpdateCurrentGaDto.prototype, "nowEscape", void 0);
|
|
68
42
|
exports.UpdateCurrentGaDto = UpdateCurrentGaDto;
|
|
@@ -31,6 +31,12 @@ __decorate([
|
|
|
31
31
|
(0, class_transformer_1.Expose)(),
|
|
32
32
|
__metadata("design:type", Array)
|
|
33
33
|
], UpdateCurrentDto.prototype, "bookingFields", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsArray)(),
|
|
36
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], UpdateCurrentDto.prototype, "adminBookingFields", void 0);
|
|
34
40
|
__decorate([
|
|
35
41
|
(0, class_validator_1.IsOptional)(),
|
|
36
42
|
(0, class_transformer_1.Expose)(),
|
|
@@ -4,6 +4,8 @@ export declare class CreatePromocodeDto {
|
|
|
4
4
|
description: string;
|
|
5
5
|
multiple: boolean;
|
|
6
6
|
canUseWithOtherPromocodes: boolean;
|
|
7
|
+
availableForCertificates: boolean;
|
|
8
|
+
availableForBookings: boolean;
|
|
7
9
|
inside: boolean;
|
|
8
10
|
canUseWithOtherCertificates: boolean;
|
|
9
11
|
availableApplyings: number;
|
|
@@ -38,6 +38,18 @@ __decorate([
|
|
|
38
38
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
39
39
|
__metadata("design:type", Boolean)
|
|
40
40
|
], CreatePromocodeDto.prototype, "canUseWithOtherPromocodes", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsBoolean)(),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], CreatePromocodeDto.prototype, "availableForCertificates", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsBoolean)(),
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], CreatePromocodeDto.prototype, "availableForBookings", void 0);
|
|
41
53
|
__decorate([
|
|
42
54
|
(0, class_validator_1.IsBoolean)(),
|
|
43
55
|
(0, class_transformer_1.Expose)(),
|
|
@@ -7,6 +7,8 @@ export declare class PromocodeRO extends RO {
|
|
|
7
7
|
multiple: boolean;
|
|
8
8
|
crossSale: boolean;
|
|
9
9
|
canUseWithOtherPromocodes: boolean;
|
|
10
|
+
availableForCertificates: boolean;
|
|
11
|
+
availableForBookings: boolean;
|
|
10
12
|
canUseWithOtherCertificates: boolean;
|
|
11
13
|
availableApplyings: number;
|
|
12
14
|
inside: boolean;
|
|
@@ -39,6 +39,14 @@ __decorate([
|
|
|
39
39
|
(0, class_transformer_1.Expose)(),
|
|
40
40
|
__metadata("design:type", Boolean)
|
|
41
41
|
], PromocodeRO.prototype, "canUseWithOtherPromocodes", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], PromocodeRO.prototype, "availableForCertificates", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], PromocodeRO.prototype, "availableForBookings", void 0);
|
|
42
50
|
__decorate([
|
|
43
51
|
(0, class_transformer_1.Expose)(),
|
|
44
52
|
__metadata("design:type", Boolean)
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UpdateBreaksDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_bigger_than_1 = require("../shared/is-bigger-than");
|
|
15
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
17
|
class UpdateBreaksDto {
|
|
17
18
|
}
|
|
@@ -49,6 +50,7 @@ __decorate([
|
|
|
49
50
|
], UpdateBreaksDto.prototype, "startTime", void 0);
|
|
50
51
|
__decorate([
|
|
51
52
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
53
|
+
(0, is_bigger_than_1.IsBiggerThan)('startTime'),
|
|
52
54
|
(0, class_transformer_1.Expose)(),
|
|
53
55
|
__metadata("design:type", String)
|
|
54
56
|
], UpdateBreaksDto.prototype, "endTime", void 0);
|
|
@@ -10,6 +10,10 @@ export declare type GeneralStatiscticsRO = {
|
|
|
10
10
|
newBookingsByQuestroomAndDate: Array<{
|
|
11
11
|
name: string;
|
|
12
12
|
} & Record<string, number>>;
|
|
13
|
+
bookingsByUpselling: Array<{
|
|
14
|
+
name: string;
|
|
15
|
+
value: number;
|
|
16
|
+
}>;
|
|
13
17
|
newBookingsStructure: Array<{
|
|
14
18
|
name: string;
|
|
15
19
|
widget: number;
|
|
@@ -37,6 +41,10 @@ export declare type GeneralStatiscticsRO = {
|
|
|
37
41
|
count: number;
|
|
38
42
|
revenue: number;
|
|
39
43
|
};
|
|
44
|
+
upsellings: {
|
|
45
|
+
count: number;
|
|
46
|
+
revenue: number;
|
|
47
|
+
};
|
|
40
48
|
promocodes: {
|
|
41
49
|
count: number;
|
|
42
50
|
revenue: number;
|