@escapenavigator/types 1.6.93 → 1.6.95

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.
@@ -1,9 +1,12 @@
1
1
  import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
2
+ import { ClientTypeEnum } from './emun/client-type.enum';
2
3
  export declare class ClientFormDto {
4
+ clientType: ClientTypeEnum;
3
5
  fields: WidgetBookingFiledEnum[];
6
+ email: string;
4
7
  name: string;
8
+ birthday: string;
5
9
  surname: string;
6
- email: string;
7
10
  sendAds: boolean;
8
11
  phone: string;
9
12
  address: string;
@@ -14,13 +14,26 @@ const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const is_not_blank_1 = require("../shared/is-not-blank");
16
16
  const widget_booking_filed_enum_1 = require("../widget/enum/widget-booking-filed.enum");
17
+ const client_type_enum_1 = require("./emun/client-type.enum");
17
18
  class ClientFormDto {
18
19
  }
20
+ __decorate([
21
+ (0, class_validator_1.IsEnum)(client_type_enum_1.ClientTypeEnum),
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], ClientFormDto.prototype, "clientType", void 0);
19
25
  __decorate([
20
26
  (0, class_validator_1.IsArray)(),
21
27
  (0, class_transformer_1.Expose)(),
22
28
  __metadata("design:type", Array)
23
29
  ], ClientFormDto.prototype, "fields", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEmail)(),
32
+ (0, class_validator_1.ValidateIf)(({ fields, clientType }) => clientType === client_type_enum_1.ClientTypeEnum.ADULT && fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.EMAIL)),
33
+ (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], ClientFormDto.prototype, "email", void 0);
24
37
  __decorate([
25
38
  (0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.NAME)),
26
39
  (0, is_not_blank_1.IsNotBlank)(),
@@ -28,17 +41,17 @@ __decorate([
28
41
  __metadata("design:type", String)
29
42
  ], ClientFormDto.prototype, "name", void 0);
30
43
  __decorate([
31
- (0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.SURNAME)),
44
+ (0, class_validator_1.ValidateIf)(({ fields, clientType }) => clientType === client_type_enum_1.ClientTypeEnum.MINOR || fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.BIRTHDAY)),
32
45
  (0, is_not_blank_1.IsNotBlank)(),
33
46
  (0, class_transformer_1.Expose)(),
34
47
  __metadata("design:type", String)
35
- ], ClientFormDto.prototype, "surname", void 0);
48
+ ], ClientFormDto.prototype, "birthday", void 0);
36
49
  __decorate([
37
- (0, class_validator_1.IsEmail)(),
38
- (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
50
+ (0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.SURNAME)),
51
+ (0, is_not_blank_1.IsNotBlank)(),
39
52
  (0, class_transformer_1.Expose)(),
40
53
  __metadata("design:type", String)
41
- ], ClientFormDto.prototype, "email", void 0);
54
+ ], ClientFormDto.prototype, "surname", void 0);
42
55
  __decorate([
43
56
  (0, class_validator_1.IsBoolean)(),
44
57
  (0, class_transformer_1.Expose)(),
@@ -46,25 +59,25 @@ __decorate([
46
59
  __metadata("design:type", Boolean)
47
60
  ], ClientFormDto.prototype, "sendAds", void 0);
48
61
  __decorate([
49
- (0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.PHONE)),
62
+ (0, class_validator_1.ValidateIf)(({ fields, clientType }) => clientType === client_type_enum_1.ClientTypeEnum.ADULT && fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.PHONE)),
50
63
  (0, is_not_blank_1.IsNotBlank)(),
51
64
  (0, class_transformer_1.Expose)(),
52
65
  __metadata("design:type", String)
53
66
  ], ClientFormDto.prototype, "phone", void 0);
