@escapenavigator/types 1.4.31 → 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/order/order.ro.d.ts +3 -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/order-promocode.ro.d.ts +2 -2
- 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/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,11 +12,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateUpsellingDto = 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 CreateUpsellingDto {
|
|
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
|
], CreateUpsellingDto.prototype, "title", void 0);
|
|
@@ -12,21 +12,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateUserDto = 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 CreateUserDto {
|
|
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
|
], CreateUserDto.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
|
], CreateUserDto.prototype, "surname", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0,
|
|
29
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
30
|
(0, class_validator_1.IsEmail)(),
|
|
31
31
|
(0, class_transformer_1.Expose)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
@@ -13,7 +13,7 @@ exports.UpdateCurrentUserDto = 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 UpdateCurrentUserDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
@@ -22,27 +22,27 @@ __decorate([
|
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], UpdateCurrentUserDto.prototype, "photo", 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
|
], UpdateCurrentUserDto.prototype, "name", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0,
|
|
30
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
31
|
(0, class_transformer_1.Expose)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], UpdateCurrentUserDto.prototype, "surname", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0,
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
36
|
(0, class_transformer_1.Expose)(),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], UpdateCurrentUserDto.prototype, "email", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0,
|
|
40
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
41
41
|
(0, class_transformer_1.Expose)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], UpdateCurrentUserDto.prototype, "phone", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0,
|
|
45
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
46
46
|
(0, class_transformer_1.Expose)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], UpdateCurrentUserDto.prototype, "language", void 0);
|
|
@@ -11,12 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateUserPasswordDto = 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
|
const match_1 = require("../shared/match");
|
|
16
16
|
class UpdateUserPasswordDto {
|
|
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
|
], UpdateUserPasswordDto.prototype, "password", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CertificatesaleDeliveryTypeEnum } from '../certificate-sale/enum/certificatesales-delivery-type.enum';
|
|
2
|
-
import {
|
|
2
|
+
import { ClientRO } from '../client/client.ro';
|
|
3
3
|
export declare type WidgetOpenapiCertificateResponseObject = {
|
|
4
4
|
id: number;
|
|
5
5
|
code: number;
|
|
@@ -9,7 +9,7 @@ export declare type WidgetOpenapiCertificateResponseObject = {
|
|
|
9
9
|
title: string;
|
|
10
10
|
prepayment: number;
|
|
11
11
|
buissy: boolean;
|
|
12
|
-
client:
|
|
12
|
+
client: ClientRO;
|
|
13
13
|
toPay: number;
|
|
14
14
|
nominal: number;
|
|
15
15
|
expireDate: string;
|
|
@@ -41,6 +41,7 @@ __decorate([
|
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_validator_1.IsString)(),
|
|
43
43
|
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(600),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], WidgetOpenapiCreateCertificateDto.prototype, "clientComment", void 0);
|
|
46
47
|
__decorate([
|
|
@@ -49,6 +49,7 @@ __decorate([
|
|
|
49
49
|
], WidgetOpenapiCreateOrderDto.prototype, "certificateId", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.MaxLength)(500),
|
|
52
53
|
__metadata("design:type", String)
|
|
53
54
|
], WidgetOpenapiCreateOrderDto.prototype, "comment", void 0);
|
|
54
55
|
__decorate([
|
|
@@ -23,6 +23,7 @@ __decorate([
|
|
|
23
23
|
], WidgetOpenapiCreateReviewDto.prototype, "playerId", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
26
27
|
__metadata("design:type", String)
|
|
27
28
|
], WidgetOpenapiCreateReviewDto.prototype, "text", void 0);
|
|
28
29
|
__decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.32",
|
|
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": "07087235f7ae8a3d7cd30a3fe50d76b6d53f463e",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/validator": "13.0.0",
|
|
26
26
|
"alphakit-presets-lint": "^1.0.0",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IsNotBlankString = void 0;
|
|
4
|
-
const class_validator_1 = require("class-validator");
|
|
5
|
-
function IsNotBlankString(property, validationOptions) {
|
|
6
|
-
return (object, propertyName) => {
|
|
7
|
-
(0, class_validator_1.registerDecorator)({
|
|
8
|
-
name: 'IsNotBlankString',
|
|
9
|
-
target: object.constructor,
|
|
10
|
-
propertyName,
|
|
11
|
-
constraints: [property],
|
|
12
|
-
options: validationOptions,
|
|
13
|
-
validator: {
|
|
14
|
-
validate(value) {
|
|
15
|
-
if (Number.isFinite(value))
|
|
16
|
-
return true;
|
|
17
|
-
return typeof value === 'string' && value.toString().trim().length > 0;
|
|
18
|
-
},
|
|
19
|
-
defaultMessage(args) {
|
|
20
|
-
return `${args.property} must by a string`;
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.IsNotBlankString = IsNotBlankString;
|