@escapenavigator/types 1.6.23 → 1.6.25
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 +8 -20
- package/dist/certificate-sale/certificate-sale.ro.js +130 -0
- package/dist/order/order.ro.d.ts +2 -2
- package/dist/order/order.ro.js +3 -1
- 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,10 +1,13 @@
|
|
|
1
1
|
import { CertificateRO } from '../certificate/certificate.ro';
|
|
2
2
|
import { ClientRO } from '../client/client.ro';
|
|
3
|
+
import { Discounts, Transactions } from '../order/order.ro';
|
|
3
4
|
import { ResponseObject } from '../shared/ro';
|
|
5
|
+
import { RO } from '../shared/ro-class';
|
|
4
6
|
import { SourceEnum } from '../shared/source.enum';
|
|
5
|
-
import { TransactionTypeEnum } from '../transaction/enum/transaction-type.enum';
|
|
6
7
|
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
7
|
-
export declare
|
|
8
|
+
export declare class CertificateSaleRO extends RO {
|
|
9
|
+
profileId: number;
|
|
10
|
+
updatedAt: Date;
|
|
8
11
|
sended: boolean;
|
|
9
12
|
expireDate: string;
|
|
10
13
|
certificate: CertificateRO;
|
|
@@ -31,21 +34,6 @@ export declare type CertificateSaleRO = ResponseObject & {
|
|
|
31
34
|
orderId: number;
|
|
32
35
|
};
|
|
33
36
|
client: ClientRO;
|
|
34
|
-
discounts:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
amount: number;
|
|
38
|
-
createdAt: Date;
|
|
39
|
-
userId: number;
|
|
40
|
-
}>;
|
|
41
|
-
transactions: Array<{
|
|
42
|
-
id: number;
|
|
43
|
-
cashboxId: number;
|
|
44
|
-
amount: number;
|
|
45
|
-
comment: string;
|
|
46
|
-
userId: number;
|
|
47
|
-
createdAt: Date;
|
|
48
|
-
type: TransactionTypeEnum;
|
|
49
|
-
paymentId: string;
|
|
50
|
-
}>;
|
|
51
|
-
};
|
|
37
|
+
discounts: Discounts[];
|
|
38
|
+
transactions: Transactions[];
|
|
39
|
+
}
|
|
@@ -1,2 +1,132 @@
|
|
|
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.CertificateSaleRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const client_ro_1 = require("../client/client.ro");
|
|
15
|
+
const order_ro_1 = require("../order/order.ro");
|
|
16
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
17
|
+
const source_enum_1 = require("../shared/source.enum");
|
|
18
|
+
const certificatesales_delivery_type_enum_1 = require("./enum/certificatesales-delivery-type.enum");
|
|
19
|
+
class CertificateSaleRO extends ro_class_1.RO {
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CertificateSaleRO.prototype, "profileId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], CertificateSaleRO.prototype, "updatedAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], CertificateSaleRO.prototype, "sended", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CertificateSaleRO.prototype, "expireDate", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], CertificateSaleRO.prototype, "certificate", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], CertificateSaleRO.prototype, "code", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CertificateSaleRO.prototype, "source", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], CertificateSaleRO.prototype, "nominal", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], CertificateSaleRO.prototype, "extraPrice", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], CertificateSaleRO.prototype, "deliveryPrice", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], CertificateSaleRO.prototype, "deliveryType", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CertificateSaleRO.prototype, "deliveryEmail", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], CertificateSaleRO.prototype, "deliveryMessage", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_transformer_1.Expose)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CertificateSaleRO.prototype, "deliveryName", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], CertificateSaleRO.prototype, "deliverySurname", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_transformer_1.Expose)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], CertificateSaleRO.prototype, "deliveryPhone", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], CertificateSaleRO.prototype, "deliveryAddress", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], CertificateSaleRO.prototype, "deliveryCity", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], CertificateSaleRO.prototype, "deliveryPostcode", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_transformer_1.Expose)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], CertificateSaleRO.prototype, "sendingEmailFullUtcDate", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_transformer_1.Expose)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], CertificateSaleRO.prototype, "deliveryTrackingInfo", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_transformer_1.Expose)(),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], CertificateSaleRO.prototype, "payed", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, class_transformer_1.Expose)(),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], CertificateSaleRO.prototype, "total", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, class_transformer_1.Expose)(),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], CertificateSaleRO.prototype, "toPay", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_transformer_1.Expose)(),
|
|
119
|
+
(0, class_transformer_1.Type)(() => client_ro_1.ClientRO),
|
|
120
|
+
__metadata("design:type", client_ro_1.ClientRO)
|
|
121
|
+
], CertificateSaleRO.prototype, "client", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, class_transformer_1.Expose)(),
|
|
124
|
+
(0, class_transformer_1.Type)(() => order_ro_1.Discounts),
|
|
125
|
+
__metadata("design:type", Array)
|
|
126
|
+
], CertificateSaleRO.prototype, "discounts", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, class_transformer_1.Expose)(),
|
|
129
|
+
(0, class_transformer_1.Type)(() => order_ro_1.Transactions),
|
|
130
|
+
__metadata("design:type", Array)
|
|
131
|
+
], CertificateSaleRO.prototype, "transactions", void 0);
|
|
132
|
+
exports.CertificateSaleRO = CertificateSaleRO;
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare class Certificates extends RO {
|
|
|
27
27
|
certificateId: number;
|
|
28
28
|
orderId: number;
|
|
29
29
|
}
|
|
30
|
-
declare class Discounts extends RO {
|
|
30
|
+
export declare class Discounts extends RO {
|
|
31
31
|
reason: string;
|
|
32
32
|
amount: number;
|
|
33
33
|
userId: number;
|
|
@@ -49,7 +49,7 @@ declare class Penalties extends RO {
|
|
|
49
49
|
amount: number;
|
|
50
50
|
userId: number;
|
|
51
51
|
}
|
|
52
|
-
declare class Transactions extends RO {
|
|
52
|
+
export declare class Transactions extends RO {
|
|
53
53
|
type: TransactionTypeEnum;
|
|
54
54
|
provider: TransactionSourceEnum;
|
|
55
55
|
cashboxId: number;
|
package/dist/order/order.ro.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.OrderRO = void 0;
|
|
12
|
+
exports.OrderRO = exports.Transactions = exports.Discounts = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const client_ro_1 = require("../client/client.ro");
|
|
@@ -91,6 +91,7 @@ __decorate([
|
|
|
91
91
|
(0, class_transformer_1.Expose)(),
|
|
92
92
|
__metadata("design:type", Number)
|
|
93
93
|
], Discounts.prototype, "userId", void 0);
|
|
94
|
+
exports.Discounts = Discounts;
|
|
94
95
|
class Promocodes extends ro_class_1.RO {
|
|
95
96
|
}
|
|
96
97
|
__decorate([
|
|
@@ -171,6 +172,7 @@ __decorate([
|
|
|
171
172
|
(0, class_transformer_1.Expose)(),
|
|
172
173
|
__metadata("design:type", Number)
|
|
173
174
|
], Transactions.prototype, "userId", void 0);
|
|
175
|
+
exports.Transactions = Transactions;
|
|
174
176
|
class OrderRO extends ro_class_1.RO {
|
|
175
177
|
}
|
|
176
178
|
__decorate([
|