@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.
Files changed (33) hide show
  1. package/dist/cashbox/enum/cashbox-type.enum.d.ts +1 -3
  2. package/dist/cashbox/enum/cashbox-type.enum.js +0 -2
  3. package/dist/certificate-sale/certificate-sale.ro.d.ts +1 -0
  4. package/dist/client/client.ro.d.ts +0 -1
  5. package/dist/client/create-client.dto.d.ts +0 -1
  6. package/dist/client/create-client.dto.js +0 -6
  7. package/dist/client/update-client.dto.d.ts +0 -1
  8. package/dist/client/update-client.dto.js +0 -6
  9. package/dist/log/log.ro.d.ts +11 -0
  10. package/dist/order/order.ro.d.ts +6 -10
  11. package/dist/order/update-order.dto.d.ts +2 -1
  12. package/dist/order/update-order.dto.js +1 -0
  13. package/dist/questroom/questroom.ro.d.ts +1 -0
  14. package/dist/shared/enum/countries.enum.d.ts +1 -2
  15. package/dist/shared/enum/countries.enum.js +0 -1
  16. package/dist/shared/enum/languages.enum.d.ts +1 -2
  17. package/dist/shared/enum/languages.enum.js +0 -1
  18. package/dist/shared/is-not-blank-string.js +3 -1
  19. package/dist/slot/slot.ro.d.ts +1 -2
  20. package/dist/slot/slot.ro.js +0 -3
  21. package/dist/transaction/create-order-payment.dto.js +1 -1
  22. package/dist/transaction/create-order-refund.dto.d.ts +1 -1
  23. package/dist/transaction/create-order-refund.dto.js +2 -2
  24. package/dist/tsconfig.build.tsbuildinfo +1 -1
  25. package/dist/user/current-user.ro.d.ts +1 -0
  26. package/dist/widget-openapi/widget-openapi-order.ro.d.ts +0 -2
  27. package/package.json +2 -2
  28. package/dist/order/enum/order-status.enum.d.ts +0 -8
  29. package/dist/order/enum/order-status.enum.js +0 -12
  30. package/dist/order/orders-list.ro.d.ts +0 -3
  31. package/dist/order/update-order-status.dto.d.ts +0 -4
  32. package/dist/order/update-order-status.dto.js +0 -21
  33. /package/dist/{order/orders-list.ro.js → log/log.ro.js} +0 -0
@@ -1,7 +1,5 @@
1
1
  export declare enum CashboxTypeEnum {
2
2
  CASH = "cash",
3
3
  BANK = "bank",
4
- PAYPAL = "paypal",
5
- YANDEX = "yandex",
6
- TINKOFF = "tinkoff"
4
+ PAYPAL = "paypal"
7
5
  }
@@ -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 = {}));
@@ -39,6 +39,7 @@ export declare type CertificateSaleResponseObject = ResponseObject & {
39
39
  id: number;
40
40
  cashboxId: number;
41
41
  amount: number;
42
+ comment: string;
42
43
  userId: number;
43
44
  createdAt: Date;
44
45
  }>;
@@ -4,7 +4,6 @@ export declare type ClientResponseObject = ResponseObject & {
4
4
  surname: string;
5
5
  phone: string;
6
6
  email: string;
7
- photo?: string;
8
7
  address?: string;
9
8
  city?: string;
10
9
  postcode?: string;
@@ -1,5 +1,4 @@
1
1
  export declare class CreateClientDto {
2
- photo?: string;
3
2
  name: string;
4
3
  surname: string;
5
4
  phone: string;
@@ -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)(),
@@ -1,5 +1,4 @@
1
1
  export declare class UpdateClientDto {
2
- photo?: string;
3
2
  name?: string;
4
3
  surname?: string;
5
4
  phone?: string;
@@ -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)(),
@@ -0,0 +1,11 @@
1
+ import { ResponseObject } from '../shared/ro';
2
+ export declare type LogRO = ResponseObject & {
3
+ userId?: number;
4
+ modelId?: number;
5
+ modelName?: string;
6
+ title: string;
7
+ description?: string;
8
+ actions: Array<{
9
+ actions: string[];
10
+ }>;
11
+ };
@@ -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
- status: OrderStatusEnum;
6
+ canceled: boolean;
8
7
  price: {
9
- [x: string]: 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
- questroomTitle: string;
29
- questroomPhoto: string;
30
- applyings: Array<{
31
- orderId: number;
26
+ certificates: Array<{
32
27
  certificateId: number;
33
28
  code: number;
34
- amount: number;
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;
@@ -1,5 +1,6 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
1
2
  export declare class UpdateOrderDto {
2
3
  photos?: string[];
3
4
  players?: number;
4
- language?: string;
5
+ language?: Languages;
5
6
  }
@@ -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([
@@ -7,6 +7,7 @@ export declare type QuestroomResponseObject = ResponseObject & {
7
7
  photo: string;
8
8
  photos?: string[];
9
9
  time: number;
10
+ hasSchedule: boolean;
10
11
  breakInterval: number;
11
12
  type: string;
12
13
  minAge: number;
@@ -1,5 +1,4 @@
1
1
  export declare enum CountriesEnum {
2
2
  GERMANY = "de",
3
- AUSTRIA = "at",
4
- POLAND = "pl"
3
+ AUSTRIA = "at"
5
4
  }
@@ -5,5 +5,4 @@ var CountriesEnum;
5
5
  (function (CountriesEnum) {
6
6
  CountriesEnum["GERMANY"] = "de";
7
7
  CountriesEnum["AUSTRIA"] = "at";
8
- CountriesEnum["POLAND"] = "pl";
9
8
  })(CountriesEnum = exports.CountriesEnum || (exports.CountriesEnum = {}));
@@ -1,6 +1,5 @@
1
1
  export declare enum Languages {
2
2
  RU = "ru",
3
3
  EN = "en",
4
- DE = "de",
5
- DEFAULT = "default"
4
+ DE = "de"
6
5
  }
@@ -6,5 +6,4 @@ var Languages;
6
6
  Languages["RU"] = "ru";
7
7
  Languages["EN"] = "en";
8
8
  Languages["DE"] = "de";
9
- Languages["DEFAULT"] = "default";
10
9
  })(Languages = exports.Languages || (exports.Languages = {}));
@@ -12,7 +12,9 @@ function IsNotBlankString(property, validationOptions) {
12
12
  options: validationOptions,
13
13
  validator: {
14
14
  validate(value) {
15
- return typeof value === 'string' && value.trim().length > 0;
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`;
@@ -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
- status: OrderStatusEnum;
14
+ canceled: boolean;
16
15
  payed: boolean;
17
16
  hasPhotos: boolean;
18
17
  hasComments: boolean;
@@ -1,5 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // neededModerators?: number;
4
- // currentModeratorId?: string;
5
- // moderatorsIds?: string[];
@@ -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.IsNumber)(),
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);
@@ -1,6 +1,6 @@
1
1
  export declare class CreateOrderRefundDto {
2
2
  orderId: number;
3
3
  cashboxId: number;
4
- amount: string;
4
+ amount: number;
5
5
  comment: string;
6
6
  }
@@ -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.IsNumber)(),
29
+ (0, class_validator_1.IsPositive)(),
30
30
  (0, class_transformer_1.Expose)(),
31
- __metadata("design:type", String)
31
+ __metadata("design:type", Number)
32
32
  ], CreateOrderRefundDto.prototype, "amount", void 0);
33
33
  __decorate([
34
34
  (0, is_not_blank_1.IsNotBlank)(),