@escapenavigator/types 1.6.24 → 1.6.26
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/agregator/agregator-city.ro.d.ts +2 -2
- package/dist/agregator/agregator-city.ro.js +43 -0
- package/dist/agregator/agregator-organization-questrooms.ro.d.ts +5 -10
- package/dist/agregator/agregator-organization-questrooms.ro.js +26 -0
- package/dist/agregator/agregator-questroom.ro.d.ts +30 -26
- package/dist/agregator/agregator-questroom.ro.js +225 -0
- package/dist/certificate-sale/certificate-sale.ro.d.ts +14 -6
- package/dist/certificate-sale/certificate-sale.ro.js +46 -1
- package/dist/certificate-sale/create-certificatesale.dto.d.ts +1 -0
- package/dist/certificate-sale/create-certificatesale.dto.js +6 -0
- package/dist/certificate-sale/enum/certificatesales-status.enum.d.ts +1 -0
- package/dist/certificate-sale/enum/certificatesales-status.enum.js +1 -0
- package/dist/order/order.ro.d.ts +1 -0
- package/dist/order/order.ro.js +4 -0
- package/dist/order/update-order-slot.dto.d.ts +0 -1
- package/dist/order/update-order-slot.dto.js +0 -6
- package/dist/order-certificate/create-order-certificate.dto.d.ts +0 -1
- package/dist/order-certificate/create-order-certificate.dto.js +2 -6
- package/dist/order-discount/create-order-discount.dto.d.ts +0 -1
- package/dist/order-discount/create-order-discount.dto.js +0 -6
- package/dist/order-penalty/create-order-penalty.dto.d.ts +0 -1
- package/dist/order-penalty/create-order-penalty.dto.js +0 -6
- package/dist/order-promocode/create-order-promocode.dto.d.ts +0 -1
- package/dist/order-promocode/create-order-promocode.dto.js +0 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
-
export declare
|
|
2
|
+
export declare class AgregatorCityRO {
|
|
3
3
|
id: number;
|
|
4
4
|
title: string;
|
|
5
5
|
country: CountriesEnum;
|
|
@@ -7,4 +7,4 @@ export declare type AgregatorCityRO = {
|
|
|
7
7
|
coordinates: [number, number];
|
|
8
8
|
questroomsCount: number;
|
|
9
9
|
slug: string;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
@@ -1,2 +1,45 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgregatorCityRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
15
|
+
class AgregatorCityRO {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Expose)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], AgregatorCityRO.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AgregatorCityRO.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AgregatorCityRO.prototype, "country", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AgregatorCityRO.prototype, "photo", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], AgregatorCityRO.prototype, "coordinates", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AgregatorCityRO.prototype, "questroomsCount", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AgregatorCityRO.prototype, "slug", void 0);
|
|
45
|
+
exports.AgregatorCityRO = AgregatorCityRO;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
questrooms: Array<AgregatorQuestroomCardRO & {
|
|
9
|
-
address: string;
|
|
10
|
-
}>;
|
|
11
|
-
};
|
|
2
|
+
import { AgregatorProfile } from './agregator-questroom.ro';
|
|
3
|
+
export declare class AgregatorOrganizationQuestroomsRO {
|
|
4
|
+
organization: AgregatorProfile;
|
|
5
|
+
questrooms: AgregatorQuestroomCardRO[];
|
|
6
|
+
}
|
|
@@ -1,2 +1,28 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgregatorOrganizationQuestroomsRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
|
|
15
|
+
const agregator_questroom_ro_1 = require("./agregator-questroom.ro");
|
|
16
|
+
class AgregatorOrganizationQuestroomsRO {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_transformer_1.Type)(() => agregator_questroom_ro_1.AgregatorProfile),
|
|
21
|
+
__metadata("design:type", agregator_questroom_ro_1.AgregatorProfile)
|
|
22
|
+
], AgregatorOrganizationQuestroomsRO.prototype, "organization", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, class_transformer_1.Type)(() => agregator_questroom_card_ro_1.AgregatorQuestroomCardRO),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], AgregatorOrganizationQuestroomsRO.prototype, "questrooms", void 0);
|
|
28
|
+
exports.AgregatorOrganizationQuestroomsRO = AgregatorOrganizationQuestroomsRO;
|
|
@@ -2,24 +2,42 @@ import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
|
2
2
|
import { QuestroomActorsEnum } from '../questroom/enum/questroom-actors.enum';
|
|
3
3
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
4
4
|
import { NavigatorReviewRO } from '../review/navigator-review.ro';
|
|
5
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
5
6
|
import { Languages } from '../shared/enum/languages.enum';
|
|
6
7
|
import { TagsEnum } from '../shared/enum/tags.enum';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
export declare class AgregatorProfile {
|
|
9
|
+
title: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
verified?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare class City {
|
|
14
|
+
title: string;
|
|
15
|
+
country: CountriesEnum;
|
|
16
|
+
}
|
|
17
|
+
declare class Location {
|
|
18
|
+
address: string;
|
|
19
|
+
id: number;
|
|
20
|
+
phone: string;
|
|
21
|
+
coordinates: [number, number];
|
|
22
|
+
howToFind: string;
|
|
23
|
+
prepareText: string;
|
|
24
|
+
wifi: boolean;
|
|
25
|
+
wardrobe: boolean;
|
|
26
|
+
freeParking: boolean;
|
|
27
|
+
parking: boolean;
|
|
28
|
+
waitingAreaSize: number;
|
|
29
|
+
city: City;
|
|
30
|
+
}
|
|
31
|
+
export declare class AgregatorQuestroomRO {
|
|
10
32
|
id: number;
|
|
33
|
+
currency: ProfileCurrencyEnum;
|
|
11
34
|
createdAt: Date;
|
|
12
35
|
slug: string;
|
|
13
36
|
teaser: string;
|
|
14
37
|
closed: boolean;
|
|
15
38
|
title: string;
|
|
16
39
|
type: QuestroomTypeEnum;
|
|
17
|
-
|
|
18
|
-
title: string;
|
|
19
|
-
currency: ProfileCurrencyEnum;
|
|
20
|
-
slug: string;
|
|
21
|
-
verified: boolean;
|
|
22
|
-
};
|
|
40
|
+
profile: AgregatorProfile;
|
|
23
41
|
playersMin: number;
|
|
24
42
|
playersMax: number;
|
|
25
43
|
time: number;
|
|
@@ -27,20 +45,7 @@ export declare type AgregatorQuestroomRO = {
|
|
|
27
45
|
difficult: number;
|
|
28
46
|
fear: number;
|
|
29
47
|
minAge: number;
|
|
30
|
-
location:
|
|
31
|
-
address: string;
|
|
32
|
-
id: number;
|
|
33
|
-
phone: string;
|
|
34
|
-
coordinates: [number, number];
|
|
35
|
-
howToFind: string;
|
|
36
|
-
prepareText: string;
|
|
37
|
-
wifi: boolean;
|
|
38
|
-
wardrobe: boolean;
|
|
39
|
-
freeParking: boolean;
|
|
40
|
-
parking: boolean;
|
|
41
|
-
waitingAreaSize: number;
|
|
42
|
-
city: AgregatorCityRO;
|
|
43
|
-
};
|
|
48
|
+
location: Location;
|
|
44
49
|
legend?: string;
|
|
45
50
|
importantInfo?: string;
|
|
46
51
|
actors: QuestroomActorsEnum;
|
|
@@ -48,12 +53,11 @@ export declare type AgregatorQuestroomRO = {
|
|
|
48
53
|
photo: string;
|
|
49
54
|
photos: string[];
|
|
50
55
|
video?: string;
|
|
51
|
-
upsellings: Array<Pick<UpsellingResponseObject, 'title' | 'price' | 'description'>>;
|
|
52
56
|
languages?: Languages[];
|
|
53
|
-
defaultLanguage?: Languages;
|
|
54
57
|
rating: number;
|
|
55
58
|
reviewsCount: number;
|
|
56
59
|
hasSchedule: boolean;
|
|
57
60
|
top: boolean;
|
|
58
61
|
navigatorReview?: NavigatorReviewRO;
|
|
59
|
-
}
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
@@ -1,2 +1,227 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgregatorQuestroomRO = exports.AgregatorProfile = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
16
|
+
const questroom_actors_enum_1 = require("../questroom/enum/questroom-actors.enum");
|
|
17
|
+
const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
|
|
18
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
19
|
+
class AgregatorProfile {
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AgregatorProfile.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AgregatorProfile.prototype, "slug", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_transformer_1.Transform)(({ obj }) => {
|
|
32
|
+
const [type] = obj.step.split('_')[0];
|
|
33
|
+
return type === 'integrated' || type === 'CRM' || type === 'canceled' || type === 'closed';
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], AgregatorProfile.prototype, "verified", void 0);
|
|
37
|
+
exports.AgregatorProfile = AgregatorProfile;
|
|
38
|
+
class City {
|
|
39
|
+
}
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], City.prototype, "title", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], City.prototype, "country", void 0);
|
|
48
|
+
class Location {
|
|
49
|
+
}
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Location.prototype, "address", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], Location.prototype, "id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Location.prototype, "phone", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", Array)
|
|
65
|
+
], Location.prototype, "coordinates", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Location.prototype, "howToFind", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Location.prototype, "prepareText", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", Boolean)
|
|
77
|
+
], Location.prototype, "wifi", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], Location.prototype, "wardrobe", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
__metadata("design:type", Boolean)
|
|
85
|
+
], Location.prototype, "freeParking", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_transformer_1.Expose)(),
|
|
88
|
+
__metadata("design:type", Boolean)
|
|
89
|
+
], Location.prototype, "parking", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_transformer_1.Expose)(),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], Location.prototype, "waitingAreaSize", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_transformer_1.Expose)(),
|
|
96
|
+
(0, class_transformer_1.Type)(() => City),
|
|
97
|
+
__metadata("design:type", City)
|
|
98
|
+
], Location.prototype, "city", void 0);
|
|
99
|
+
class AgregatorQuestroomRO {
|
|
100
|
+
}
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_transformer_1.Expose)(),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], AgregatorQuestroomRO.prototype, "id", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_transformer_1.Expose)(),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], AgregatorQuestroomRO.prototype, "currency", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, class_transformer_1.Expose)(),
|
|
111
|
+
__metadata("design:type", Date)
|
|
112
|
+
], AgregatorQuestroomRO.prototype, "createdAt", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, class_transformer_1.Expose)(),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], AgregatorQuestroomRO.prototype, "slug", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_transformer_1.Expose)(),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], AgregatorQuestroomRO.prototype, "teaser", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, class_transformer_1.Expose)(),
|
|
123
|
+
__metadata("design:type", Boolean)
|
|
124
|
+
], AgregatorQuestroomRO.prototype, "closed", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_transformer_1.Expose)(),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], AgregatorQuestroomRO.prototype, "title", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_transformer_1.Expose)(),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], AgregatorQuestroomRO.prototype, "type", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, class_transformer_1.Expose)(),
|
|
135
|
+
(0, class_transformer_1.Type)(() => AgregatorProfile),
|
|
136
|
+
__metadata("design:type", AgregatorProfile)
|
|
137
|
+
], AgregatorQuestroomRO.prototype, "profile", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, class_transformer_1.Expose)(),
|
|
140
|
+
__metadata("design:type", Number)
|
|
141
|
+
], AgregatorQuestroomRO.prototype, "playersMin", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, class_transformer_1.Expose)(),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], AgregatorQuestroomRO.prototype, "playersMax", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, class_transformer_1.Expose)(),
|
|
148
|
+
__metadata("design:type", Number)
|
|
149
|
+
], AgregatorQuestroomRO.prototype, "time", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, class_transformer_1.Expose)(),
|
|
152
|
+
__metadata("design:type", Number)
|
|
153
|
+
], AgregatorQuestroomRO.prototype, "price", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, class_transformer_1.Expose)(),
|
|
156
|
+
__metadata("design:type", Number)
|
|
157
|
+
], AgregatorQuestroomRO.prototype, "difficult", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, class_transformer_1.Expose)(),
|
|
160
|
+
__metadata("design:type", Number)
|
|
161
|
+
], AgregatorQuestroomRO.prototype, "fear", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, class_transformer_1.Expose)(),
|
|
164
|
+
__metadata("design:type", Number)
|
|
165
|
+
], AgregatorQuestroomRO.prototype, "minAge", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, class_transformer_1.Expose)(),
|
|
168
|
+
(0, class_transformer_1.Type)(() => Location),
|
|
169
|
+
__metadata("design:type", Location)
|
|
170
|
+
], AgregatorQuestroomRO.prototype, "location", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, class_transformer_1.Expose)(),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], AgregatorQuestroomRO.prototype, "legend", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, class_transformer_1.Expose)(),
|
|
177
|
+
__metadata("design:type", String)
|
|
178
|
+
], AgregatorQuestroomRO.prototype, "importantInfo", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, class_transformer_1.Expose)(),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], AgregatorQuestroomRO.prototype, "actors", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, class_transformer_1.Expose)(),
|
|
185
|
+
__metadata("design:type", Array)
|
|
186
|
+
], AgregatorQuestroomRO.prototype, "questroomTags", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, class_transformer_1.Expose)(),
|
|
189
|
+
__metadata("design:type", String)
|
|
190
|
+
], AgregatorQuestroomRO.prototype, "photo", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, class_transformer_1.Expose)(),
|
|
193
|
+
__metadata("design:type", Array)
|
|
194
|
+
], AgregatorQuestroomRO.prototype, "photos", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, class_transformer_1.Expose)(),
|
|
197
|
+
__metadata("design:type", String)
|
|
198
|
+
], AgregatorQuestroomRO.prototype, "video", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, class_transformer_1.Expose)(),
|
|
201
|
+
__metadata("design:type", Array)
|
|
202
|
+
], AgregatorQuestroomRO.prototype, "languages", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, class_transformer_1.Expose)(),
|
|
205
|
+
__metadata("design:type", Number)
|
|
206
|
+
], AgregatorQuestroomRO.prototype, "rating", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, class_transformer_1.Expose)(),
|
|
209
|
+
__metadata("design:type", Number)
|
|
210
|
+
], AgregatorQuestroomRO.prototype, "reviewsCount", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, class_transformer_1.Expose)(),
|
|
213
|
+
(0, class_transformer_1.Transform)(({ obj }) => {
|
|
214
|
+
const [type] = obj.profile.step.split('_')[0];
|
|
215
|
+
return obj.hasSchedule && (type === 'integrated' || type === 'CRM');
|
|
216
|
+
}),
|
|
217
|
+
__metadata("design:type", Boolean)
|
|
218
|
+
], AgregatorQuestroomRO.prototype, "hasSchedule", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, class_transformer_1.Expose)(),
|
|
221
|
+
__metadata("design:type", Boolean)
|
|
222
|
+
], AgregatorQuestroomRO.prototype, "top", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, class_transformer_1.Expose)(),
|
|
225
|
+
__metadata("design:type", Object)
|
|
226
|
+
], AgregatorQuestroomRO.prototype, "navigatorReview", void 0);
|
|
227
|
+
exports.AgregatorQuestroomRO = AgregatorQuestroomRO;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import { CertificateRO } from '../certificate/certificate.ro';
|
|
2
1
|
import { ClientRO } from '../client/client.ro';
|
|
3
2
|
import { Discounts, Transactions } from '../order/order.ro';
|
|
4
|
-
import { ResponseObject } from '../shared/ro';
|
|
5
3
|
import { RO } from '../shared/ro-class';
|
|
6
4
|
import { SourceEnum } from '../shared/source.enum';
|
|
7
5
|
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
6
|
+
declare class Certificate {
|
|
7
|
+
title: string;
|
|
8
|
+
allQuestrooms: boolean;
|
|
9
|
+
questroomsIds: number[];
|
|
10
|
+
pickupInfo: string;
|
|
11
|
+
deliveryInfo: string;
|
|
12
|
+
photo: string;
|
|
13
|
+
pdfLink: string;
|
|
14
|
+
}
|
|
8
15
|
export declare class CertificateSaleRO extends RO {
|
|
9
16
|
profileId: number;
|
|
17
|
+
updatedAt: Date;
|
|
10
18
|
sended: boolean;
|
|
19
|
+
annul: boolean;
|
|
11
20
|
expireDate: string;
|
|
12
|
-
certificate:
|
|
21
|
+
certificate: Certificate;
|
|
13
22
|
code: string;
|
|
14
23
|
source: SourceEnum;
|
|
15
24
|
nominal: number;
|
|
@@ -29,10 +38,9 @@ export declare class CertificateSaleRO extends RO {
|
|
|
29
38
|
payed: number;
|
|
30
39
|
total: number;
|
|
31
40
|
toPay: number;
|
|
32
|
-
order:
|
|
33
|
-
orderId: number;
|
|
34
|
-
};
|
|
41
|
+
order: RO;
|
|
35
42
|
client: ClientRO;
|
|
36
43
|
discounts: Discounts[];
|
|
37
44
|
transactions: Transactions[];
|
|
38
45
|
}
|
|
46
|
+
export {};
|
|
@@ -10,29 +10,69 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CertificateSaleRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const client_ro_1 = require("../client/client.ro");
|
|
15
16
|
const order_ro_1 = require("../order/order.ro");
|
|
16
17
|
const ro_class_1 = require("../shared/ro-class");
|
|
17
18
|
const source_enum_1 = require("../shared/source.enum");
|
|
18
19
|
const certificatesales_delivery_type_enum_1 = require("./enum/certificatesales-delivery-type.enum");
|
|
20
|
+
class Certificate {
|
|
21
|
+
}
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Certificate.prototype, "title", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Boolean)
|
|
29
|
+
], Certificate.prototype, "allQuestrooms", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], Certificate.prototype, "questroomsIds", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Certificate.prototype, "pickupInfo", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Certificate.prototype, "deliveryInfo", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Certificate.prototype, "photo", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Certificate.prototype, "pdfLink", void 0);
|
|
19
50
|
class CertificateSaleRO extends ro_class_1.RO {
|
|
20
51
|
}
|
|
21
52
|
__decorate([
|
|
22
53
|
(0, class_transformer_1.Expose)(),
|
|
23
54
|
__metadata("design:type", Number)
|
|
24
55
|
], CertificateSaleRO.prototype, "profileId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], CertificateSaleRO.prototype, "updatedAt", void 0);
|
|
25
60
|
__decorate([
|
|
26
61
|
(0, class_transformer_1.Expose)(),
|
|
27
62
|
__metadata("design:type", Boolean)
|
|
28
63
|
], CertificateSaleRO.prototype, "sended", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], CertificateSaleRO.prototype, "annul", void 0);
|
|
29
68
|
__decorate([
|
|
30
69
|
(0, class_transformer_1.Expose)(),
|
|
31
70
|
__metadata("design:type", String)
|
|
32
71
|
], CertificateSaleRO.prototype, "expireDate", void 0);
|
|
33
72
|
__decorate([
|
|
34
73
|
(0, class_transformer_1.Expose)(),
|
|
35
|
-
|
|
74
|
+
(0, class_transformer_1.Type)(() => Certificate),
|
|
75
|
+
__metadata("design:type", Certificate)
|
|
36
76
|
], CertificateSaleRO.prototype, "certificate", void 0);
|
|
37
77
|
__decorate([
|
|
38
78
|
(0, class_transformer_1.Expose)(),
|
|
@@ -110,6 +150,11 @@ __decorate([
|
|
|
110
150
|
(0, class_transformer_1.Expose)(),
|
|
111
151
|
__metadata("design:type", Number)
|
|
112
152
|
], CertificateSaleRO.prototype, "toPay", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, class_transformer_1.Expose)(),
|
|
155
|
+
(0, class_transformer_1.Type)(() => ro_class_1.RO),
|
|
156
|
+
__metadata("design:type", ro_class_1.RO)
|
|
157
|
+
], CertificateSaleRO.prototype, "order", void 0);
|
|
113
158
|
__decorate([
|
|
114
159
|
(0, class_transformer_1.Expose)(),
|
|
115
160
|
(0, class_transformer_1.Type)(() => client_ro_1.ClientRO),
|
|
@@ -42,6 +42,12 @@ __decorate([
|
|
|
42
42
|
(0, class_transformer_1.Expose)(),
|
|
43
43
|
__metadata("design:type", Boolean)
|
|
44
44
|
], CreateCertificatesaleDto.prototype, "sendAfterPayment", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], CreateCertificatesaleDto.prototype, "sameRecipient", void 0);
|
|
45
51
|
__decorate([
|
|
46
52
|
(0, class_validator_1.IsEnum)(certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum),
|
|
47
53
|
(0, class_transformer_1.Expose)(),
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CertificatesaleStatusEnum = void 0;
|
|
4
4
|
var CertificatesaleStatusEnum;
|
|
5
5
|
(function (CertificatesaleStatusEnum) {
|
|
6
|
+
CertificatesaleStatusEnum["ANNUL"] = "annul";
|
|
6
7
|
CertificatesaleStatusEnum["USED"] = "used";
|
|
7
8
|
CertificatesaleStatusEnum["PAID_NOT_USED"] = "paid_not_used";
|
|
8
9
|
CertificatesaleStatusEnum["EXPIRED"] = "expired";
|
package/dist/order/order.ro.d.ts
CHANGED
package/dist/order/order.ro.js
CHANGED
|
@@ -168,6 +168,10 @@ __decorate([
|
|
|
168
168
|
(0, class_transformer_1.Expose)(),
|
|
169
169
|
__metadata("design:type", Number)
|
|
170
170
|
], Transactions.prototype, "amount", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, class_transformer_1.Expose)(),
|
|
173
|
+
__metadata("design:type", Number)
|
|
174
|
+
], Transactions.prototype, "includedIncrease", void 0);
|
|
171
175
|
__decorate([
|
|
172
176
|
(0, class_transformer_1.Expose)(),
|
|
173
177
|
__metadata("design:type", Number)
|
|
@@ -19,10 +19,4 @@ __decorate([
|
|
|
19
19
|
(0, class_transformer_1.Expose)(),
|
|
20
20
|
__metadata("design:type", Number)
|
|
21
21
|
], UpdateOrderSlotDto.prototype, "slotId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsBoolean)(),
|
|
24
|
-
(0, class_transformer_1.Expose)(),
|
|
25
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
26
|
-
__metadata("design:type", Boolean)
|
|
27
|
-
], UpdateOrderSlotDto.prototype, "sendNotification", void 0);
|
|
28
22
|
exports.UpdateOrderSlotDto = UpdateOrderSlotDto;
|
|
@@ -16,16 +16,12 @@ class CreateOrderCertificateDto {
|
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
19
20
|
__metadata("design:type", Number)
|
|
20
21
|
], CreateOrderCertificateDto.prototype, "orderId", void 0);
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
23
25
|
__metadata("design:type", Number)
|
|
24
26
|
], CreateOrderCertificateDto.prototype, "certificateId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsBoolean)(),
|
|
27
|
-
(0, class_transformer_1.Expose)(),
|
|
28
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
29
|
-
__metadata("design:type", Boolean)
|
|
30
|
-
], CreateOrderCertificateDto.prototype, "sendNotification", void 0);
|
|
31
27
|
exports.CreateOrderCertificateDto = CreateOrderCertificateDto;
|
|
@@ -29,10 +29,4 @@ __decorate([
|
|
|
29
29
|
(0, class_transformer_1.Expose)(),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], CreateOrderDiscountDto.prototype, "orderId", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsBoolean)(),
|
|
34
|
-
(0, class_transformer_1.Expose)(),
|
|
35
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
36
|
-
__metadata("design:type", Boolean)
|
|
37
|
-
], CreateOrderDiscountDto.prototype, "sendNotification", void 0);
|
|
38
32
|
exports.CreateOrderDiscountDto = CreateOrderDiscountDto;
|