@escapenavigator/types 1.6.28 → 1.6.30
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/certificate-sale.ro.d.ts +4 -1
- package/dist/certificate-sale/certificate-sale.ro.js +8 -2
- package/dist/emails/index.d.ts +1 -0
- package/dist/openapi/certificates/openapi-certificate-sale.ro.d.ts +10 -0
- package/dist/openapi/certificates/openapi-certificate-sale.ro.js +32 -45
- package/dist/openapi/orders/openapi-create-preorder.dto.d.ts +2 -0
- package/dist/openapi/orders/openapi-create-preorder.dto.js +7 -0
- package/dist/openapi/orders/openapi-order.ro.d.ts +1 -0
- package/dist/openapi/orders/openapi-order.ro.js +4 -0
- package/dist/openapi/orders/openapi-promocode-remove.dto.js +3 -0
- package/dist/order/order.ro.d.ts +8 -0
- package/dist/order/order.ro.js +29 -1
- package/dist/order/query-order.dto.d.ts +2 -1
- package/dist/order/query-order.dto.js +2 -1
- package/dist/profile/admin-profile.ro.d.ts +18 -4
- package/dist/profile/admin-profile.ro.js +50 -12
- package/dist/profile/create-profile.dto.d.ts +4 -2
- package/dist/profile/create-profile.dto.js +8 -2
- package/dist/profile/enum/partner-program.enum.d.ts +7 -0
- package/dist/profile/enum/partner-program.enum.js +11 -0
- package/dist/profile/enum/profile-integration-type.enum.d.ts +4 -0
- package/dist/profile/enum/profile-integration-type.enum.js +8 -0
- package/dist/profile/enum/profile-step.enum.d.ts +2 -7
- package/dist/profile/enum/profile-step.enum.js +22 -27
- package/dist/profile/enum/profile-subscription-type.enum.d.ts +5 -0
- package/dist/profile/enum/profile-subscription-type.enum.js +17 -0
- package/dist/profile/enum/profile-subscription.enum.d.ts +3 -2
- package/dist/profile/enum/profile-subscription.enum.js +11 -2
- package/dist/profile/profile-crm/profile-crm.ro.d.ts +1 -0
- package/dist/profile/profile.ro.d.ts +11 -3
- package/dist/profile/profile.ro.js +28 -8
- package/dist/profile/query-admin-profile.dto.d.ts +16 -0
- package/dist/profile/query-admin-profile.dto.js +53 -0
- package/dist/profile/subscription.ro.d.ts +16 -0
- package/dist/profile/subscription.ro.js +57 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/profile/payment-settings.ro.d.ts +0 -9
- package/dist/profile/payment-settings.ro.js +0 -2
- package/dist/profile/profile-subscription.ro.d.ts +0 -8
- package/dist/profile/profile-subscription.ro.js +0 -35
- package/dist/profile/update-profile-step.dto.d.ts +0 -4
- package/dist/profile/update-profile-step.dto.js +0 -24
|
@@ -3,6 +3,9 @@ import { Discounts, Transactions } from '../order/order.ro';
|
|
|
3
3
|
import { RO } from '../shared/ro-class';
|
|
4
4
|
import { SourceEnum } from '../shared/source.enum';
|
|
5
5
|
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
6
|
+
declare class Order extends RO {
|
|
7
|
+
orderId: number;
|
|
8
|
+
}
|
|
6
9
|
declare class Certificate {
|
|
7
10
|
title: string;
|
|
8
11
|
allQuestrooms: boolean;
|
|
@@ -38,7 +41,7 @@ export declare class CertificateSaleRO extends RO {
|
|
|
38
41
|
payed: number;
|
|
39
42
|
total: number;
|
|
40
43
|
toPay: number;
|
|
41
|
-
order:
|
|
44
|
+
order: Order;
|
|
42
45
|
client: ClientRO;
|
|
43
46
|
discounts: Discounts[];
|
|
44
47
|
transactions: Transactions[];
|
|
@@ -17,6 +17,12 @@ const order_ro_1 = require("../order/order.ro");
|
|
|
17
17
|
const ro_class_1 = require("../shared/ro-class");
|
|
18
18
|
const source_enum_1 = require("../shared/source.enum");
|
|
19
19
|
const certificatesales_delivery_type_enum_1 = require("./enum/certificatesales-delivery-type.enum");
|
|
20
|
+
class Order extends ro_class_1.RO {
|
|
21
|
+
}
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], Order.prototype, "orderId", void 0);
|
|
20
26
|
class Certificate {
|
|
21
27
|
}
|
|
22
28
|
__decorate([
|
|
@@ -152,8 +158,8 @@ __decorate([
|
|
|
152
158
|
], CertificateSaleRO.prototype, "toPay", void 0);
|
|
153
159
|
__decorate([
|
|
154
160
|
(0, class_transformer_1.Expose)(),
|
|
155
|
-
(0, class_transformer_1.Type)(() =>
|
|
156
|
-
__metadata("design:type",
|
|
161
|
+
(0, class_transformer_1.Type)(() => Order),
|
|
162
|
+
__metadata("design:type", Order)
|
|
157
163
|
], CertificateSaleRO.prototype, "order", void 0);
|
|
158
164
|
__decorate([
|
|
159
165
|
(0, class_transformer_1.Expose)(),
|
package/dist/emails/index.d.ts
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
import { CertificatesaleDeliveryTypeEnum } from '../../certificate-sale/enum/certificatesales-delivery-type.enum';
|
|
2
2
|
import { ProfileCurrencyEnum } from '../../profile/enum/profile-currency';
|
|
3
|
+
import { RO } from '../../shared/ro-class';
|
|
3
4
|
import { OpenapiClientRO } from '../shared/openapi-client.ro';
|
|
5
|
+
import { OpenapiOrderTransactionRO } from '../shared/openapi-order-transaction.ro';
|
|
4
6
|
import { OpenapiCertificateTemplateRO } from './openapi-certificate-template.ro';
|
|
7
|
+
declare class Order extends RO {
|
|
8
|
+
orderId: number;
|
|
9
|
+
}
|
|
5
10
|
export declare class OpenapiCertificateSaleRO {
|
|
6
11
|
createdAt: Date;
|
|
7
12
|
code: string;
|
|
8
13
|
nominal: number;
|
|
14
|
+
order: Order;
|
|
15
|
+
sended: boolean;
|
|
9
16
|
certificateId: number;
|
|
10
17
|
certificate: OpenapiCertificateTemplateRO;
|
|
18
|
+
transactions: OpenapiOrderTransactionRO[];
|
|
11
19
|
extraPrice: number;
|
|
12
20
|
client: OpenapiClientRO;
|
|
13
21
|
deliveryPrice: number;
|
|
14
22
|
payed: number;
|
|
23
|
+
toPay: number;
|
|
15
24
|
total: number;
|
|
16
25
|
expireDate: string;
|
|
17
26
|
deliveryPhone?: string;
|
|
@@ -27,3 +36,4 @@ export declare class OpenapiCertificateSaleRO {
|
|
|
27
36
|
currency: ProfileCurrencyEnum;
|
|
28
37
|
token: string;
|
|
29
38
|
}
|
|
39
|
+
export {};
|
|
@@ -10,11 +10,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OpenapiCertificateSaleRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const certificatesales_delivery_type_enum_1 = require("../../certificate-sale/enum/certificatesales-delivery-type.enum");
|
|
15
16
|
const profile_currency_1 = require("../../profile/enum/profile-currency");
|
|
17
|
+
const ro_class_1 = require("../../shared/ro-class");
|
|
18
|
+
const transaction_type_enum_1 = require("../../transaction/enum/transaction-type.enum");
|
|
16
19
|
const openapi_client_ro_1 = require("../shared/openapi-client.ro");
|
|
20
|
+
const openapi_order_transaction_ro_1 = require("../shared/openapi-order-transaction.ro");
|
|
17
21
|
const openapi_certificate_template_ro_1 = require("./openapi-certificate-template.ro");
|
|
22
|
+
class Order extends ro_class_1.RO {
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], Order.prototype, "orderId", void 0);
|
|
18
28
|
class OpenapiCertificateSaleRO {
|
|
19
29
|
}
|
|
20
30
|
__decorate([
|
|
@@ -29,6 +39,15 @@ __decorate([
|
|
|
29
39
|
(0, class_transformer_1.Expose)(),
|
|
30
40
|
__metadata("design:type", Number)
|
|
31
41
|
], OpenapiCertificateSaleRO.prototype, "nominal", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_transformer_1.Type)(() => Order),
|
|
45
|
+
__metadata("design:type", Order)
|
|
46
|
+
], OpenapiCertificateSaleRO.prototype, "order", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], OpenapiCertificateSaleRO.prototype, "sended", void 0);
|
|
32
51
|
__decorate([
|
|
33
52
|
(0, class_transformer_1.Expose)(),
|
|
34
53
|
__metadata("design:type", Number)
|
|
@@ -38,6 +57,15 @@ __decorate([
|
|
|
38
57
|
(0, class_transformer_1.Type)(() => openapi_certificate_template_ro_1.OpenapiCertificateTemplateRO),
|
|
39
58
|
__metadata("design:type", openapi_certificate_template_ro_1.OpenapiCertificateTemplateRO)
|
|
40
59
|
], OpenapiCertificateSaleRO.prototype, "certificate", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
(0, class_transformer_1.Transform)((data) => {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
return (_b = (_a = data === null || data === void 0 ? void 0 : data.obj) === null || _a === void 0 ? void 0 : _a.transactions) === null || _b === void 0 ? void 0 : _b.filter((t) => t.type !== transaction_type_enum_1.TransactionTypeEnum.CREATED && t.type !== transaction_type_enum_1.TransactionTypeEnum.CANCELED);
|
|
65
|
+
}),
|
|
66
|
+
(0, class_transformer_1.Type)(() => openapi_order_transaction_ro_1.OpenapiOrderTransactionRO),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], OpenapiCertificateSaleRO.prototype, "transactions", void 0);
|
|
41
69
|
__decorate([
|
|
42
70
|
(0, class_transformer_1.Expose)(),
|
|
43
71
|
__metadata("design:type", Number)
|
|
@@ -55,6 +83,10 @@ __decorate([
|
|
|
55
83
|
(0, class_transformer_1.Expose)(),
|
|
56
84
|
__metadata("design:type", Number)
|
|
57
85
|
], OpenapiCertificateSaleRO.prototype, "payed", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_transformer_1.Expose)(),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], OpenapiCertificateSaleRO.prototype, "toPay", void 0);
|
|
58
90
|
__decorate([
|
|
59
91
|
(0, class_transformer_1.Expose)(),
|
|
60
92
|
__metadata("design:type", Number)
|
|
@@ -112,48 +144,3 @@ __decorate([
|
|
|
112
144
|
__metadata("design:type", String)
|
|
113
145
|
], OpenapiCertificateSaleRO.prototype, "token", void 0);
|
|
114
146
|
exports.OpenapiCertificateSaleRO = OpenapiCertificateSaleRO;
|
|
115
|
-
// export type OrderServiceCertificateSaleRO = ResponseObject & {
|
|
116
|
-
// total: number;
|
|
117
|
-
// payed: number;
|
|
118
|
-
// token: string;
|
|
119
|
-
// currency: ProfileCurrencyEnum;
|
|
120
|
-
// orderId: number;
|
|
121
|
-
// toPay: number;
|
|
122
|
-
// sended: boolean;
|
|
123
|
-
// pdfLink: string;
|
|
124
|
-
// phone: string;
|
|
125
|
-
// code: string;
|
|
126
|
-
// expireDate: string;
|
|
127
|
-
// nominal: number;
|
|
128
|
-
// extraPrice: number;
|
|
129
|
-
// deliveryPrice: number;
|
|
130
|
-
// deliveryType: CertificatesaleDeliveryTypeEnum;
|
|
131
|
-
// deliveryEmail: string;
|
|
132
|
-
// deliveryMessage: string;
|
|
133
|
-
// deliveryName: string;
|
|
134
|
-
// deliverySurname: string;
|
|
135
|
-
// deliveryPhone: string;
|
|
136
|
-
// deliveryAddress: string;
|
|
137
|
-
// sendingEmailFullUtcDate: string;
|
|
138
|
-
// deliveryTrackingInfo: string;
|
|
139
|
-
// discounts: Array<
|
|
140
|
-
// ResponseObject & {
|
|
141
|
-
// reason: string;
|
|
142
|
-
// amount: number;
|
|
143
|
-
// }
|
|
144
|
-
// >;
|
|
145
|
-
// transactions: Array<
|
|
146
|
-
// ResponseObject & {
|
|
147
|
-
// amount: number;
|
|
148
|
-
// onlinePaymentSecret?: string;
|
|
149
|
-
// type: TransactionTypeEnum;
|
|
150
|
-
// }
|
|
151
|
-
// >;
|
|
152
|
-
// client: {
|
|
153
|
-
// name: string;
|
|
154
|
-
// surname: string;
|
|
155
|
-
// phone: string;
|
|
156
|
-
// email: string;
|
|
157
|
-
// address: string;
|
|
158
|
-
// };
|
|
159
|
-
// };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ClientFormDto } from '../../client/client-form.dto';
|
|
2
|
+
import { Utm } from '../../order/order.ro';
|
|
2
3
|
import { Languages } from '../../shared/enum/languages.enum';
|
|
3
4
|
export declare class OpenapiCreatePreorderDto extends ClientFormDto {
|
|
5
|
+
utm?: Utm;
|
|
4
6
|
previousHoldId: string;
|
|
5
7
|
players: number;
|
|
6
8
|
slotId: number;
|
|
@@ -13,10 +13,17 @@ exports.OpenapiCreatePreorderDto = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const client_form_dto_1 = require("../../client/client-form.dto");
|
|
16
|
+
const order_ro_1 = require("../../order/order.ro");
|
|
16
17
|
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
17
18
|
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
18
19
|
class OpenapiCreatePreorderDto extends client_form_dto_1.ClientFormDto {
|
|
19
20
|
}
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
(0, class_transformer_1.Type)(() => order_ro_1.Utm),
|
|
25
|
+
__metadata("design:type", order_ro_1.Utm)
|
|
26
|
+
], OpenapiCreatePreorderDto.prototype, "utm", void 0);
|
|
20
27
|
__decorate([
|
|
21
28
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
29
|
(0, class_transformer_1.Expose)(),
|
|
@@ -108,6 +108,10 @@ __decorate([
|
|
|
108
108
|
(0, class_transformer_1.Type)(() => Slot),
|
|
109
109
|
__metadata("design:type", Slot)
|
|
110
110
|
], OpenapiOrderRO.prototype, "slot", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_transformer_1.Expose)(),
|
|
113
|
+
__metadata("design:type", Boolean)
|
|
114
|
+
], OpenapiOrderRO.prototype, "canceledWithFine", void 0);
|
|
111
115
|
__decorate([
|
|
112
116
|
(0, class_transformer_1.Expose)(),
|
|
113
117
|
__metadata("design:type", Number)
|
|
@@ -10,15 +10,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OpenapiPromocodeRemoveDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
14
15
|
class OpenapiPromocodeRemoveDto {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
17
18
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
18
20
|
__metadata("design:type", String)
|
|
19
21
|
], OpenapiPromocodeRemoveDto.prototype, "code", void 0);
|
|
20
22
|
__decorate([
|
|
21
23
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
22
25
|
__metadata("design:type", String)
|
|
23
26
|
], OpenapiPromocodeRemoveDto.prototype, "orderToken", void 0);
|
|
24
27
|
exports.OpenapiPromocodeRemoveDto = OpenapiPromocodeRemoveDto;
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ import { TransactionSourceEnum } from '../transaction/enum/transaction-source.en
|
|
|
9
9
|
import { TransactionTypeEnum } from '../transaction/enum/transaction-type.enum';
|
|
10
10
|
import { UserMessageResponseObject } from '../user-message/user-message.ro';
|
|
11
11
|
import { OrderCancelReasonEnum } from './enum/order-cancel-reson.enum';
|
|
12
|
+
export declare class Utm {
|
|
13
|
+
utmSource: string;
|
|
14
|
+
utmMedium: string;
|
|
15
|
+
utmCampaign: string;
|
|
16
|
+
utmContent: string;
|
|
17
|
+
utmTerm: string;
|
|
18
|
+
}
|
|
12
19
|
declare class Rule {
|
|
13
20
|
prepayment: number;
|
|
14
21
|
minHoursForBooking: number;
|
|
@@ -60,6 +67,7 @@ export declare class Transactions extends RO {
|
|
|
60
67
|
userId: number;
|
|
61
68
|
}
|
|
62
69
|
export declare class OrderRO extends RO {
|
|
70
|
+
utm: Utm;
|
|
63
71
|
profileId: number;
|
|
64
72
|
updatedAt: Date;
|
|
65
73
|
language?: Languages;
|
package/dist/order/order.ro.js
CHANGED
|
@@ -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.OrderRO = exports.Transactions = exports.Discounts = void 0;
|
|
12
|
+
exports.OrderRO = exports.Transactions = exports.Discounts = exports.Utm = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const client_ro_1 = require("../client/client.ro");
|
|
@@ -22,6 +22,29 @@ const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
|
|
|
22
22
|
const transaction_source_enum_1 = require("../transaction/enum/transaction-source.enum");
|
|
23
23
|
const transaction_type_enum_1 = require("../transaction/enum/transaction-type.enum");
|
|
24
24
|
const order_cancel_reson_enum_1 = require("./enum/order-cancel-reson.enum");
|
|
25
|
+
class Utm {
|
|
26
|
+
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Utm.prototype, "utmSource", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Utm.prototype, "utmMedium", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Utm.prototype, "utmCampaign", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Utm.prototype, "utmContent", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Utm.prototype, "utmTerm", void 0);
|
|
47
|
+
exports.Utm = Utm;
|
|
25
48
|
class Rule {
|
|
26
49
|
}
|
|
27
50
|
__decorate([
|
|
@@ -179,6 +202,11 @@ __decorate([
|
|
|
179
202
|
exports.Transactions = Transactions;
|
|
180
203
|
class OrderRO extends ro_class_1.RO {
|
|
181
204
|
}
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, class_transformer_1.Expose)(),
|
|
207
|
+
(0, class_transformer_1.Type)(() => Utm),
|
|
208
|
+
__metadata("design:type", Utm)
|
|
209
|
+
], OrderRO.prototype, "utm", void 0);
|
|
182
210
|
__decorate([
|
|
183
211
|
(0, class_transformer_1.Expose)(),
|
|
184
212
|
__metadata("design:type", Number)
|
|
@@ -1,7 +1,8 @@
|
|
|
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
|
-
|
|
4
|
+
import { Utm } from './order.ro';
|
|
5
|
+
export declare class QueryOrderDto extends Utm {
|
|
5
6
|
date?: [string, string];
|
|
6
7
|
created?: [string, string];
|
|
7
8
|
clientId?: string;
|
|
@@ -15,7 +15,8 @@ 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
|
-
|
|
18
|
+
const order_ro_1 = require("./order.ro");
|
|
19
|
+
class QueryOrderDto extends order_ro_1.Utm {
|
|
19
20
|
}
|
|
20
21
|
__decorate([
|
|
21
22
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
2
|
import { ProfileActionDto } from './action/profile-action.dto';
|
|
3
3
|
import { ProfileContctRO } from './contacts/profile-contact.ro';
|
|
4
|
-
import {
|
|
4
|
+
import { PartnerProgramEnum } from './enum/partner-program.enum';
|
|
5
|
+
import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
|
|
6
|
+
import { ProfileStatusEnum } from './enum/profile-step.enum';
|
|
7
|
+
import { ProfileSubscriptionTypeEnum } from './enum/profile-subscription-type.enum';
|
|
5
8
|
import { ProfileSubscriptionEnum } from './enum/profile-subscription.enum';
|
|
9
|
+
declare class History {
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
row: string;
|
|
12
|
+
oldValue: string;
|
|
13
|
+
newValue: string;
|
|
14
|
+
}
|
|
6
15
|
export declare class AdminProfileRO {
|
|
16
|
+
history: History[];
|
|
17
|
+
partnerProgram: PartnerProgramEnum;
|
|
18
|
+
subscriptionStatus: ProfileSubscriptionEnum;
|
|
19
|
+
subscriptionType: ProfileSubscriptionTypeEnum;
|
|
20
|
+
subscriptionCancelationDate: number;
|
|
21
|
+
status: ProfileStatusEnum;
|
|
22
|
+
integrationType: ProfileIntegrationTypeEnum;
|
|
7
23
|
id: number;
|
|
8
24
|
createdAt: Date;
|
|
9
25
|
title: string;
|
|
@@ -22,12 +38,10 @@ export declare class AdminProfileRO {
|
|
|
22
38
|
country: CountriesEnum;
|
|
23
39
|
locationsCount: number;
|
|
24
40
|
questroomsCount: number;
|
|
25
|
-
subscription: ProfileSubscriptionEnum;
|
|
26
41
|
questroomsDeletedCount: number;
|
|
27
42
|
lastVisit: Date;
|
|
28
|
-
step: ProfileStepEnum;
|
|
29
|
-
updateStepDate: Date;
|
|
30
43
|
crm: string;
|
|
31
44
|
actions: ProfileActionDto[];
|
|
32
45
|
contacts: ProfileContctRO[];
|
|
33
46
|
}
|
|
47
|
+
export {};
|
|
@@ -15,10 +15,60 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
16
|
const profile_action_dto_1 = require("./action/profile-action.dto");
|
|
17
17
|
const profile_contact_ro_1 = require("./contacts/profile-contact.ro");
|
|
18
|
+
const partner_program_enum_1 = require("./enum/partner-program.enum");
|
|
19
|
+
const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
|
|
18
20
|
const profile_step_enum_1 = require("./enum/profile-step.enum");
|
|
21
|
+
const profile_subscription_type_enum_1 = require("./enum/profile-subscription-type.enum");
|
|
19
22
|
const profile_subscription_enum_1 = require("./enum/profile-subscription.enum");
|
|
23
|
+
class History {
|
|
24
|
+
}
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], History.prototype, "createdAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], History.prototype, "row", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], History.prototype, "oldValue", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], History.prototype, "newValue", void 0);
|
|
20
41
|
class AdminProfileRO {
|
|
21
42
|
}
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_transformer_1.Type)(() => History),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], AdminProfileRO.prototype, "history", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AdminProfileRO.prototype, "partnerProgram", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], AdminProfileRO.prototype, "subscriptionStatus", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], AdminProfileRO.prototype, "subscriptionType", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], AdminProfileRO.prototype, "subscriptionCancelationDate", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], AdminProfileRO.prototype, "status", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], AdminProfileRO.prototype, "integrationType", void 0);
|
|
22
72
|
__decorate([
|
|
23
73
|
(0, class_transformer_1.Expose)(),
|
|
24
74
|
__metadata("design:type", Number)
|
|
@@ -91,10 +141,6 @@ __decorate([
|
|
|
91
141
|
(0, class_transformer_1.Expose)(),
|
|
92
142
|
__metadata("design:type", Number)
|
|
93
143
|
], AdminProfileRO.prototype, "questroomsCount", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, class_transformer_1.Expose)(),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], AdminProfileRO.prototype, "subscription", void 0);
|
|
98
144
|
__decorate([
|
|
99
145
|
(0, class_transformer_1.Expose)(),
|
|
100
146
|
__metadata("design:type", Number)
|
|
@@ -103,14 +149,6 @@ __decorate([
|
|
|
103
149
|
(0, class_transformer_1.Expose)(),
|
|
104
150
|
__metadata("design:type", Date)
|
|
105
151
|
], AdminProfileRO.prototype, "lastVisit", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, class_transformer_1.Expose)(),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], AdminProfileRO.prototype, "step", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, class_transformer_1.Expose)(),
|
|
112
|
-
__metadata("design:type", Date)
|
|
113
|
-
], AdminProfileRO.prototype, "updateStepDate", void 0);
|
|
114
152
|
__decorate([
|
|
115
153
|
(0, class_transformer_1.Expose)(),
|
|
116
154
|
__metadata("design:type", String)
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
|
-
import {
|
|
3
|
+
import { PartnerProgramEnum } from './enum/partner-program.enum';
|
|
4
|
+
import { ProfileStatusEnum } from './enum/profile-step.enum';
|
|
4
5
|
export declare class CreateProfileDto {
|
|
5
6
|
country: CountriesEnum;
|
|
7
|
+
partnerProgram: PartnerProgramEnum;
|
|
6
8
|
title: string;
|
|
7
9
|
site: string;
|
|
8
10
|
phoneForCustomers: string;
|
|
9
11
|
logo: string;
|
|
10
|
-
|
|
12
|
+
status: ProfileStatusEnum;
|
|
11
13
|
mainEmail: string;
|
|
12
14
|
secondaryEmails: string[];
|
|
13
15
|
legalTitle: string;
|
|
@@ -15,6 +15,7 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
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 partner_program_enum_1 = require("./enum/partner-program.enum");
|
|
18
19
|
const profile_step_enum_1 = require("./enum/profile-step.enum");
|
|
19
20
|
class CreateProfileDto {
|
|
20
21
|
}
|
|
@@ -23,6 +24,11 @@ __decorate([
|
|
|
23
24
|
(0, class_transformer_1.Expose)(),
|
|
24
25
|
__metadata("design:type", String)
|
|
25
26
|
], CreateProfileDto.prototype, "country", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateProfileDto.prototype, "partnerProgram", void 0);
|
|
26
32
|
__decorate([
|
|
27
33
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
28
34
|
(0, class_transformer_1.Expose)(),
|
|
@@ -46,10 +52,10 @@ __decorate([
|
|
|
46
52
|
], CreateProfileDto.prototype, "logo", void 0);
|
|
47
53
|
__decorate([
|
|
48
54
|
(0, class_validator_1.IsOptional)(),
|
|
49
|
-
(0, class_validator_1.IsEnum)(profile_step_enum_1.
|
|
55
|
+
(0, class_validator_1.IsEnum)(profile_step_enum_1.ProfileStatusEnum),
|
|
50
56
|
(0, class_transformer_1.Expose)(),
|
|
51
57
|
__metadata("design:type", String)
|
|
52
|
-
], CreateProfileDto.prototype, "
|
|
58
|
+
], CreateProfileDto.prototype, "status", void 0);
|
|
53
59
|
__decorate([
|
|
54
60
|
(0, class_validator_1.IsOptional)(),
|
|
55
61
|
(0, class_validator_1.IsEmail)(),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartnerProgramEnum = void 0;
|
|
4
|
+
var PartnerProgramEnum;
|
|
5
|
+
(function (PartnerProgramEnum) {
|
|
6
|
+
PartnerProgramEnum["NONE"] = "none";
|
|
7
|
+
PartnerProgramEnum["REQUESTED"] = "requested";
|
|
8
|
+
PartnerProgramEnum["ACTIVE"] = "active";
|
|
9
|
+
PartnerProgramEnum["NEED_SETUP"] = "need_setup";
|
|
10
|
+
PartnerProgramEnum["PAUSED"] = "paused";
|
|
11
|
+
})(PartnerProgramEnum = exports.PartnerProgramEnum || (exports.PartnerProgramEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProfileIntegrationTypeEnum = void 0;
|
|
4
|
+
var ProfileIntegrationTypeEnum;
|
|
5
|
+
(function (ProfileIntegrationTypeEnum) {
|
|
6
|
+
ProfileIntegrationTypeEnum["BOOKEO"] = "bookeo";
|
|
7
|
+
ProfileIntegrationTypeEnum["NONE"] = "none";
|
|
8
|
+
})(ProfileIntegrationTypeEnum = exports.ProfileIntegrationTypeEnum || (exports.ProfileIntegrationTypeEnum = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum ProfileStatusEnum {
|
|
2
2
|
CLOSED = "closed",
|
|
3
3
|
CANCELED = "canceled",
|
|
4
4
|
NOT_VERIFIED = "not_verified",
|
|
@@ -9,12 +9,7 @@ export declare enum ProfileStepEnum {
|
|
|
9
9
|
LINK_REQUESTED = "link_requested",
|
|
10
10
|
VERIFICATION_USER_DATA = "verification_user",
|
|
11
11
|
VERIFICATION_PROFILE = "verification_profile",
|
|
12
|
-
VERIFICATION_RULES = "verification_rules",
|
|
13
12
|
VERIFICATION_LOCATIONS = "verification_locations",
|
|
14
13
|
VERIFICATION_QUESTROOMS = "verification_questrooms",
|
|
15
|
-
|
|
16
|
-
INTEGRATED_BOOKEO = "integrated_bookeo",
|
|
17
|
-
CRM = "CRM",
|
|
18
|
-
CRM_UNPDAID = "CRM_unpdaid",
|
|
19
|
-
CRM_TRIAL = "CRM_trial"
|
|
14
|
+
VERIFIED = "verified"
|
|
20
15
|
}
|
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
3
|
+
exports.ProfileStatusEnum = void 0;
|
|
4
|
+
var ProfileStatusEnum;
|
|
5
|
+
(function (ProfileStatusEnum) {
|
|
6
6
|
// закрыт
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
ProfileStatusEnum["CLOSED"] = "closed";
|
|
8
|
+
// попросил удалиться с навигатора
|
|
9
|
+
ProfileStatusEnum["CANCELED"] = "canceled";
|
|
10
|
+
// данные не готовы к рассылке
|
|
11
|
+
ProfileStatusEnum["NOT_VERIFIED"] = "not_verified";
|
|
12
|
+
// данные готовы к рассылке
|
|
13
|
+
ProfileStatusEnum["READY_TO_VERIFY"] = "ready_to_verify";
|
|
14
|
+
// отправлен рекламный email
|
|
15
|
+
ProfileStatusEnum["SENT_EMAIL"] = "sent_email";
|
|
15
16
|
// открыл квест на агрегаторе
|
|
16
|
-
|
|
17
|
-
//
|
|
18
|
-
|
|
17
|
+
ProfileStatusEnum["OPEN_EMAIL"] = "open_email";
|
|
18
|
+
// ажал на кнопку 'я владелец'
|
|
19
|
+
ProfileStatusEnum["OPEN_REQUEST_PAGE"] = "open_request_page";
|
|
19
20
|
// ввел правильный email и получил линк
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ProfileStepEnum["INTEGRATED_NO"] = "integrated_no";
|
|
28
|
-
ProfileStepEnum["INTEGRATED_BOOKEO"] = "integrated_bookeo";
|
|
29
|
-
ProfileStepEnum["CRM"] = "CRM";
|
|
30
|
-
ProfileStepEnum["CRM_UNPDAID"] = "CRM_unpdaid";
|
|
31
|
-
ProfileStepEnum["CRM_TRIAL"] = "CRM_trial";
|
|
32
|
-
})(ProfileStepEnum = exports.ProfileStepEnum || (exports.ProfileStepEnum = {}));
|
|
21
|
+
ProfileStatusEnum["LINK_REQUESTED"] = "link_requested";
|
|
22
|
+
ProfileStatusEnum["VERIFICATION_USER_DATA"] = "verification_user";
|
|
23
|
+
ProfileStatusEnum["VERIFICATION_PROFILE"] = "verification_profile";
|
|
24
|
+
ProfileStatusEnum["VERIFICATION_LOCATIONS"] = "verification_locations";
|
|
25
|
+
ProfileStatusEnum["VERIFICATION_QUESTROOMS"] = "verification_questrooms";
|
|
26
|
+
ProfileStatusEnum["VERIFIED"] = "verified";
|
|
27
|
+
})(ProfileStatusEnum = exports.ProfileStatusEnum || (exports.ProfileStatusEnum = {}));
|