@escapenavigator/types 1.4.25 → 1.4.26

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 (46) 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/certificate/certificate.ro.d.ts +0 -1
  6. package/dist/certificate/create-certificate.dto.d.ts +0 -1
  7. package/dist/certificate/create-certificate.dto.js +0 -5
  8. package/dist/commission/commission.ro.d.ts +10 -0
  9. package/dist/commission/commission.ro.js +2 -0
  10. package/dist/commission/create-commission.dto.d.ts +5 -0
  11. package/dist/commission/create-commission.dto.js +32 -0
  12. package/dist/commission/create-profile-correction.dto.d.ts +5 -0
  13. package/dist/commission/create-profile-correction.dto.js +33 -0
  14. package/dist/commission/create-profile-payment.dto.d.ts +3 -0
  15. package/dist/commission/create-profile-payment.dto.js +22 -0
  16. package/dist/commission/emun/commission.enum.d.ts +6 -0
  17. package/dist/commission/emun/commission.enum.js +10 -0
  18. package/dist/emails/email.ro.d.ts +1 -5
  19. package/dist/emails/index.d.ts +21 -6
  20. package/dist/profile/create-profile.dto.d.ts +1 -0
  21. package/dist/profile/create-profile.dto.js +5 -0
  22. package/dist/profile/profile.ro.d.ts +1 -0
  23. package/dist/questroom/create-questroom.dto.d.ts +0 -1
  24. package/dist/questroom/create-questroom.dto.js +5 -14
  25. package/dist/registration-request/create-registration-request.dto.d.ts +0 -1
  26. package/dist/registration-request/create-registration-request.dto.js +5 -9
  27. package/dist/registration-request/enum/registration-request-status.d.ts +5 -0
  28. package/dist/registration-request/enum/registration-request-status.js +9 -0
  29. package/dist/registration-request/registration-request.ro.d.ts +3 -1
  30. package/dist/registration-request/update-registration-request.dto.d.ts +5 -4
  31. package/dist/registration-request/update-registration-request.dto.js +11 -8
  32. package/dist/shared/enum/countries.enum.d.ts +1 -1
  33. package/dist/shared/enum/countries.enum.js +1 -1
  34. package/dist/shared/query.ro.d.ts +4 -0
  35. package/dist/shared/query.ro.js +2 -0
  36. package/dist/slot/add-breaks.dto.d.ts +4 -3
  37. package/dist/slot/add-breaks.dto.js +9 -5
  38. package/dist/slot/calendar-query.dto.d.ts +1 -1
  39. package/dist/slot/remove-breaks.dto.d.ts +4 -2
  40. package/dist/slot/remove-breaks.dto.js +10 -2
  41. package/dist/tsconfig.build.tsbuildinfo +1 -1
  42. package/dist/widget-openapi/widget-openapi-create-review.dto.d.ts +1 -1
  43. package/dist/widget-openapi/widget-openapi-create-review.dto.js +1 -1
  44. package/package.json +7 -3
  45. package/dist/emails/template.d.ts +0 -37
  46. package/dist/emails/template.js +0 -310
@@ -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)(),
@@ -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),
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,22 @@
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.CreateProfilePaymentDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateProfilePaymentDto {
16
+ }
17
+ __decorate([
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 {};
@@ -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);
@@ -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
  }
@@ -12,30 +12,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateRegistrationRequestDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
+ const is_not_blank_string_1 = require("../shared/is-not-blank-string");
16
+ const registration_request_status_1 = require("./enum/registration-request-status");
15
17
  class UpdateRegistrationRequestDto {
16
18
  }
17
19
  __decorate([
18
- (0, class_validator_1.IsOptional)(),
20
+ (0, class_validator_1.IsEmail)(),
19
21
  (0, class_transformer_1.Expose)(),
20
22
  __metadata("design:type", String)
21
- ], UpdateRegistrationRequestDto.prototype, "name", void 0);
23
+ ], UpdateRegistrationRequestDto.prototype, "email", void 0);
22
24
  __decorate([
23
- (0, class_validator_1.IsOptional)(),
25
+ (0, class_validator_1.IsPhoneNumber)(),
24
26
  (0, class_transformer_1.Expose)(),
25
27
  __metadata("design:type", String)
26
28
  ], UpdateRegistrationRequestDto.prototype, "phone", void 0);
