@escapenavigator/types 1.4.25 → 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 (74) hide show
  1. package/dist/agregator/agregator-questroom.ro.d.ts +0 -1
  2. package/dist/cashbox/cashbox.ro.d.ts +0 -2
  3. package/dist/cashbox/create-cashbox.dto.d.ts +0 -2
  4. package/dist/cashbox/create-cashbox.dto.js +0 -13
  5. package/dist/cashbox/enum/cashbox-type.enum.d.ts +1 -3
  6. package/dist/cashbox/enum/cashbox-type.enum.js +0 -2
  7. package/dist/certificate/certificate.ro.d.ts +0 -1
  8. package/dist/certificate/create-certificate.dto.d.ts +0 -1
  9. package/dist/certificate/create-certificate.dto.js +0 -5
  10. package/dist/certificate-sale/certificate-sale.ro.d.ts +1 -0
  11. package/dist/client/client.ro.d.ts +0 -1
  12. package/dist/client/create-client.dto.d.ts +0 -1
  13. package/dist/client/create-client.dto.js +0 -6
  14. package/dist/client/update-client.dto.d.ts +0 -1
  15. package/dist/client/update-client.dto.js +0 -6
  16. package/dist/commission/commission.ro.d.ts +10 -0
  17. package/dist/commission/create-commission.dto.d.ts +5 -0
  18. package/dist/commission/create-commission.dto.js +32 -0
  19. package/dist/commission/create-profile-correction.dto.d.ts +5 -0
  20. package/dist/commission/create-profile-correction.dto.js +33 -0
  21. package/dist/commission/create-profile-payment.dto.d.ts +3 -0
  22. package/dist/{order/update-order-status.dto.js → commission/create-profile-payment.dto.js} +8 -7
  23. package/dist/commission/emun/commission.enum.d.ts +6 -0
  24. package/dist/commission/emun/commission.enum.js +10 -0
  25. package/dist/emails/email.ro.d.ts +1 -5
  26. package/dist/emails/index.d.ts +21 -6
  27. package/dist/log/log.ro.d.ts +11 -0
  28. package/dist/log/log.ro.js +2 -0
  29. package/dist/order/order.ro.d.ts +6 -10
  30. package/dist/order/update-order.dto.d.ts +2 -1
  31. package/dist/order/update-order.dto.js +1 -0
  32. package/dist/profile/create-profile.dto.d.ts +1 -0
  33. package/dist/profile/create-profile.dto.js +5 -0
  34. package/dist/profile/profile.ro.d.ts +1 -0
  35. package/dist/questroom/create-questroom.dto.d.ts +0 -1
  36. package/dist/questroom/create-questroom.dto.js +5 -14
  37. package/dist/questroom/questroom.ro.d.ts +1 -0
  38. package/dist/registration-request/create-registration-request.dto.d.ts +0 -1
  39. package/dist/registration-request/create-registration-request.dto.js +5 -9
  40. package/dist/registration-request/enum/registration-request-status.d.ts +5 -0
  41. package/dist/registration-request/enum/registration-request-status.js +9 -0
  42. package/dist/registration-request/registration-request.ro.d.ts +3 -1
  43. package/dist/registration-request/update-registration-request.dto.d.ts +5 -4
  44. package/dist/registration-request/update-registration-request.dto.js +11 -8
  45. package/dist/shared/enum/countries.enum.d.ts +1 -2
  46. package/dist/shared/enum/countries.enum.js +0 -1
  47. package/dist/shared/enum/languages.enum.d.ts +1 -2
  48. package/dist/shared/enum/languages.enum.js +0 -1
  49. package/dist/shared/is-not-blank-string.js +3 -1
  50. package/dist/shared/query.ro.d.ts +4 -0
  51. package/dist/shared/query.ro.js +2 -0
  52. package/dist/slot/add-breaks.dto.d.ts +4 -3
  53. package/dist/slot/add-breaks.dto.js +9 -5
  54. package/dist/slot/calendar-query.dto.d.ts +1 -1
  55. package/dist/slot/remove-breaks.dto.d.ts +4 -2
  56. package/dist/slot/remove-breaks.dto.js +10 -2
  57. package/dist/slot/slot.ro.d.ts +1 -2
  58. package/dist/slot/slot.ro.js +0 -3
  59. package/dist/transaction/create-order-payment.dto.js +1 -1
  60. package/dist/transaction/create-order-refund.dto.d.ts +1 -1
  61. package/dist/transaction/create-order-refund.dto.js +2 -2
  62. package/dist/tsconfig.build.tsbuildinfo +1 -1
  63. package/dist/user/current-user.ro.d.ts +1 -0
  64. package/dist/widget-openapi/widget-openapi-create-review.dto.d.ts +1 -1
  65. package/dist/widget-openapi/widget-openapi-create-review.dto.js +1 -1
  66. package/dist/widget-openapi/widget-openapi-order.ro.d.ts +0 -2
  67. package/package.json +7 -3
  68. package/dist/emails/template.d.ts +0 -37
  69. package/dist/emails/template.js +0 -310
  70. package/dist/order/enum/order-status.enum.d.ts +0 -8
  71. package/dist/order/enum/order-status.enum.js +0 -12
  72. package/dist/order/orders-list.ro.d.ts +0 -3
  73. package/dist/order/update-order-status.dto.d.ts +0 -4
  74. /package/dist/{order/orders-list.ro.js → commission/commission.ro.js} +0 -0
