@escapenavigator/types 1.4.30 → 1.4.32
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/article/create-article.dto.js +8 -8
- package/dist/cashbox/create-cashbox.dto.js +3 -3
- package/dist/certificate/create-certificate.dto.js +6 -4
- package/dist/certificate-sale/certificate-sale.ro.d.ts +3 -3
- package/dist/certificate-sale/create-certificatesale-discount.dto.js +1 -1
- package/dist/certificate-sale/create-certificatesale.dto.js +15 -15
- package/dist/certificate-sale/update-certificatesale-delivery-info.dto.js +8 -8
- package/dist/certificate-sale/update-certificatesale-tracking-info.dto.js +3 -3
- package/dist/city/create-city.dto.js +2 -2
- package/dist/client/client.ro.d.ts +1 -1
- package/dist/client/create-client.dto.js +5 -5
- package/dist/financeitem/create-financeitem.dto.js +2 -2
- package/dist/location/create-location.dto.js +3 -3
- package/dist/log/log-title.enum.d.ts +2 -0
- package/dist/log/log-title.enum.js +2 -0
- package/dist/order/order.ro.d.ts +10 -3
- package/dist/order-discount/create-order-discount.dto.js +1 -1
- package/dist/order-penalty/create-order-penalty.dto.js +1 -1
- package/dist/order-promocode/create-order-promocode.dto.d.ts +4 -0
- package/dist/order-promocode/create-order-promocode.dto.js +27 -0
- package/dist/order-promocode/order-promocode.ro.d.ts +8 -0
- package/dist/order-promocode/order-promocode.ro.js +2 -0
- package/dist/order-upselling/create-order-upselling.dto.js +1 -0
- package/dist/partner/create-partner.dto.js +2 -2
- package/dist/profile/create-profile.dto.js +9 -9
- package/dist/promocode/create-promocode.dto.d.ts +9 -0
- package/dist/promocode/create-promocode.dto.js +51 -0
- package/dist/promocode/emun/promocode-type.enum.d.ts +5 -0
- package/dist/promocode/emun/promocode-type.enum.js +9 -0
- package/dist/promocode/promocode.ro.d.ts +12 -0
- package/dist/promocode/promocode.ro.js +2 -0
- package/dist/promocode/update-promocode.dto.d.ts +5 -0
- package/dist/promocode/update-promocode.dto.js +8 -0
- package/dist/questroom/create-questroom.dto.js +7 -7
- package/dist/registration-request/update-registration-request.dto.js +2 -2
- package/dist/role/create-role.dto.js +2 -2
- package/dist/search/search.ro.d.ts +10 -0
- package/dist/search/search.ro.js +2 -0
- package/dist/subscription/create-subscription.dto.js +2 -2
- package/dist/tariff/create-tariff.dto.js +2 -2
- package/dist/transaction/transaction.ro.d.ts +4 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/upselling/create-upselling.dto.js +2 -2
- package/dist/user/create-user.dto.js +4 -4
- package/dist/user/update-current-user.dto.js +6 -6
- package/dist/user/update-user-password.dto.js +2 -2
- package/dist/widget-openapi/widget-openapi-certificate.ro.d.ts +2 -2
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.js +1 -0
- package/dist/widget-openapi/widget-openapi-create-order.dto.js +1 -0
- package/dist/widget-openapi/widget-openapi-create-review.dto.js +1 -0
- package/package.json +2 -2
- package/dist/shared/is-not-blank-string.d.ts +0 -2
- package/dist/shared/is-not-blank-string.js +0 -26
|
@@ -12,41 +12,41 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateArticleDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
class CreateArticleDto {
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
|
-
(0,
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], CreateArticleDto.prototype, "title", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0,
|
|
24
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], CreateArticleDto.prototype, "description", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0,
|
|
29
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], CreateArticleDto.prototype, "content", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0,
|
|
34
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
35
35
|
(0, class_transformer_1.Expose)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], CreateArticleDto.prototype, "poster", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0,
|
|
39
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
40
40
|
(0, class_transformer_1.Expose)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], CreateArticleDto.prototype, "color", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0,
|
|
44
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
45
45
|
(0, class_transformer_1.Expose)(),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], CreateArticleDto.prototype, "time", void 0);
|
|
48
48
|
__decorate([
|
|
49
|
-
(0,
|
|
49
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
50
50
|
(0, class_transformer_1.Expose)(),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], CreateArticleDto.prototype, "preview", void 0);
|
|
@@ -12,12 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateCashboxDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
const cashbox_type_enum_1 = require("./enum/cashbox-type.enum");
|
|
17
17
|
class CreateCashboxDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateCashboxDto.prototype, "title", void 0);
|
|
@@ -28,7 +28,7 @@ __decorate([
|
|
|
28
28
|
], CreateCashboxDto.prototype, "type", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, class_validator_1.ValidateIf)((o) => o.type !== cashbox_type_enum_1.CashboxTypeEnum.BANK && o.type !== cashbox_type_enum_1.CashboxTypeEnum.CASH),
|
|
31
|
-
(0,
|
|
31
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
32
32
|
(0, class_transformer_1.Expose)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], CreateCashboxDto.prototype, "identificator", void 0);
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateCertificateDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
const certificate_type_enum_1 = require("./enum/certificate-type.enum");
|
|
17
17
|
function checkBoolean({ value }, defaultValue) {
|
|
18
18
|
return value === undefined ? defaultValue || true : value;
|
|
@@ -20,7 +20,7 @@ function checkBoolean({ value }, defaultValue) {
|
|
|
20
20
|
class CreateCertificateDto {
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
23
|
-
(0,
|
|
23
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], CreateCertificateDto.prototype, "title", void 0);
|
|
@@ -41,7 +41,8 @@ __decorate([
|
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], CreateCertificateDto.prototype, "type", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0,
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
45
46
|
(0, class_transformer_1.Expose)(),
|
|
46
47
|
__metadata("design:type", String)
|
|
47
48
|
], CreateCertificateDto.prototype, "templatePhoto", void 0);
|
|
@@ -99,7 +100,8 @@ __decorate([
|
|
|
99
100
|
__metadata("design:type", Boolean)
|
|
100
101
|
], CreateCertificateDto.prototype, "awailableForWidgets", void 0);
|
|
101
102
|
__decorate([
|
|
102
|
-
(0,
|
|
103
|
+
(0, class_validator_1.ValidateIf)((o) => o.type === certificate_type_enum_1.CertificateTypeEnum.PHYSICAL),
|
|
104
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
103
105
|
(0, class_transformer_1.Expose)(),
|
|
104
106
|
__metadata("design:type", String)
|
|
105
107
|
], CreateCertificateDto.prototype, "photo", void 0);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CertificateResponseObject } from '../certificate/certificate.ro';
|
|
2
|
-
import {
|
|
2
|
+
import { ClientRO } from '../client/client.ro';
|
|
3
3
|
import { ResponseObject } from '../shared/ro';
|
|
4
4
|
import { CertificatesaleSourceEnum } from './enum/certificatesale-source.enum';
|
|
5
5
|
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type CertificateSaleRO = ResponseObject & {
|
|
7
7
|
sended: boolean;
|
|
8
8
|
expireDate: string;
|
|
9
9
|
certificate: CertificateResponseObject;
|
|
@@ -30,7 +30,7 @@ export declare type CertificateSaleResponseObject = ResponseObject & {
|
|
|
30
30
|
order: ResponseObject & {
|
|
31
31
|
orderId: number;
|
|
32
32
|
};
|
|
33
|
-
client:
|
|
33
|
+
client: ClientRO;
|
|
34
34
|
discounts: Array<{
|
|
35
35
|
id: number;
|
|
36
36
|
reason: string;
|
|
@@ -20,7 +20,7 @@ __decorate([
|
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], CreateCertificatesaleDiscountDto.prototype, "reason", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, class_validator_1.
|
|
23
|
+
(0, class_validator_1.IsPositive)(),
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], CreateCertificatesaleDiscountDto.prototype, "amount", void 0);
|
|
@@ -12,17 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateCertificatesaleDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
const certificatesales_delivery_type_enum_1 = require("./enum/certificatesales-delivery-type.enum");
|
|
17
17
|
class CreateCertificatesaleDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", Number)
|
|
23
23
|
], CreateCertificatesaleDto.prototype, "certificateId", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0,
|
|
25
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", Number)
|
|
28
28
|
], CreateCertificatesaleDto.prototype, "clientId", void 0);
|
|
@@ -39,49 +39,49 @@ __decorate([
|
|
|
39
39
|
], CreateCertificatesaleDto.prototype, "deliveryEmail", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
42
|
-
(0,
|
|
42
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
43
43
|
(0, class_transformer_1.Expose)(),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
45
|
], CreateCertificatesaleDto.prototype, "sendingDate", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
48
|
-
(0,
|
|
48
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
49
49
|
(0, class_transformer_1.Expose)(),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], CreateCertificatesaleDto.prototype, "sendingTime", void 0);
|
|
52
52
|
__decorate([
|
|
53
53
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
54
|
-
(0,
|
|
54
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
55
55
|
(0, class_transformer_1.Expose)(),
|
|
56
56
|
__metadata("design:type", String)
|
|
57
57
|
], CreateCertificatesaleDto.prototype, "deliveryMessage", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
60
|
-
(0,
|
|
59
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
60
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
61
61
|
(0, class_transformer_1.Expose)(),
|
|
62
62
|
__metadata("design:type", String)
|
|
63
63
|
], CreateCertificatesaleDto.prototype, "deliveryFullname", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
65
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
66
66
|
(0, class_transformer_1.Expose)(),
|
|
67
67
|
(0, class_validator_1.IsPhoneNumber)(),
|
|
68
68
|
__metadata("design:type", String)
|
|
69
69
|
], CreateCertificatesaleDto.prototype, "deliveryPhone", void 0);
|
|
70
70
|
__decorate([
|
|
71
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
72
|
-
(0,
|
|
71
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
72
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
73
73
|
(0, class_transformer_1.Expose)(),
|
|
74
74
|
__metadata("design:type", String)
|
|
75
75
|
], CreateCertificatesaleDto.prototype, "deliveryAddress", void 0);
|
|
76
76
|
__decorate([
|
|
77
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
78
|
-
(0,
|
|
77
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
78
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
79
79
|
(0, class_transformer_1.Expose)(),
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], CreateCertificatesaleDto.prototype, "deliveryCity", void 0);
|
|
82
82
|
__decorate([
|
|
83
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
84
|
-
(0,
|
|
83
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
84
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
85
85
|
(0, class_transformer_1.Expose)(),
|
|
86
86
|
__metadata("design:type", String)
|
|
87
87
|
], CreateCertificatesaleDto.prototype, "deliveryPostCode", void 0);
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UpdateCertificatesaleDeliveryInfoDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
const certificatesales_delivery_type_enum_1 = require("./enum/certificatesales-delivery-type.enum");
|
|
17
17
|
class UpdateCertificatesaleDeliveryInfoDto {
|
|
18
18
|
}
|
|
@@ -30,24 +30,24 @@ __decorate([
|
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
32
32
|
(0, class_transformer_1.Expose)(),
|
|
33
|
-
(0,
|
|
33
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "sendingDate", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
38
|
-
(0,
|
|
38
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
39
39
|
(0, class_transformer_1.Expose)(),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "sendingTime", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
44
|
-
(0,
|
|
44
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
45
45
|
(0, class_transformer_1.Expose)(),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "deliveryMessage", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
50
|
-
(0,
|
|
50
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
51
51
|
(0, class_transformer_1.Expose)(),
|
|
52
52
|
__metadata("design:type", String)
|
|
53
53
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "deliveryFullname", void 0);
|
|
@@ -59,19 +59,19 @@ __decorate([
|
|
|
59
59
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "deliveryPhone", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
62
|
-
(0,
|
|
62
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
63
63
|
(0, class_transformer_1.Expose)(),
|
|
64
64
|
__metadata("design:type", String)
|
|
65
65
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "deliveryAddress", void 0);
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
68
|
-
(0,
|
|
68
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
69
69
|
(0, class_transformer_1.Expose)(),
|
|
70
70
|
__metadata("design:type", String)
|
|
71
71
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "deliveryCity", void 0);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
74
|
-
(0,
|
|
74
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
75
75
|
(0, class_transformer_1.Expose)(),
|
|
76
76
|
__metadata("design:type", String)
|
|
77
77
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "deliveryPostCode", void 0);
|
|
@@ -11,16 +11,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateCertificatesaleTrackingInfoDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
14
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
15
15
|
class UpdateCertificatesaleTrackingInfoDto {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
|
-
(0,
|
|
18
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
19
19
|
(0, class_transformer_1.Expose)(),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], UpdateCertificatesaleTrackingInfoDto.prototype, "trackingNumber", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0,
|
|
23
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], UpdateCertificatesaleTrackingInfoDto.prototype, "deliveryCompany", void 0);
|
|
@@ -13,11 +13,11 @@ exports.CreateCityDto = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
|
-
const
|
|
16
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
17
|
class CreateCityDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateCityDto.prototype, "title", void 0);
|
|
@@ -12,21 +12,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateClientDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
class CreateClientDto {
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
|
-
(0,
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], CreateClientDto.prototype, "name", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0,
|
|
24
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], CreateClientDto.prototype, "surname", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0,
|
|
29
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], CreateClientDto.prototype, "phone", void 0);
|
|
@@ -36,7 +36,7 @@ __decorate([
|
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], CreateClientDto.prototype, "phone2", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0,
|
|
39
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
40
40
|
(0, class_validator_1.IsEmail)(),
|
|
41
41
|
(0, class_transformer_1.Expose)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
@@ -12,12 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateFinanceitemDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
const financeitem_type_enum_1 = require("./enum/financeitem-type.enum");
|
|
17
17
|
class CreateFinanceitemDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateFinanceitemDto.prototype, "title", void 0);
|
|
@@ -12,17 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateLocationDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
const desinfection_enum_1 = require("./enum/desinfection.enum");
|
|
17
17
|
class CreateLocationDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateLocationDto.prototype, "phone", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0,
|
|
25
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], CreateLocationDto.prototype, "address", void 0);
|
|
@@ -17,6 +17,8 @@ export declare enum LogTitleEnum {
|
|
|
17
17
|
removeUpselling = "removeUpselling",
|
|
18
18
|
addCertificate = "addCertificate",
|
|
19
19
|
removeCertificate = "removeCertificate",
|
|
20
|
+
addPromocode = "addPromocode",
|
|
21
|
+
removePromocode = "removePromocode",
|
|
20
22
|
/** certificates */
|
|
21
23
|
createCertificate = "createCertificate",
|
|
22
24
|
shipToClient = "shipToClient",
|
|
@@ -21,6 +21,8 @@ var LogTitleEnum;
|
|
|
21
21
|
LogTitleEnum["removeUpselling"] = "removeUpselling";
|
|
22
22
|
LogTitleEnum["addCertificate"] = "addCertificate";
|
|
23
23
|
LogTitleEnum["removeCertificate"] = "removeCertificate";
|
|
24
|
+
LogTitleEnum["addPromocode"] = "addPromocode";
|
|
25
|
+
LogTitleEnum["removePromocode"] = "removePromocode";
|
|
24
26
|
/** certificates */
|
|
25
27
|
LogTitleEnum["createCertificate"] = "createCertificate";
|
|
26
28
|
LogTitleEnum["shipToClient"] = "shipToClient";
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientRO } from '../client/client.ro';
|
|
2
2
|
import { OrderPenaltyTypeEnum } from '../order-penalty/enum/order-penalty-type.enum';
|
|
3
3
|
import { Languages } from '../shared/enum/languages.enum';
|
|
4
4
|
import { ResponseObject } from '../shared/ro';
|
|
5
5
|
import { OrderSourceEnum } from './enum/order-source.enum';
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type OrderRO = ResponseObject & {
|
|
7
7
|
language?: Languages;
|
|
8
8
|
price: {
|
|
9
9
|
[x: string]: number;
|
|
@@ -17,7 +17,7 @@ export declare type OrderResponseObject = ResponseObject & {
|
|
|
17
17
|
time: string;
|
|
18
18
|
photos: string[];
|
|
19
19
|
source: OrderSourceEnum;
|
|
20
|
-
client:
|
|
20
|
+
client: ClientRO;
|
|
21
21
|
questroomId: number;
|
|
22
22
|
certificates: Array<ResponseObject & {
|
|
23
23
|
nominal: number;
|
|
@@ -40,6 +40,13 @@ export declare type OrderResponseObject = ResponseObject & {
|
|
|
40
40
|
createdAt: Date;
|
|
41
41
|
userId: number;
|
|
42
42
|
}>;
|
|
43
|
+
promocodes: Array<{
|
|
44
|
+
id: number;
|
|
45
|
+
amount: number;
|
|
46
|
+
code: string;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
userId: number;
|
|
49
|
+
}>;
|
|
43
50
|
penalties: Array<{
|
|
44
51
|
id: number;
|
|
45
52
|
reason: string;
|
|
@@ -20,7 +20,7 @@ __decorate([
|
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], CreateOrderDiscountDto.prototype, "reason", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, class_validator_1.
|
|
23
|
+
(0, class_validator_1.IsPositive)(),
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], CreateOrderDiscountDto.prototype, "amount", void 0);
|
|
@@ -20,7 +20,7 @@ __decorate([
|
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], CreateOrderPenaltyDto.prototype, "reason", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, class_validator_1.
|
|
23
|
+
(0, class_validator_1.IsPositive)(),
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], CreateOrderPenaltyDto.prototype, "amount", void 0);
|
|
@@ -0,0 +1,27 @@
|
|
|
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.CreateOrderPromocodeDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateOrderPromocodeDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], CreateOrderPromocodeDto.prototype, "orderId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateOrderPromocodeDto.prototype, "code", void 0);
|
|
27
|
+
exports.CreateOrderPromocodeDto = CreateOrderPromocodeDto;
|
|
@@ -16,6 +16,7 @@ class CreateOrderUpsellingDto {
|
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
19
20
|
(0, class_transformer_1.Expose)(),
|
|
20
21
|
__metadata("design:type", Array)
|
|
21
22
|
], CreateOrderUpsellingDto.prototype, "upsellings", void 0);
|
|
@@ -12,11 +12,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreatePartnerDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
16
|
class CreatePartnerDto {
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
|
-
(0,
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], CreatePartnerDto.prototype, "title", void 0);
|
|
@@ -13,11 +13,11 @@ exports.CreateProfileDto = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
|
-
const
|
|
16
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
17
|
class CreateProfileDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateProfileDto.prototype, "title", void 0);
|
|
@@ -27,13 +27,13 @@ __decorate([
|
|
|
27
27
|
__metadata("design:type", Number)
|
|
28
28
|
], CreateProfileDto.prototype, "registrationRequestId", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0,
|
|
30
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
31
|
(0, class_validator_1.IsEmail)(),
|
|
32
32
|
(0, class_transformer_1.Expose)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], CreateProfileDto.prototype, "email", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0,
|
|
36
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], CreateProfileDto.prototype, "phone", void 0);
|
|
@@ -43,12 +43,12 @@ __decorate([
|
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], CreateProfileDto.prototype, "site", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0,
|
|
46
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
47
47
|
(0, class_transformer_1.Expose)(),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], CreateProfileDto.prototype, "legalTitle", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0,
|
|
51
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
52
52
|
(0, class_transformer_1.Expose)(),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], CreateProfileDto.prototype, "address", void 0);
|
|
@@ -65,7 +65,7 @@ __decorate([
|
|
|
65
65
|
__metadata("design:type", String)
|
|
66
66
|
], CreateProfileDto.prototype, "facebook", void 0);
|
|
67
67
|
__decorate([
|
|
68
|
-
(0,
|
|
68
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
69
69
|
(0, class_transformer_1.Expose)(),
|
|
70
70
|
__metadata("design:type", String)
|
|
71
71
|
], CreateProfileDto.prototype, "language", void 0);
|
|
@@ -76,12 +76,12 @@ __decorate([
|
|
|
76
76
|
__metadata("design:type", String)
|
|
77
77
|
], CreateProfileDto.prototype, "comment", void 0);
|
|
78
78
|
__decorate([
|
|
79
|
-
(0,
|
|
79
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
80
80
|
(0, class_transformer_1.Expose)(),
|
|
81
81
|
__metadata("design:type", String)
|
|
82
82
|
], CreateProfileDto.prototype, "contactName", void 0);
|
|
83
83
|
__decorate([
|
|
84
|
-
(0,
|
|
84
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
85
85
|
(0, class_transformer_1.Expose)(),
|
|
86
86
|
__metadata("design:type", String)
|
|
87
87
|
], CreateProfileDto.prototype, "contactPhone", void 0);
|