@escapenavigator/types 1.4.75 → 1.4.77
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/admin/admin.ro.d.ts +20 -3
- package/dist/admin/create-admin.dto.d.ts +20 -0
- package/dist/admin/create-admin.dto.js +110 -0
- package/dist/admin/current-admin.ro.d.ts +2 -2
- package/dist/agregator/agregator-questroom.ro.d.ts +0 -1
- package/dist/certificate-sale/enum/certificatesales-status.enum.d.ts +11 -0
- package/dist/certificate-sale/enum/certificatesales-status.enum.js +15 -0
- package/dist/certificate-sale/query-certificatesale.dto.d.ts +5 -5
- package/dist/certificate-sale/query-certificatesale.dto.js +12 -8
- package/dist/client/query-client.dto.d.ts +9 -0
- package/dist/client/query-client.dto.js +58 -0
- package/dist/order/cancel-order.dto.d.ts +3 -2
- package/dist/order/cancel-order.dto.js +7 -2
- package/dist/order/enum/order-status.enum.d.ts +11 -0
- package/dist/order/enum/order-status.enum.js +15 -0
- package/dist/order/order.ro.d.ts +12 -0
- package/dist/order/query-order.dto.d.ts +6 -8
- package/dist/order/query-order.dto.js +24 -24
- package/dist/profile/agregator-profile.ro.d.ts +0 -13
- package/dist/profile/create-profile.dto.d.ts +11 -10
- package/dist/profile/create-profile.dto.js +36 -26
- package/dist/profile/profile.ro.d.ts +17 -12
- package/dist/profile/update-current.dto.d.ts +9 -0
- package/dist/profile/update-current.dto.js +55 -0
- package/dist/questroom/create-questroom.dto.d.ts +1 -8
- package/dist/questroom/create-questroom.dto.js +7 -43
- package/dist/questroom/questroom.ro.d.ts +25 -22
- package/dist/slot/create-slot.dto.d.ts +8 -2
- package/dist/slot/create-slot.dto.js +46 -8
- package/dist/slot/slot-autocomplite.dto.d.ts +17 -0
- package/dist/slot/slot-autocomplite.dto.js +103 -0
- package/dist/slot/slot.ro.d.ts +9 -2
- package/dist/slot/{add-breaks.dto.d.ts → update-breaks.dto.d.ts} +2 -2
- package/dist/slot/{add-breaks.dto.js → update-breaks.dto.js} +16 -10
- package/dist/slot/{remove-breaks.dto.d.ts → update-min-hours.dto.d.ts} +2 -1
- package/dist/slot/{remove-breaks.dto.js → update-min-hours.dto.js} +19 -8
- package/dist/slot-rule/create-rule.dto.d.ts +11 -0
- package/dist/slot-rule/create-rule.dto.js +61 -0
- package/dist/slot-rule/defailt-rule.d.ts +9 -0
- package/dist/slot-rule/defailt-rule.js +12 -0
- package/dist/slot-rule/rule.ro.d.ts +13 -0
- package/dist/slot-rule/rule.ro.js +2 -0
- package/dist/slot-template/copy-template.dto.d.ts +4 -0
- package/dist/slot-template/{update-tariff.dto.js → copy-template.dto.js} +8 -18
- package/dist/slot-template/enum/update-slot-template-type.enum.d.ts +4 -0
- package/dist/slot-template/enum/update-slot-template-type.enum.js +8 -0
- package/dist/slot-template/slot-template-element.d.ts +2 -3
- package/dist/slot-template/slot-template.ro.d.ts +0 -1
- package/dist/slot-template/update-slot-template-first-step.dto.d.ts +3 -2
- package/dist/slot-template/update-slot-template-first-step.dto.js +10 -9
- package/dist/slot-template/update-slot-template.dto.d.ts +1 -0
- package/dist/slot-template/update-slot-template.dto.js +6 -0
- package/dist/tariff/tariff.ro.d.ts +3 -2
- package/dist/transaction/query-transaction.dto.d.ts +2 -4
- package/dist/transaction/query-transaction.dto.js +9 -15
- package/dist/translation/create-translation.dto.d.ts +3 -1
- package/dist/translation/create-translation.dto.js +11 -1
- package/dist/translation/edit-all-translation-loacales.dto.d.ts +2 -0
- package/dist/translation/edit-all-translation-loacales.dto.js +12 -2
- package/dist/translation/enum/translation-status.enum.d.ts +6 -0
- package/dist/translation/enum/translation-status.enum.js +10 -0
- package/dist/translation/translation.ro.d.ts +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/upload/enum/image-type.enum.d.ts +2 -1
- package/dist/upload/enum/image-type.enum.js +1 -0
- package/dist/user/query-user-report.dto.d.ts +4 -0
- package/dist/user/query-user-report.dto.js +28 -0
- package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +0 -3
- package/dist/widget-openapi/widget-openapi-slot.ro.d.ts +9 -2
- package/dist/widget-orders/widget-orders-order.ro.d.ts +5 -3
- package/package.json +2 -2
- package/dist/profile/enum/profile-status.enum.d.ts +0 -11
- package/dist/profile/enum/profile-status.enum.js +0 -15
- package/dist/slot-template/update-tariff.dto.d.ts +0 -6
|
@@ -9,35 +9,41 @@ 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.
|
|
12
|
+
exports.UpdateBreaksDto = 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
|
-
class
|
|
16
|
+
class UpdateBreaksDto {
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, class_validator_1.IsArray)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
20
21
|
(0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
|
|
21
22
|
__metadata("design:type", Array)
|
|
22
|
-
],
|
|
23
|
+
], UpdateBreaksDto.prototype, "questroomIds", void 0);
|
|
23
24
|
__decorate([
|
|
24
|
-
(0,
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
25
27
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
28
|
+
], UpdateBreaksDto.prototype, "breakReason", void 0);
|
|
27
29
|
__decorate([
|
|
28
30
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
29
32
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
33
|
+
], UpdateBreaksDto.prototype, "startDate", void 0);
|
|
31
34
|
__decorate([
|
|
32
35
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
33
37
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
38
|
+
], UpdateBreaksDto.prototype, "endDate", void 0);
|
|
35
39
|
__decorate([
|
|
36
40
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
37
42
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
43
|
+
], UpdateBreaksDto.prototype, "startTime", void 0);
|
|
39
44
|
__decorate([
|
|
40
45
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
41
47
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
43
|
-
exports.
|
|
48
|
+
], UpdateBreaksDto.prototype, "endTime", void 0);
|
|
49
|
+
exports.UpdateBreaksDto = UpdateBreaksDto;
|
|
@@ -9,31 +9,42 @@ 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.
|
|
12
|
+
exports.UpdateMinHoursDto = 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
|
-
class
|
|
16
|
+
class UpdateMinHoursDto {
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, class_validator_1.IsArray)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
20
21
|
(0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
|
|
21
22
|
__metadata("design:type", Array)
|
|
22
|
-
],
|
|
23
|
+
], UpdateMinHoursDto.prototype, "questroomIds", void 0);
|
|
23
24
|
__decorate([
|
|
24
25
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
25
27
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
28
|
+
], UpdateMinHoursDto.prototype, "startDate", void 0);
|
|
27
29
|
__decorate([
|
|
28
30
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
29
32
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
33
|
+
], UpdateMinHoursDto.prototype, "endDate", void 0);
|
|
31
34
|
__decorate([
|
|
32
35
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
33
37
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
38
|
+
], UpdateMinHoursDto.prototype, "startTime", void 0);
|
|
35
39
|
__decorate([
|
|
36
40
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
37
42
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
39
|
-
|
|
43
|
+
], UpdateMinHoursDto.prototype, "endTime", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsInt)(),
|
|
46
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 24),
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], UpdateMinHoursDto.prototype, "customMinHours", void 0);
|
|
50
|
+
exports.UpdateMinHoursDto = UpdateMinHoursDto;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
2
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
3
|
+
export declare class CreateRuleDto {
|
|
4
|
+
title: string;
|
|
5
|
+
saved: boolean;
|
|
6
|
+
prepayment: number;
|
|
7
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
8
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
9
|
+
minHoursForFreeCanceling: number;
|
|
10
|
+
minHoursForBooking: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.CreateRuleDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
|
|
16
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
|
+
const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
|
|
18
|
+
class CreateRuleDto {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateRuleDto.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
27
|
+
(0, class_validator_1.IsBoolean)(),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], CreateRuleDto.prototype, "saved", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 50 : value)),
|
|
33
|
+
(0, class_validator_1.IsPositive)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], CreateRuleDto.prototype, "prepayment", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
|
|
39
|
+
(0, class_transformer_1.Transform)(({ value }) => value || prepayment_type_enum_1.PrepaymentTypeEnum.PERCENT),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateRuleDto.prototype, "prepaymentType", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsEnum)(questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum),
|
|
45
|
+
(0, class_transformer_1.Transform)(({ value }) => value || questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.FULL_PRICE),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateRuleDto.prototype, "cancelationRule", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 24 : value)),
|
|
51
|
+
(0, class_validator_1.IsNumber)(),
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], CreateRuleDto.prototype, "minHoursForFreeCanceling", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 48 : value)),
|
|
57
|
+
(0, class_validator_1.IsNumber)(),
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], CreateRuleDto.prototype, "minHoursForBooking", void 0);
|
|
61
|
+
exports.CreateRuleDto = CreateRuleDto;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
2
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
3
|
+
export declare const defaultRule: {
|
|
4
|
+
prepayment: number;
|
|
5
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
6
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
7
|
+
minHoursForFreeCanceling: number;
|
|
8
|
+
minHoursForBooking: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultRule = void 0;
|
|
4
|
+
const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
|
|
5
|
+
const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
|
|
6
|
+
exports.defaultRule = {
|
|
7
|
+
prepayment: 0,
|
|
8
|
+
prepaymentType: prepayment_type_enum_1.PrepaymentTypeEnum.NO,
|
|
9
|
+
cancelationRule: questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.MIN_PRICE,
|
|
10
|
+
minHoursForFreeCanceling: 8,
|
|
11
|
+
minHoursForBooking: 48,
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
2
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
3
|
+
export declare type RuleRO = {
|
|
4
|
+
id: number;
|
|
5
|
+
profileId: number;
|
|
6
|
+
title: string;
|
|
7
|
+
saved: boolean;
|
|
8
|
+
prepayment: number;
|
|
9
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
10
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
11
|
+
minHoursForFreeCanceling: number;
|
|
12
|
+
minHoursForBooking: number;
|
|
13
|
+
};
|
|
@@ -9,30 +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.
|
|
12
|
+
exports.CopyTemplateDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
class
|
|
15
|
+
class CopyTemplateDto {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
-
(0,
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], UpdateTariffDto.prototype, "startDate", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsOptional)(),
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
24
20
|
(0, class_transformer_1.Expose)(),
|
|
25
|
-
__metadata("design:type",
|
|
26
|
-
],
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], CopyTemplateDto.prototype, "newQuestrooms", void 0);
|
|
27
23
|
__decorate([
|
|
28
24
|
(0, class_validator_1.IsNumber)(),
|
|
29
25
|
(0, class_transformer_1.Expose)(),
|
|
30
26
|
__metadata("design:type", Number)
|
|
31
|
-
],
|
|
32
|
-
|
|
33
|
-
(0, class_validator_1.IsArray)(),
|
|
34
|
-
(0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
|
|
35
|
-
(0, class_transformer_1.Expose)(),
|
|
36
|
-
__metadata("design:type", Array)
|
|
37
|
-
], UpdateTariffDto.prototype, "questroomsIds", void 0);
|
|
38
|
-
exports.UpdateTariffDto = UpdateTariffDto;
|
|
27
|
+
], CopyTemplateDto.prototype, "oldQuestroom", void 0);
|
|
28
|
+
exports.CopyTemplateDto = CopyTemplateDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSlotTemplateTypeEnum = void 0;
|
|
4
|
+
var UpdateSlotTemplateTypeEnum;
|
|
5
|
+
(function (UpdateSlotTemplateTypeEnum) {
|
|
6
|
+
UpdateSlotTemplateTypeEnum["COPY"] = "copy";
|
|
7
|
+
UpdateSlotTemplateTypeEnum["CHANGE"] = "change";
|
|
8
|
+
})(UpdateSlotTemplateTypeEnum = exports.UpdateSlotTemplateTypeEnum || (exports.UpdateSlotTemplateTypeEnum = {}));
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
2
1
|
export declare type SlotTemplateElement = {
|
|
3
2
|
date: string;
|
|
4
3
|
start: string;
|
|
5
4
|
end: string;
|
|
6
5
|
tariffId: number;
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
ruleId: number;
|
|
7
|
+
customMinHours: number;
|
|
9
8
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { UpdateSlotTemplateTypeEnum } from './enum/update-slot-template-type.enum';
|
|
1
2
|
export declare class UpdateSlotTemplateFirstStepDto {
|
|
2
|
-
|
|
3
|
-
type: string;
|
|
3
|
+
questroomsIds: number[];
|
|
4
4
|
start: string;
|
|
5
5
|
end?: string;
|
|
6
|
+
type: UpdateSlotTemplateTypeEnum;
|
|
6
7
|
}
|
|
@@ -13,27 +13,28 @@ exports.UpdateSlotTemplateFirstStepDto = 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 update_slot_template_type_enum_1 = require("./enum/update-slot-template-type.enum");
|
|
16
17
|
class UpdateSlotTemplateFirstStepDto {
|
|
17
18
|
}
|
|
18
19
|
__decorate([
|
|
19
|
-
(0, class_validator_1.
|
|
20
|
+
(0, class_validator_1.IsArray)(),
|
|
21
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
20
22
|
(0, class_transformer_1.Expose)(),
|
|
21
|
-
__metadata("design:type",
|
|
22
|
-
], UpdateSlotTemplateFirstStepDto.prototype, "
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], UpdateSlotTemplateFirstStepDto.prototype, "questroomsIds", void 0);
|
|
23
25
|
__decorate([
|
|
24
26
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
27
|
(0, class_transformer_1.Expose)(),
|
|
26
28
|
__metadata("design:type", String)
|
|
27
|
-
], UpdateSlotTemplateFirstStepDto.prototype, "
|
|
29
|
+
], UpdateSlotTemplateFirstStepDto.prototype, "start", void 0);
|
|
28
30
|
__decorate([
|
|
29
|
-
(0,
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
32
|
(0, class_transformer_1.Expose)(),
|
|
31
33
|
__metadata("design:type", String)
|
|
32
|
-
], UpdateSlotTemplateFirstStepDto.prototype, "
|
|
34
|
+
], UpdateSlotTemplateFirstStepDto.prototype, "end", void 0);
|
|
33
35
|
__decorate([
|
|
34
|
-
(0, class_validator_1.
|
|
35
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_validator_1.IsEnum)(update_slot_template_type_enum_1.UpdateSlotTemplateTypeEnum),
|
|
36
37
|
(0, class_transformer_1.Expose)(),
|
|
37
38
|
__metadata("design:type", String)
|
|
38
|
-
], UpdateSlotTemplateFirstStepDto.prototype, "
|
|
39
|
+
], UpdateSlotTemplateFirstStepDto.prototype, "type", void 0);
|
|
39
40
|
exports.UpdateSlotTemplateFirstStepDto = UpdateSlotTemplateFirstStepDto;
|
|
@@ -20,6 +20,12 @@ __decorate([
|
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", Array)
|
|
22
22
|
], UpdateSlotTemplateDto.prototype, "slots", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsArray)(),
|
|
25
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], UpdateSlotTemplateDto.prototype, "questroomsIds", void 0);
|
|
23
29
|
__decorate([
|
|
24
30
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { TransactionTypeEnum } from './enum/transaction-type.enum';
|
|
2
2
|
export declare class QueryTransactionDto {
|
|
3
|
-
|
|
4
|
-
createdTo?: string;
|
|
3
|
+
created?: [string, string];
|
|
5
4
|
userId?: number;
|
|
6
|
-
isOnline: boolean;
|
|
7
5
|
cashboxId: number;
|
|
8
6
|
financeitemId: number;
|
|
9
|
-
|
|
7
|
+
transactionType: TransactionTypeEnum;
|
|
10
8
|
}
|
|
@@ -10,41 +10,35 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.QueryTransactionDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
const transaction_type_enum_1 = require("./enum/transaction-type.enum");
|
|
15
16
|
class QueryTransactionDto {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], QueryTransactionDto.prototype, "createdTo", void 0);
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], QueryTransactionDto.prototype, "created", void 0);
|
|
25
24
|
__decorate([
|
|
26
25
|
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
(0,
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
28
27
|
__metadata("design:type", Number)
|
|
29
28
|
], QueryTransactionDto.prototype, "userId", void 0);
|
|
30
29
|
__decorate([
|
|
31
30
|
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0,
|
|
33
|
-
__metadata("design:type", Boolean)
|
|
34
|
-
], QueryTransactionDto.prototype, "isOnline", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_validator_1.IsPositive)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
38
32
|
__metadata("design:type", Number)
|
|
39
33
|
], QueryTransactionDto.prototype, "cashboxId", void 0);
|
|
40
34
|
__decorate([
|
|
41
35
|
(0, class_validator_1.IsOptional)(),
|
|
42
|
-
(0,
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
43
37
|
__metadata("design:type", Number)
|
|
44
38
|
], QueryTransactionDto.prototype, "financeitemId", void 0);
|
|
45
39
|
__decorate([
|
|
46
40
|
(0, class_validator_1.IsOptional)(),
|
|
47
41
|
(0, class_validator_1.IsEnum)(transaction_type_enum_1.TransactionTypeEnum),
|
|
48
42
|
__metadata("design:type", String)
|
|
49
|
-
], QueryTransactionDto.prototype, "
|
|
43
|
+
], QueryTransactionDto.prototype, "transactionType", void 0);
|
|
50
44
|
exports.QueryTransactionDto = QueryTransactionDto;
|
|
@@ -24,7 +24,17 @@ __decorate([
|
|
|
24
24
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
], CreateTranslationDto.prototype, "
|
|
27
|
+
], CreateTranslationDto.prototype, "text", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateTranslationDto.prototype, "context", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateTranslationDto.prototype, "photo", void 0);
|
|
28
38
|
__decorate([
|
|
29
39
|
(0, class_validator_1.IsPositive)(),
|
|
30
40
|
(0, class_transformer_1.Expose)(),
|
|
@@ -11,12 +11,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EditAllTranslationLoacalesDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
15
|
class EditAllTranslationLoacalesDto {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
|
-
(0,
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
19
|
(0, class_transformer_1.Expose)(),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], EditAllTranslationLoacalesDto.prototype, "text", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], EditAllTranslationLoacalesDto.prototype, "context", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], EditAllTranslationLoacalesDto.prototype, "photo", void 0);
|
|
22
32
|
exports.EditAllTranslationLoacalesDto = EditAllTranslationLoacalesDto;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslationStatusEnum = void 0;
|
|
4
|
+
var TranslationStatusEnum;
|
|
5
|
+
(function (TranslationStatusEnum) {
|
|
6
|
+
TranslationStatusEnum["NOT_READY"] = "not_ready";
|
|
7
|
+
TranslationStatusEnum["WAITING"] = "waiting";
|
|
8
|
+
TranslationStatusEnum["NEED_CHECK"] = "need_check";
|
|
9
|
+
TranslationStatusEnum["READY"] = "ready";
|
|
10
|
+
})(TranslationStatusEnum = exports.TranslationStatusEnum || (exports.TranslationStatusEnum = {}));
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { TranslationStatusEnum } from './enum/translation-status.enum';
|
|
2
3
|
export declare type TranslationRO = {
|
|
3
4
|
id: number;
|
|
4
5
|
row: string;
|
|
6
|
+
context: string;
|
|
7
|
+
photo: string;
|
|
5
8
|
namespace: {
|
|
6
9
|
title: string;
|
|
7
10
|
};
|
|
8
11
|
translations: Array<{
|
|
9
12
|
id: number;
|
|
10
13
|
text: string;
|
|
14
|
+
status: TranslationStatusEnum;
|
|
11
15
|
locale: Languages;
|
|
12
16
|
}>;
|
|
13
17
|
};
|