@@ -47,7 +47,6 @@ export declare type AgregatorQuestroomRO = {
47
47
  actors: boolean;
48
48
  languages?: Languages[];
49
49
  defaultLanguage?: Languages;
50
- reviews: [];
51
50
  reviewsCount: number;
52
51
  rating: number;
53
52
  plot: number;
@@ -4,6 +4,4 @@ export declare type CashboxResponseObject = ResponseObject & {
4
4
  title: string;
5
5
  type: CashboxTypeEnum;
6
6
  identificator?: string;
7
- allLocations: boolean;
8
- locationIds?: number[];
9
7
  };
@@ -2,7 +2,5 @@ import { CashboxTypeEnum } from './enum/cashbox-type.enum';
2
2
  export declare class CreateCashboxDto {
3
3
  title: string;
4
4
  type: CashboxTypeEnum;
5
- allLocations: boolean;
6
- locationIds: number[];
7
5
  identificator?: string;
8
6
  }
@@ -26,19 +26,6 @@ __decorate([
26
26
  (0, class_transformer_1.Expose)(),
27
27
  __metadata("design:type", String)
28
28
  ], CreateCashboxDto.prototype, "type", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsBoolean)(),
31
- (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
32
- (0, class_transformer_1.Expose)(),
33
- __metadata("design:type", Boolean)
34
- ], CreateCashboxDto.prototype, "allLocations", void 0);
35
- __decorate([
36
- (0, class_validator_1.ValidateIf)((o) => !o.allLocations),
37
- (0, class_validator_1.ArrayNotEmpty)(),
38
- (0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
39
- (0, class_transformer_1.Expose)(),
40
- __metadata("design:type", Array)
41
- ], CreateCashboxDto.prototype, "locationIds", void 0);
42
29
  __decorate([
43
30
  (0, class_validator_1.ValidateIf)((o) => o.type !== cashbox_type_enum_1.CashboxTypeEnum.BANK && o.type !== cashbox_type_enum_1.CashboxTypeEnum.CASH),
44
31
  (0, is_not_blank_string_1.IsNotBlankString)(),
@@ -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 = {}));
@@ -12,7 +12,6 @@ export declare type CertificateResponseObject = ResponseObject & {
12
12
  deliveryPrice: number;
13
13
  allQuestrooms: boolean;
14
14
  questroomsIds: number[];
15
- walletId: number;
16
15
  awailableForNavigator: boolean;
17
16
  awailableForWidgets: boolean;
18
17
  photo: string;
@@ -11,7 +11,6 @@ export declare class CreateCertificateDto {
11
11
  deliveryPrice?: number;
12
12
  allQuestrooms: boolean;
13
13
  questroomsIds: number[];
14
- walletId: number;
15
14
  awailableForNavigator: boolean;
16
15
  awailableForWidgets: boolean;
17
16
  photo: string;
@@ -87,11 +87,6 @@ __decorate([
87
87
  (0, class_transformer_1.Expose)(),
88
88
  __metadata("design:type", Array)
89
89
  ], CreateCertificateDto.prototype, "questroomsIds", void 0);
90
- __decorate([
91
- (0, class_validator_1.IsPositive)(),
92
- (0, class_transformer_1.Expose)(),
93
- __metadata("design:type", Number)
94
- ], CreateCertificateDto.prototype, "walletId", void 0);
95
90
  __decorate([
96
91
  (0, class_validator_1.IsBoolean)(),
97
92
  (0, class_transformer_1.Transform)(checkBoolean),
@@ -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,10 @@
1
+ import { ResponseObject } from '../shared/ro';
2
+ import { CommissionTypeEnum } from './emun/commission.enum';
3
+ export declare type CommissionRO = ResponseObject & {
4
+ title: string;
5
+ amount: number;
6
+ type: CommissionTypeEnum;
7
+ orderId: number;
8
+ reason: string;
9
+ balance: number;
10
+ };
@@ -0,0 +1,5 @@
1
+ export declare class CreateCommissionDto {
2
+ profileId: number;
3
+ amount: number;
4
+ orderId: number;
5
+ }
@@ -0,0 +1,32 @@
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.CreateCommissionDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateCommissionDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsNumber)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], CreateCommissionDto.prototype, "profileId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNumber)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", Number)
26
+ ], CreateCommissionDto.prototype, "amount", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNumber)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", Number)
31
+ ], CreateCommissionDto.prototype, "orderId", void 0);
32
+ exports.CreateCommissionDto = CreateCommissionDto;
@@ -0,0 +1,5 @@
1
+ export declare class CreateProfileCorrectionDto {
2
+ profileId: number;
3
+ amount: number;
4
+ reason: string;
5
+ }
@@ -0,0 +1,33 @@
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.CreateProfileCorrectionDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const is_not_blank_1 = require("../shared/is-not-blank");
16
+ class CreateProfileCorrectionDto {
17
+ }
18
+ __decorate([
19
+ (0, class_validator_1.IsNumber)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", Number)
22
+ ], CreateProfileCorrectionDto.prototype, "profileId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsNumber)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", Number)
27
+ ], CreateProfileCorrectionDto.prototype, "amount", void 0);
28
+ __decorate([
29
+ (0, is_not_blank_1.IsNotBlank)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], CreateProfileCorrectionDto.prototype, "reason", void 0);
33
+ exports.CreateProfileCorrectionDto = CreateProfileCorrectionDto;
@@ -0,0 +1,3 @@
1
+ export declare class CreateProfilePaymentDto {
2
+ amount: number;
3
+ }
@@ -9,13 +9,14 @@ 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.UpdateOrderStatusDto = void 0;
12
+ exports.CreateProfilePaymentDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
13
14
  const class_validator_1 = require("class-validator");
