@escapenavigator/types 1.4.75 → 1.4.77
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/admin.ro.d.ts +20 -3
- package/dist/admin/create-admin.dto.d.ts +20 -0
- package/dist/admin/create-admin.dto.js +110 -0
- package/dist/admin/current-admin.ro.d.ts +2 -2
- package/dist/agregator/agregator-questroom.ro.d.ts +0 -1
- package/dist/certificate-sale/enum/certificatesales-status.enum.d.ts +11 -0
- package/dist/certificate-sale/enum/certificatesales-status.enum.js +15 -0
- package/dist/certificate-sale/query-certificatesale.dto.d.ts +5 -5
- package/dist/certificate-sale/query-certificatesale.dto.js +12 -8
- package/dist/client/query-client.dto.d.ts +9 -0
- package/dist/client/query-client.dto.js +58 -0
- package/dist/order/cancel-order.dto.d.ts +3 -2
- package/dist/order/cancel-order.dto.js +7 -2
- package/dist/order/enum/order-status.enum.d.ts +11 -0
- package/dist/order/enum/order-status.enum.js +15 -0
- package/dist/order/order.ro.d.ts +12 -0
- package/dist/order/query-order.dto.d.ts +6 -8
- package/dist/order/query-order.dto.js +24 -24
- package/dist/profile/agregator-profile.ro.d.ts +0 -13
- package/dist/profile/create-profile.dto.d.ts +11 -10
- package/dist/profile/create-profile.dto.js +36 -26
- package/dist/profile/profile.ro.d.ts +17 -12
- package/dist/profile/update-current.dto.d.ts +9 -0
- package/dist/profile/update-current.dto.js +55 -0
- package/dist/questroom/create-questroom.dto.d.ts +1 -8
- package/dist/questroom/create-questroom.dto.js +7 -43
- package/dist/questroom/questroom.ro.d.ts +25 -22
- package/dist/slot/create-slot.dto.d.ts +8 -2
- package/dist/slot/create-slot.dto.js +46 -8
- package/dist/slot/slot-autocomplite.dto.d.ts +17 -0
- package/dist/slot/slot-autocomplite.dto.js +103 -0
- package/dist/slot/slot.ro.d.ts +9 -2
- package/dist/slot/{add-breaks.dto.d.ts → update-breaks.dto.d.ts} +2 -2
- package/dist/slot/{add-breaks.dto.js → update-breaks.dto.js} +16 -10
- package/dist/slot/{remove-breaks.dto.d.ts → update-min-hours.dto.d.ts} +2 -1
- package/dist/slot/{remove-breaks.dto.js → update-min-hours.dto.js} +19 -8
- package/dist/slot-rule/create-rule.dto.d.ts +11 -0
- package/dist/slot-rule/create-rule.dto.js +61 -0
- package/dist/slot-rule/defailt-rule.d.ts +9 -0
- package/dist/slot-rule/defailt-rule.js +12 -0
- package/dist/slot-rule/rule.ro.d.ts +13 -0
- package/dist/slot-rule/rule.ro.js +2 -0
- package/dist/slot-template/copy-template.dto.d.ts +4 -0
- package/dist/slot-template/{update-tariff.dto.js → copy-template.dto.js} +8 -18
- package/dist/slot-template/enum/update-slot-template-type.enum.d.ts +4 -0
- package/dist/slot-template/enum/update-slot-template-type.enum.js +8 -0
- package/dist/slot-template/slot-template-element.d.ts +2 -3
- package/dist/slot-template/slot-template.ro.d.ts +0 -1
- package/dist/slot-template/update-slot-template-first-step.dto.d.ts +3 -2
- package/dist/slot-template/update-slot-template-first-step.dto.js +10 -9
- package/dist/slot-template/update-slot-template.dto.d.ts +1 -0
- package/dist/slot-template/update-slot-template.dto.js +6 -0
- package/dist/tariff/tariff.ro.d.ts +3 -2
- package/dist/transaction/query-transaction.dto.d.ts +2 -4
- package/dist/transaction/query-transaction.dto.js +9 -15
- package/dist/translation/create-translation.dto.d.ts +3 -1
- package/dist/translation/create-translation.dto.js +11 -1
- package/dist/translation/edit-all-translation-loacales.dto.d.ts +2 -0
- package/dist/translation/edit-all-translation-loacales.dto.js +12 -2
- package/dist/translation/enum/translation-status.enum.d.ts +6 -0
- package/dist/translation/enum/translation-status.enum.js +10 -0
- package/dist/translation/translation.ro.d.ts +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/upload/enum/image-type.enum.d.ts +2 -1
- package/dist/upload/enum/image-type.enum.js +1 -0
- package/dist/user/query-user-report.dto.d.ts +4 -0
- package/dist/user/query-user-report.dto.js +28 -0
- package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +0 -3
- package/dist/widget-openapi/widget-openapi-slot.ro.d.ts +9 -2
- package/dist/widget-orders/widget-orders-order.ro.d.ts +5 -3
- package/package.json +2 -2
- package/dist/profile/enum/profile-status.enum.d.ts +0 -11
- package/dist/profile/enum/profile-status.enum.js +0 -15
- package/dist/slot-template/update-tariff.dto.d.ts +0 -6
package/dist/admin/admin.ro.d.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
1
3
|
import { ResponseObject } from '../shared/ro';
|
|
2
|
-
export declare type
|
|
4
|
+
export declare type AdminRO = ResponseObject & {
|
|
3
5
|
email: string;
|
|
4
|
-
phone: string;
|
|
5
6
|
name: string;
|
|
6
|
-
|
|
7
|
+
phone: string;
|
|
8
|
+
password?: string;
|
|
9
|
+
totalAccess: boolean;
|
|
10
|
+
canUseTranslations?: boolean;
|
|
11
|
+
canUseRegistrationRequests?: boolean;
|
|
12
|
+
canUseProfiles?: boolean;
|
|
13
|
+
canUseVerificationPage?: boolean;
|
|
14
|
+
canUseCommunityReviews?: boolean;
|
|
15
|
+
canUseReviews?: boolean;
|
|
16
|
+
canUseAgb?: boolean;
|
|
17
|
+
canUseArticles?: boolean;
|
|
18
|
+
languages: Languages[];
|
|
19
|
+
namsespaces: number[];
|
|
20
|
+
countries: CountriesEnum[];
|
|
21
|
+
profilesVerified: number;
|
|
22
|
+
questroomsVerified: number;
|
|
23
|
+
translationsVerified: number;
|
|
7
24
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
3
|
+
export declare class CreateAdminDto {
|
|
4
|
+
password: string;
|
|
5
|
+
name: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
email: string;
|
|
8
|
+
totalAccess: boolean;
|
|
9
|
+
canUseTranslations: boolean;
|
|
10
|
+
canUseRegistrationRequests: boolean;
|
|
11
|
+
canUseProfiles: boolean;
|
|
12
|
+
canUseVerificationPage: boolean;
|
|
13
|
+
canUseCommunityReviews: boolean;
|
|
14
|
+
canUseReviews: boolean;
|
|
15
|
+
canUseAgb: boolean;
|
|
16
|
+
canUseArticles: boolean;
|
|
17
|
+
countries: CountriesEnum[];
|
|
18
|
+
languages: Languages[];
|
|
19
|
+
namsespaces: number[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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.CreateAdminDto = 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 CreateAdminDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateAdminDto.prototype, "password", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateAdminDto.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateAdminDto.prototype, "phone", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEmail)(),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateAdminDto.prototype, "email", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], CreateAdminDto.prototype, "totalAccess", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsBoolean)(),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], CreateAdminDto.prototype, "canUseTranslations", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsBoolean)(),
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], CreateAdminDto.prototype, "canUseRegistrationRequests", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsBoolean)(),
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], CreateAdminDto.prototype, "canUseProfiles", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], CreateAdminDto.prototype, "canUseVerificationPage", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsBoolean)(),
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
72
|
+
__metadata("design:type", Boolean)
|
|
73
|
+
], CreateAdminDto.prototype, "canUseCommunityReviews", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsBoolean)(),
|
|
76
|
+
(0, class_transformer_1.Expose)(),
|
|
77
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
78
|
+
__metadata("design:type", Boolean)
|
|
79
|
+
], CreateAdminDto.prototype, "canUseReviews", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsBoolean)(),
|
|
82
|
+
(0, class_transformer_1.Expose)(),
|
|
83
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
84
|
+
__metadata("design:type", Boolean)
|
|
85
|
+
], CreateAdminDto.prototype, "canUseAgb", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsBoolean)(),
|
|
88
|
+
(0, class_transformer_1.Expose)(),
|
|
89
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
90
|
+
__metadata("design:type", Boolean)
|
|
91
|
+
], CreateAdminDto.prototype, "canUseArticles", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsArray)(),
|
|
94
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
95
|
+
(0, class_transformer_1.Expose)(),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], CreateAdminDto.prototype, "countries", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsArray)(),
|
|
100
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
101
|
+
(0, class_transformer_1.Expose)(),
|
|
102
|
+
__metadata("design:type", Array)
|
|
103
|
+
], CreateAdminDto.prototype, "languages", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_validator_1.IsArray)(),
|
|
106
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
107
|
+
(0, class_transformer_1.Expose)(),
|
|
108
|
+
__metadata("design:type", Array)
|
|
109
|
+
], CreateAdminDto.prototype, "namsespaces", void 0);
|
|
110
|
+
exports.CreateAdminDto = CreateAdminDto;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type
|
|
1
|
+
import { AdminRO } from './admin.ro';
|
|
2
|
+
export declare type CurrentAdminRO = AdminRO;
|
|
@@ -44,7 +44,6 @@ export declare type AgregatorQuestroomRO = {
|
|
|
44
44
|
video?: string;
|
|
45
45
|
tags: TagsEnum[];
|
|
46
46
|
upsellings: Array<Pick<UpsellingResponseObject, 'title' | 'price' | 'description'>>;
|
|
47
|
-
minHoursForFreeCanceling: number;
|
|
48
47
|
actors: boolean;
|
|
49
48
|
languages?: Languages[];
|
|
50
49
|
defaultLanguage?: Languages;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum CertificatesaleStatusEnum {
|
|
2
|
+
USED = "used",
|
|
3
|
+
EXPIRED = "expired",
|
|
4
|
+
EXTRA_PAYED = "extraPayed",
|
|
5
|
+
SENDED = "sended",
|
|
6
|
+
NOT_SENDED = "notSended",
|
|
7
|
+
NOT_PAYED = "notPayed",
|
|
8
|
+
WAITING_PICKUP = "waitingPickup",
|
|
9
|
+
WAITING_DELIVERY = "waitingDelivery",
|
|
10
|
+
WAITING_EMAIL_SENDING = "waitingEmailSending"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CertificatesaleStatusEnum = void 0;
|
|
4
|
+
var CertificatesaleStatusEnum;
|
|
5
|
+
(function (CertificatesaleStatusEnum) {
|
|
6
|
+
CertificatesaleStatusEnum["USED"] = "used";
|
|
7
|
+
CertificatesaleStatusEnum["EXPIRED"] = "expired";
|
|
8
|
+
CertificatesaleStatusEnum["EXTRA_PAYED"] = "extraPayed";
|
|
9
|
+
CertificatesaleStatusEnum["SENDED"] = "sended";
|
|
10
|
+
CertificatesaleStatusEnum["NOT_SENDED"] = "notSended";
|
|
11
|
+
CertificatesaleStatusEnum["NOT_PAYED"] = "notPayed";
|
|
12
|
+
CertificatesaleStatusEnum["WAITING_PICKUP"] = "waitingPickup";
|
|
13
|
+
CertificatesaleStatusEnum["WAITING_DELIVERY"] = "waitingDelivery";
|
|
14
|
+
CertificatesaleStatusEnum["WAITING_EMAIL_SENDING"] = "waitingEmailSending";
|
|
15
|
+
})(CertificatesaleStatusEnum = exports.CertificatesaleStatusEnum || (exports.CertificatesaleStatusEnum = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SourceEnum } from '../shared/source.enum';
|
|
2
2
|
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
3
|
+
import { CertificatesaleStatusEnum } from './enum/certificatesales-status.enum';
|
|
3
4
|
export declare class QueryCertificatesaleDto {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
clientId?: number;
|
|
5
|
+
created?: [string, string];
|
|
6
|
+
clientId?: string;
|
|
7
7
|
source?: SourceEnum;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
certificateStatus?: CertificatesaleStatusEnum;
|
|
9
|
+
delivery?: CertificatesaleDeliveryTypeEnum;
|
|
10
10
|
}
|
|
@@ -10,35 +10,39 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.QueryCertificatesaleDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
const source_enum_1 = require("../shared/source.enum");
|
|
15
16
|
const certificatesales_delivery_type_enum_1 = require("./enum/certificatesales-delivery-type.enum");
|
|
17
|
+
const certificatesales_status_enum_1 = require("./enum/certificatesales-status.enum");
|
|
16
18
|
class QueryCertificatesaleDto {
|
|
17
19
|
}
|
|
18
20
|
__decorate([
|
|
19
21
|
(0, class_validator_1.IsOptional)(),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], QueryCertificatesaleDto.prototype, "created", void 0);
|
|
22
26
|
__decorate([
|
|
23
27
|
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
24
29
|
__metadata("design:type", String)
|
|
25
|
-
], QueryCertificatesaleDto.prototype, "createdTo", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsOptional)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
30
|
], QueryCertificatesaleDto.prototype, "clientId", void 0);
|
|
30
31
|
__decorate([
|
|
31
32
|
(0, class_validator_1.IsOptional)(),
|
|
32
33
|
(0, class_validator_1.IsEnum)(source_enum_1.SourceEnum),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
33
35
|
__metadata("design:type", String)
|
|
34
36
|
], QueryCertificatesaleDto.prototype, "source", void 0);
|
|
35
37
|
__decorate([
|
|
36
38
|
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
37
40
|
__metadata("design:type", String)
|
|
38
|
-
], QueryCertificatesaleDto.prototype, "
|
|
41
|
+
], QueryCertificatesaleDto.prototype, "certificateStatus", void 0);
|
|
39
42
|
__decorate([
|
|
40
43
|
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
41
45
|
(0, class_validator_1.IsEnum)(certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum),
|
|
42
46
|
__metadata("design:type", String)
|
|
43
|
-
], QueryCertificatesaleDto.prototype, "
|
|
47
|
+
], QueryCertificatesaleDto.prototype, "delivery", void 0);
|
|
44
48
|
exports.QueryCertificatesaleDto = QueryCertificatesaleDto;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class QueryClientDto {
|
|
2
|
+
lastGame?: [string, string];
|
|
3
|
+
gamesCount?: string[];
|
|
4
|
+
blockedClient?: 'blocked' | 'not_blocked';
|
|
5
|
+
alowedToAds?: 'allowed' | 'not_allowed';
|
|
6
|
+
hasCertificates?: 'any' | 'used' | 'not_used';
|
|
7
|
+
notVisitedQuestroomsIds?: [];
|
|
8
|
+
visitedQuestroomsIds?: [];
|
|
9
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.QueryClientDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class QueryClientDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], QueryClientDto.prototype, "lastGame", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], QueryClientDto.prototype, "gamesCount", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], QueryClientDto.prototype, "blockedClient", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], QueryClientDto.prototype, "alowedToAds", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], QueryClientDto.prototype, "hasCertificates", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsArray)(),
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'string' ? [value] : value)),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], QueryClientDto.prototype, "notVisitedQuestroomsIds", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsArray)(),
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'string' ? [value] : value)),
|
|
56
|
+
__metadata("design:type", Array)
|
|
57
|
+
], QueryClientDto.prototype, "visitedQuestroomsIds", void 0);
|
|
58
|
+
exports.QueryClientDto = QueryClientDto;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OrderCancelReasonEnum } from './enum/order-cancel-reson.enum';
|
|
2
2
|
export declare class CancelOrderDto {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
cancelationType: OrderCancelReasonEnum;
|
|
4
|
+
cancelationReason: string;
|
|
5
|
+
returnCertificates: boolean;
|
|
5
6
|
}
|
|
@@ -19,11 +19,16 @@ __decorate([
|
|
|
19
19
|
(0, class_validator_1.IsEnum)(order_cancel_reson_enum_1.OrderCancelReasonEnum),
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
], CancelOrderDto.prototype, "
|
|
22
|
+
], CancelOrderDto.prototype, "cancelationType", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CancelOrderDto.prototype, "cancelationReason", void 0);
|
|
23
28
|
__decorate([
|
|
24
29
|
(0, class_validator_1.IsBoolean)(),
|
|
25
30
|
(0, class_transformer_1.Expose)(),
|
|
26
31
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
27
32
|
__metadata("design:type", Boolean)
|
|
28
|
-
], CancelOrderDto.prototype, "
|
|
33
|
+
], CancelOrderDto.prototype, "returnCertificates", void 0);
|
|
29
34
|
exports.CancelOrderDto = CancelOrderDto;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum OrderStatusEnum {
|
|
2
|
+
CONFIRMED = "confirmed",
|
|
3
|
+
PREPAYED = "prepayed",
|
|
4
|
+
OVERPAYED = "overpayed",
|
|
5
|
+
PAYED = "payed",
|
|
6
|
+
NOT_PAYED = "not_payed",
|
|
7
|
+
CANCELED = "canceled",
|
|
8
|
+
CANCELED_WITH_FINE = "canceled_with_fine",
|
|
9
|
+
BOOKING_IN_PROCESS = "booking_in_process",
|
|
10
|
+
FAILED_BOOKING = "failed_booking"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderStatusEnum = void 0;
|
|
4
|
+
var OrderStatusEnum;
|
|
5
|
+
(function (OrderStatusEnum) {
|
|
6
|
+
OrderStatusEnum["CONFIRMED"] = "confirmed";
|
|
7
|
+
OrderStatusEnum["PREPAYED"] = "prepayed";
|
|
8
|
+
OrderStatusEnum["OVERPAYED"] = "overpayed";
|
|
9
|
+
OrderStatusEnum["PAYED"] = "payed";
|
|
10
|
+
OrderStatusEnum["NOT_PAYED"] = "not_payed";
|
|
11
|
+
OrderStatusEnum["CANCELED"] = "canceled";
|
|
12
|
+
OrderStatusEnum["CANCELED_WITH_FINE"] = "canceled_with_fine";
|
|
13
|
+
OrderStatusEnum["BOOKING_IN_PROCESS"] = "booking_in_process";
|
|
14
|
+
OrderStatusEnum["FAILED_BOOKING"] = "failed_booking";
|
|
15
|
+
})(OrderStatusEnum = exports.OrderStatusEnum || (exports.OrderStatusEnum = {}));
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ClientRO } from '../client/client.ro';
|
|
2
2
|
import { OrderPenaltyTypeEnum } from '../order-penalty/enum/order-penalty-type.enum';
|
|
3
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
3
4
|
import { Languages } from '../shared/enum/languages.enum';
|
|
4
5
|
import { ResponseObject } from '../shared/ro';
|
|
5
6
|
import { SourceEnum } from '../shared/source.enum';
|
|
7
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
6
8
|
import { TransactionTypeEnum } from '../transaction/enum/transaction-type.enum';
|
|
7
9
|
import { UserMessageResponseObject } from '../user-message/user-message.ro';
|
|
8
10
|
import { OrderCancelReasonEnum } from './enum/order-cancel-reson.enum';
|
|
@@ -13,6 +15,16 @@ export declare type OrderRO = ResponseObject & {
|
|
|
13
15
|
};
|
|
14
16
|
moderatorId?: number;
|
|
15
17
|
slotId?: number;
|
|
18
|
+
slot?: {
|
|
19
|
+
customMinHours: number;
|
|
20
|
+
rule: {
|
|
21
|
+
prepayment: number;
|
|
22
|
+
minHoursForBooking: number;
|
|
23
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
24
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
25
|
+
minHoursForFreeCanceling: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
16
28
|
payed: number;
|
|
17
29
|
code: string;
|
|
18
30
|
total: number;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
2
|
import { SourceEnum } from '../shared/source.enum';
|
|
3
|
+
import { OrderStatusEnum } from './enum/order-status.enum';
|
|
3
4
|
export declare class QueryOrderDto {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
clientId?:
|
|
7
|
-
moderatorId?: number;
|
|
8
|
-
createdFrom?: string;
|
|
9
|
-
createdTo?: string;
|
|
5
|
+
date?: [string, string];
|
|
6
|
+
created?: [string, string];
|
|
7
|
+
clientId?: string;
|
|
10
8
|
players?: number;
|
|
11
|
-
language?: Languages;
|
|
12
9
|
questroomsIds?: number[];
|
|
13
10
|
moderatorsIds?: number[];
|
|
14
|
-
|
|
11
|
+
orderStatus?: OrderStatusEnum;
|
|
15
12
|
source?: SourceEnum;
|
|
13
|
+
language?: Languages;
|
|
16
14
|
}
|
|
@@ -10,61 +10,61 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.QueryOrderDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
15
16
|
const source_enum_1 = require("../shared/source.enum");
|
|
17
|
+
const order_status_enum_1 = require("./enum/order-status.enum");
|
|
16
18
|
class QueryOrderDto {
|
|
17
19
|
}
|
|
18
20
|
__decorate([
|
|
19
21
|
(0, class_validator_1.IsOptional)(),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], QueryOrderDto.prototype, "orderGameTo", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsOptional)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], QueryOrderDto.prototype, "clientId", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
__metadata("design:type", Number)
|
|
33
|
-
], QueryOrderDto.prototype, "moderatorId", void 0);
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], QueryOrderDto.prototype, "date", void 0);
|
|
34
26
|
__decorate([
|
|
35
27
|
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], QueryOrderDto.prototype, "created", void 0);
|
|
38
32
|
__decorate([
|
|
39
33
|
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
40
35
|
__metadata("design:type", String)
|
|
41
|
-
], QueryOrderDto.prototype, "
|
|
36
|
+
], QueryOrderDto.prototype, "clientId", void 0);
|
|
42
37
|
__decorate([
|
|
43
38
|
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
44
40
|
__metadata("design:type", Number)
|
|
45
41
|
], QueryOrderDto.prototype, "players", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsOptional)(),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], QueryOrderDto.prototype, "language", void 0);
|
|
50
42
|
__decorate([
|
|
51
43
|
(0, class_validator_1.IsOptional)(),
|
|
52
44
|
(0, class_validator_1.IsArray)(),
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
53
46
|
__metadata("design:type", Array)
|
|
54
47
|
], QueryOrderDto.prototype, "questroomsIds", void 0);
|
|
55
48
|
__decorate([
|
|
56
49
|
(0, class_validator_1.IsOptional)(),
|
|
57
50
|
(0, class_validator_1.IsArray)(),
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
58
52
|
__metadata("design:type", Array)
|
|
59
53
|
], QueryOrderDto.prototype, "moderatorsIds", void 0);
|
|
60
54
|
__decorate([
|
|
61
55
|
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
(0,
|
|
63
|
-
__metadata("design:type",
|
|
64
|
-
], QueryOrderDto.prototype, "
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], QueryOrderDto.prototype, "orderStatus", void 0);
|
|
65
59
|
__decorate([
|
|
66
60
|
(0, class_validator_1.IsOptional)(),
|
|
67
61
|
(0, class_validator_1.IsEnum)(source_enum_1.SourceEnum),
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
68
63
|
__metadata("design:type", String)
|
|
69
64
|
], QueryOrderDto.prototype, "source", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], QueryOrderDto.prototype, "language", void 0);
|
|
70
70
|
exports.QueryOrderDto = QueryOrderDto;
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
2
|
import { ResponseObject } from '../shared/ro';
|
|
3
3
|
import { ProfileCurrencyEnum } from './enum/profile-currency';
|
|
4
|
-
import { ProfileStatusEnum } from './enum/profile-status.enum';
|
|
5
4
|
export declare type AgregatorProfileRO = ResponseObject & {
|
|
6
5
|
title: string;
|
|
7
6
|
legalTitle: string;
|
|
8
|
-
phone: string;
|
|
9
|
-
email: string;
|
|
10
|
-
site: string;
|
|
11
|
-
address: string;
|
|
12
|
-
facebook?: string;
|
|
13
|
-
instagram?: string;
|
|
14
|
-
comment?: string;
|
|
15
7
|
logo?: string;
|
|
16
|
-
status: ProfileStatusEnum;
|
|
17
8
|
language: Languages;
|
|
18
9
|
currency: ProfileCurrencyEnum;
|
|
19
|
-
locationsCount: number;
|
|
20
|
-
questroomsCount: number;
|
|
21
|
-
contactPhone: string;
|
|
22
|
-
contactName: string;
|
|
23
10
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
-
import { ProfileStatusEnum } from './enum/profile-status.enum';
|
|
3
2
|
export declare class CreateProfileDto {
|
|
3
|
+
country: CountriesEnum;
|
|
4
4
|
title: string;
|
|
5
|
-
contactName: string;
|
|
6
|
-
contactPhone: string;
|
|
7
|
-
registrationRequestId: number;
|
|
8
|
-
email: string;
|
|
9
|
-
phone: string;
|
|
10
5
|
site: string;
|
|
6
|
+
phoneForCustomers: string;
|
|
7
|
+
mainEmail: string;
|
|
8
|
+
secondaryEmails: string[];
|
|
11
9
|
legalTitle: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
imprintContact: string;
|
|
11
|
+
imprintPhone: string;
|
|
12
|
+
imprintLink: string;
|
|
15
13
|
comment?: string;
|
|
16
|
-
logo?: string;
|
|
17
14
|
instagram?: string;
|
|
18
15
|
facebook?: string;
|
|
16
|
+
contactName: string;
|
|
17
|
+
contactPhone: string;
|
|
18
|
+
registrationRequestId: number;
|
|
19
|
+
logo?: string;
|
|
19
20
|
}
|