@escapenavigator/types 1.4.34 → 1.4.36
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-questroom.ro.d.ts +0 -2
- package/dist/certificate-sale/check-certificate-sale.dto.d.ts +1 -0
- package/dist/certificate-sale/check-certificate-sale.dto.js +4 -0
- package/dist/location/create-location.dto.d.ts +1 -2
- package/dist/location/create-location.dto.js +5 -7
- package/dist/location/location.ro.d.ts +1 -1
- package/dist/questroom/agregator-questroom.ro.d.ts +0 -1
- package/dist/questroom/create-questroom.dto.d.ts +1 -1
- package/dist/questroom/create-questroom.dto.js +6 -6
- package/dist/questroom/questroom.ro.d.ts +2 -2
- package/dist/role/role.ro.d.ts +1 -1
- package/dist/slot/create-slot.dto.d.ts +3 -0
- package/dist/slot/create-slot.dto.js +18 -0
- package/dist/slot/enum/prepayment-type.enum.d.ts +5 -0
- package/dist/slot/enum/prepayment-type.enum.js +9 -0
- package/dist/slot/slot.ro.d.ts +4 -1
- package/dist/slot/update-slot.dto.d.ts +4 -3
- package/dist/slot/update-slot.dto.js +3 -19
- package/dist/slot-template/slot-template-element.d.ts +2 -0
- package/dist/transaction/enum/transaction-type.enum.d.ts +6 -0
- package/dist/transaction/enum/transaction-type.enum.js +10 -0
- package/dist/transaction/transaction.ro.d.ts +4 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/create-user.dto.d.ts +2 -0
- package/dist/user/create-user.dto.js +12 -0
- package/dist/user/current-user.ro.d.ts +5 -5
- package/dist/user/update-user.dto.d.ts +2 -0
- package/dist/user/update-user.dto.js +10 -0
- package/dist/user/user-monthly-report.ro.d.ts +6 -0
- package/dist/user/user-monthly-report.ro.js +2 -0
- package/dist/user/user-report.ro.d.ts +9 -0
- package/dist/user/user-report.ro.js +2 -0
- package/dist/user/user.ro.d.ts +6 -2
- package/dist/widget-openapi/widget-openapi-certificate.ro.d.ts +16 -27
- package/dist/widget-openapi/widget-openapi-create-order.dto.d.ts +1 -0
- package/dist/widget-openapi/widget-openapi-create-order.dto.js +4 -0
- package/dist/widget-openapi/widget-openapi-find-discount-by-code.dto.d.ts +5 -0
- package/dist/{slot-template/update-weekends.dto.js → widget-openapi/widget-openapi-find-discount-by-code.dto.js} +8 -13
- package/dist/widget-openapi/widget-openapi-finded-certificate.ro.d.ts +8 -0
- package/dist/widget-openapi/widget-openapi-order.ro.d.ts +18 -22
- package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +3 -0
- package/dist/widget-openapi/widget-openapi-slot.ro.d.ts +2 -0
- package/dist/widget-openapi/widget-openapi.ro.d.ts +8 -2
- package/package.json +2 -2
- package/dist/location/enum/desinfection.enum.d.ts +0 -6
- package/dist/location/enum/desinfection.enum.js +0 -10
- package/dist/slot-template/create-slot-template-autocomplete.dto.d.ts +0 -7
- package/dist/slot-template/create-slot-template-autocomplete.dto.js +0 -44
- package/dist/slot-template/create-slot-template.dto.d.ts +0 -4
- package/dist/slot-template/create-slot-template.dto.js +0 -24
- package/dist/slot-template/update-weekends.dto.d.ts +0 -6
|
@@ -27,7 +27,6 @@ export declare type AgregatorQuestroomRO = {
|
|
|
27
27
|
phone: string;
|
|
28
28
|
coordinates: [number, number];
|
|
29
29
|
howToFind: string;
|
|
30
|
-
disinfection: string;
|
|
31
30
|
wifi: boolean;
|
|
32
31
|
wardrobe: boolean;
|
|
33
32
|
freeParking: boolean;
|
|
@@ -36,7 +35,6 @@ export declare type AgregatorQuestroomRO = {
|
|
|
36
35
|
waitingAreaSize: number;
|
|
37
36
|
city: AgregatorCityRO;
|
|
38
37
|
};
|
|
39
|
-
teaser?: string;
|
|
40
38
|
legend?: string;
|
|
41
39
|
photo: string;
|
|
42
40
|
photos: string[];
|
|
@@ -17,4 +17,8 @@ __decorate([
|
|
|
17
17
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
18
18
|
__metadata("design:type", String)
|
|
19
19
|
], CheckCertificateSaleDto.prototype, "code", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CheckCertificateSaleDto.prototype, "questroomId", void 0);
|
|
20
24
|
exports.CheckCertificateSaleDto = CheckCertificateSaleDto;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { DisinfectionTypeEnum } from './enum/desinfection.enum';
|
|
2
1
|
export declare class CreateLocationDto {
|
|
3
2
|
phone: string;
|
|
4
3
|
address: string;
|
|
4
|
+
ip: string;
|
|
5
5
|
howToFind?: string;
|
|
6
6
|
prepareInfo: string;
|
|
7
7
|
feedBackInfo: string;
|
|
8
|
-
disinfection: DisinfectionTypeEnum;
|
|
9
8
|
wifi: boolean;
|
|
10
9
|
wardrobe: boolean;
|
|
11
10
|
freeParking: boolean;
|
|
@@ -13,7 +13,6 @@ exports.CreateLocationDto = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
-
const desinfection_enum_1 = require("./enum/desinfection.enum");
|
|
17
16
|
class CreateLocationDto {
|
|
18
17
|
}
|
|
19
18
|
__decorate([
|
|
@@ -26,6 +25,11 @@ __decorate([
|
|
|
26
25
|
(0, class_transformer_1.Expose)(),
|
|
27
26
|
__metadata("design:type", String)
|
|
28
27
|
], CreateLocationDto.prototype, "address", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateLocationDto.prototype, "ip", void 0);
|
|
29
33
|
__decorate([
|
|
30
34
|
(0, class_validator_1.IsOptional)(),
|
|
31
35
|
(0, class_validator_1.IsString)(),
|
|
@@ -42,12 +46,6 @@ __decorate([
|
|
|
42
46
|
(0, class_transformer_1.Expose)(),
|
|
43
47
|
__metadata("design:type", String)
|
|
44
48
|
], CreateLocationDto.prototype, "feedBackInfo", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsEnum)(desinfection_enum_1.DisinfectionTypeEnum),
|
|
47
|
-
(0, class_transformer_1.Transform)(({ value }) => value || desinfection_enum_1.DisinfectionTypeEnum.AFTER_EACH_GAME),
|
|
48
|
-
(0, class_transformer_1.Expose)(),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], CreateLocationDto.prototype, "disinfection", void 0);
|
|
51
49
|
__decorate([
|
|
52
50
|
(0, class_validator_1.IsBoolean)(),
|
|
53
51
|
(0, class_transformer_1.Transform)(({ value }) => value || false),
|
|
@@ -2,10 +2,10 @@ import { ResponseObject } from '../shared/ro';
|
|
|
2
2
|
export declare type LocationResponseObject = ResponseObject & {
|
|
3
3
|
address: string;
|
|
4
4
|
phone: string;
|
|
5
|
+
ip: string;
|
|
5
6
|
howToFind: string;
|
|
6
7
|
prepareInfo: string;
|
|
7
8
|
feedBackInfo: string;
|
|
8
|
-
disinfection: string;
|
|
9
9
|
wifi: boolean;
|
|
10
10
|
wardrobe: boolean;
|
|
11
11
|
freeParking: boolean;
|
|
@@ -24,11 +24,11 @@ export declare class CreateQuestroomDto {
|
|
|
24
24
|
time: number;
|
|
25
25
|
cancelationRule: QuestroomCancelationTypeEnum;
|
|
26
26
|
minHoursForFreeCanceling: number;
|
|
27
|
+
minHoursForBooking: number;
|
|
27
28
|
ticketSystem: boolean;
|
|
28
29
|
photo: string;
|
|
29
30
|
photos: string[];
|
|
30
31
|
video?: string;
|
|
31
32
|
legend: string;
|
|
32
|
-
teaser?: string;
|
|
33
33
|
tags: TagsEnum[];
|
|
34
34
|
}
|
|
@@ -139,6 +139,12 @@ __decorate([
|
|
|
139
139
|
(0, class_transformer_1.Expose)(),
|
|
140
140
|
__metadata("design:type", Number)
|
|
141
141
|
], CreateQuestroomDto.prototype, "minHoursForFreeCanceling", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, class_validator_1.IsInt)(),
|
|
144
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 24),
|
|
145
|
+
(0, class_transformer_1.Expose)(),
|
|
146
|
+
__metadata("design:type", Number)
|
|
147
|
+
], CreateQuestroomDto.prototype, "minHoursForBooking", void 0);
|
|
142
148
|
__decorate([
|
|
143
149
|
(0, class_validator_1.IsBoolean)(),
|
|
144
150
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
@@ -167,12 +173,6 @@ __decorate([
|
|
|
167
173
|
(0, class_transformer_1.Expose)(),
|
|
168
174
|
__metadata("design:type", String)
|
|
169
175
|
], CreateQuestroomDto.prototype, "legend", void 0);
|
|
170
|
-
__decorate([
|
|
171
|
-
(0, class_validator_1.IsOptional)(),
|
|
172
|
-
(0, class_validator_1.IsString)(),
|
|
173
|
-
(0, class_transformer_1.Expose)(),
|
|
174
|
-
__metadata("design:type", String)
|
|
175
|
-
], CreateQuestroomDto.prototype, "teaser", void 0);
|
|
176
176
|
__decorate([
|
|
177
177
|
(0, class_validator_1.IsArray)(),
|
|
178
178
|
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
@@ -14,12 +14,12 @@ export declare type QuestroomResponseObject = ResponseObject & {
|
|
|
14
14
|
minAge: number;
|
|
15
15
|
difficult: number;
|
|
16
16
|
fear: number;
|
|
17
|
-
teaser?: string;
|
|
18
17
|
legend?: string;
|
|
19
18
|
actors: boolean;
|
|
20
19
|
languages?: Languages[];
|
|
21
20
|
defaultLanguage?: Languages;
|
|
22
|
-
minHoursForFreeCanceling
|
|
21
|
+
minHoursForFreeCanceling: number;
|
|
22
|
+
minHoursForBooking: number;
|
|
23
23
|
cancelationRule: QuestroomCancelationTypeEnum;
|
|
24
24
|
awailableForNavigator: boolean;
|
|
25
25
|
awailableForWidgets: boolean;
|
package/dist/role/role.ro.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { PrepaymentTypeEnum } from './enum/prepayment-type.enum';
|
|
1
2
|
export declare class CreateSlotDto {
|
|
2
3
|
date: string;
|
|
3
4
|
start: string;
|
|
4
5
|
end: string;
|
|
5
6
|
questroomId: number;
|
|
6
7
|
tariffId: number;
|
|
8
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
9
|
+
prepayment?: number;
|
|
7
10
|
}
|
|
@@ -10,28 +10,46 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateSlotDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
+
const prepayment_type_enum_1 = require("./enum/prepayment-type.enum");
|
|
15
17
|
class CreateSlotDto {
|
|
16
18
|
}
|
|
17
19
|
__decorate([
|
|
18
20
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
19
22
|
__metadata("design:type", String)
|
|
20
23
|
], CreateSlotDto.prototype, "date", void 0);
|
|
21
24
|
__decorate([
|
|
22
25
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
23
27
|
__metadata("design:type", String)
|
|
24
28
|
], CreateSlotDto.prototype, "start", void 0);
|
|
25
29
|
__decorate([
|
|
26
30
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
27
32
|
__metadata("design:type", String)
|
|
28
33
|
], CreateSlotDto.prototype, "end", void 0);
|
|
29
34
|
__decorate([
|
|
30
35
|
(0, class_validator_1.IsNumber)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
31
37
|
__metadata("design:type", Number)
|
|
32
38
|
], CreateSlotDto.prototype, "questroomId", void 0);
|
|
33
39
|
__decorate([
|
|
34
40
|
(0, class_validator_1.IsNumber)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
35
42
|
__metadata("design:type", Number)
|
|
36
43
|
], CreateSlotDto.prototype, "tariffId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateSlotDto.prototype, "prepaymentType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.ValidateIf)((v) => v.prepaymentType !== prepayment_type_enum_1.PrepaymentTypeEnum.NO),
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
(0, class_validator_1.IsPositive)(),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], CreateSlotDto.prototype, "prepayment", void 0);
|
|
37
55
|
exports.CreateSlotDto = CreateSlotDto;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrepaymentTypeEnum = void 0;
|
|
4
|
+
var PrepaymentTypeEnum;
|
|
5
|
+
(function (PrepaymentTypeEnum) {
|
|
6
|
+
PrepaymentTypeEnum["NO"] = "no";
|
|
7
|
+
PrepaymentTypeEnum["FIXED"] = "fixed";
|
|
8
|
+
PrepaymentTypeEnum["PERCENT"] = "percent";
|
|
9
|
+
})(PrepaymentTypeEnum = exports.PrepaymentTypeEnum || (exports.PrepaymentTypeEnum = {}));
|
package/dist/slot/slot.ro.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { PrepaymentTypeEnum } from './enum/prepayment-type.enum';
|
|
2
|
+
export declare type SlotRO = {
|
|
2
3
|
id: number;
|
|
3
4
|
questroomId: number;
|
|
4
5
|
tariff: {
|
|
@@ -8,6 +9,8 @@ export declare type SlotResponseObject = {
|
|
|
8
9
|
start: string;
|
|
9
10
|
end: string;
|
|
10
11
|
breakReason: string | null;
|
|
12
|
+
prepayment: number;
|
|
13
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
11
14
|
order?: {
|
|
12
15
|
id: number;
|
|
13
16
|
players: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CreateSlotDto } from './create-slot.dto';
|
|
2
|
+
declare const UpdateSlotDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateSlotDto>>;
|
|
3
|
+
export declare class UpdateSlotDto extends UpdateSlotDto_base {
|
|
4
4
|
}
|
|
5
|
+
export {};
|
|
@@ -1,24 +1,8 @@
|
|
|
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
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.UpdateSlotDto = void 0;
|
|
13
|
-
const
|
|
14
|
-
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_slot_dto_1 = require("./create-slot.dto");
|
|
6
|
+
class UpdateSlotDto extends (0, mapped_types_1.PartialType)(create_slot_dto_1.CreateSlotDto) {
|
|
15
7
|
}
|
|
16
|
-
__decorate([
|
|
17
|
-
(0, class_validator_1.IsOptional)(),
|
|
18
|
-
__metadata("design:type", Number)
|
|
19
|
-
], UpdateSlotDto.prototype, "tariffId", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsOptional)(),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], UpdateSlotDto.prototype, "prepayment", void 0);
|
|
24
8
|
exports.UpdateSlotDto = UpdateSlotDto;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionTypeEnum = void 0;
|
|
4
|
+
var TransactionTypeEnum;
|
|
5
|
+
(function (TransactionTypeEnum) {
|
|
6
|
+
TransactionTypeEnum["INSIDE"] = "inside";
|
|
7
|
+
TransactionTypeEnum["HOLD"] = "hold";
|
|
8
|
+
TransactionTypeEnum["RETURN"] = "return";
|
|
9
|
+
TransactionTypeEnum["RECEIVED"] = "received";
|
|
10
|
+
})(TransactionTypeEnum = exports.TransactionTypeEnum || (exports.TransactionTypeEnum = {}));
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { CertificateSaleRO } from '../certificate-sale/certificate-sale.ro';
|
|
2
|
-
import { FinanceitemTypeEnum } from '../financeitem/enum/financeitem-type.enum';
|
|
3
2
|
import { FinanceitemResponseObject } from '../financeitem/financeitem.ro';
|
|
4
3
|
import { OrderRO } from '../order/order.ro';
|
|
5
4
|
import { PartnerResponseObject } from '../partner/partner.ro';
|
|
6
5
|
import { ResponseObject } from '../shared/ro';
|
|
7
6
|
import { CashboxResponseObject } from '..';
|
|
8
7
|
import { TransactionSourceEnum } from './enum/transaction-source.enum';
|
|
8
|
+
import { TransactionTypeEnum } from './enum/transaction-type.enum';
|
|
9
9
|
export declare type TransactionResponseObject = ResponseObject & {
|
|
10
|
-
type:
|
|
11
|
-
|
|
10
|
+
type: TransactionTypeEnum;
|
|
11
|
+
onlinePaymentId?: string;
|
|
12
|
+
fee?: number;
|
|
12
13
|
cashboxId: number;
|
|
13
14
|
cashbox?: CashboxResponseObject;
|
|
14
15
|
financeitemId: number;
|
|
15
16
|
financeitem?: FinanceitemResponseObject;
|
|
16
|
-
onlinePaymentId?: number;
|
|
17
17
|
partnerId: number;
|
|
18
18
|
partner?: PartnerResponseObject;
|
|
19
19
|
amount: number;
|