@escapenavigator/types 1.4.35 → 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 -1
- 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/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/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/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/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
|
@@ -1,31 +1,20 @@
|
|
|
1
1
|
import { CertificatesaleDeliveryTypeEnum } from '../certificate-sale/enum/certificatesales-delivery-type.enum';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
id: number;
|
|
5
|
-
code: number;
|
|
6
|
-
payed: number;
|
|
7
|
-
totalPrice: number;
|
|
8
|
-
deliveryPrice: number;
|
|
9
|
-
title: string;
|
|
10
|
-
prepayment: number;
|
|
11
|
-
buissy: boolean;
|
|
12
|
-
client: ClientRO;
|
|
13
|
-
toPay: number;
|
|
2
|
+
export declare type WidgetOpenapiCertificateRO = {
|
|
3
|
+
code: string;
|
|
14
4
|
nominal: number;
|
|
15
|
-
expireDate: string;
|
|
16
5
|
extraPrice: number;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
deliveryPrice: number;
|
|
7
|
+
totalPrice: number;
|
|
8
|
+
expireDate: string;
|
|
9
|
+
clientEmail: string;
|
|
10
|
+
deliveryPhone?: string;
|
|
11
|
+
deliveryAddress?: string;
|
|
12
|
+
deliveryCity?: string;
|
|
13
|
+
deliveryPostCode?: string;
|
|
14
|
+
deliveryEmail?: string;
|
|
15
|
+
deliveryFullname?: string;
|
|
16
|
+
deliveryMessage?: string;
|
|
17
|
+
deliveryType?: CertificatesaleDeliveryTypeEnum;
|
|
18
|
+
sendingDate?: string;
|
|
19
|
+
sendingTime?: string;
|
|
31
20
|
};
|
|
@@ -47,6 +47,10 @@ __decorate([
|
|
|
47
47
|
(0, class_validator_1.IsOptional)(),
|
|
48
48
|
__metadata("design:type", Number)
|
|
49
49
|
], WidgetOpenapiCreateOrderDto.prototype, "certificateId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], WidgetOpenapiCreateOrderDto.prototype, "promocodeId", void 0);
|
|
50
54
|
__decorate([
|
|
51
55
|
(0, class_validator_1.IsOptional)(),
|
|
52
56
|
(0, class_validator_1.MaxLength)(500),
|
|
@@ -9,25 +9,20 @@ 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.
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
12
|
+
exports.WidgetOpenapiFindDiscountByCodeDto = void 0;
|
|
15
13
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
-
class
|
|
14
|
+
class WidgetOpenapiFindDiscountByCodeDto {
|
|
17
15
|
}
|
|
18
16
|
__decorate([
|
|
19
|
-
(0,
|
|
20
|
-
(
|
|
21
|
-
|
|
22
|
-
], UpdateWeelendsDto.prototype, "slots", void 0);
|
|
17
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], WidgetOpenapiFindDiscountByCodeDto.prototype, "code", void 0);
|
|
23
20
|
__decorate([
|
|
24
21
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
|
-
(0, class_transformer_1.Expose)(),
|
|
26
22
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
23
|
+
], WidgetOpenapiFindDiscountByCodeDto.prototype, "questroomId", void 0);
|
|
28
24
|
__decorate([
|
|
29
25
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
|
-
(0, class_transformer_1.Expose)(),
|
|
31
26
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
33
|
-
exports.
|
|
27
|
+
], WidgetOpenapiFindDiscountByCodeDto.prototype, "widgetUid", void 0);
|
|
28
|
+
exports.WidgetOpenapiFindDiscountByCodeDto = WidgetOpenapiFindDiscountByCodeDto;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { PromocodeTypeEnum } from '../promocode/emun/promocode-type.enum';
|
|
1
2
|
export declare type WidgetOpenapiFindedCertificateRO = {
|
|
2
3
|
id: number;
|
|
3
4
|
nominal: number;
|
|
4
5
|
code: string;
|
|
6
|
+
name: 'certificate';
|
|
7
|
+
} | {
|
|
8
|
+
id: number;
|
|
9
|
+
discount: number;
|
|
10
|
+
code: string;
|
|
11
|
+
type: PromocodeTypeEnum;
|
|
12
|
+
name: 'promocode';
|
|
5
13
|
};
|
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
-
import { TariffResponseObject } from '../tariff/tariff.ro';
|
|
3
2
|
export declare type WidgetOpenapiOrderResponseObject = {
|
|
4
3
|
id: number;
|
|
5
|
-
language
|
|
6
|
-
|
|
4
|
+
language?: Languages;
|
|
5
|
+
price: {
|
|
6
|
+
[x: string]: number;
|
|
7
|
+
};
|
|
8
|
+
payed: number;
|
|
9
|
+
total: number;
|
|
7
10
|
players: number;
|
|
8
|
-
|
|
11
|
+
orderDate: string;
|
|
12
|
+
time: string;
|
|
13
|
+
clientEmail: string;
|
|
14
|
+
certificates: Array<{
|
|
15
|
+
nominal: number;
|
|
16
|
+
code: string;
|
|
17
|
+
}>;
|
|
9
18
|
upsellings: Array<{
|
|
10
|
-
id: number;
|
|
11
19
|
title: string;
|
|
12
20
|
amount: number;
|
|
13
21
|
}>;
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
promocodes: Array<{
|
|
23
|
+
amount: number;
|
|
16
24
|
code: string;
|
|
25
|
+
}>;
|
|
26
|
+
transactions: Array<{
|
|
17
27
|
amount: number;
|
|
18
|
-
}
|
|
19
|
-
comment: string;
|
|
20
|
-
payed: number;
|
|
21
|
-
toPay: number;
|
|
22
|
-
start: string;
|
|
23
|
-
end: string;
|
|
24
|
-
prepayment: number;
|
|
25
|
-
buissy: boolean;
|
|
26
|
-
time: string;
|
|
27
|
-
price: TariffResponseObject['price'];
|
|
28
|
-
clientEmail: string;
|
|
29
|
-
questroom: {
|
|
30
|
-
title: string;
|
|
31
|
-
howToFind: string;
|
|
32
|
-
};
|
|
28
|
+
}>;
|
|
33
29
|
};
|
|
@@ -3,6 +3,8 @@ import { Languages } from '../shared/enum/languages.enum';
|
|
|
3
3
|
export declare type WidgetOpenApiQuestroomRO = {
|
|
4
4
|
id: number;
|
|
5
5
|
address: string;
|
|
6
|
+
howToFind: string;
|
|
7
|
+
prepareInfo: string;
|
|
6
8
|
fear: number;
|
|
7
9
|
difficult: number;
|
|
8
10
|
title: string;
|
|
@@ -13,5 +15,6 @@ export declare type WidgetOpenApiQuestroomRO = {
|
|
|
13
15
|
playersMin: number;
|
|
14
16
|
minAge: number;
|
|
15
17
|
defaultLanguage: Languages;
|
|
18
|
+
minHoursForBooking: number;
|
|
16
19
|
languages: Languages[];
|
|
17
20
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
1
2
|
export declare type WidgetOpenapiSlotResponseObject = {
|
|
2
3
|
id: number;
|
|
3
4
|
tariff: {
|
|
@@ -8,5 +9,6 @@ export declare type WidgetOpenapiSlotResponseObject = {
|
|
|
8
9
|
start: string;
|
|
9
10
|
end: string;
|
|
10
11
|
prepayment: number;
|
|
12
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
11
13
|
buissy: boolean;
|
|
12
14
|
};
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
2
|
import { UpsellingResponseObject } from '../upselling/upselling.ro';
|
|
3
3
|
import { WidgetTypeEnum } from '../widget/enum/widget-type.enum';
|
|
4
|
+
import { WidgetOpenApiCertificateCardRO } from './widget-openapi-certificate-card.ro';
|
|
4
5
|
import { WidgetOpenApiQuestroomRO } from './widget-openapi-questroom.ro';
|
|
5
6
|
declare type WIDGET_BUTTON = {
|
|
6
7
|
type: WidgetTypeEnum.WIDGET_BUTTON;
|
|
7
|
-
questrooms
|
|
8
|
-
|
|
8
|
+
questrooms: WidgetOpenApiQuestroomRO[];
|
|
9
|
+
certificates: WidgetOpenApiCertificateCardRO[];
|
|
10
|
+
upsellings: Array<Pick<UpsellingResponseObject, 'id' | 'allQuestrooms' | 'questroomsIds' | 'price' | 'title' | 'description'>>;
|
|
9
11
|
};
|
|
10
12
|
declare type AGREGATOR = {
|
|
11
13
|
type?: never;
|
|
12
14
|
questrooms?: never;
|
|
13
15
|
upsellings?: never;
|
|
16
|
+
certificates?: never;
|
|
14
17
|
};
|
|
15
18
|
declare type ALL_CERTIFICATES = {
|
|
16
19
|
type: WidgetTypeEnum.ALL_CERTIFICATES;
|
|
17
20
|
questrooms?: never;
|
|
21
|
+
certificates: WidgetOpenApiCertificateCardRO[];
|
|
18
22
|
upsellings?: never;
|
|
19
23
|
};
|
|
20
24
|
declare type ONE_QUESTROOM = {
|
|
21
25
|
type: WidgetTypeEnum.ONE_QUESTROOM;
|
|
22
26
|
questrooms: WidgetOpenApiQuestroomRO[];
|
|
27
|
+
certificates: WidgetOpenApiCertificateCardRO[];
|
|
23
28
|
upsellings: Array<Pick<UpsellingResponseObject, 'id' | 'allQuestrooms' | 'questroomsIds' | 'price' | 'title' | 'description'>>;
|
|
24
29
|
};
|
|
25
30
|
declare type ALL_QUESTROOM = {
|
|
26
31
|
type: WidgetTypeEnum.ALL_QUESTROOM;
|
|
27
32
|
questrooms: WidgetOpenApiQuestroomRO[];
|
|
33
|
+
certificates: WidgetOpenApiCertificateCardRO[];
|
|
28
34
|
upsellings: Array<Pick<UpsellingResponseObject, 'id' | 'allQuestrooms' | 'questroomsIds' | 'price' | 'title' | 'description'>>;
|
|
29
35
|
};
|
|
30
36
|
export declare type WidgetOpenApiRO = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.36",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "a1a8084c926cdebc84c284930e3688bbb184a3a7",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/validator": "13.0.0",
|
|
26
26
|
"alphakit-presets-lint": "^1.0.0",
|
|
@@ -1,44 +0,0 @@
|
|
|
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.CreateSlotTemplateAutocompleteDto = 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 CreateSlotTemplateAutocompleteDto {
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsArray)(),
|
|
20
|
-
(0, class_transformer_1.Expose)(),
|
|
21
|
-
__metadata("design:type", Array)
|
|
22
|
-
], CreateSlotTemplateAutocompleteDto.prototype, "days", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
|
-
(0, class_transformer_1.Expose)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], CreateSlotTemplateAutocompleteDto.prototype, "start", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
|
-
(0, class_transformer_1.Expose)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], CreateSlotTemplateAutocompleteDto.prototype, "end", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.IsPositive)(),
|
|
36
|
-
(0, class_transformer_1.Expose)(),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], CreateSlotTemplateAutocompleteDto.prototype, "prepayment", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsPositive)(),
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], CreateSlotTemplateAutocompleteDto.prototype, "tariffId", void 0);
|
|
44
|
-
exports.CreateSlotTemplateAutocompleteDto = CreateSlotTemplateAutocompleteDto;
|
|
@@ -1,24 +0,0 @@
|
|
|
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.CreateSlotTemplateDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CreateSlotTemplateDto {
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
(0, class_validator_1.IsNumber)(),
|
|
18
|
-
__metadata("design:type", Number)
|
|
19
|
-
], CreateSlotTemplateDto.prototype, "questroomId", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsNumber)(),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], CreateSlotTemplateDto.prototype, "profileId", void 0);
|
|
24
|
-
exports.CreateSlotTemplateDto = CreateSlotTemplateDto;
|