@escapenavigator/types 1.6.61 → 1.6.63
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/constants/currency-by-country.js +1 -1
- package/dist/constants/uploading/types.d.ts +8 -0
- package/dist/constants/uploading/types.js +2 -0
- package/dist/constants/uploading/upload-certificate-rows.d.ts +2 -0
- package/dist/constants/uploading/upload-certificate-rows.js +39 -0
- package/dist/constants/uploading/upload-order-bookeo-rows.d.ts +3 -0
- package/dist/constants/uploading/upload-order-bookeo-rows.js +63 -0
- package/dist/constants/uploading/upload-order-rows.d.ts +2 -0
- package/dist/constants/uploading/upload-order-rows.js +55 -0
- package/dist/profile/enum/profile-currency.d.ts +1 -1
- package/dist/profile/enum/profile-currency.js +1 -1
- package/dist/questroom/create-questroom.dto.d.ts +0 -1
- package/dist/questroom/create-questroom.dto.js +0 -6
- package/dist/questroom/questroom.ro.d.ts +0 -1
- package/dist/questroom/questroom.ro.js +0 -4
- package/dist/translation/enum/translation-status.enum.d.ts +2 -1
- package/dist/translation/enum/translation-status.enum.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/constants/upload-certificate-rows.d.ts +0 -1
- package/dist/constants/upload-certificate-rows.js +0 -12
- package/dist/constants/upload-order-rows.d.ts +0 -1
- package/dist/constants/upload-order-rows.js +0 -16
|
@@ -4,7 +4,7 @@ exports.currencyByCountry = void 0;
|
|
|
4
4
|
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
5
5
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
6
6
|
exports.currencyByCountry = {
|
|
7
|
-
[countries_enum_1.CountriesEnum.RUSSIA]: profile_currency_1.ProfileCurrencyEnum.
|
|
7
|
+
[countries_enum_1.CountriesEnum.RUSSIA]: profile_currency_1.ProfileCurrencyEnum.RUB,
|
|
8
8
|
[countries_enum_1.CountriesEnum.USA]: profile_currency_1.ProfileCurrencyEnum.USD,
|
|
9
9
|
[countries_enum_1.CountriesEnum.GERMANY]: profile_currency_1.ProfileCurrencyEnum.EUR,
|
|
10
10
|
[countries_enum_1.CountriesEnum.AUSTRIA]: profile_currency_1.ProfileCurrencyEnum.EUR,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare type UploadFileFormat<T extends string> = Record<T, {
|
|
2
|
+
row: string;
|
|
3
|
+
value?: unknown;
|
|
4
|
+
required: boolean;
|
|
5
|
+
serialize?: (val: unknown) => unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export declare type UploadCertificateRows = 'source' | 'code' | 'client' | 'nominal' | 'expireDate' | 'createdDate' | 'used';
|
|
8
|
+
export declare type UploadOrderRows = 'SOURCE' | 'CLIENT_NAME' | 'CLIENT_SURNAME' | 'CLIENT_PHONE' | 'CLIENT_EMAIL' | 'DATE_TIME' | 'PLAYERS' | 'QUESTROOM_ID' | 'TOTAL_AMOUNT' | 'PAYED' | 'LANGUAGE';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uploadCertificateRows = void 0;
|
|
4
|
+
const upload_order_bookeo_rows_1 = require("./upload-order-bookeo-rows");
|
|
5
|
+
exports.uploadCertificateRows = {
|
|
6
|
+
source: {
|
|
7
|
+
required: true,
|
|
8
|
+
row: 'source',
|
|
9
|
+
},
|
|
10
|
+
client: {
|
|
11
|
+
required: true,
|
|
12
|
+
row: 'client',
|
|
13
|
+
},
|
|
14
|
+
code: {
|
|
15
|
+
row: 'code',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
nominal: {
|
|
19
|
+
row: 'nominal',
|
|
20
|
+
required: true,
|
|
21
|
+
serialize: (val) => +val,
|
|
22
|
+
},
|
|
23
|
+
expireDate: {
|
|
24
|
+
row: 'expireDate',
|
|
25
|
+
required: true,
|
|
26
|
+
serialize: (val) => (0, upload_order_bookeo_rows_1.parseDate)(val),
|
|
27
|
+
},
|
|
28
|
+
createdDate: {
|
|
29
|
+
row: 'createdDate',
|
|
30
|
+
required: true,
|
|
31
|
+
serialize: (val) => (0, upload_order_bookeo_rows_1.parseDate)(val),
|
|
32
|
+
},
|
|
33
|
+
used: {
|
|
34
|
+
row: 'used',
|
|
35
|
+
value: undefined,
|
|
36
|
+
required: false,
|
|
37
|
+
serialize: (val) => (0, upload_order_bookeo_rows_1.parseDate)(val),
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uploadBookeoOrdersRows = exports.parseDate = void 0;
|
|
4
|
+
function parseDate(serial) {
|
|
5
|
+
const originalDate = new Date(serial);
|
|
6
|
+
if (!(originalDate instanceof Date))
|
|
7
|
+
return null;
|
|
8
|
+
originalDate.setHours(originalDate.getHours() + 3);
|
|
9
|
+
return originalDate.toISOString().slice(0, 19).split('T').join(' ');
|
|
10
|
+
}
|
|
11
|
+
exports.parseDate = parseDate;
|
|
12
|
+
exports.uploadBookeoOrdersRows = {
|
|
13
|
+
SOURCE: {
|
|
14
|
+
required: false,
|
|
15
|
+
row: 'Source',
|
|
16
|
+
serialize: () => 'Bookeo',
|
|
17
|
+
},
|
|
18
|
+
CLIENT_NAME: {
|
|
19
|
+
required: false,
|
|
20
|
+
row: 'First name',
|
|
21
|
+
},
|
|
22
|
+
CLIENT_SURNAME: {
|
|
23
|
+
required: false,
|
|
24
|
+
row: 'Last name',
|
|
25
|
+
},
|
|
26
|
+
CLIENT_PHONE: {
|
|
27
|
+
required: false,
|
|
28
|
+
row: 'Phone',
|
|
29
|
+
},
|
|
30
|
+
CLIENT_EMAIL: {
|
|
31
|
+
required: true,
|
|
32
|
+
row: 'Email address',
|
|
33
|
+
serialize: (val) => val.toLowerCase().trim(),
|
|
34
|
+
},
|
|
35
|
+
DATE_TIME: {
|
|
36
|
+
required: true,
|
|
37
|
+
row: 'Start',
|
|
38
|
+
serialize: (val) => parseDate(val),
|
|
39
|
+
},
|
|
40
|
+
PLAYERS: {
|
|
41
|
+
required: true,
|
|
42
|
+
row: 'Participants',
|
|
43
|
+
serialize: (val) => +val,
|
|
44
|
+
},
|
|
45
|
+
QUESTROOM_ID: {
|
|
46
|
+
required: true,
|
|
47
|
+
row: 'Quest',
|
|
48
|
+
},
|
|
49
|
+
TOTAL_AMOUNT: {
|
|
50
|
+
required: true,
|
|
51
|
+
row: 'Total gross',
|
|
52
|
+
serialize: (val) => +val,
|
|
53
|
+
},
|
|
54
|
+
PAYED: {
|
|
55
|
+
required: true,
|
|
56
|
+
row: 'Total paid',
|
|
57
|
+
serialize: (val) => +val,
|
|
58
|
+
},
|
|
59
|
+
LANGUAGE: {
|
|
60
|
+
required: false,
|
|
61
|
+
row: 'Language',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uploadOrdersRows = void 0;
|
|
4
|
+
const upload_order_bookeo_rows_1 = require("./upload-order-bookeo-rows");
|
|
5
|
+
exports.uploadOrdersRows = {
|
|
6
|
+
SOURCE: {
|
|
7
|
+
required: true,
|
|
8
|
+
row: 'SOURCE',
|
|
9
|
+
},
|
|
10
|
+
CLIENT_NAME: {
|
|
11
|
+
required: false,
|
|
12
|
+
row: 'CLIENT_NAME',
|
|
13
|
+
},
|
|
14
|
+
CLIENT_SURNAME: {
|
|
15
|
+
required: false,
|
|
16
|
+
row: 'CLIENT_SURNAME',
|
|
17
|
+
},
|
|
18
|
+
CLIENT_PHONE: {
|
|
19
|
+
required: false,
|
|
20
|
+
row: 'CLIENT_PHONE',
|
|
21
|
+
},
|
|
22
|
+
CLIENT_EMAIL: {
|
|
23
|
+
required: true,
|
|
24
|
+
row: 'CLIENT_EMAIL',
|
|
25
|
+
serialize: (val) => val.toLowerCase().trim(),
|
|
26
|
+
},
|
|
27
|
+
DATE_TIME: {
|
|
28
|
+
required: true,
|
|
29
|
+
row: 'DATE_TIME',
|
|
30
|
+
serialize: (val) => (0, upload_order_bookeo_rows_1.parseDate)(val),
|
|
31
|
+
},
|
|
32
|
+
PLAYERS: {
|
|
33
|
+
required: true,
|
|
34
|
+
row: 'PLAYERS',
|
|
35
|
+
serialize: (val) => +val,
|
|
36
|
+
},
|
|
37
|
+
QUESTROOM_ID: {
|
|
38
|
+
required: true,
|
|
39
|
+
row: 'QUESTROOM_ID',
|
|
40
|
+
},
|
|
41
|
+
TOTAL_AMOUNT: {
|
|
42
|
+
required: true,
|
|
43
|
+
row: 'TOTAL_AMOUNT',
|
|
44
|
+
serialize: (val) => +val,
|
|
45
|
+
},
|
|
46
|
+
PAYED: {
|
|
47
|
+
required: true,
|
|
48
|
+
row: 'PAYED',
|
|
49
|
+
serialize: (val) => +val,
|
|
50
|
+
},
|
|
51
|
+
LANGUAGE: {
|
|
52
|
+
required: false,
|
|
53
|
+
row: 'LANGUAGE',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
@@ -4,6 +4,6 @@ exports.ProfileCurrencyEnum = void 0;
|
|
|
4
4
|
var ProfileCurrencyEnum;
|
|
5
5
|
(function (ProfileCurrencyEnum) {
|
|
6
6
|
ProfileCurrencyEnum["EUR"] = "EUR";
|
|
7
|
-
ProfileCurrencyEnum["
|
|
7
|
+
ProfileCurrencyEnum["RUB"] = "RUB";
|
|
8
8
|
ProfileCurrencyEnum["USD"] = "USD";
|
|
9
9
|
})(ProfileCurrencyEnum = exports.ProfileCurrencyEnum || (exports.ProfileCurrencyEnum = {}));
|
|
@@ -109,12 +109,6 @@ __decorate([
|
|
|
109
109
|
(0, class_transformer_1.Expose)(),
|
|
110
110
|
__metadata("design:type", Number)
|
|
111
111
|
], CreateQuestroomDto.prototype, "minAge", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
(0, class_validator_1.IsArray)(),
|
|
114
|
-
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
115
|
-
(0, class_transformer_1.Expose)(),
|
|
116
|
-
__metadata("design:type", Array)
|
|
117
|
-
], CreateQuestroomDto.prototype, "questroomIds", void 0);
|
|
118
112
|
__decorate([
|
|
119
113
|
(0, class_validator_1.IsOptional)(),
|
|
120
114
|
(0, class_transformer_1.Expose)(),
|
|
@@ -87,10 +87,6 @@ __decorate([
|
|
|
87
87
|
(0, class_transformer_1.Expose)(),
|
|
88
88
|
__metadata("design:type", Number)
|
|
89
89
|
], QuestroomRO.prototype, "minAge", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, class_transformer_1.Expose)(),
|
|
92
|
-
__metadata("design:type", Array)
|
|
93
|
-
], QuestroomRO.prototype, "questroomIds", void 0);
|
|
94
90
|
__decorate([
|
|
95
91
|
(0, class_transformer_1.Expose)(),
|
|
96
92
|
__metadata("design:type", Number)
|
|
@@ -7,4 +7,5 @@ var TranslationStatusEnum;
|
|
|
7
7
|
TranslationStatusEnum["WAITING"] = "waiting";
|
|
8
8
|
TranslationStatusEnum["NEED_CHECK"] = "need_check";
|
|
9
9
|
TranslationStatusEnum["READY"] = "ready";
|
|
10
|
+
TranslationStatusEnum["SKIPPER"] = "skipped";
|
|
10
11
|
})(TranslationStatusEnum = exports.TranslationStatusEnum || (exports.TranslationStatusEnum = {}));
|