54
67
  __decorate([
55
- (0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
68
+ (0, class_validator_1.ValidateIf)(({ fields, clientType }) => clientType === client_type_enum_1.ClientTypeEnum.ADULT && fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
56
69
  (0, is_not_blank_1.IsNotBlank)(),
57
70
  (0, class_transformer_1.Expose)(),
58
71
  __metadata("design:type", String)
59
72
  ], ClientFormDto.prototype, "address", void 0);
60
73
  __decorate([
61
- (0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
74
+ (0, class_validator_1.ValidateIf)(({ fields, clientType }) => clientType === client_type_enum_1.ClientTypeEnum.ADULT && fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
62
75
  (0, is_not_blank_1.IsNotBlank)(),
63
76
  (0, class_transformer_1.Expose)(),
64
77
  __metadata("design:type", String)
65
78
  ], ClientFormDto.prototype, "postcode", void 0);
66
79
  __decorate([
67
- (0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
80
+ (0, class_validator_1.ValidateIf)(({ fields, clientType }) => clientType === client_type_enum_1.ClientTypeEnum.ADULT && fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
68
81
  (0, is_not_blank_1.IsNotBlank)(),
69
82
  (0, class_transformer_1.Expose)(),
70
83
  __metadata("design:type", String)
@@ -1,7 +1,10 @@
1
1
  import { RO } from '../shared/ro-class';
2
+ import { ClientTypeEnum } from './emun/client-type.enum';
2
3
  export declare class PrevData {
3
4
  }
4
5
  export declare class ClientRO extends RO {
6
+ clientType: ClientTypeEnum;
7
+ birthday: string;
5
8
  name: string;
6
9
  surname: string;
7
10
  phone: string;
@@ -13,6 +13,7 @@ exports.ClientRO = exports.PrevData = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const ro_class_1 = require("../shared/ro-class");
16
+ const client_type_enum_1 = require("./emun/client-type.enum");
16
17
  let PrevData = class PrevData {
17
18
  };
18
19
  PrevData = __decorate([
@@ -21,6 +22,14 @@ PrevData = __decorate([
21
22
  exports.PrevData = PrevData;
22
23
  class ClientRO extends ro_class_1.RO {
23
24
  }
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], ClientRO.prototype, "clientType", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], ClientRO.prototype, "birthday", void 0);
24
33
  __decorate([
25
34
  (0, class_transformer_1.Expose)(),
26
35
  __metadata("design:type", String)
@@ -2,6 +2,7 @@ export declare class CreateClientFromWidgetDto {
2
2
  name: string;
3
3
  surname: string;
4
4
  phone: string;
5
+ birthday: string;
5
6
  phone2: string;
6
7
  email: string;
7
8
  address: string;
@@ -29,6 +29,11 @@ __decorate([
29
29
  (0, class_transformer_1.Expose)(),
30
30
  __metadata("design:type", String)
31
31
  ], CreateClientFromWidgetDto.prototype, "phone", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], CreateClientFromWidgetDto.prototype, "birthday", void 0);
32
37
  __decorate([
33
38
  (0, class_validator_1.IsOptional)(),
34
39
  (0, class_transformer_1.Expose)(),
@@ -0,0 +1,4 @@
1
+ export declare enum ClientTypeEnum {
2
+ ADULT = "adult",
3
+ MINOR = "minor"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientTypeEnum = void 0;
4
+ var ClientTypeEnum;
5
+ (function (ClientTypeEnum) {
6
+ ClientTypeEnum["ADULT"] = "adult";
7
+ ClientTypeEnum["MINOR"] = "minor";
8
+ })(ClientTypeEnum = exports.ClientTypeEnum || (exports.ClientTypeEnum = {}));
@@ -1,5 +1,18 @@
1
- import { Participant } from '../../order/order.ro';
1
+ import { ClientTypeEnum } from '../../client/emun/client-type.enum';
2
2
  import { OpenapiOrderRO } from './openapi-order.ro';
3
+ declare class Participant {
4
+ clientType: ClientTypeEnum;
5
+ name: string;
6
+ surname: string;
7
+ email: string;
8
+ }
9
+ declare class OrderParticipant {
10
+ id: number;
11
+ orderWaiverId: number;
12
+ client: Participant;
13
+ }
3
14
  export declare class OpenapiOrderForOrderServiceRO extends OpenapiOrderRO {
4
- participants: Participant[];
15
+ participants: OrderParticipant[];
16
+ needWaiver: boolean;
5
17
  }
18
+ export {};
@@ -12,13 +12,51 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.OpenapiOrderForOrderServiceRO = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
14
  const class_transformer_1 = require("class-transformer");
15
- const order_ro_1 = require("../../order/order.ro");
15
+ const client_type_enum_1 = require("../../client/emun/client-type.enum");
16
16
  const openapi_order_ro_1 = require("./openapi-order.ro");
17
+ class Participant {
18
+ }
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], Participant.prototype, "clientType", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], Participant.prototype, "name", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ (0, class_transformer_1.Transform)(({ value }) => `${value.slice(0, 1)}.`),
30
+ __metadata("design:type", String)
31
+ ], Participant.prototype, "surname", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], Participant.prototype, "email", void 0);
36
+ class OrderParticipant {
37
+ }
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", Number)
41
+ ], OrderParticipant.prototype, "id", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", Number)
45
+ ], OrderParticipant.prototype, "orderWaiverId", void 0);
46
+ __decorate([
47
+ (0, class_transformer_1.Expose)(),
48
+ (0, class_transformer_1.Type)(() => Participant),
49
+ __metadata("design:type", Participant)
50
+ ], OrderParticipant.prototype, "client", void 0);
17
51
  class OpenapiOrderForOrderServiceRO extends openapi_order_ro_1.OpenapiOrderRO {
18
52
  }
19
53
  __decorate([
20
54
  (0, class_transformer_1.Expose)(),
21
- (0, class_transformer_1.Type)(() => order_ro_1.Participant),
55
+ (0, class_transformer_1.Type)(() => OrderParticipant),
22
56
  __metadata("design:type", Array)
23
57
  ], OpenapiOrderForOrderServiceRO.prototype, "participants", void 0);
58
+ __decorate([
59
+ (0, class_transformer_1.Expose)(),
60
+ __metadata("design:type", Boolean)
61
+ ], OpenapiOrderForOrderServiceRO.prototype, "needWaiver", void 0);
24
62
  exports.OpenapiOrderForOrderServiceRO = OpenapiOrderForOrderServiceRO;
@@ -15,13 +15,6 @@ export declare class Utm {
15
15
  utmContent: string;
16
16
  utmTerm: string;
17
17
  }
18
- export declare class Participant {
19
- id: number;
20
- name: string;
21
- surname: string;
22
- sendAds: boolean;
23
- email: string;
24
- }
25
18
  declare class Rule {
26
19
  cancelationRule: QuestroomCancelationTypeEnum;
27
20
  minHoursForFreeCanceling: number;
@@ -53,6 +46,16 @@ declare class Upsellings extends RO {
53
46
  amount: number;
54
47
  userId: number;
55
48
  }
49
+ declare class Participant {
50
+ id: number;
51
+ name: string;
52
+ surname: string;
53
+ }
54
+ declare class OrderParticipant {
55
+ id: number;
56
+ orderWaiverId: number;
57
+ client: Participant;
58
+ }
56
59
  declare class Penalties extends RO {
57
60
  reason: string;
58
61
  type: OrderPenaltyTypeEnum;
@@ -72,7 +75,6 @@ export declare class Transactions extends RO {
72
75
  export declare class OrderRO extends RO {
73
76
  utm: Utm;
74
77
  profileId: number;
75
- participants: Participant[];
76
78
  updatedAt: Date;
77
79
  language?: Languages;
78
80
  price: {
@@ -86,6 +88,7 @@ export declare class OrderRO extends RO {
86
88
  code: string;
87
89
  total: number;
88
90
  players: number;
91
+ participants: OrderParticipant[];
89
92
  canceledWithFine: boolean;
90
93
  cancelationType: OrderCancelReasonEnum;
91
94
  utcDate: string;
@@ -9,7 +9,7 @@ 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.OrderRO = exports.Transactions = exports.Discounts = exports.Participant = exports.Utm = void 0;
12
+ exports.OrderRO = exports.Transactions = exports.Discounts = exports.Utm = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
@@ -50,29 +50,6 @@ __decorate([
50
50
  __metadata("design:type", String)
51
51
  ], Utm.prototype, "utmTerm", void 0);
52
52
  exports.Utm = Utm;
53
- class Participant {
54
- }
55
- __decorate([
56
- (0, class_transformer_1.Expose)(),
57
- __metadata("design:type", Number)
58
- ], Participant.prototype, "id", void 0);
59
- __decorate([
60
- (0, class_transformer_1.Expose)(),
61
- __metadata("design:type", String)
62
- ], Participant.prototype, "name", void 0);
63
- __decorate([
64
- (0, class_transformer_1.Expose)(),
65
- __metadata("design:type", String)
66
- ], Participant.prototype, "surname", void 0);
67
- __decorate([
68
- (0, class_transformer_1.Expose)(),
69
- __metadata("design:type", Boolean)
70
- ], Participant.prototype, "sendAds", void 0);
71
- __decorate([
72
- (0, class_transformer_1.Expose)(),
73
- __metadata("design:type", String)
74
- ], Participant.prototype, "email", void 0);
75
- exports.Participant = Participant;
76
53
  class Rule {
77
54
  }
78
55
  __decorate([
@@ -163,6 +140,35 @@ __decorate([
163
140
  (0, class_transformer_1.Expose)(),
164
141
  __metadata("design:type", Number)
165
142
  ], Upsellings.prototype, "userId", void 0);
143
+ class Participant {
144
+ }
145
+ __decorate([
146
+ (0, class_transformer_1.Expose)(),
147
+ __metadata("design:type", Number)
148
+ ], Participant.prototype, "id", void 0);
149
+ __decorate([
150
+ (0, class_transformer_1.Expose)(),
151
+ __metadata("design:type", String)
152
+ ], Participant.prototype, "name", void 0);
153
+ __decorate([
154
+ (0, class_transformer_1.Expose)(),
155
+ __metadata("design:type", String)
156
+ ], Participant.prototype, "surname", void 0);
157
+ class OrderParticipant {
158
+ }
159
+ __decorate([
160
+ (0, class_transformer_1.Expose)(),
161
+ __metadata("design:type", Number)
162
+ ], OrderParticipant.prototype, "id", void 0);
163
+ __decorate([
164
+ (0, class_transformer_1.Expose)(),
165
+ __metadata("design:type", Number)
166
+ ], OrderParticipant.prototype, "orderWaiverId", void 0);
167
+ __decorate([
168
+ (0, class_transformer_1.Expose)(),
169
+ (0, class_transformer_1.Type)(() => Participant),
170
+ __metadata("design:type", Participant)
171
+ ], OrderParticipant.prototype, "client", void 0);
166
172
  class Penalties extends ro_class_1.RO {
167
173
  }
168
174
  __decorate([
@@ -227,11 +233,6 @@ __decorate([
227
233
  (0, class_transformer_1.Expose)(),
228
234
  __metadata("design:type", Number)
229
235
  ], OrderRO.prototype, "profileId", void 0);
230
- __decorate([
231
- (0, class_transformer_1.Expose)(),
232
- (0, class_transformer_1.Type)(() => Participant),
233
- __metadata("design:type", Array)
234
- ], OrderRO.prototype, "participants", void 0);
235
236
  __decorate([
236
237
  (0, class_transformer_1.Expose)(),
237
238
  __metadata("design:type", Date)
@@ -277,6 +278,11 @@ __decorate([
277
278
  (0, class_transformer_1.Expose)(),
278
279
  __metadata("design:type", Number)
279
280
  ], OrderRO.prototype, "players", void 0);
281
+ __decorate([
282
+ (0, class_transformer_1.Expose)(),
283
+ (0, class_transformer_1.Type)(() => OrderParticipant),
284
+ __metadata("design:type", Array)
285
+ ], OrderRO.prototype, "participants", void 0);
280
286
  __decorate([
281
287
  (0, class_transformer_1.Expose)(),
282
288
  __metadata("design:type", Boolean)
@@ -0,0 +1,21 @@
1
+ declare class OrderWaiver {
2
+ createdAt: Date;
3
+ }
4
+ declare class Client {
5
+ id: number;
6
+ name: string;
7
+ surname: string;
8
+ birthday: string;
9
+ sendAds: boolean;
10
+ }
11
+ declare class OrderParticipant {
12
+ id: number;
13
+ client: Client;
14
+ orderWaiver: OrderWaiver;
15
+ }
16
+ export declare class OrderParticipantsRO {
17
+ isWaiverActive: boolean;
18
+ orderToken: string;
19
+ participants: OrderParticipant[];
20
+ }
21
+ export {};
@@ -0,0 +1,74 @@
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.OrderParticipantsRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ class OrderWaiver {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ __metadata("design:type", Date)
20
+ ], OrderWaiver.prototype, "createdAt", void 0);
21
+ class Client {
22
+ }
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", Number)
26
+ ], Client.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], Client.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], Client.prototype, "surname", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], Client.prototype, "birthday", void 0);
39
+ __decorate([
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", Boolean)
42
+ ], Client.prototype, "sendAds", void 0);
43
+ class OrderParticipant {
44
+ }
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", Number)
48
+ ], OrderParticipant.prototype, "id", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ (0, class_transformer_1.Type)(() => Client),
52
+ __metadata("design:type", Client)
53
+ ], OrderParticipant.prototype, "client", void 0);
54
+ __decorate([
55
+ (0, class_transformer_1.Expose)(),
56
+ (0, class_transformer_1.Type)(() => OrderWaiver),
57
+ __metadata("design:type", OrderWaiver)
58
+ ], OrderParticipant.prototype, "orderWaiver", void 0);
59
+ class OrderParticipantsRO {
60
+ }
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", Boolean)
64
+ ], OrderParticipantsRO.prototype, "isWaiverActive", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", String)
68
+ ], OrderParticipantsRO.prototype, "orderToken", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ (0, class_transformer_1.Type)(() => OrderParticipant),
72
+ __metadata("design:type", Array)
73
+ ], OrderParticipantsRO.prototype, "participants", void 0);
74
+ exports.OrderParticipantsRO = OrderParticipantsRO;
@@ -1,3 +1,4 @@
1
+ import { ClientTypeEnum } from '../../client/emun/client-type.enum';
1
2
  import { QuestroomRow } from '../../openapi/shared/openapi-questroom.ro';
2
3
  import { Languages } from '../../shared/enum/languages.enum';
3
4
  declare class Client {
@@ -6,19 +7,26 @@ declare class Client {
6
7
  email: string;
7
8
  phone: string;
8
9
  }
9
- export declare class Participant {
10
+ declare class Participant {
11
+ clientType: ClientTypeEnum;
10
12
  name: string;
11
13
  surname: string;
12
14
  email: string;
13
15
  }
16
+ declare class OrderParticipant {
17
+ id: number;
18
+ orderWaiverId: number;
19
+ client: Participant;
20
+ }
14
21
  export declare class OrderForSignRO extends QuestroomRow {
15
22
  code: string;
16
23
  profileId: number;
17
24
  language?: Languages;
18
25
  canceledWithFine: boolean;
26
+ needWaiver: boolean;
19
27
  players: number;
20
28
  utcDate: string;
21
- participants: Participant[];
29
+ participants: OrderParticipant[];
22
30
  client: Client;
23
31
  }
24
32
  export {};
@@ -9,9 +9,10 @@ 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.OrderForSignRO = exports.Participant = void 0;
12
+ exports.OrderForSignRO = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
14
  const class_transformer_1 = require("class-transformer");
15
+ const client_type_enum_1 = require("../../client/emun/client-type.enum");
15
16
  const openapi_questroom_ro_1 = require("../../openapi/shared/openapi-questroom.ro");
16
17
  const languages_enum_1 = require("../../shared/enum/languages.enum");
17
18
  class Client {
@@ -34,6 +35,10 @@ __decorate([
34
35
  ], Client.prototype, "phone", void 0);
35
36
  class Participant {
36
37
  }
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", String)
41
+ ], Participant.prototype, "clientType", void 0);
37
42
  __decorate([
38
43
  (0, class_transformer_1.Expose)(),
39
44
  __metadata("design:type", String)
@@ -47,7 +52,21 @@ __decorate([
47
52
  (0, class_transformer_1.Expose)(),
48
53
  __metadata("design:type", String)
49
54
  ], Participant.prototype, "email", void 0);
50
- exports.Participant = Participant;
55
+ class OrderParticipant {
56
+ }
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", Number)
60
+ ], OrderParticipant.prototype, "id", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", Number)
64
+ ], OrderParticipant.prototype, "orderWaiverId", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ (0, class_transformer_1.Type)(() => Participant),
68
+ __metadata("design:type", Participant)
69
+ ], OrderParticipant.prototype, "client", void 0);
51
70
  class OrderForSignRO extends openapi_questroom_ro_1.QuestroomRow {
52
71
  }
53
72
  __decorate([
@@ -66,6 +85,10 @@ __decorate([
66
85
  (0, class_transformer_1.Expose)(),
67
86
  __metadata("design:type", Boolean)
68
87
  ], OrderForSignRO.prototype, "canceledWithFine", void 0);
88
+ __decorate([
89
+ (0, class_transformer_1.Expose)(),
90
+ __metadata("design:type", Boolean)
91
+ ], OrderForSignRO.prototype, "needWaiver", void 0);
69
92
  __decorate([
70
93
  (0, class_transformer_1.Expose)(),
71
94
  __metadata("design:type", Number)
@@ -76,7 +99,7 @@ __decorate([
76
99
  ], OrderForSignRO.prototype, "utcDate", void 0);
77
100
  __decorate([
78
101
  (0, class_transformer_1.Expose)(),
79
- (0, class_transformer_1.Type)(() => Participant),
102
+ (0, class_transformer_1.Type)(() => OrderParticipant),
80
103
  __metadata("design:type", Array)
81
104
  ], OrderForSignRO.prototype, "participants", void 0);
82
105
  __decorate([
@@ -1,4 +1,4 @@
1
- declare class Child {
1
+ declare class Minor {
2
2
  name: string;
3
3
  surname: string;
4
4
  birthday: string;
@@ -10,10 +10,13 @@ export declare class SignOrderDTO {
10
10
  emails: string[];
11
11
  signBase64: string;
12
12
  isParticipant: boolean;
13
+ existingParticipantId: number;
13
14
  name: string;
14
15
  surname: string;
16
+ sendAds: boolean;
15
17
  email: string;
16
18
  phone: string;
17
- children: Child[];
19
+ existingChilds: number[];
20
+ childs: Minor[];
18
21
  }
19
22
  export {};