@escapenavigator/types 1.4.35 → 1.4.37
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/certificate.ro.d.ts +3 -4
- package/dist/certificate/create-certificate.dto.d.ts +4 -5
- package/dist/certificate/create-certificate.dto.js +23 -24
- 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/certificate-sale/create-certificatesale.dto.d.ts +1 -0
- package/dist/certificate-sale/create-certificatesale.dto.js +5 -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/user/create-user.dto.js +3 -3
- package/dist/user/update-user.dto.d.ts +2 -2
- package/dist/user/update-user.dto.js +13 -11
- package/dist/widget-openapi/widget-openapi-certificate-card.ro.d.ts +3 -3
- package/dist/widget-openapi/widget-openapi-certificate.ro.d.ts +16 -27
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.d.ts +1 -0
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.js +4 -0
- 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/certificate/enum/certificate-type.enum.d.ts +0 -4
- package/dist/certificate/enum/certificate-type.enum.js +0 -8
- 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,19 +1,18 @@
|
|
|
1
1
|
import { ResponseObject } from '../shared/ro';
|
|
2
|
-
import { CertificateTypeEnum } from './enum/certificate-type.enum';
|
|
3
2
|
export declare type CertificateResponseObject = ResponseObject & {
|
|
4
3
|
title: string;
|
|
5
4
|
validity: number;
|
|
6
|
-
|
|
7
|
-
type: CertificateTypeEnum;
|
|
8
|
-
templatePhoto: string;
|
|
5
|
+
nominals: number[];
|
|
9
6
|
extraPrice: number;
|
|
10
7
|
pickupPossibility: boolean;
|
|
11
8
|
deliveryPossibility: boolean;
|
|
9
|
+
emailPossibility: boolean;
|
|
12
10
|
deliveryPrice: number;
|
|
13
11
|
allQuestrooms: boolean;
|
|
14
12
|
questroomsIds: number[];
|
|
15
13
|
awailableForNavigator: boolean;
|
|
16
14
|
awailableForWidgets: boolean;
|
|
15
|
+
pdfPhoto: string;
|
|
17
16
|
photo: string;
|
|
18
17
|
photos: string[];
|
|
19
18
|
description?: string;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { CertificateTypeEnum } from './enum/certificate-type.enum';
|
|
2
1
|
export declare class CreateCertificateDto {
|
|
3
2
|
title: string;
|
|
4
3
|
validity: number;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
templatePhoto: string;
|
|
8
|
-
extraPrice?: number;
|
|
4
|
+
nominals: number[];
|
|
5
|
+
emailPossibility: boolean;
|
|
9
6
|
pickupPossibility: boolean;
|
|
10
7
|
deliveryPossibility: boolean;
|
|
11
8
|
deliveryPrice?: number;
|
|
9
|
+
extraPrice?: number;
|
|
12
10
|
allQuestrooms: boolean;
|
|
13
11
|
questroomsIds: number[];
|
|
14
12
|
awailableForNavigator: boolean;
|
|
15
13
|
awailableForWidgets: boolean;
|
|
16
14
|
photo: string;
|
|
15
|
+
pdfPhoto: string;
|
|
17
16
|
photos: string[];
|
|
18
17
|
description?: string;
|
|
19
18
|
pickupInfo: string;
|
|
@@ -13,7 +13,6 @@ exports.CreateCertificateDto = 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 certificate_type_enum_1 = require("./enum/certificate-type.enum");
|
|
17
16
|
function checkBoolean({ value }, defaultValue) {
|
|
18
17
|
return value === undefined ? defaultValue || true : value;
|
|
19
18
|
}
|
|
@@ -30,37 +29,25 @@ __decorate([
|
|
|
30
29
|
__metadata("design:type", Number)
|
|
31
30
|
], CreateCertificateDto.prototype, "validity", void 0);
|
|
32
31
|
__decorate([
|
|
33
|
-
(0, class_validator_1.
|
|
34
|
-
(0,
|
|
35
|
-
|
|
36
|
-
], CreateCertificateDto.prototype, "nominal", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsEnum)(certificate_type_enum_1.CertificateTypeEnum),
|
|
39
|
-
(0, class_transformer_1.Transform)(({ value }) => value || certificate_type_enum_1.CertificateTypeEnum.VIRTUAL),
|
|
40
|
-
(0, class_transformer_1.Expose)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], CreateCertificateDto.prototype, "type", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
32
|
+
(0, class_validator_1.IsArray)(),
|
|
33
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
34
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
45
35
|
(0, class_transformer_1.Expose)(),
|
|
46
|
-
__metadata("design:type",
|
|
47
|
-
], CreateCertificateDto.prototype, "
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], CreateCertificateDto.prototype, "nominals", void 0);
|
|
48
38
|
__decorate([
|
|
49
|
-
(0, class_validator_1.
|
|
50
|
-
(0,
|
|
51
|
-
(0, class_validator_1.IsNumber)(),
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
(0, class_transformer_1.Transform)(({ value }) => checkBoolean({ value }, false)),
|
|
52
41
|
(0, class_transformer_1.Expose)(),
|
|
53
|
-
__metadata("design:type",
|
|
54
|
-
], CreateCertificateDto.prototype, "
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], CreateCertificateDto.prototype, "emailPossibility", void 0);
|
|
55
44
|
__decorate([
|
|
56
|
-
(0, class_validator_1.ValidateIf)((o) => o.type === certificate_type_enum_1.CertificateTypeEnum.PHYSICAL),
|
|
57
45
|
(0, class_validator_1.IsBoolean)(),
|
|
58
46
|
(0, class_transformer_1.Transform)(({ value }) => checkBoolean({ value }, false)),
|
|
59
47
|
(0, class_transformer_1.Expose)(),
|
|
60
48
|
__metadata("design:type", Boolean)
|
|
61
49
|
], CreateCertificateDto.prototype, "pickupPossibility", void 0);
|
|
62
50
|
__decorate([
|
|
63
|
-
(0, class_validator_1.ValidateIf)((o) => o.type === certificate_type_enum_1.CertificateTypeEnum.PHYSICAL),
|
|
64
51
|
(0, class_validator_1.IsBoolean)(),
|
|
65
52
|
(0, class_transformer_1.Transform)(({ value }) => checkBoolean({ value }, false)),
|
|
66
53
|
(0, class_transformer_1.Expose)(),
|
|
@@ -68,11 +55,18 @@ __decorate([
|
|
|
68
55
|
], CreateCertificateDto.prototype, "deliveryPossibility", void 0);
|
|
69
56
|
__decorate([
|
|
70
57
|
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
(0,
|
|
58
|
+
(0, class_transformer_1.Transform)(({ value }) => (+value ? +value : 0)),
|
|
72
59
|
(0, class_validator_1.IsNumber)(),
|
|
73
60
|
(0, class_transformer_1.Expose)(),
|
|
74
61
|
__metadata("design:type", Number)
|
|
75
62
|
], CreateCertificateDto.prototype, "deliveryPrice", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_transformer_1.Transform)(({ value }) => (+value ? +value : 0)),
|
|
66
|
+
(0, class_validator_1.IsNumber)(),
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], CreateCertificateDto.prototype, "extraPrice", void 0);
|
|
76
70
|
__decorate([
|
|
77
71
|
(0, class_validator_1.IsBoolean)(),
|
|
78
72
|
(0, class_transformer_1.Transform)(checkBoolean),
|
|
@@ -99,11 +93,16 @@ __decorate([
|
|
|
99
93
|
__metadata("design:type", Boolean)
|
|
100
94
|
], CreateCertificateDto.prototype, "awailableForWidgets", void 0);
|
|
101
95
|
__decorate([
|
|
102
|
-
(0, class_validator_1.ValidateIf)((o) => o.
|
|
96
|
+
(0, class_validator_1.ValidateIf)((o) => o.deliveryPossibility || o.pickupPossibility),
|
|
103
97
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
104
98
|
(0, class_transformer_1.Expose)(),
|
|
105
99
|
__metadata("design:type", String)
|
|
106
100
|
], CreateCertificateDto.prototype, "photo", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
103
|
+
(0, class_transformer_1.Expose)(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], CreateCertificateDto.prototype, "pdfPhoto", void 0);
|
|
107
106
|
__decorate([
|
|
108
107
|
(0, class_validator_1.IsArray)(),
|
|
109
108
|
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
@@ -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,6 +1,7 @@
|
|
|
1
1
|
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
2
2
|
export declare class CreateCertificatesaleDto {
|
|
3
3
|
certificateId: number;
|
|
4
|
+
nominal: number;
|
|
4
5
|
clientId: number;
|
|
5
6
|
deliveryType: CertificatesaleDeliveryTypeEnum;
|
|
6
7
|
deliveryEmail: string;
|
|
@@ -21,6 +21,11 @@ __decorate([
|
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", Number)
|
|
23
23
|
], CreateCertificatesaleDto.prototype, "certificateId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsPositive)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CreateCertificatesaleDto.prototype, "nominal", void 0);
|
|
24
29
|
__decorate([
|
|
25
30
|
(0, class_validator_1.IsPositive)(),
|
|
26
31
|
(0, class_transformer_1.Expose)(),
|
|
@@ -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;
|
|
@@ -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;
|