@escapenavigator/types 1.10.79 → 1.10.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/aggregator-order/aggregator-order.ro.d.ts +31 -0
- package/dist/admin/aggregator-order/aggregator-order.ro.js +108 -0
- package/dist/admin/aggregator-order/create-aggregator-order.dto.d.ts +12 -0
- package/dist/admin/aggregator-order/create-aggregator-order.dto.js +74 -0
- package/dist/admin/aggregator-order/enum/aggregator-order-status.enum.d.ts +5 -0
- package/dist/admin/aggregator-order/enum/aggregator-order-status.enum.js +9 -0
- package/dist/admin/aggregator-order/query-aggregator-order.dto.d.ts +6 -0
- package/dist/admin/aggregator-order/query-aggregator-order.dto.js +29 -0
- package/dist/admin/aggregator-order/update-aggregator-order.dto.d.ts +8 -0
- package/dist/admin/aggregator-order/update-aggregator-order.dto.js +47 -0
- package/dist/agregator/agregator-questroom.ro.js +1 -1
- package/dist/balance/balance-item.ro.d.ts +1 -0
- package/dist/balance/balance-item.ro.js +4 -0
- package/dist/constants/language-flag-by-language.js +1 -1
- package/dist/custom-field/create-custom-field.dto.d.ts +3 -0
- package/dist/custom-field/create-custom-field.dto.js +14 -0
- package/dist/custom-field/custom-field.ro.d.ts +3 -0
- package/dist/custom-field/custom-field.ro.js +9 -0
- package/dist/custom-field/enum/custom-field-type.enum.d.ts +5 -0
- package/dist/custom-field/enum/custom-field-type.enum.js +9 -0
- package/dist/location/create-location.dto.d.ts +2 -0
- package/dist/location/create-location.dto.js +13 -0
- package/dist/navigator-certificate/create-navigator-certificate-sale.dto.d.ts +21 -0
- package/dist/navigator-certificate/create-navigator-certificate-sale.dto.js +116 -0
- package/dist/navigator-certificate/create-navigator-certificate-template.dto.d.ts +15 -0
- package/dist/navigator-certificate/create-navigator-certificate-template.dto.js +89 -0
- package/dist/navigator-certificate/enum/navigator-delivery-tier.enum.d.ts +4 -0
- package/dist/navigator-certificate/enum/navigator-delivery-tier.enum.js +8 -0
- package/dist/navigator-certificate/index.d.ts +7 -0
- package/dist/navigator-certificate/index.js +23 -0
- package/dist/navigator-certificate/navigator-certificate-sale.ro.d.ts +29 -0
- package/dist/navigator-certificate/navigator-certificate-sale.ro.js +112 -0
- package/dist/navigator-certificate/navigator-certificate-template.ro.d.ts +12 -0
- package/dist/navigator-certificate/navigator-certificate-template.ro.js +49 -0
- package/dist/navigator-certificate/update-navigator-certificate-code.dto.d.ts +3 -0
- package/dist/navigator-certificate/update-navigator-certificate-code.dto.js +22 -0
- package/dist/navigator-certificate/update-navigator-certificate-template.dto.d.ts +11 -0
- package/dist/navigator-certificate/update-navigator-certificate-template.dto.js +72 -0
- package/dist/openapi/certificates/openapi-navigator-certificate-sale.ro.d.ts +4 -0
- package/dist/openapi/certificates/openapi-navigator-certificate-sale.ro.js +21 -0
- package/dist/openapi/orders/openapi-create-preorder.dto.d.ts +4 -1
- package/dist/openapi/orders/openapi-create-preorder.dto.js +13 -1
- package/dist/openapi/orders/openapi-order-for-order-service.ro.d.ts +3 -0
- package/dist/openapi/orders/openapi-order-for-order-service.ro.js +8 -0
- package/dist/openapi/orders/openapi-update-order-language-and-mode.dto.d.ts +6 -0
- package/dist/openapi/orders/openapi-update-order-language-and-mode.dto.js +34 -0
- package/dist/openapi/orders/openapi-update-order-slot.dto.d.ts +4 -0
- package/dist/openapi/orders/openapi-update-order-slot.dto.js +28 -0
- package/dist/openapi/ru-aggregators/aggregators-info.js +7 -7
- package/dist/openapi/shared/openapi-order-slot.ro.d.ts +0 -1
- package/dist/openapi/shared/openapi-questroom.ro.d.ts +4 -0
- package/dist/openapi/shared/openapi-questroom.ro.js +8 -0
- package/dist/openapi/slots/openapi-widget-slot.ro.d.ts +2 -1
- package/dist/openapi/slots/openapi-widget-slot.ro.js +7 -0
- package/dist/openapi/widget/openapi-widget-info.ro.d.ts +12 -8
- package/dist/openapi/widget/openapi-widget-info.ro.js +13 -0
- package/dist/order/dashboard/dashboard-order.ro.d.ts +1 -0
- package/dist/order/dashboard/dashboard-order.ro.js +4 -0
- package/dist/order-transaction/create-order-invoice.dto.d.ts +13 -0
- package/dist/order-transaction/create-order-invoice.dto.js +75 -0
- package/dist/profile/create-profile.dto.d.ts +2 -0
- package/dist/profile/create-profile.dto.js +7 -0
- package/dist/profile/cross-sale/cross-sale.dto.d.ts +1 -0
- package/dist/profile/cross-sale/cross-sale.dto.js +6 -0
- package/dist/profile/cross-sale/cross-sale.ro.d.ts +1 -0
- package/dist/profile/cross-sale/cross-sale.ro.js +4 -0
- package/dist/profile/cross-sale/early-booking/early-booking.dto.d.ts +1 -0
- package/dist/profile/cross-sale/early-booking/early-booking.dto.js +6 -0
- package/dist/profile/cross-sale/early-booking/early-booking.ro.d.ts +1 -0
- package/dist/profile/cross-sale/early-booking/early-booking.ro.js +4 -0
- package/dist/profile/cross-sale/retargeting/retargeting.dto.d.ts +1 -0
- package/dist/profile/cross-sale/retargeting/retargeting.dto.js +6 -0
- package/dist/profile/cross-sale/retargeting/retargeting.ro.d.ts +1 -0
- package/dist/profile/cross-sale/retargeting/retargeting.ro.js +4 -0
- package/dist/profile/cross-sale/up-sale/up-sale.dto.d.ts +1 -0
- package/dist/profile/cross-sale/up-sale/up-sale.dto.js +6 -0
- package/dist/profile/cross-sale/up-sale/up-sale.ro.d.ts +1 -0
- package/dist/profile/cross-sale/up-sale/up-sale.ro.js +4 -0
- package/dist/profile/enum/profile-integration-type.enum.d.ts +2 -0
- package/dist/profile/enum/profile-integration-type.enum.js +2 -0
- package/dist/profile/profile.ro.d.ts +2 -0
- package/dist/profile/profile.ro.js +8 -0
- package/dist/profile/update-booking-fields.dto.d.ts +5 -0
- package/dist/profile/update-booking-fields.dto.js +48 -0
- package/dist/profile/update-current-base.dto.d.ts +2 -0
- package/dist/profile/update-current-base.dto.js +10 -0
- package/dist/profile/update-current.dto.d.ts +0 -3
- package/dist/profile/update-current.dto.js +0 -12
- package/dist/questroom/create-questroom.dto.d.ts +1 -0
- package/dist/questroom/create-questroom.dto.js +7 -0
- package/dist/questroom/questroom.ro.d.ts +0 -3
- package/dist/questroom/questroom.ro.js +0 -9
- package/dist/questroom/questrooms-list-admin.ro.d.ts +14 -0
- package/dist/questroom/questrooms-list-admin.ro.js +35 -0
- package/dist/questroom/update-questroom-integration.dto.d.ts +6 -0
- package/dist/questroom/update-questroom-integration.dto.js +41 -0
- package/dist/slot/slot.ro.d.ts +1 -0
- package/dist/transaction/transaction.ro.d.ts +1 -0
- package/dist/transaction/transaction.ro.js +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget/create-widget.dto.d.ts +1 -0
- package/dist/widget/create-widget.dto.js +9 -0
- package/dist/widget/widget.ro.d.ts +1 -0
- package/package.json +2 -2
- package/dist/questroom/enum/questroom-integration-type.enum.d.ts +0 -3
- package/dist/questroom/enum/questroom-integration-type.enum.js +0 -7
|
@@ -0,0 +1,28 @@
|
|
|
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.OpenapiUpdateOrderSlotDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
16
|
+
class OpenapiUpdateOrderSlotDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], OpenapiUpdateOrderSlotDto.prototype, "orderToken", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], OpenapiUpdateOrderSlotDto.prototype, "slotId", void 0);
|
|
28
|
+
exports.OpenapiUpdateOrderSlotDto = OpenapiUpdateOrderSlotDto;
|
|
@@ -5,30 +5,30 @@ const aggregators_enum_1 = require("./aggregators.enum");
|
|
|
5
5
|
exports.aggregatorsInfo = {
|
|
6
6
|
[aggregators_enum_1.AggregatorsEnum.GILDIA_KVESTOV]: {
|
|
7
7
|
title: 'Гильдия квестов',
|
|
8
|
-
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/GILDIA_QUESTOV.webp',
|
|
8
|
+
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/aggregators/GILDIA_QUESTOV.webp',
|
|
9
9
|
},
|
|
10
10
|
[aggregators_enum_1.AggregatorsEnum.QUEST_GUIDE]: {
|
|
11
11
|
title: 'Квест Гид',
|
|
12
|
-
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/QUEST_GID.webp',
|
|
12
|
+
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/aggregators/QUEST_GID.webp',
|
|
13
13
|
},
|
|
14
14
|
[aggregators_enum_1.AggregatorsEnum.MIR_KVESTOV]: {
|
|
15
15
|
title: 'Мир квестов',
|
|
16
|
-
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/MIR_QUESTOV.webp',
|
|
16
|
+
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/aggregators/MIR_QUESTOV.webp',
|
|
17
17
|
},
|
|
18
18
|
[aggregators_enum_1.AggregatorsEnum.QUEST_STARTS]: {
|
|
19
19
|
title: 'Quest starts',
|
|
20
|
-
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/QUEST_STARTS.webp',
|
|
20
|
+
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/aggregators/QUEST_STARTS.webp',
|
|
21
21
|
},
|
|
22
22
|
[aggregators_enum_1.AggregatorsEnum.QUEST_HUNTER]: {
|
|
23
23
|
title: 'Квест хантер',
|
|
24
|
-
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/QUEST_HUNTER.webp',
|
|
24
|
+
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/aggregators/QUEST_HUNTER.webp',
|
|
25
25
|
},
|
|
26
26
|
[aggregators_enum_1.AggregatorsEnum.QUEST_INFO]: {
|
|
27
27
|
title: 'Квест ифно',
|
|
28
|
-
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/QUEST_INFO.webp',
|
|
28
|
+
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/aggregators/QUEST_INFO.webp',
|
|
29
29
|
},
|
|
30
30
|
[aggregators_enum_1.AggregatorsEnum.TOP_KVESTOV]: {
|
|
31
31
|
title: 'Топ квестов',
|
|
32
|
-
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/TOP_QUESTOV.webp',
|
|
32
|
+
image: 'https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/aggregators/TOP_QUESTOV.webp',
|
|
33
33
|
},
|
|
34
34
|
};
|
|
@@ -33,6 +33,8 @@ export declare const transformQuestroom: ({ value, language, }: {
|
|
|
33
33
|
paypalCashbox: number;
|
|
34
34
|
modes: Mode[];
|
|
35
35
|
minAge: number;
|
|
36
|
+
flexPlayersSelect: boolean;
|
|
37
|
+
canBookFewSlots?: boolean;
|
|
36
38
|
};
|
|
37
39
|
declare class QuestroomLocale {
|
|
38
40
|
title: string;
|
|
@@ -81,6 +83,8 @@ export declare class OpenapiQuestroomRO {
|
|
|
81
83
|
minAge: number;
|
|
82
84
|
location: Location;
|
|
83
85
|
locales: QuestroomLocale[];
|
|
86
|
+
flexPlayersSelect: boolean;
|
|
87
|
+
canBookFewSlots?: boolean;
|
|
84
88
|
}
|
|
85
89
|
export declare class QuestroomRow {
|
|
86
90
|
questroom: OpenapiQuestroomRO;
|
|
@@ -201,6 +201,14 @@ __decorate([
|
|
|
201
201
|
(0, class_transformer_1.Type)(() => QuestroomLocale),
|
|
202
202
|
__metadata("design:type", Array)
|
|
203
203
|
], OpenapiQuestroomRO.prototype, "locales", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, class_transformer_1.Expose)(),
|
|
206
|
+
__metadata("design:type", Boolean)
|
|
207
|
+
], OpenapiQuestroomRO.prototype, "flexPlayersSelect", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, class_transformer_1.Expose)(),
|
|
210
|
+
__metadata("design:type", Boolean)
|
|
211
|
+
], OpenapiQuestroomRO.prototype, "canBookFewSlots", void 0);
|
|
204
212
|
exports.OpenapiQuestroomRO = OpenapiQuestroomRO;
|
|
205
213
|
class QuestroomRow {
|
|
206
214
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { OpenapiBokingRuleRO } from '../shared/openapi-booking-rule.ro';
|
|
2
2
|
import { OpenapiTariffRO } from '../shared/openapi-tariff.ro';
|
|
3
|
-
export type SlotType = 'bookeo' | 'crm';
|
|
3
|
+
export type SlotType = 'bookeo' | 'crm' | 'myerp' | 'kvestadmin';
|
|
4
4
|
export declare class OpenapiSlotRO {
|
|
5
5
|
type: SlotType;
|
|
6
6
|
questroomId: number;
|
|
7
|
+
basePrice?: number;
|
|
7
8
|
productId: string | null;
|
|
8
9
|
eventId: string;
|
|
9
10
|
start: string;
|
|
@@ -19,6 +19,8 @@ var SType;
|
|
|
19
19
|
(function (SType) {
|
|
20
20
|
SType["BOOKEO"] = "booceo";
|
|
21
21
|
SType["CRM"] = "crm";
|
|
22
|
+
SType["MYERP"] = "myerp";
|
|
23
|
+
SType["KVESTADMIN"] = "kvestadmin";
|
|
22
24
|
})(SType || (SType = {}));
|
|
23
25
|
class OpenapiSlotRO {
|
|
24
26
|
}
|
|
@@ -36,6 +38,11 @@ __decorate([
|
|
|
36
38
|
(0, class_transformer_1.Expose)(),
|
|
37
39
|
__metadata("design:type", Number)
|
|
38
40
|
], OpenapiSlotRO.prototype, "questroomId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)(),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], OpenapiSlotRO.prototype, "basePrice", void 0);
|
|
39
46
|
__decorate([
|
|
40
47
|
(0, swagger_1.ApiProperty)(),
|
|
41
48
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CustomFieldTypeEnum } from '../../custom-field/enum/custom-field-type.enum';
|
|
1
2
|
import { ProfileCurrencyEnum } from '../../profile/enum/profile-currency';
|
|
2
3
|
import { WidgetStyleEnum } from '../../profile/widget-customization/enum/widget-style.enum';
|
|
3
4
|
import { WidgetViewEnum } from '../../profile/widget-customization/enum/widget-view.enum';
|
|
@@ -29,6 +30,8 @@ declare class CustomFiled {
|
|
|
29
30
|
id: number;
|
|
30
31
|
title: string;
|
|
31
32
|
required: boolean;
|
|
33
|
+
type: CustomFieldTypeEnum;
|
|
34
|
+
options?: string[];
|
|
32
35
|
}
|
|
33
36
|
declare class Profile {
|
|
34
37
|
id: number;
|
|
@@ -42,8 +45,8 @@ declare class Profile {
|
|
|
42
45
|
}
|
|
43
46
|
export declare class OpenapiWidgetInfoRO {
|
|
44
47
|
uuid: string;
|
|
45
|
-
testMode
|
|
46
|
-
withWaiver
|
|
48
|
+
testMode?: boolean;
|
|
49
|
+
withWaiver?: boolean;
|
|
47
50
|
customFields: CustomFiled[];
|
|
48
51
|
upsellings: OpenapiUpsellingRO[];
|
|
49
52
|
language: Languages;
|
|
@@ -51,13 +54,14 @@ export declare class OpenapiWidgetInfoRO {
|
|
|
51
54
|
questrooms: OpenapiQuestroomRO[];
|
|
52
55
|
certificates: OpenapiCertificateTemplateRO[];
|
|
53
56
|
profile: Profile;
|
|
54
|
-
ga4Id
|
|
55
|
-
gaCoversationId
|
|
56
|
-
gaCoversationLabel
|
|
57
|
-
gaEnabled
|
|
58
|
-
fbPixelEnabled
|
|
59
|
-
fbPixelId
|
|
57
|
+
ga4Id?: string;
|
|
58
|
+
gaCoversationId?: string;
|
|
59
|
+
gaCoversationLabel?: string;
|
|
60
|
+
gaEnabled?: boolean;
|
|
61
|
+
fbPixelEnabled?: boolean;
|
|
62
|
+
fbPixelId?: string;
|
|
60
63
|
customization: Customization;
|
|
61
64
|
mailchimp?: string | Mailchimp;
|
|
65
|
+
daysAhead?: number;
|
|
62
66
|
}
|
|
63
67
|
export {};
|
|
@@ -13,6 +13,7 @@ exports.OpenapiWidgetInfoRO = void 0;
|
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const currency_by_country_1 = require("../../constants/currency-by-country");
|
|
16
|
+
const custom_field_type_enum_1 = require("../../custom-field/enum/custom-field-type.enum");
|
|
16
17
|
const profile_currency_1 = require("../../profile/enum/profile-currency");
|
|
17
18
|
const widget_style_enum_1 = require("../../profile/widget-customization/enum/widget-style.enum");
|
|
18
19
|
const widget_view_enum_1 = require("../../profile/widget-customization/enum/widget-view.enum");
|
|
@@ -87,6 +88,14 @@ __decorate([
|
|
|
87
88
|
(0, class_transformer_1.Expose)(),
|
|
88
89
|
__metadata("design:type", Boolean)
|
|
89
90
|
], CustomFiled.prototype, "required", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_transformer_1.Expose)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], CustomFiled.prototype, "type", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], CustomFiled.prototype, "options", void 0);
|
|
90
99
|
class Profile {
|
|
91
100
|
}
|
|
92
101
|
__decorate([
|
|
@@ -210,4 +219,8 @@ __decorate([
|
|
|
210
219
|
}),
|
|
211
220
|
__metadata("design:type", Object)
|
|
212
221
|
], OpenapiWidgetInfoRO.prototype, "mailchimp", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, class_transformer_1.Expose)(),
|
|
224
|
+
__metadata("design:type", Number)
|
|
225
|
+
], OpenapiWidgetInfoRO.prototype, "daysAhead", void 0);
|
|
213
226
|
exports.OpenapiWidgetInfoRO = OpenapiWidgetInfoRO;
|
|
@@ -78,4 +78,8 @@ __decorate([
|
|
|
78
78
|
(0, class_transformer_1.Expose)(),
|
|
79
79
|
__metadata("design:type", openapi_tariff_ro_1.OpenapiTariffRO)
|
|
80
80
|
], DashboardOrderRO.prototype, "roles", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_transformer_1.Expose)(),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], DashboardOrderRO.prototype, "rolesIds", void 0);
|
|
81
85
|
exports.DashboardOrderRO = DashboardOrderRO;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class CreateOrderInvoiceDto {
|
|
2
|
+
orderId: number;
|
|
3
|
+
amount: number;
|
|
4
|
+
organizationName: string;
|
|
5
|
+
organizationAddress: string;
|
|
6
|
+
organizationTaxId: string;
|
|
7
|
+
organizationRegistrationNumber: string;
|
|
8
|
+
contactPerson: string;
|
|
9
|
+
contactEmail: string;
|
|
10
|
+
contactPhone?: string;
|
|
11
|
+
comment?: string;
|
|
12
|
+
taxRate?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.CreateOrderInvoiceDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateOrderInvoiceDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], CreateOrderInvoiceDto.prototype, "orderId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsPositive)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], CreateOrderInvoiceDto.prototype, "amount", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateOrderInvoiceDto.prototype, "organizationName", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateOrderInvoiceDto.prototype, "organizationAddress", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateOrderInvoiceDto.prototype, "organizationTaxId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateOrderInvoiceDto.prototype, "organizationRegistrationNumber", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateOrderInvoiceDto.prototype, "contactPerson", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CreateOrderInvoiceDto.prototype, "contactEmail", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreateOrderInvoiceDto.prototype, "contactPhone", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateOrderInvoiceDto.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsNumber)(),
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], CreateOrderInvoiceDto.prototype, "taxRate", void 0);
|
|
75
|
+
exports.CreateOrderInvoiceDto = CreateOrderInvoiceDto;
|
|
@@ -2,6 +2,7 @@ import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
3
|
import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
|
|
4
4
|
import { PartnerProgramEnum } from './enum/partner-program.enum';
|
|
5
|
+
import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
|
|
5
6
|
import { ProfileLoyaltyEnum } from './enum/profile-loyalty.enum';
|
|
6
7
|
import { ProfileSalesStatus } from './enum/profile-sales-status.enum';
|
|
7
8
|
import { ProfileStatusEnum } from './enum/profile-step.enum';
|
|
@@ -14,6 +15,7 @@ export declare class CreateProfileDto {
|
|
|
14
15
|
techStatus: ProfileTechStatusEnum;
|
|
15
16
|
crmVerification: CrmVerificationEnum;
|
|
16
17
|
partnerProgram: PartnerProgramEnum;
|
|
18
|
+
integrationType: ProfileIntegrationTypeEnum;
|
|
17
19
|
title: string;
|
|
18
20
|
site: string;
|
|
19
21
|
lastEmailSendId: string;
|
|
@@ -16,6 +16,7 @@ const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
|
16
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
17
|
const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
|
|
18
18
|
const partner_program_enum_1 = require("./enum/partner-program.enum");
|
|
19
|
+
const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
|
|
19
20
|
const profile_loyalty_enum_1 = require("./enum/profile-loyalty.enum");
|
|
20
21
|
const profile_sales_status_enum_1 = require("./enum/profile-sales-status.enum");
|
|
21
22
|
const profile_step_enum_1 = require("./enum/profile-step.enum");
|
|
@@ -48,6 +49,12 @@ __decorate([
|
|
|
48
49
|
(0, class_transformer_1.Expose)(),
|
|
49
50
|
__metadata("design:type", String)
|
|
50
51
|
], CreateProfileDto.prototype, "partnerProgram", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsEnum)(profile_integration_type_enum_1.ProfileIntegrationTypeEnum),
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CreateProfileDto.prototype, "integrationType", void 0);
|
|
51
58
|
__decorate([
|
|
52
59
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
53
60
|
(0, class_transformer_1.Expose)(),
|
|
@@ -72,6 +72,12 @@ __decorate([
|
|
|
72
72
|
(0, class_transformer_1.Expose)(),
|
|
73
73
|
__metadata("design:type", String)
|
|
74
74
|
], CrossSaleDto.prototype, "discountType", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsBoolean)(),
|
|
77
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], CrossSaleDto.prototype, "sendToAllParticipants", void 0);
|
|
75
81
|
__decorate([
|
|
76
82
|
(0, class_transformer_1.Type)(() => CrossSaleLocaleDto),
|
|
77
83
|
(0, class_validator_1.IsArray)(),
|
|
@@ -53,6 +53,10 @@ __decorate([
|
|
|
53
53
|
(0, class_transformer_1.Expose)(),
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], CrossSaleRO.prototype, "discountType", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], CrossSaleRO.prototype, "sendToAllParticipants", void 0);
|
|
56
60
|
__decorate([
|
|
57
61
|
(0, class_transformer_1.Expose)(),
|
|
58
62
|
(0, class_transformer_1.Type)(() => CrossSaleLocaleRO),
|
|
@@ -28,6 +28,12 @@ __decorate([
|
|
|
28
28
|
(0, class_transformer_1.Expose)(),
|
|
29
29
|
__metadata("design:type", Number)
|
|
30
30
|
], EarlyBookingDto.prototype, "sendBefore", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsBoolean)(),
|
|
33
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], EarlyBookingDto.prototype, "sendToAllParticipants", void 0);
|
|
31
37
|
__decorate([
|
|
32
38
|
(0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
|
|
33
39
|
(0, class_validator_1.IsArray)(),
|
|
@@ -24,6 +24,10 @@ __decorate([
|
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], EarlyBookingRO.prototype, "status", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], EarlyBookingRO.prototype, "sendToAllParticipants", void 0);
|
|
27
31
|
__decorate([
|
|
28
32
|
(0, class_transformer_1.Expose)(),
|
|
29
33
|
(0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
|
|
@@ -39,6 +39,12 @@ __decorate([
|
|
|
39
39
|
(0, class_transformer_1.Expose)(),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], RetargetingDto.prototype, "discountType", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsBoolean)(),
|
|
44
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], RetargetingDto.prototype, "sendToAllParticipants", void 0);
|
|
42
48
|
__decorate([
|
|
43
49
|
(0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
|
|
44
50
|
(0, class_validator_1.IsArray)(),
|
|
@@ -33,6 +33,10 @@ __decorate([
|
|
|
33
33
|
(0, class_transformer_1.Expose)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], RetargetingRO.prototype, "discountType", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], RetargetingRO.prototype, "sendToAllParticipants", void 0);
|
|
36
40
|
__decorate([
|
|
37
41
|
(0, class_transformer_1.Expose)(),
|
|
38
42
|
(0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
|
|
@@ -34,6 +34,12 @@ __decorate([
|
|
|
34
34
|
(0, class_transformer_1.Expose)(),
|
|
35
35
|
__metadata("design:type", Boolean)
|
|
36
36
|
], UpSaleDto.prototype, "sendImmediately", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsBoolean)(),
|
|
39
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], UpSaleDto.prototype, "sendToAllParticipants", void 0);
|
|
37
43
|
__decorate([
|
|
38
44
|
(0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
|
|
39
45
|
(0, class_validator_1.IsArray)(),
|
|
@@ -28,6 +28,10 @@ __decorate([
|
|
|
28
28
|
(0, class_transformer_1.Expose)(),
|
|
29
29
|
__metadata("design:type", Boolean)
|
|
30
30
|
], UpSaleRO.prototype, "sendImmediately", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], UpSaleRO.prototype, "sendToAllParticipants", void 0);
|
|
31
35
|
__decorate([
|
|
32
36
|
(0, class_transformer_1.Expose)(),
|
|
33
37
|
(0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
|
|
@@ -4,5 +4,7 @@ exports.ProfileIntegrationTypeEnum = void 0;
|
|
|
4
4
|
var ProfileIntegrationTypeEnum;
|
|
5
5
|
(function (ProfileIntegrationTypeEnum) {
|
|
6
6
|
ProfileIntegrationTypeEnum["BOOKEO"] = "bookeo";
|
|
7
|
+
ProfileIntegrationTypeEnum["MYERP"] = "myerp";
|
|
8
|
+
ProfileIntegrationTypeEnum["KVESTADMIN"] = "kvestadmin";
|
|
7
9
|
ProfileIntegrationTypeEnum["NONE"] = "none";
|
|
8
10
|
})(ProfileIntegrationTypeEnum = exports.ProfileIntegrationTypeEnum || (exports.ProfileIntegrationTypeEnum = {}));
|
|
@@ -102,6 +102,14 @@ __decorate([
|
|
|
102
102
|
(0, class_transformer_1.Expose)(),
|
|
103
103
|
__metadata("design:type", String)
|
|
104
104
|
], ProfileRO.prototype, "legalTitle", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_transformer_1.Expose)(),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], ProfileRO.prototype, "legalAddress", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, class_transformer_1.Expose)(),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], ProfileRO.prototype, "legalTaxId", void 0);
|
|
105
113
|
__decorate([
|
|
106
114
|
(0, class_transformer_1.Expose)(),
|
|
107
115
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,48 @@
|
|
|
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.UpdateBookingFieldsDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const widget_booking_filed_enum_1 = require("../widget/enum/widget-booking-filed.enum");
|
|
16
|
+
let HasPhoneOrEmailConstraint = class HasPhoneOrEmailConstraint {
|
|
17
|
+
validate(value, args) {
|
|
18
|
+
if (!value || !Array.isArray(value))
|
|
19
|
+
return false;
|
|
20
|
+
return (value.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.PHONE) ||
|
|
21
|
+
value.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.EMAIL));
|
|
22
|
+
}
|
|
23
|
+
defaultMessage(args) {
|
|
24
|
+
return 'Either phone or email must be selected';
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
HasPhoneOrEmailConstraint = __decorate([
|
|
28
|
+
(0, class_validator_1.ValidatorConstraint)({ name: 'hasPhoneOrEmail', async: false })
|
|
29
|
+
], HasPhoneOrEmailConstraint);
|
|
30
|
+
class UpdateBookingFieldsDto {
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsArray)(),
|
|
34
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
35
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.Validate)(HasPhoneOrEmailConstraint),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], UpdateBookingFieldsDto.prototype, "bookingFields", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsArray)(),
|
|
42
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
43
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_validator_1.Validate)(HasPhoneOrEmailConstraint),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], UpdateBookingFieldsDto.prototype, "adminBookingFields", void 0);
|
|
48
|
+
exports.UpdateBookingFieldsDto = UpdateBookingFieldsDto;
|