@escapenavigator/types 1.6.38 → 1.6.40
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.js +5 -0
- package/dist/agregator/agregator-questroom-card.ro.d.ts +6 -2
- package/dist/agregator/agregator-questroom-card.ro.js +14 -4
- package/dist/agregator/agregator-questroom.ro.d.ts +2 -2
- package/dist/agregator/agregator-questroom.ro.js +12 -14
- package/dist/agregator/agregator-questrooms-and-cities.ro.d.ts +2 -2
- package/dist/agregator/agregator-questrooms-and-cities.ro.js +26 -0
- package/dist/dashboard/create-announcement.dto.js +1 -1
- package/dist/emails/index.d.ts +5 -1
- package/dist/emails/send-email.dto.d.ts +1 -0
- package/dist/emails/send-email.dto.js +5 -0
- package/dist/google-calendar/create-google-calendar.dto.d.ts +7 -0
- package/dist/google-calendar/create-google-calendar.dto.js +46 -0
- package/dist/google-calendar/google-calendar.ro.d.ts +7 -0
- package/dist/google-calendar/google-calendar.ro.js +33 -0
- package/dist/google-calendar/initial-google-calendar.dto.d.ts +3 -0
- package/dist/google-calendar/initial-google-calendar.dto.js +22 -0
- package/dist/google-calendar/initial-google-calendar.ro.d.ts +5 -0
- package/dist/google-calendar/initial-google-calendar.ro.js +28 -0
- package/dist/google-calendar/update-google-calendar.dto.d.ts +4 -0
- package/dist/google-calendar/update-google-calendar.dto.js +31 -0
- package/dist/slot-rule/rule.ro.d.ts +2 -2
- package/dist/slot-rule/rule.ro.js +56 -0
- package/dist/tariff/tariff.ro.d.ts +5 -5
- package/dist/tariff/tariff.ro.js +35 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/crud/update-user.dto.js +1 -1
- package/dist/widget/create-widget.dto.d.ts +3 -3
- package/dist/widget/init-widgets-form.dto.d.ts +15 -0
- package/dist/widget/init-widgets-form.dto.js +77 -0
- package/dist/widget/init-widgets.dto.js +1 -1
- package/package.json +2 -2
|
@@ -32,6 +32,11 @@ __decorate([
|
|
|
32
32
|
], AgregatorCityRO.prototype, "photo", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
36
|
+
if (typeof value === 'object')
|
|
37
|
+
return value.coordinates;
|
|
38
|
+
return value.slice(1, -1).split(',');
|
|
39
|
+
}),
|
|
35
40
|
__metadata("design:type", Array)
|
|
36
41
|
], AgregatorCityRO.prototype, "coordinates", void 0);
|
|
37
42
|
__decorate([
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
|
+
declare class Location {
|
|
4
|
+
address: string;
|
|
5
|
+
}
|
|
3
6
|
export declare class AgregatorQuestroomCardRO {
|
|
4
7
|
createdAt: Date;
|
|
5
8
|
title: string;
|
|
6
9
|
slug: string;
|
|
10
|
+
location: Location;
|
|
7
11
|
top: boolean;
|
|
8
12
|
closed: boolean;
|
|
9
13
|
type: QuestroomTypeEnum;
|
|
@@ -16,7 +20,7 @@ export declare class AgregatorQuestroomCardRO {
|
|
|
16
20
|
playersMax: number;
|
|
17
21
|
difficult: number;
|
|
18
22
|
fear: number;
|
|
19
|
-
|
|
20
|
-
hasSchedule: boolean;
|
|
23
|
+
hasSchedule?: boolean;
|
|
21
24
|
languages?: Languages[];
|
|
22
25
|
}
|
|
26
|
+
export {};
|
|
@@ -10,8 +10,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AgregatorQuestroomCardRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const partner_program_enum_1 = require("../profile/enum/partner-program.enum");
|
|
14
16
|
const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
|
|
17
|
+
class Location {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Location.prototype, "address", void 0);
|
|
15
23
|
class AgregatorQuestroomCardRO {
|
|
16
24
|
}
|
|
17
25
|
__decorate([
|
|
@@ -26,6 +34,11 @@ __decorate([
|
|
|
26
34
|
(0, class_transformer_1.Expose)(),
|
|
27
35
|
__metadata("design:type", String)
|
|
28
36
|
], AgregatorQuestroomCardRO.prototype, "slug", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
(0, class_transformer_1.Type)(() => Location),
|
|
40
|
+
__metadata("design:type", Location)
|
|
41
|
+
], AgregatorQuestroomCardRO.prototype, "location", void 0);
|
|
29
42
|
__decorate([
|
|
30
43
|
(0, class_transformer_1.Expose)(),
|
|
31
44
|
__metadata("design:type", Boolean)
|
|
@@ -76,10 +89,7 @@ __decorate([
|
|
|
76
89
|
], AgregatorQuestroomCardRO.prototype, "fear", void 0);
|
|
77
90
|
__decorate([
|
|
78
91
|
(0, class_transformer_1.Expose)(),
|
|
79
|
-
|
|
80
|
-
], AgregatorQuestroomCardRO.prototype, "price", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, class_transformer_1.Expose)(),
|
|
92
|
+
(0, class_transformer_1.Transform)(({ obj }) => { var _a; return obj.templateId && ((_a = obj.profile) === null || _a === void 0 ? void 0 : _a.partnerProgram) === partner_program_enum_1.PartnerProgramEnum.ACTIVE; }),
|
|
83
93
|
__metadata("design:type", Boolean)
|
|
84
94
|
], AgregatorQuestroomCardRO.prototype, "hasSchedule", void 0);
|
|
85
95
|
__decorate([
|
|
@@ -30,7 +30,6 @@ declare class Location {
|
|
|
30
30
|
}
|
|
31
31
|
export declare class AgregatorQuestroomRO {
|
|
32
32
|
id: number;
|
|
33
|
-
currency: ProfileCurrencyEnum;
|
|
34
33
|
createdAt: Date;
|
|
35
34
|
slug: string;
|
|
36
35
|
teaser: string;
|
|
@@ -56,7 +55,8 @@ export declare class AgregatorQuestroomRO {
|
|
|
56
55
|
languages?: Languages[];
|
|
57
56
|
rating: number;
|
|
58
57
|
reviewsCount: number;
|
|
59
|
-
|
|
58
|
+
currency?: ProfileCurrencyEnum;
|
|
59
|
+
hasSchedule?: boolean;
|
|
60
60
|
top: boolean;
|
|
61
61
|
navigatorReview?: NavigatorReviewRO;
|
|
62
62
|
}
|
|
@@ -12,7 +12,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.AgregatorQuestroomRO = exports.AgregatorProfile = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const currency_by_country_1 = require("../constants/currency-by-country");
|
|
16
|
+
const partner_program_enum_1 = require("../profile/enum/partner-program.enum");
|
|
15
17
|
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
18
|
+
const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
|
|
16
19
|
const questroom_actors_enum_1 = require("../questroom/enum/questroom-actors.enum");
|
|
17
20
|
const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
|
|
18
21
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
@@ -28,11 +31,9 @@ __decorate([
|
|
|
28
31
|
], AgregatorProfile.prototype, "slug", void 0);
|
|
29
32
|
__decorate([
|
|
30
33
|
(0, class_transformer_1.Expose)(),
|
|
31
|
-
(0, class_transformer_1.Transform)(({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return type === 'integrated' || type === 'CRM' || type === 'canceled' || type === 'closed';
|
|
35
|
-
}),
|
|
34
|
+
(0, class_transformer_1.Transform)(({ value }) => value.status === profile_step_enum_1.ProfileStatusEnum.VERIFIED ||
|
|
35
|
+
value.status === profile_step_enum_1.ProfileStatusEnum.CLOSED ||
|
|
36
|
+
value.status === profile_step_enum_1.ProfileStatusEnum.CANCELED),
|
|
36
37
|
__metadata("design:type", Boolean)
|
|
37
38
|
], AgregatorProfile.prototype, "verified", void 0);
|
|
38
39
|
exports.AgregatorProfile = AgregatorProfile;
|
|
@@ -103,10 +104,6 @@ __decorate([
|
|
|
103
104
|
(0, class_transformer_1.Expose)(),
|
|
104
105
|
__metadata("design:type", Number)
|
|
105
106
|
], AgregatorQuestroomRO.prototype, "id", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, class_transformer_1.Expose)(),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], AgregatorQuestroomRO.prototype, "currency", void 0);
|
|
110
107
|
__decorate([
|
|
111
108
|
(0, class_transformer_1.Expose)(),
|
|
112
109
|
__metadata("design:type", Date)
|
|
@@ -211,11 +208,12 @@ __decorate([
|
|
|
211
208
|
], AgregatorQuestroomRO.prototype, "reviewsCount", void 0);
|
|
212
209
|
__decorate([
|
|
213
210
|
(0, class_transformer_1.Expose)(),
|
|
214
|
-
(0, class_transformer_1.Transform)(({ obj }) =>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
211
|
+
(0, class_transformer_1.Transform)(({ obj }) => currency_by_country_1.currencyByCountry[obj.profile.countery]),
|
|
212
|
+
__metadata("design:type", String)
|
|
213
|
+
], AgregatorQuestroomRO.prototype, "currency", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, class_transformer_1.Expose)(),
|
|
216
|
+
(0, class_transformer_1.Transform)(({ obj }) => { var _a; return obj.templateId && ((_a = obj.profile) === null || _a === void 0 ? void 0 : _a.partnerProgram) === partner_program_enum_1.PartnerProgramEnum.ACTIVE; }),
|
|
219
217
|
__metadata("design:type", Boolean)
|
|
220
218
|
], AgregatorQuestroomRO.prototype, "hasSchedule", void 0);
|
|
221
219
|
__decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgregatorCityRO } from './agregator-city.ro';
|
|
2
2
|
import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
|
|
3
|
-
export declare
|
|
3
|
+
export declare class AgregatorQuestroomsAndCitiesRO {
|
|
4
4
|
city: AgregatorCityRO;
|
|
5
5
|
questrooms: AgregatorQuestroomCardRO[];
|
|
6
|
-
}
|
|
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.AgregatorQuestroomsAndCitiesRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const agregator_city_ro_1 = require("./agregator-city.ro");
|
|
15
|
+
const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
|
|
16
|
+
class AgregatorQuestroomsAndCitiesRO {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_transformer_1.Type)(() => agregator_city_ro_1.AgregatorCityRO),
|
|
21
|
+
__metadata("design:type", agregator_city_ro_1.AgregatorCityRO)
|
|
22
|
+
], AgregatorQuestroomsAndCitiesRO.prototype, "city", 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
|
+
], AgregatorQuestroomsAndCitiesRO.prototype, "questrooms", void 0);
|
|
28
|
+
exports.AgregatorQuestroomsAndCitiesRO = AgregatorQuestroomsAndCitiesRO;
|
|
@@ -26,7 +26,7 @@ __decorate([
|
|
|
26
26
|
], CreateAnnouncementDto.prototype, "expired", void 0);
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, class_validator_1.IsBoolean)(),
|
|
29
|
-
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value :
|
|
29
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
31
|
__metadata("design:type", Boolean)
|
|
32
32
|
], CreateAnnouncementDto.prototype, "allLocations", void 0);
|
package/dist/emails/index.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ declare type Bitton = {
|
|
|
12
12
|
declare type Divider = {
|
|
13
13
|
type: 'divider';
|
|
14
14
|
};
|
|
15
|
+
declare type Reply = {
|
|
16
|
+
type: 'reply';
|
|
17
|
+
text: string;
|
|
18
|
+
};
|
|
15
19
|
declare type List = {
|
|
16
20
|
type: 'list';
|
|
17
21
|
title?: string;
|
|
@@ -25,7 +29,7 @@ declare type Context = {
|
|
|
25
29
|
tag?: string;
|
|
26
30
|
subscription?: boolean;
|
|
27
31
|
logo?: string;
|
|
28
|
-
sections: Array<Divider | Bitton | Paragraph | List>;
|
|
32
|
+
sections: Array<Divider | Bitton | Paragraph | List | Reply>;
|
|
29
33
|
};
|
|
30
34
|
export declare type SendEmailRequestParams = {
|
|
31
35
|
from: EmailSenderEnum;
|
|
@@ -21,6 +21,11 @@ __decorate([
|
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], SendEmailDto.prototype, "text", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], SendEmailDto.prototype, "reply", void 0);
|
|
24
29
|
__decorate([
|
|
25
30
|
(0, class_validator_1.IsEmail)(),
|
|
26
31
|
(0, class_transformer_1.Expose)(),
|
|
@@ -0,0 +1,46 @@
|
|
|
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.CreateGoogleCalendarDto = 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 CreateGoogleCalendarDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateGoogleCalendarDto.prototype, "calendarId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateGoogleCalendarDto.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateGoogleCalendarDto.prototype, "token", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsBoolean)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], CreateGoogleCalendarDto.prototype, "allLocations", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.ValidateIf)((o) => !o.allLocations),
|
|
41
|
+
(0, class_validator_1.IsArray)(),
|
|
42
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], CreateGoogleCalendarDto.prototype, "locationIds", void 0);
|
|
46
|
+
exports.CreateGoogleCalendarDto = CreateGoogleCalendarDto;
|
|
@@ -0,0 +1,33 @@
|
|
|
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.GoogleCalendarRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
15
|
+
class GoogleCalendarRO extends ro_class_1.RO {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Expose)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GoogleCalendarRO.prototype, "calendarId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GoogleCalendarRO.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], GoogleCalendarRO.prototype, "allLocations", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], GoogleCalendarRO.prototype, "locationIds", void 0);
|
|
33
|
+
exports.GoogleCalendarRO = GoogleCalendarRO;
|
|
@@ -0,0 +1,22 @@
|
|
|
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.InitialGoogleCalendarDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
15
|
+
class InitialGoogleCalendarDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Expose)(),
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], InitialGoogleCalendarDto.prototype, "clientSecret", void 0);
|
|
22
|
+
exports.InitialGoogleCalendarDto = InitialGoogleCalendarDto;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InitialGoogleCalendarRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
class InitialGoogleCalendarRO {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_transformer_1.Expose)(),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], InitialGoogleCalendarRO.prototype, "calendarId", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], InitialGoogleCalendarRO.prototype, "title", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], InitialGoogleCalendarRO.prototype, "token", void 0);
|
|
28
|
+
exports.InitialGoogleCalendarRO = InitialGoogleCalendarRO;
|
|
@@ -0,0 +1,31 @@
|
|
|
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.UpdateGoogleCalendarDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class UpdateGoogleCalendarDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsBoolean)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Boolean)
|
|
22
|
+
], UpdateGoogleCalendarDto.prototype, "allLocations", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsArray)(),
|
|
25
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
26
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
27
|
+
(0, class_validator_1.ValidateIf)((o) => !o.allLocations),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], UpdateGoogleCalendarDto.prototype, "locationIds", void 0);
|
|
31
|
+
exports.UpdateGoogleCalendarDto = UpdateGoogleCalendarDto;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
2
2
|
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
3
|
-
export declare
|
|
3
|
+
export declare class RuleRO {
|
|
4
4
|
id: number;
|
|
5
5
|
profileId: number;
|
|
6
6
|
title: string;
|
|
@@ -11,4 +11,4 @@ export declare type RuleRO = {
|
|
|
11
11
|
cancelationRule: QuestroomCancelationTypeEnum;
|
|
12
12
|
minHoursForFreeCanceling: number;
|
|
13
13
|
minHoursForBooking: number;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -1,2 +1,58 @@
|
|
|
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.RuleRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
|
|
15
|
+
const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
|
|
16
|
+
class RuleRO {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], RuleRO.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], RuleRO.prototype, "profileId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RuleRO.prototype, "title", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], RuleRO.prototype, "saved", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], RuleRO.prototype, "default", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], RuleRO.prototype, "prepayment", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], RuleRO.prototype, "prepaymentType", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], RuleRO.prototype, "cancelationRule", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], RuleRO.prototype, "minHoursForFreeCanceling", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], RuleRO.prototype, "minHoursForBooking", void 0);
|
|
58
|
+
exports.RuleRO = RuleRO;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { OpenapiTariffRO } from '../openapi/shared/openapi-tariff.ro';
|
|
2
|
+
export declare class TariffRO {
|
|
2
3
|
id: number;
|
|
4
|
+
saved: boolean;
|
|
3
5
|
profileId: number;
|
|
4
6
|
title: string;
|
|
5
|
-
price:
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
};
|
|
7
|
+
price: OpenapiTariffRO;
|
|
8
|
+
}
|
package/dist/tariff/tariff.ro.js
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
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.TariffRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const openapi_tariff_ro_1 = require("../openapi/shared/openapi-tariff.ro");
|
|
15
|
+
class TariffRO {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Expose)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], TariffRO.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Boolean)
|
|
24
|
+
], TariffRO.prototype, "saved", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], TariffRO.prototype, "profileId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TariffRO.prototype, "title", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", openapi_tariff_ro_1.OpenapiTariffRO)
|
|
36
|
+
], TariffRO.prototype, "price", void 0);
|
|
37
|
+
exports.TariffRO = TariffRO;
|