14
- const order_status_enum_1 = require("./enum/order-status.enum");
15
- class UpdateOrderStatusDto {
15
+ class CreateProfilePaymentDto {
16
16
  }
17
17
  __decorate([
18
- (0, class_validator_1.IsEnum)(order_status_enum_1.OrderStatusEnum),
19
- __metadata("design:type", String)
20
- ], UpdateOrderStatusDto.prototype, "status", void 0);
21
- exports.UpdateOrderStatusDto = UpdateOrderStatusDto;
18
+ (0, class_validator_1.IsPositive)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], CreateProfilePaymentDto.prototype, "amount", void 0);
22
+ exports.CreateProfilePaymentDto = CreateProfilePaymentDto;
@@ -0,0 +1,6 @@
1
+ export declare enum CommissionTypeEnum {
2
+ AGREGATOR_COMMISSION = "agregator_commission",
3
+ WIDGET_COMMISSION = "widget_commission",
4
+ PAYMENT = "payment",
5
+ CORRECTION = "correction"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommissionTypeEnum = void 0;
4
+ var CommissionTypeEnum;
5
+ (function (CommissionTypeEnum) {
6
+ CommissionTypeEnum["AGREGATOR_COMMISSION"] = "agregator_commission";
7
+ CommissionTypeEnum["WIDGET_COMMISSION"] = "widget_commission";
8
+ CommissionTypeEnum["PAYMENT"] = "payment";
9
+ CommissionTypeEnum["CORRECTION"] = "correction";
10
+ })(CommissionTypeEnum = exports.CommissionTypeEnum || (exports.CommissionTypeEnum = {}));
@@ -1,10 +1,6 @@
1
1
  import { ResponseObject } from '../shared/ro';
2
- export declare type EmailResponseObject = ResponseObject & {
3
- template: string;
2
+ export declare type EmailRO = ResponseObject & {
4
3
  profileId?: number;
5
4
  to: string;
6
- data: string;
7
- accepted: string[];
8
- rejected: string[];
9
5
  delivered: boolean;
10
6
  };
@@ -1,9 +1,24 @@
1
- import { Template } from './template';
2
- declare type Shared = {
3
- to: string;
1
+ declare type Paragraph = {
2
+ type: 'paragraph';
3
+ text: string;
4
+ };
5
+ declare type Bitton = {
6
+ type: 'button';
7
+ text: string;
8
+ link: string;
9
+ };
10
+ declare type Divider = {
11
+ type: 'divider';
4
12
  };
5
- export declare type Email = Shared & Template;
6
- export declare type BaseEmailData = Record<Template['template'], Omit<Template, 'template'> & {
13
+ declare type Context = {
14
+ title: string;
15
+ subtitle?: string;
16
+ subscription?: boolean;
17
+ sections: Array<Divider | Bitton | Paragraph>;
18
+ };
19
+ export declare type SendEmailRequestParams = {
20
+ to: string;
7
21
  subject: string;
8
- }>;
22
+ data: Context;
23
+ };
9
24
  export {};
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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([
@@ -1,6 +1,7 @@
1
1
  import { CountriesEnum } from '../shared/enum/countries.enum';
2
2
  export declare class CreateProfileDto {
3
3
  title: string;
4
+ registrationRequestId: number;
4
5
  email: string;
5
6
  phone: string;
6
7
  site: string;
@@ -21,6 +21,11 @@ __decorate([
21
21
  (0, class_transformer_1.Expose)(),
22
22
  __metadata("design:type", String)
23
23
  ], CreateProfileDto.prototype, "title", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsNumber)(),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Number)
28
+ ], CreateProfileDto.prototype, "registrationRequestId", void 0);
24
29
  __decorate([
25
30
  (0, is_not_blank_string_1.IsNotBlankString)(),
26
31
  (0, class_validator_1.IsEmail)(),
@@ -21,4 +21,5 @@ export declare type ProfileResponseObject = ResponseObject & {
21
21
  contactPhone: string;
22
22
  contactName: string;
23
23
  balance: number;
24
+ registrationRequestId: number;
24
25
  };
@@ -14,7 +14,6 @@ export declare class CreateQuestroomDto {
14
14
  questroomIds: number[];
15
15
  languages: Languages[];
16
16
  defaultLanguage?: Languages;
17
- walletId?: number;
18
17
  onlinePaymentsCashbox: number;
19
18
  cashPaymentsCashbox: number;
20
19
  cardPaymentsCashbox: number;
@@ -53,13 +53,13 @@ __decorate([
53
53
  ], CreateQuestroomDto.prototype, "minAge", void 0);
54
54
  __decorate([
55
55
  (0, class_validator_1.IsPositive)(),
56
- (0, class_transformer_1.Transform)(({ value }) => value || 6),
56
+ (0, class_transformer_1.Transform)(({ value }) => value || 2),
57
57
  (0, class_transformer_1.Expose)(),
58
58
  __metadata("design:type", Number)
59
59
  ], CreateQuestroomDto.prototype, "playersMin", void 0);
60
60
  __decorate([
61
61
  (0, class_validator_1.IsPositive)(),
62
- (0, class_transformer_1.Transform)(({ value }) => value || 6),
62
+ (0, class_transformer_1.Transform)(({ value }) => value || 5),
63
63
  (0, class_transformer_1.Expose)(),
64
64
  __metadata("design:type", Number)
65
65
  ], CreateQuestroomDto.prototype, "playersMax", void 0);
@@ -88,26 +88,17 @@ __decorate([
88
88
  __metadata("design:type", String)
89
89
  ], CreateQuestroomDto.prototype, "defaultLanguage", void 0);
90
90
  __decorate([
91
- (0, class_validator_1.IsOptional)(),
92
- (0, class_validator_1.IsPositive)(),
93
- (0, class_transformer_1.Expose)(),
94
- __metadata("design:type", Number)
95
- ], CreateQuestroomDto.prototype, "walletId", void 0);
96
- __decorate([
97
- (0, class_validator_1.IsOptional)(),
98
- (0, class_validator_1.IsNumber)(),
91
+ (0, is_not_blank_string_1.IsNotBlankString)(),
99
92
  (0, class_transformer_1.Expose)(),
100
93
  __metadata("design:type", Number)
101
94
  ], CreateQuestroomDto.prototype, "onlinePaymentsCashbox", void 0);
102
95
  __decorate([
103
- (0, class_validator_1.IsOptional)(),
104
- (0, class_validator_1.IsNumber)(),
96
+ (0, is_not_blank_string_1.IsNotBlankString)(),
105
97
  (0, class_transformer_1.Expose)(),
106
98
  __metadata("design:type", Number)
107
99
  ], CreateQuestroomDto.prototype, "cashPaymentsCashbox", void 0);
108
100
  __decorate([
109
- (0, class_validator_1.IsOptional)(),
110
- (0, class_validator_1.IsNumber)(),
101
+ (0, is_not_blank_string_1.IsNotBlankString)(),
111
102
  (0, class_transformer_1.Expose)(),
112
103
  __metadata("design:type", Number)
113
104
  ], CreateQuestroomDto.prototype, "cardPaymentsCashbox", void 0);
@@ -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 class CreateRegistrationRequestDto {
2
- name: string;
3
2
  email: string;
4
3
  phone: string;
5
4
  site: string;
@@ -11,26 +11,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateRegistrationRequestDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const is_not_blank_1 = require("../shared/is-not-blank");
14
+ const class_validator_1 = require("class-validator");
15
15
  class CreateRegistrationRequestDto {
16
16
  }
17
17
  __decorate([
18
- (0, is_not_blank_1.IsNotBlank)(),
19
- (0, class_transformer_1.Expose)(),
20
- __metadata("design:type", String)
21
- ], CreateRegistrationRequestDto.prototype, "name", void 0);
22
- __decorate([
23
- (0, is_not_blank_1.IsNotBlank)(),
18
+ (0, class_validator_1.IsEmail)(),
24
19
  (0, class_transformer_1.Expose)(),
25
20
  __metadata("design:type", String)
26
21
  ], CreateRegistrationRequestDto.prototype, "email", void 0);
27
22
  __decorate([
28
- (0, is_not_blank_1.IsNotBlank)(),
23
+ (0, class_validator_1.IsPhoneNumber)(),
29
24
  (0, class_transformer_1.Expose)(),
30
25
  __metadata("design:type", String)
31
26
  ], CreateRegistrationRequestDto.prototype, "phone", void 0);
32
27
  __decorate([
33
- (0, is_not_blank_1.IsNotBlank)(),
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_validator_1.IsUrl)(),
34
30
  (0, class_transformer_1.Expose)(),
35
31
  __metadata("design:type", String)
36
32
  ], CreateRegistrationRequestDto.prototype, "site", void 0);
@@ -0,0 +1,5 @@
1
+ export declare enum RegistrationRequestStatusEnum {
2
+ DONE = "done",
3
+ NEW = "new",
4
+ REJECTED = "rejected"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegistrationRequestStatusEnum = void 0;
4
+ var RegistrationRequestStatusEnum;
5
+ (function (RegistrationRequestStatusEnum) {
6
+ RegistrationRequestStatusEnum["DONE"] = "done";
7
+ RegistrationRequestStatusEnum["NEW"] = "new";
8
+ RegistrationRequestStatusEnum["REJECTED"] = "rejected";
9
+ })(RegistrationRequestStatusEnum = exports.RegistrationRequestStatusEnum || (exports.RegistrationRequestStatusEnum = {}));
@@ -1,9 +1,11 @@
1
+ import { RegistrationRequestStatusEnum } from './enum/registration-request-status';
1
2
  export declare type RegistrationRequestResponseObject = {
2
- name: string;
3
3
  email: string;
4
4
  phone: string;
5
5
  site: string;
6
+ status: RegistrationRequestStatusEnum;
6
7
  comment?: string;
7
8
  id: number;
9
+ profileId: number;
8
10
  createdAt: Date;
9
11
  };
@@ -1,7 +1,8 @@
1
+ import { RegistrationRequestStatusEnum } from './enum/registration-request-status';
1
2
  export declare class UpdateRegistrationRequestDto {
2
- name?: string;
3
- phone?: string;
4
- email?: string;
5
- site?: string;
3
+ email: string;
4
+ phone: string;
5
+ site: string;
6
+ status?: RegistrationRequestStatusEnum;
6
7
  comment?: string;
7
8
  }