27
29
  __decorate([
28
- (0, class_validator_1.IsOptional)(),
30
+ (0, class_validator_1.IsUrl)(),
29
31
  (0, class_transformer_1.Expose)(),
30
32
  __metadata("design:type", String)
31
- ], UpdateRegistrationRequestDto.prototype, "email", void 0);
33
+ ], UpdateRegistrationRequestDto.prototype, "site", void 0);
32
34
  __decorate([
33
- (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsEnum)(registration_request_status_1.RegistrationRequestStatusEnum),
34
36
  (0, class_transformer_1.Expose)(),
35
37
  __metadata("design:type", String)
36
- ], UpdateRegistrationRequestDto.prototype, "site", void 0);
38
+ ], UpdateRegistrationRequestDto.prototype, "status", void 0);
37
39
  __decorate([
38
- (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.ValidateIf)((rec) => rec.status === registration_request_status_1.RegistrationRequestStatusEnum.REJECTED),
41
+ (0, is_not_blank_string_1.IsNotBlankString)(),
39
42
  (0, class_transformer_1.Expose)(),
40
43
  __metadata("design:type", String)
41
44
  ], UpdateRegistrationRequestDto.prototype, "comment", void 0);
@@ -1,5 +1,5 @@
1
1
  export declare enum CountriesEnum {
2
2
  GERMANY = "de",
3
3
  AUSTRIA = "at",
4
- RUSSIA = "ru"
4
+ POLAND = "pl"
5
5
  }
@@ -5,5 +5,5 @@ var CountriesEnum;
5
5
  (function (CountriesEnum) {
6
6
  CountriesEnum["GERMANY"] = "de";
7
7
  CountriesEnum["AUSTRIA"] = "at";
8
- CountriesEnum["RUSSIA"] = "ru";
8
+ CountriesEnum["POLAND"] = "pl";
9
9
  })(CountriesEnum = exports.CountriesEnum || (exports.CountriesEnum = {}));
@@ -0,0 +1,4 @@
1
+ export declare type QueryRO<T> = {
2
+ items: T[];
3
+ meta: any;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,8 @@
1
1
  export declare class AddBreaksDto {
2
2
  questroomId: number;
3
3
  breakReason: string;
4
- start: string;
5
- ignoreOrders: boolean;
6
- end: string;
4
+ startDate: string;
5
+ endDate: string;
6
+ startTime: string;
7
+ endTime: string;
7
8
  }
@@ -25,13 +25,17 @@ __decorate([
25
25
  __decorate([
26
26
  (0, is_not_blank_1.IsNotBlank)(),
27
27
  __metadata("design:type", String)
28
- ], AddBreaksDto.prototype, "start", void 0);
28
+ ], AddBreaksDto.prototype, "startDate", void 0);
29
29
  __decorate([
30
- (0, class_validator_1.IsBoolean)(),
31
- __metadata("design:type", Boolean)
32
- ], AddBreaksDto.prototype, "ignoreOrders", void 0);
30
+ (0, is_not_blank_1.IsNotBlank)(),
31
+ __metadata("design:type", String)
32
+ ], AddBreaksDto.prototype, "endDate", void 0);
33
+ __decorate([
34
+ (0, is_not_blank_1.IsNotBlank)(),
35
+ __metadata("design:type", String)
36
+ ], AddBreaksDto.prototype, "startTime", void 0);
33
37
  __decorate([
34
38
  (0, is_not_blank_1.IsNotBlank)(),
35
39
  __metadata("design:type", String)
36
- ], AddBreaksDto.prototype, "end", void 0);
40
+ ], AddBreaksDto.prototype, "endTime", void 0);
37
41
  exports.AddBreaksDto = AddBreaksDto;
@@ -1,5 +1,5 @@
1
1
  export declare class CalendarQueryDto {
2
2
  questroomIds: number[];
3
3
  date: string;
4
- view: 'day' | 'week';
4
+ view: string;
5
5
  }
@@ -1,5 +1,7 @@
1
1
  export declare class RemoveBreaksDto {
2
2
  questroomId: number;
3
- start: string;
4
- end: string;
3
+ startDate: string;
4
+ endDate: string;
5
+ startTime: string;
6
+ endTime: string;
5
7
  }
@@ -21,9 +21,17 @@ __decorate([
21
21
  __decorate([
22
22
  (0, is_not_blank_1.IsNotBlank)(),
23
23
  __metadata("design:type", String)
24
- ], RemoveBreaksDto.prototype, "start", void 0);
24
+ ], RemoveBreaksDto.prototype, "startDate", void 0);
25
25
  __decorate([
26
26
  (0, is_not_blank_1.IsNotBlank)(),
27
27
  __metadata("design:type", String)
28
- ], RemoveBreaksDto.prototype, "end", void 0);
28
+ ], RemoveBreaksDto.prototype, "endDate", void 0);
29
+ __decorate([
30
+ (0, is_not_blank_1.IsNotBlank)(),
31
+ __metadata("design:type", String)
32
+ ], RemoveBreaksDto.prototype, "startTime", void 0);
33
+ __decorate([
34
+ (0, is_not_blank_1.IsNotBlank)(),
35
+ __metadata("design:type", String)
36
+ ], RemoveBreaksDto.prototype, "endTime", void 0);
29
37
  exports.RemoveBreaksDto = RemoveBreaksDto;