@escapenavigator/types 1.4.26 → 1.4.27
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/cashbox/enum/cashbox-type.enum.d.ts +1 -3
- package/dist/cashbox/enum/cashbox-type.enum.js +0 -2
- package/dist/certificate-sale/certificate-sale.ro.d.ts +1 -0
- package/dist/client/client.ro.d.ts +0 -1
- package/dist/client/create-client.dto.d.ts +0 -1
- package/dist/client/create-client.dto.js +0 -6
- package/dist/client/update-client.dto.d.ts +0 -1
- package/dist/client/update-client.dto.js +0 -6
- package/dist/log/log.ro.d.ts +11 -0
- package/dist/order/order.ro.d.ts +6 -10
- package/dist/order/update-order.dto.d.ts +2 -1
- package/dist/order/update-order.dto.js +1 -0
- package/dist/questroom/questroom.ro.d.ts +1 -0
- package/dist/shared/enum/countries.enum.d.ts +1 -2
- package/dist/shared/enum/countries.enum.js +0 -1
- package/dist/shared/enum/languages.enum.d.ts +1 -2
- package/dist/shared/enum/languages.enum.js +0 -1
- package/dist/shared/is-not-blank-string.js +3 -1
- package/dist/slot/slot.ro.d.ts +1 -2
- package/dist/slot/slot.ro.js +0 -3
- package/dist/transaction/create-order-payment.dto.js +1 -1
- package/dist/transaction/create-order-refund.dto.d.ts +1 -1
- package/dist/transaction/create-order-refund.dto.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/current-user.ro.d.ts +1 -0
- package/dist/widget-openapi/widget-openapi-order.ro.d.ts +0 -2
- package/package.json +2 -2
- package/dist/order/enum/order-status.enum.d.ts +0 -8
- package/dist/order/enum/order-status.enum.js +0 -12
- package/dist/order/orders-list.ro.d.ts +0 -3
- package/dist/order/update-order-status.dto.d.ts +0 -4
- package/dist/order/update-order-status.dto.js +0 -21
- /package/dist/{order/orders-list.ro.js → log/log.ro.js} +0 -0
|
@@ -6,6 +6,4 @@ var CashboxTypeEnum;
|
|
|
6
6
|
CashboxTypeEnum["CASH"] = "cash";
|
|
7
7
|
CashboxTypeEnum["BANK"] = "bank";
|
|
8
8
|
CashboxTypeEnum["PAYPAL"] = "paypal";
|
|
9
|
-
CashboxTypeEnum["YANDEX"] = "yandex";
|
|
10
|
-
CashboxTypeEnum["TINKOFF"] = "tinkoff";
|
|
11
9
|
})(CashboxTypeEnum = exports.CashboxTypeEnum || (exports.CashboxTypeEnum = {}));
|
|
@@ -15,12 +15,6 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const is_not_blank_string_1 = require("../shared/is-not-blank-string");
|
|
16
16
|
class CreateClientDto {
|
|
17
17
|
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsOptional)(),
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_transformer_1.Expose)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], CreateClientDto.prototype, "photo", void 0);
|
|
24
18
|
__decorate([
|
|
25
19
|
(0, is_not_blank_string_1.IsNotBlankString)(),
|
|
26
20
|
(0, class_transformer_1.Expose)(),
|
|
@@ -14,12 +14,6 @@ const class_transformer_1 = require("class-transformer");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
class UpdateClientDto {
|
|
16
16
|
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_transformer_1.Expose)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], UpdateClientDto.prototype, "photo", void 0);
|
|
23
17
|
__decorate([
|
|
24
18
|
(0, class_validator_1.IsOptional)(),
|
|
25
19
|
(0, class_validator_1.IsString)(),
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
2
|
import { ResponseObject } from '../shared/ro';
|
|
3
3
|
import { OrderSourceEnum } from './enum/order-source.enum';
|
|
4
|
-
import { OrderStatusEnum } from './enum/order-status.enum';
|
|
5
4
|
export declare type OrderResponseObject = ResponseObject & {
|
|
6
5
|
language?: Languages;
|
|
7
|
-
|
|
6
|
+
canceled: boolean;
|
|
8
7
|
price: {
|
|
9
|
-
[x: string]:
|
|
8
|
+
[x: string]: number;
|
|
10
9
|
};
|
|
11
10
|
payed: number;
|
|
12
|
-
toPay: number;
|
|
13
11
|
total: number;
|
|
14
12
|
players: number;
|
|
15
13
|
orderDate: string;
|
|
16
14
|
time: string;
|
|
17
15
|
photos: string[];
|
|
18
16
|
source: OrderSourceEnum;
|
|
19
|
-
comment: string;
|
|
20
17
|
client: {
|
|
21
18
|
id: number;
|
|
22
19
|
name: string;
|
|
23
20
|
surname: string;
|
|
24
21
|
email: string;
|
|
25
22
|
phone: string;
|
|
23
|
+
trustIndex: number;
|
|
26
24
|
};
|
|
27
25
|
questroomId: number;
|
|
28
|
-
|
|
29
|
-
questroomPhoto: string;
|
|
30
|
-
applyings: Array<{
|
|
31
|
-
orderId: number;
|
|
26
|
+
certificates: Array<{
|
|
32
27
|
certificateId: number;
|
|
33
28
|
code: number;
|
|
34
|
-
|
|
29
|
+
nominal: number;
|
|
35
30
|
userId?: number;
|
|
36
31
|
createdAt: Date;
|
|
37
32
|
}>;
|
|
@@ -59,6 +54,7 @@ export declare type OrderResponseObject = ResponseObject & {
|
|
|
59
54
|
transactions: Array<{
|
|
60
55
|
id: number;
|
|
61
56
|
cashboxId: number;
|
|
57
|
+
comment: string;
|
|
62
58
|
amount: number;
|
|
63
59
|
userId: number;
|
|
64
60
|
createdAt: Date;
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateOrderDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
14
15
|
class UpdateOrderDto {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
@@ -12,7 +12,9 @@ function IsNotBlankString(property, validationOptions) {
|
|
|
12
12
|
options: validationOptions,
|
|
13
13
|
validator: {
|
|
14
14
|
validate(value) {
|
|
15
|
-
|
|
15
|
+
if (Number.isFinite(value))
|
|
16
|
+
return true;
|
|
17
|
+
return typeof value === 'string' && value.toString().trim().length > 0;
|
|
16
18
|
},
|
|
17
19
|
defaultMessage(args) {
|
|
18
20
|
return `${args.property} must by a string`;
|
package/dist/slot/slot.ro.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OrderStatusEnum } from '../order/enum/order-status.enum';
|
|
2
1
|
export declare type SlotResponseObject = {
|
|
3
2
|
id: number;
|
|
4
3
|
questroomId: number;
|
|
@@ -12,7 +11,7 @@ export declare type SlotResponseObject = {
|
|
|
12
11
|
order?: {
|
|
13
12
|
id: number;
|
|
14
13
|
players: number;
|
|
15
|
-
|
|
14
|
+
canceled: boolean;
|
|
16
15
|
payed: boolean;
|
|
17
16
|
hasPhotos: boolean;
|
|
18
17
|
hasComments: boolean;
|
package/dist/slot/slot.ro.js
CHANGED
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], CreateOrderPaymentDto.prototype, "cashboxId", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, class_validator_1.
|
|
28
|
+
(0, class_validator_1.IsPositive)(),
|
|
29
29
|
(0, class_transformer_1.Expose)(),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], CreateOrderPaymentDto.prototype, "amount", void 0);
|
|
@@ -26,9 +26,9 @@ __decorate([
|
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
27
|
], CreateOrderRefundDto.prototype, "cashboxId", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, class_validator_1.
|
|
29
|
+
(0, class_validator_1.IsPositive)(),
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
|
-
__metadata("design:type",
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
32
|
], CreateOrderRefundDto.prototype, "amount", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, is_not_blank_1.IsNotBlank)(),
|