@escapenavigator/types 1.6.32 → 1.6.34
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/agb/agb-type.enum.d.ts +3 -2
- package/dist/agb/agb-type.enum.js +2 -1
- package/dist/client/client-form.dto.js +1 -0
- package/dist/emails/index.d.ts +5 -2
- package/dist/log/log-title.enum.d.ts +8 -10
- package/dist/log/log-title.enum.js +8 -10
- package/dist/openapi/certificates/openapi-create-certificate-sale.dto.d.ts +1 -0
- package/dist/openapi/certificates/openapi-create-certificate-sale.dto.js +6 -0
- package/dist/openapi/widget/openapi-widget-info.ro.d.ts +4 -0
- package/dist/openapi/widget/openapi-widget-info.ro.js +16 -0
- package/dist/order/enum/order-status.enum.d.ts +3 -2
- package/dist/order/enum/order-status.enum.js +2 -1
- package/dist/order/order.ro.d.ts +9 -0
- package/dist/order/order.ro.js +40 -1
- package/dist/order/query-order.dto.d.ts +7 -2
- package/dist/order/query-order.dto.js +31 -2
- package/dist/order/update-order.dto.d.ts +1 -0
- package/dist/order/update-order.dto.js +5 -0
- package/dist/order/update-participants.dto.d.ts +10 -0
- package/dist/order/update-participants.dto.js +49 -0
- package/dist/profile/admin-profile.ro.d.ts +1 -0
- package/dist/profile/admin-profile.ro.js +4 -0
- package/dist/profile/cross-sale/cross-sale.dto.d.ts +6 -1
- package/dist/profile/cross-sale/cross-sale.dto.js +27 -4
- package/dist/profile/cross-sale/cross-sale.ro.d.ts +15 -8
- package/dist/profile/cross-sale/cross-sale.ro.js +57 -0
- package/dist/profile/cross-sale/crossale-discount-type.enum.d.ts +5 -0
- package/dist/profile/cross-sale/crossale-discount-type.enum.js +9 -0
- package/dist/profile/profile.ro.d.ts +4 -0
- package/dist/profile/profile.ro.js +16 -0
- package/dist/profile/update-current.dto.d.ts +4 -0
- package/dist/profile/update-current.dto.js +20 -0
- package/dist/promocode/promocode.ro.d.ts +4 -3
- package/dist/promocode/promocode.ro.js +80 -0
- package/dist/role/role.ro.d.ts +3 -3
- package/dist/role/role.ro.js +79 -0
- package/dist/translation/edit-all-translation-loacales.dto.d.ts +0 -1
- package/dist/translation/edit-all-translation-loacales.dto.js +0 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/crud/user.ro.d.ts +7 -3
- package/dist/user/crud/user.ro.js +88 -0
- package/dist/user/current/current-user.ro.d.ts +9 -8
- package/dist/user/current/current-user.ro.js +57 -0
- package/dist/user/current/update-current-user.dto.d.ts +2 -0
- package/dist/user/current/update-current-user.dto.js +5 -0
- package/dist/widget/create-widget.dto.d.ts +3 -0
- package/dist/widget/create-widget.dto.js +15 -0
- package/dist/widget/widget.ro.d.ts +3 -0
- package/package.json +2 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare enum AgbTypeEnum {
|
|
2
2
|
REGISTRATION_NEW_PROFILE = "registration_new_profile",
|
|
3
|
+
IMPRINT = "imprint",
|
|
3
4
|
COOKIES = "cookies",
|
|
4
5
|
PRIVACY_POLICY = "privacy_policy",
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
AGREEMENT = "agreement",
|
|
7
|
+
PARTNER_PROGRAMM = "partner_programm"
|
|
7
8
|
}
|
|
@@ -4,8 +4,9 @@ exports.AgbTypeEnum = void 0;
|
|
|
4
4
|
var AgbTypeEnum;
|
|
5
5
|
(function (AgbTypeEnum) {
|
|
6
6
|
AgbTypeEnum["REGISTRATION_NEW_PROFILE"] = "registration_new_profile";
|
|
7
|
+
AgbTypeEnum["IMPRINT"] = "imprint";
|
|
7
8
|
AgbTypeEnum["COOKIES"] = "cookies";
|
|
8
9
|
AgbTypeEnum["PRIVACY_POLICY"] = "privacy_policy";
|
|
9
|
-
AgbTypeEnum["IMPRINT"] = "imprint";
|
|
10
10
|
AgbTypeEnum["AGREEMENT"] = "agreement";
|
|
11
|
+
AgbTypeEnum["PARTNER_PROGRAMM"] = "partner_programm";
|
|
11
12
|
})(AgbTypeEnum = exports.AgbTypeEnum || (exports.AgbTypeEnum = {}));
|
|
@@ -66,6 +66,7 @@ __decorate([
|
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, class_validator_1.IsBoolean)(),
|
|
68
68
|
(0, class_transformer_1.Expose)(),
|
|
69
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
69
70
|
__metadata("design:type", Boolean)
|
|
70
71
|
], ClientFormDto.prototype, "sendAds", void 0);
|
|
71
72
|
exports.ClientFormDto = ClientFormDto;
|
package/dist/emails/index.d.ts
CHANGED
|
@@ -21,15 +21,18 @@ declare type Context = {
|
|
|
21
21
|
title: string;
|
|
22
22
|
subtitle?: string;
|
|
23
23
|
questroomEmail?: string;
|
|
24
|
+
address?: string;
|
|
25
|
+
tag?: string;
|
|
24
26
|
subscription?: boolean;
|
|
27
|
+
logo?: string;
|
|
25
28
|
sections: Array<Divider | Bitton | Paragraph | List>;
|
|
26
29
|
};
|
|
27
30
|
export declare type SendEmailRequestParams = {
|
|
28
31
|
from: EmailSenderEnum;
|
|
29
32
|
to: string;
|
|
30
|
-
logo: string;
|
|
31
33
|
subject: string;
|
|
32
|
-
|
|
34
|
+
logo?: string;
|
|
33
35
|
tags?: string;
|
|
36
|
+
data: Context;
|
|
34
37
|
};
|
|
35
38
|
export {};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
export declare enum LogTitleEnum {
|
|
2
|
-
/** change orders and certificates */
|
|
3
|
-
addHandDiscount = "addHandDiscount",
|
|
4
|
-
removeHandDiscount = "removeHandDiscount",
|
|
5
|
-
addMessage = "addMessage",
|
|
6
|
-
removeMessage = "removeMessage",
|
|
7
|
-
resendEmail = "resendEmail",
|
|
8
|
-
changeModerator = "changeModerator",
|
|
9
2
|
/** orders */
|
|
10
3
|
createOrder = "createOrder",
|
|
11
4
|
changeOrderDate = "changeOrderDate",
|
|
@@ -20,15 +13,20 @@ export declare enum LogTitleEnum {
|
|
|
20
13
|
removeCertificate = "removeCertificate",
|
|
21
14
|
addPromocode = "addPromocode",
|
|
22
15
|
removePromocode = "removePromocode",
|
|
16
|
+
/** change orders and certificates */
|
|
17
|
+
addHandDiscount = "addHandDiscount",
|
|
18
|
+
removeHandDiscount = "removeHandDiscount",
|
|
19
|
+
addMessage = "addMessage",
|
|
20
|
+
removeMessage = "removeMessage",
|
|
21
|
+
resendEmail = "resendEmail",
|
|
22
|
+
changeModerator = "changeModerator",
|
|
23
23
|
/** certificates */
|
|
24
24
|
createCertificate = "createCertificate",
|
|
25
25
|
shipToClient = "shipToClient",
|
|
26
26
|
updateTrackingInfo = "updateTrackingInfo",
|
|
27
27
|
updateExpireDate = "updateExpireDate",
|
|
28
28
|
updateDeliveryInfo = "updateDeliveryInfo",
|
|
29
|
-
/**
|
|
30
|
-
* платежи
|
|
31
|
-
*/
|
|
29
|
+
/** платежи */
|
|
32
30
|
createTransaction = "createTransaction",
|
|
33
31
|
createRefund = "createRefund"
|
|
34
32
|
}
|
|
@@ -3,13 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LogTitleEnum = void 0;
|
|
4
4
|
var LogTitleEnum;
|
|
5
5
|
(function (LogTitleEnum) {
|
|
6
|
-
/** change orders and certificates */
|
|
7
|
-
LogTitleEnum["addHandDiscount"] = "addHandDiscount";
|
|
8
|
-
LogTitleEnum["removeHandDiscount"] = "removeHandDiscount";
|
|
9
|
-
LogTitleEnum["addMessage"] = "addMessage";
|
|
10
|
-
LogTitleEnum["removeMessage"] = "removeMessage";
|
|
11
|
-
LogTitleEnum["resendEmail"] = "resendEmail";
|
|
12
|
-
LogTitleEnum["changeModerator"] = "changeModerator";
|
|
13
6
|
/** orders */
|
|
14
7
|
LogTitleEnum["createOrder"] = "createOrder";
|
|
15
8
|
LogTitleEnum["changeOrderDate"] = "changeOrderDate";
|
|
@@ -24,15 +17,20 @@ var LogTitleEnum;
|
|
|
24
17
|
LogTitleEnum["removeCertificate"] = "removeCertificate";
|
|
25
18
|
LogTitleEnum["addPromocode"] = "addPromocode";
|
|
26
19
|
LogTitleEnum["removePromocode"] = "removePromocode";
|
|
20
|
+
/** change orders and certificates */
|
|
21
|
+
LogTitleEnum["addHandDiscount"] = "addHandDiscount";
|
|
22
|
+
LogTitleEnum["removeHandDiscount"] = "removeHandDiscount";
|
|
23
|
+
LogTitleEnum["addMessage"] = "addMessage";
|
|
24
|
+
LogTitleEnum["removeMessage"] = "removeMessage";
|
|
25
|
+
LogTitleEnum["resendEmail"] = "resendEmail";
|
|
26
|
+
LogTitleEnum["changeModerator"] = "changeModerator";
|
|
27
27
|
/** certificates */
|
|
28
28
|
LogTitleEnum["createCertificate"] = "createCertificate";
|
|
29
29
|
LogTitleEnum["shipToClient"] = "shipToClient";
|
|
30
30
|
LogTitleEnum["updateTrackingInfo"] = "updateTrackingInfo";
|
|
31
31
|
LogTitleEnum["updateExpireDate"] = "updateExpireDate";
|
|
32
32
|
LogTitleEnum["updateDeliveryInfo"] = "updateDeliveryInfo";
|
|
33
|
-
/**
|
|
34
|
-
* платежи
|
|
35
|
-
*/
|
|
33
|
+
/** платежи */
|
|
36
34
|
LogTitleEnum["createTransaction"] = "createTransaction";
|
|
37
35
|
LogTitleEnum["createRefund"] = "createRefund";
|
|
38
36
|
})(LogTitleEnum = exports.LogTitleEnum || (exports.LogTitleEnum = {}));
|
|
@@ -47,6 +47,12 @@ __decorate([
|
|
|
47
47
|
(0, class_transformer_1.Expose)(),
|
|
48
48
|
__metadata("design:type", Number)
|
|
49
49
|
], OpenapiCreateCertificateSaleDto.prototype, "certificateId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsBoolean)(),
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], OpenapiCreateCertificateSaleDto.prototype, "sendAds", void 0);
|
|
50
56
|
__decorate([
|
|
51
57
|
(0, class_validator_1.IsPositive)(),
|
|
52
58
|
(0, class_transformer_1.Expose)(),
|
|
@@ -23,5 +23,9 @@ export declare class OpenapiWidgetInfoRO {
|
|
|
23
23
|
questrooms: OpenapiQuestroomRO[];
|
|
24
24
|
certificates: OpenapiCertificateTemplateRO[];
|
|
25
25
|
profile: Profile;
|
|
26
|
+
ga4Id: string;
|
|
27
|
+
gaCoversationId: string;
|
|
28
|
+
gaCoversationLabel: string;
|
|
29
|
+
gaEnabled: boolean;
|
|
26
30
|
}
|
|
27
31
|
export {};
|
|
@@ -89,4 +89,20 @@ __decorate([
|
|
|
89
89
|
(0, class_transformer_1.Type)(() => Profile),
|
|
90
90
|
__metadata("design:type", Profile)
|
|
91
91
|
], OpenapiWidgetInfoRO.prototype, "profile", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], OpenapiWidgetInfoRO.prototype, "ga4Id", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_transformer_1.Expose)(),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], OpenapiWidgetInfoRO.prototype, "gaCoversationId", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, class_transformer_1.Expose)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], OpenapiWidgetInfoRO.prototype, "gaCoversationLabel", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_transformer_1.Expose)(),
|
|
106
|
+
__metadata("design:type", Boolean)
|
|
107
|
+
], OpenapiWidgetInfoRO.prototype, "gaEnabled", void 0);
|
|
92
108
|
exports.OpenapiWidgetInfoRO = OpenapiWidgetInfoRO;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export declare enum OrderStatusEnum {
|
|
2
2
|
CONFIRMED = "confirmed",
|
|
3
3
|
PREPAYED = "prepayed",
|
|
4
|
-
OVERPAYED = "overpayed",
|
|
5
4
|
PAYED = "payed",
|
|
6
5
|
NOT_PAYED = "not_payed",
|
|
6
|
+
NOT_CANCELED = "not_canceled",
|
|
7
7
|
CANCELED = "canceled",
|
|
8
8
|
CANCELED_WITH_FINE = "canceled_with_fine",
|
|
9
9
|
BOOKING_IN_PROCESS = "booking_in_process",
|
|
10
|
-
FAILED_BOOKING = "failed_booking"
|
|
10
|
+
FAILED_BOOKING = "failed_booking",
|
|
11
|
+
OVERPAYED = "overpayed"
|
|
11
12
|
}
|
|
@@ -5,11 +5,12 @@ var OrderStatusEnum;
|
|
|
5
5
|
(function (OrderStatusEnum) {
|
|
6
6
|
OrderStatusEnum["CONFIRMED"] = "confirmed";
|
|
7
7
|
OrderStatusEnum["PREPAYED"] = "prepayed";
|
|
8
|
-
OrderStatusEnum["OVERPAYED"] = "overpayed";
|
|
9
8
|
OrderStatusEnum["PAYED"] = "payed";
|
|
10
9
|
OrderStatusEnum["NOT_PAYED"] = "not_payed";
|
|
10
|
+
OrderStatusEnum["NOT_CANCELED"] = "not_canceled";
|
|
11
11
|
OrderStatusEnum["CANCELED"] = "canceled";
|
|
12
12
|
OrderStatusEnum["CANCELED_WITH_FINE"] = "canceled_with_fine";
|
|
13
13
|
OrderStatusEnum["BOOKING_IN_PROCESS"] = "booking_in_process";
|
|
14
14
|
OrderStatusEnum["FAILED_BOOKING"] = "failed_booking";
|
|
15
|
+
OrderStatusEnum["OVERPAYED"] = "overpayed";
|
|
15
16
|
})(OrderStatusEnum = exports.OrderStatusEnum || (exports.OrderStatusEnum = {}));
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ export declare class Utm {
|
|
|
16
16
|
utmContent: string;
|
|
17
17
|
utmTerm: string;
|
|
18
18
|
}
|
|
19
|
+
export declare class Participant {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
sendAds: boolean;
|
|
23
|
+
surname: string;
|
|
24
|
+
email: string;
|
|
25
|
+
}
|
|
19
26
|
declare class Rule {
|
|
20
27
|
prepayment: number;
|
|
21
28
|
minHoursForBooking: number;
|
|
@@ -68,7 +75,9 @@ export declare class Transactions extends RO {
|
|
|
68
75
|
}
|
|
69
76
|
export declare class OrderRO extends RO {
|
|
70
77
|
utm: Utm;
|
|
78
|
+
feedbackDate: string;
|
|
71
79
|
profileId: number;
|
|
80
|
+
participants: Participant[];
|
|
72
81
|
updatedAt: Date;
|
|
73
82
|
language?: Languages;
|
|
74
83
|
price: {
|
package/dist/order/order.ro.js
CHANGED
|
@@ -9,9 +9,10 @@ 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.OrderRO = exports.Transactions = exports.Discounts = exports.Utm = void 0;
|
|
12
|
+
exports.OrderRO = exports.Transactions = exports.Discounts = exports.Participant = exports.Utm = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
15
16
|
const client_ro_1 = require("../client/client.ro");
|
|
16
17
|
const order_penalty_type_enum_1 = require("../order-penalty/enum/order-penalty-type.enum");
|
|
17
18
|
const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
|
|
@@ -26,25 +27,53 @@ class Utm {
|
|
|
26
27
|
}
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
31
|
__metadata("design:type", String)
|
|
30
32
|
], Utm.prototype, "utmSource", void 0);
|
|
31
33
|
__decorate([
|
|
32
34
|
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
36
|
__metadata("design:type", String)
|
|
34
37
|
], Utm.prototype, "utmMedium", void 0);
|
|
35
38
|
__decorate([
|
|
36
39
|
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
41
|
__metadata("design:type", String)
|
|
38
42
|
], Utm.prototype, "utmCampaign", void 0);
|
|
39
43
|
__decorate([
|
|
40
44
|
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
46
|
__metadata("design:type", String)
|
|
42
47
|
], Utm.prototype, "utmContent", void 0);
|
|
43
48
|
__decorate([
|
|
44
49
|
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
51
|
__metadata("design:type", String)
|
|
46
52
|
], Utm.prototype, "utmTerm", void 0);
|
|
47
53
|
exports.Utm = Utm;
|
|
54
|
+
class Participant {
|
|
55
|
+
}
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], Participant.prototype, "id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], Participant.prototype, "name", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], Participant.prototype, "sendAds", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], Participant.prototype, "surname", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], Participant.prototype, "email", void 0);
|
|
76
|
+
exports.Participant = Participant;
|
|
48
77
|
class Rule {
|
|
49
78
|
}
|
|
50
79
|
__decorate([
|
|
@@ -207,10 +236,20 @@ __decorate([
|
|
|
207
236
|
(0, class_transformer_1.Type)(() => Utm),
|
|
208
237
|
__metadata("design:type", Utm)
|
|
209
238
|
], OrderRO.prototype, "utm", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, class_transformer_1.Expose)(),
|
|
241
|
+
(0, class_transformer_1.Transform)(({ value }) => (value && value === 'false' ? undefined : value)),
|
|
242
|
+
__metadata("design:type", String)
|
|
243
|
+
], OrderRO.prototype, "feedbackDate", void 0);
|
|
210
244
|
__decorate([
|
|
211
245
|
(0, class_transformer_1.Expose)(),
|
|
212
246
|
__metadata("design:type", Number)
|
|
213
247
|
], OrderRO.prototype, "profileId", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, class_transformer_1.Expose)(),
|
|
250
|
+
(0, class_transformer_1.Type)(() => Participant),
|
|
251
|
+
__metadata("design:type", Array)
|
|
252
|
+
], OrderRO.prototype, "participants", void 0);
|
|
214
253
|
__decorate([
|
|
215
254
|
(0, class_transformer_1.Expose)(),
|
|
216
255
|
__metadata("design:type", Date)
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
2
|
import { SourceEnum } from '../shared/source.enum';
|
|
3
3
|
import { OrderStatusEnum } from './enum/order-status.enum';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export declare class QueryOrderDto {
|
|
5
|
+
utmSource: string;
|
|
6
|
+
utmMedium: string;
|
|
7
|
+
utmCampaign: string;
|
|
8
|
+
utmContent: string;
|
|
9
|
+
utmTerm: string;
|
|
6
10
|
date?: [string, string];
|
|
7
11
|
created?: [string, string];
|
|
8
12
|
clientId?: string;
|
|
13
|
+
participantId?: string;
|
|
9
14
|
players?: number;
|
|
10
15
|
questroomsIds?: number[];
|
|
11
16
|
moderatorsIds?: number[];
|
|
@@ -15,9 +15,33 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
16
|
const source_enum_1 = require("../shared/source.enum");
|
|
17
17
|
const order_status_enum_1 = require("./enum/order-status.enum");
|
|
18
|
-
|
|
19
|
-
class QueryOrderDto extends order_ro_1.Utm {
|
|
18
|
+
class QueryOrderDto {
|
|
20
19
|
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], QueryOrderDto.prototype, "utmSource", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], QueryOrderDto.prototype, "utmMedium", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], QueryOrderDto.prototype, "utmCampaign", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], QueryOrderDto.prototype, "utmContent", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], QueryOrderDto.prototype, "utmTerm", void 0);
|
|
21
45
|
__decorate([
|
|
22
46
|
(0, class_validator_1.IsOptional)(),
|
|
23
47
|
(0, class_transformer_1.Expose)(),
|
|
@@ -35,6 +59,11 @@ __decorate([
|
|
|
35
59
|
(0, class_transformer_1.Expose)(),
|
|
36
60
|
__metadata("design:type", String)
|
|
37
61
|
], QueryOrderDto.prototype, "clientId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], QueryOrderDto.prototype, "participantId", void 0);
|
|
38
67
|
__decorate([
|
|
39
68
|
(0, class_validator_1.IsOptional)(),
|
|
40
69
|
(0, class_transformer_1.Expose)(),
|
|
@@ -31,4 +31,9 @@ __decorate([
|
|
|
31
31
|
(0, class_transformer_1.Expose)(),
|
|
32
32
|
__metadata("design:type", Number)
|
|
33
33
|
], UpdateOrderDto.prototype, "result", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], UpdateOrderDto.prototype, "feedback", void 0);
|
|
34
39
|
exports.UpdateOrderDto = UpdateOrderDto;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.UpdateParticipantsDto = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
|
+
class ClientForm {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ClientForm.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ClientForm.prototype, "surname", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEmail)(),
|
|
31
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ClientForm.prototype, "email", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsBoolean)(),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], ClientForm.prototype, "sendAds", void 0);
|
|
40
|
+
class UpdateParticipantsDto {
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsArray)(),
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_validator_1.ValidateNested)(),
|
|
46
|
+
(0, class_transformer_1.Type)(() => ClientForm),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], UpdateParticipantsDto.prototype, "participants", void 0);
|
|
49
|
+
exports.UpdateParticipantsDto = UpdateParticipantsDto;
|
|
@@ -20,6 +20,7 @@ export declare class AdminProfileRO {
|
|
|
20
20
|
crmVerification: CrmVerificationEnum;
|
|
21
21
|
subscriptionType: ProfileSubscriptionTypeEnum;
|
|
22
22
|
subscriptionCancelationDate: number;
|
|
23
|
+
updateDate: Date;
|
|
23
24
|
status: ProfileStatusEnum;
|
|
24
25
|
integrationType: ProfileIntegrationTypeEnum;
|
|
25
26
|
id: number;
|
|
@@ -66,6 +66,10 @@ __decorate([
|
|
|
66
66
|
(0, class_transformer_1.Expose)(),
|
|
67
67
|
__metadata("design:type", Number)
|
|
68
68
|
], AdminProfileRO.prototype, "subscriptionCancelationDate", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
__metadata("design:type", Date)
|
|
72
|
+
], AdminProfileRO.prototype, "updateDate", void 0);
|
|
69
73
|
__decorate([
|
|
70
74
|
(0, class_transformer_1.Expose)(),
|
|
71
75
|
__metadata("design:type", String)
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { Languages } from '../../shared/enum/languages.enum';
|
|
2
|
+
import { CrossSaleDiscountTypeEnum } from './crossale-discount-type.enum';
|
|
2
3
|
declare class Locale {
|
|
3
4
|
language: Languages;
|
|
4
5
|
feedbackText: string;
|
|
6
|
+
title: string;
|
|
5
7
|
}
|
|
6
8
|
export declare class CrossSaleDto {
|
|
9
|
+
enabled: boolean;
|
|
7
10
|
sendAfter: number;
|
|
8
|
-
|
|
11
|
+
discount: number;
|
|
12
|
+
discountValidityDays: number;
|
|
13
|
+
discountType: CrossSaleDiscountTypeEnum;
|
|
9
14
|
locales: Locale[];
|
|
10
15
|
}
|
|
11
16
|
export {};
|
|
@@ -15,34 +15,57 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
17
17
|
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
18
|
+
const crossale_discount_type_enum_1 = require("./crossale-discount-type.enum");
|
|
18
19
|
class Locale {
|
|
19
20
|
}
|
|
20
21
|
__decorate([
|
|
21
|
-
(0, class_validator_1.IsOptional)(),
|
|
22
22
|
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
23
23
|
(0, class_transformer_1.Expose)(),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], Locale.prototype, "language", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0,
|
|
27
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
28
28
|
(0, class_transformer_1.Expose)(),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], Locale.prototype, "feedbackText", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Locale.prototype, "title", void 0);
|
|
31
36
|
class CrossSaleDto {
|
|
32
37
|
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], CrossSaleDto.prototype, "enabled", void 0);
|
|
33
43
|
__decorate([
|
|
34
44
|
(0, class_validator_1.IsPositive)(),
|
|
35
45
|
(0, class_transformer_1.Expose)(),
|
|
36
46
|
__metadata("design:type", Number)
|
|
37
47
|
], CrossSaleDto.prototype, "sendAfter", void 0);
|
|
38
48
|
__decorate([
|
|
39
|
-
(0,
|
|
49
|
+
(0, class_validator_1.IsPositive)(),
|
|
50
|
+
(0, class_validator_1.ValidateIf)((o) => o.discountType !== crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum.NONE),
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], CrossSaleDto.prototype, "discount", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsPositive)(),
|
|
56
|
+
(0, class_validator_1.ValidateIf)((o) => o.discountType !== crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum.NONE),
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], CrossSaleDto.prototype, "discountValidityDays", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsEnum)(crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum),
|
|
40
62
|
(0, class_transformer_1.Expose)(),
|
|
41
63
|
__metadata("design:type", String)
|
|
42
|
-
], CrossSaleDto.prototype, "
|
|
64
|
+
], CrossSaleDto.prototype, "discountType", void 0);
|
|
43
65
|
__decorate([
|
|
44
66
|
(0, class_transformer_1.Type)(() => Locale),
|
|
45
67
|
(0, class_validator_1.IsArray)(),
|
|
68
|
+
(0, class_validator_1.ValidateNested)(),
|
|
46
69
|
(0, class_transformer_1.Expose)(),
|
|
47
70
|
__metadata("design:type", Array)
|
|
48
71
|
], CrossSaleDto.prototype, "locales", void 0);
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { Languages } from '../../shared/enum/languages.enum';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { RO } from '../../shared/ro-class';
|
|
3
|
+
import { CrossSaleDiscountTypeEnum } from './crossale-discount-type.enum';
|
|
4
|
+
declare class Locale {
|
|
5
|
+
language: Languages;
|
|
5
6
|
feedbackText: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class CrossSaleRO extends RO {
|
|
10
|
+
sendAfter: number;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
discountValidityDays: number;
|
|
13
|
+
discount: number;
|
|
14
|
+
discountType: CrossSaleDiscountTypeEnum;
|
|
15
|
+
locales: Locale[];
|
|
16
|
+
}
|
|
17
|
+
export {};
|