@escapenavigator/types 1.10.100 → 1.10.102

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 (133) hide show
  1. package/dist/certificate/certificate.ro.d.ts +7 -0
  2. package/dist/certificate/certificate.ro.js +25 -0
  3. package/dist/certificate/create-certificate.dto.d.ts +7 -0
  4. package/dist/certificate/create-certificate.dto.js +44 -0
  5. package/dist/certificate/enum/certificate-template-discount-type.enum.d.ts +4 -0
  6. package/dist/certificate/enum/certificate-template-discount-type.enum.js +8 -0
  7. package/dist/certificate-sale/certificate-sale-resend.dto.d.ts +1 -1
  8. package/dist/certificate-sale/certificate-sale.ro.d.ts +6 -1
  9. package/dist/certificate-sale/certificate-sale.ro.js +22 -2
  10. package/dist/client/client-form.dto.d.ts +1 -0
  11. package/dist/client/client-form.dto.js +5 -0
  12. package/dist/client/client.ro.d.ts +2 -0
  13. package/dist/client/client.ro.js +8 -0
  14. package/dist/client/create-client-from-widget.dto.d.ts +1 -0
  15. package/dist/client/create-client-from-widget.dto.js +5 -0
  16. package/dist/forms/widget/certificate/widget-certificate-nominal-form.dto.d.ts +3 -0
  17. package/dist/forms/widget/certificate/widget-certificate-nominal-form.dto.js +44 -0
  18. package/dist/forms/widget/widget-client-form.dto.d.ts +1 -0
  19. package/dist/forms/widget/widget-client-form.dto.js +5 -0
  20. package/dist/log/log-title.enum.d.ts +2 -0
  21. package/dist/log/log-title.enum.js +2 -0
  22. package/dist/openapi/certificates/openapi-certificate-sale.ro.d.ts +3 -1
  23. package/dist/openapi/certificates/openapi-certificate-sale.ro.js +10 -2
  24. package/dist/openapi/certificates/openapi-certificate-template.ro.d.ts +7 -0
  25. package/dist/openapi/certificates/openapi-certificate-template.ro.js +25 -0
  26. package/dist/openapi/orders/openapi-create-preorder.dto.d.ts +6 -1
  27. package/dist/openapi/orders/openapi-create-preorder.dto.js +27 -9
  28. package/dist/openapi/orders/openapi-order.ro.d.ts +2 -0
  29. package/dist/openapi/orders/openapi-order.ro.js +8 -0
  30. package/dist/openapi/orders/openapi-update-order-slot.dto.d.ts +6 -1
  31. package/dist/openapi/orders/openapi-update-order-slot.dto.js +27 -0
  32. package/dist/openapi/shared/openapi-questroom.ro.d.ts +17 -0
  33. package/dist/openapi/shared/openapi-questroom.ro.js +12 -0
  34. package/dist/openapi/slots/openapi-day-slots-with-nearest.ro.d.ts +5 -0
  35. package/dist/openapi/slots/openapi-day-slots-with-nearest.ro.js +41 -0
  36. package/dist/openapi/slots/openapi-slot-details.dto.d.ts +7 -0
  37. package/dist/openapi/slots/openapi-slot-details.dto.js +59 -0
  38. package/dist/openapi/slots/openapi-slot-enriched.ro.d.ts +11 -0
  39. package/dist/openapi/slots/openapi-slot-enriched.ro.js +85 -0
  40. package/dist/openapi/slots/openapi-slot-variation.ro.d.ts +14 -0
  41. package/dist/openapi/slots/openapi-slot-variation.ro.js +108 -0
  42. package/dist/openapi/slots/openapi-week-slots-with-nearest.ro.d.ts +5 -0
  43. package/dist/openapi/slots/openapi-week-slots-with-nearest.ro.js +38 -0
  44. package/dist/openapi/slots/openapi-widget-slot.ro.d.ts +9 -7
  45. package/dist/openapi/slots/openapi-widget-slot.ro.js +18 -29
  46. package/dist/order/create-order.dto.d.ts +7 -1
  47. package/dist/order/create-order.dto.js +35 -0
  48. package/dist/order/order.ro.d.ts +8 -1
  49. package/dist/order/order.ro.js +31 -3
  50. package/dist/order/update-order-slot.dto.d.ts +23 -1
  51. package/dist/order/update-order-slot.dto.js +45 -0
  52. package/dist/order/waivers/order-participants.ro.d.ts +1 -0
  53. package/dist/order/waivers/order-participants.ro.js +4 -0
  54. package/dist/order/waivers/order-to-sign.ro.d.ts +5 -0
  55. package/dist/order/waivers/order-to-sign.ro.js +17 -0
  56. package/dist/order/waivers/sign-order.dto.d.ts +6 -0
  57. package/dist/order/waivers/sign-order.dto.js +39 -1
  58. package/dist/profile/email/profile-email-card.ro.d.ts +1 -0
  59. package/dist/profile/email/profile-email-card.ro.js +4 -0
  60. package/dist/profile/enum/profile-sales-status.enum.d.ts +2 -0
  61. package/dist/profile/enum/profile-sales-status.enum.js +2 -0
  62. package/dist/profile/notification-chanel/create-notification-chanel.dto.js +2 -1
  63. package/dist/profile/notification-chanel/notification-chanel-type.enum.d.ts +3 -1
  64. package/dist/profile/notification-chanel/notification-chanel-type.enum.js +2 -0
  65. package/dist/profile/profile-sms/dto/get-sms-settings.dto.d.ts +4 -0
  66. package/dist/{slot-room-template/slot-room-template.ro.js → profile/profile-sms/dto/get-sms-settings.dto.js} +8 -8
  67. package/dist/profile/profile-sms/dto/query-order-sms-logs.dto.d.ts +5 -0
  68. package/dist/profile/profile-sms/dto/query-order-sms-logs.dto.js +29 -0
  69. package/dist/profile/profile-sms/dto/send-order-client-email.dto.d.ts +4 -0
  70. package/dist/profile/profile-sms/dto/send-order-client-email.dto.js +27 -0
  71. package/dist/profile/profile-sms/dto/send-order-client-sms.dto.d.ts +3 -0
  72. package/dist/profile/profile-sms/dto/send-order-client-sms.dto.js +22 -0
  73. package/dist/profile/profile-sms/dto/update-sms-settings.dto.d.ts +6 -0
  74. package/dist/{slot-room-template/update-slot-room-template.dto.js → profile/profile-sms/dto/update-sms-settings.dto.js} +11 -16
  75. package/dist/profile/profile-sms/profile-sms-recipient-type.enum.d.ts +4 -0
  76. package/dist/profile/profile-sms/profile-sms-recipient-type.enum.js +8 -0
  77. package/dist/profile/profile-sms/ro/profile-sms-log.ro.d.ts +10 -0
  78. package/dist/{slot-room-template/slot-room-template-element.js → profile/profile-sms/ro/profile-sms-log.ro.js} +14 -16
  79. package/dist/profile/profile-sms/ro/send-order-client-email.ro.d.ts +3 -0
  80. package/dist/profile/profile-sms/ro/send-order-client-email.ro.js +20 -0
  81. package/dist/profile/profile-sms/ro/sms-settings.ro.d.ts +7 -0
  82. package/dist/profile/profile-sms/ro/sms-settings.ro.js +33 -0
  83. package/dist/profile/profile-sms/sms-provider.enum.d.ts +4 -0
  84. package/dist/profile/profile-sms/sms-provider.enum.js +8 -0
  85. package/dist/profile/profile.ro.d.ts +1 -0
  86. package/dist/profile/profile.ro.js +4 -0
  87. package/dist/profile/update-current.dto.d.ts +1 -0
  88. package/dist/profile/update-current.dto.js +7 -0
  89. package/dist/profile/waiver/profile-waiver.ro.d.ts +5 -0
  90. package/dist/profile/waiver/profile-waiver.ro.js +16 -0
  91. package/dist/profile/waiver/update-waiver.dto.d.ts +4 -0
  92. package/dist/profile/waiver/update-waiver.dto.js +21 -0
  93. package/dist/profile/widget-customization/update-widget-customization.dto.js +0 -1
  94. package/dist/questroom/create-questroom.dto.d.ts +3 -0
  95. package/dist/questroom/create-questroom.dto.js +18 -0
  96. package/dist/questroom/questroom.ro.d.ts +10 -0
  97. package/dist/questroom/questroom.ro.js +16 -0
  98. package/dist/slot/change-template-slots-form.dto.d.ts +1 -0
  99. package/dist/slot/change-template-slots-form.dto.js +6 -0
  100. package/dist/slot/slot-autocomplite-form.dto.d.ts +1 -0
  101. package/dist/slot/slot-autocomplite-form.dto.js +6 -0
  102. package/dist/slot/slot-details.dto.d.ts +8 -0
  103. package/dist/slot/slot-details.dto.js +42 -0
  104. package/dist/slot/slot.ro.d.ts +29 -28
  105. package/dist/slot/update-slot.dto.d.ts +2 -0
  106. package/dist/slot/update-slot.dto.js +12 -0
  107. package/dist/slot-template/slot-template-element.d.ts +1 -0
  108. package/dist/slot-template/slot-template-element.js +4 -0
  109. package/dist/slot-template/slot-template-flex-rule.d.ts +9 -0
  110. package/dist/slot-template/slot-template-flex-rule.js +57 -0
  111. package/dist/slot-template/slot-template-history.ro.d.ts +2 -0
  112. package/dist/slot-template/slot-template-history.ro.js +4 -0
  113. package/dist/slot-template/slot-template-type.d.ts +1 -0
  114. package/dist/slot-template/slot-template-type.js +2 -0
  115. package/dist/slot-template/slot-template.ro.d.ts +6 -0
  116. package/dist/slot-template/slot-template.ro.js +19 -0
  117. package/dist/slot-template/update-slot-template.dto.d.ts +6 -0
  118. package/dist/slot-template/update-slot-template.dto.js +30 -0
  119. package/dist/tariff/create-tariff.dto.d.ts +3 -0
  120. package/dist/tariff/create-tariff.dto.js +18 -0
  121. package/dist/tariff/tariff.ro.d.ts +3 -0
  122. package/dist/tariff/tariff.ro.js +12 -0
  123. package/dist/tsconfig.build.tsbuildinfo +1 -1
  124. package/dist/user/current/update-current-user-notifications.dto.d.ts +1 -0
  125. package/dist/user/current/update-current-user-notifications.dto.js +5 -0
  126. package/package.json +2 -2
  127. package/dist/room/dto.d.ts +0 -26
  128. package/dist/room/dto.js +0 -130
  129. package/dist/room/ro.d.ts +0 -28
  130. package/dist/room/ro.js +0 -113
  131. package/dist/slot-room-template/slot-room-template-element.d.ts +0 -9
  132. package/dist/slot-room-template/slot-room-template.ro.d.ts +0 -5
  133. package/dist/slot-room-template/update-slot-room-template.dto.d.ts +0 -8
@@ -10,12 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateOrderDto = void 0;
13
+ /* eslint-disable max-classes-per-file */
13
14
  const class_transformer_1 = require("class-transformer");
14
15
  const class_validator_1 = require("class-validator");
15
16
  const languages_enum_1 = require("../shared/enum/languages.enum");
16
17
  class CreateOrderDto {
17
18
  }
18
19
  __decorate([
20
+ (0, class_validator_1.IsOptional)(),
19
21
  (0, class_validator_1.IsNumber)(),
20
22
  (0, class_transformer_1.Expose)(),
21
23
  __metadata("design:type", Number)
@@ -24,6 +26,33 @@ __decorate([
24
26
  (0, class_validator_1.IsNumber)(),
25
27
  (0, class_transformer_1.Expose)(),
26
28
  __metadata("design:type", Number)
29
+ ], CreateOrderDto.prototype, "questroomId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], CreateOrderDto.prototype, "date", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], CreateOrderDto.prototype, "start", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsNumber)(),
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", Number)
44
+ ], CreateOrderDto.prototype, "tariffId", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsNumber)(),
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", Number)
50
+ ], CreateOrderDto.prototype, "duration", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsNumber)(),
53
+ (0, class_validator_1.Min)(1),
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", Number)
27
56
  ], CreateOrderDto.prototype, "players", void 0);
28
57
  __decorate([
29
58
  (0, class_validator_1.IsOptional)(),
@@ -70,4 +99,10 @@ __decorate([
70
99
  (0, class_transformer_1.Expose)(),
71
100
  __metadata("design:type", String)
72
101
  ], CreateOrderDto.prototype, "comment", void 0);
102
+ __decorate([
103
+ (0, class_validator_1.IsOptional)(),
104
+ (0, class_validator_1.IsString)(),
105
+ (0, class_transformer_1.Expose)(),
106
+ __metadata("design:type", String)
107
+ ], CreateOrderDto.prototype, "variationHint", void 0);
73
108
  exports.CreateOrderDto = CreateOrderDto;
@@ -23,8 +23,11 @@ declare class Rule {
23
23
  cancelationAmount: number;
24
24
  }
25
25
  declare class Slot {
26
- expiration: string;
27
26
  old: boolean;
27
+ date: string;
28
+ start: string;
29
+ end: string;
30
+ tariffId: number;
28
31
  rule: Rule;
29
32
  }
30
33
  declare class Certificates extends RO {
@@ -56,6 +59,7 @@ declare class Participant {
56
59
  id: number;
57
60
  name: string;
58
61
  surname: string;
62
+ patronymic: string;
59
63
  }
60
64
  declare class OrderParticipant {
61
65
  id: number;
@@ -133,5 +137,8 @@ export declare class OrderRO extends RO {
133
137
  penalties: Penalties[];
134
138
  transactions: Transactions[];
135
139
  orderProducts: OrderProductRO[];
140
+ hold: string;
141
+ expiration: string;
142
+ variationHint?: string;
136
143
  }
137
144
  export {};
@@ -71,14 +71,26 @@ __decorate([
71
71
  ], Rule.prototype, "cancelationAmount", void 0);
72
72
  class Slot {
73
73
  }
74
+ __decorate([
75
+ (0, class_transformer_1.Expose)(),
76
+ __metadata("design:type", Boolean)
77
+ ], Slot.prototype, "old", void 0);
74
78
  __decorate([
75
79
  (0, class_transformer_1.Expose)(),
76
80
  __metadata("design:type", String)
77
- ], Slot.prototype, "expiration", void 0);
81
+ ], Slot.prototype, "date", void 0);
78
82
  __decorate([
79
83
  (0, class_transformer_1.Expose)(),
80
- __metadata("design:type", Boolean)
81
- ], Slot.prototype, "old", void 0);
84
+ __metadata("design:type", String)
85
+ ], Slot.prototype, "start", void 0);
86
+ __decorate([
87
+ (0, class_transformer_1.Expose)(),
88
+ __metadata("design:type", String)
89
+ ], Slot.prototype, "end", void 0);
90
+ __decorate([
91
+ (0, class_transformer_1.Expose)(),
92
+ __metadata("design:type", Number)
93
+ ], Slot.prototype, "tariffId", void 0);
82
94
  __decorate([
83
95
  (0, class_transformer_1.Expose)(),
84
96
  (0, class_transformer_1.Type)(() => Rule),
@@ -175,6 +187,10 @@ __decorate([
175
187
  (0, class_transformer_1.Expose)(),
176
188
  __metadata("design:type", String)
177
189
  ], Participant.prototype, "surname", void 0);
190
+ __decorate([
191
+ (0, class_transformer_1.Expose)(),
192
+ __metadata("design:type", String)
193
+ ], Participant.prototype, "patronymic", void 0);
178
194
  class OrderParticipant {
179
195
  }
180
196
  __decorate([
@@ -455,4 +471,16 @@ __decorate([
455
471
  (0, class_transformer_1.Type)(() => order_product_ro_1.OrderProductRO),
456
472
  __metadata("design:type", Array)
457
473
  ], OrderRO.prototype, "orderProducts", void 0);
474
+ __decorate([
475
+ (0, class_transformer_1.Expose)(),
476
+ __metadata("design:type", String)
477
+ ], OrderRO.prototype, "hold", void 0);
478
+ __decorate([
479
+ (0, class_transformer_1.Expose)(),
480
+ __metadata("design:type", String)
481
+ ], OrderRO.prototype, "expiration", void 0);
482
+ __decorate([
483
+ (0, class_transformer_1.Expose)(),
484
+ __metadata("design:type", String)
485
+ ], OrderRO.prototype, "variationHint", void 0);
458
486
  exports.OrderRO = OrderRO;
@@ -1,3 +1,25 @@
1
1
  export declare class UpdateOrderSlotDto {
2
- slotId: number;
2
+ slotId?: number;
3
+ questroomId: number;
4
+ date: string;
5
+ start: string;
6
+ tariffId: number;
7
+ duration?: number;
8
+ /**
9
+ * Optional new players amount to apply together with the slot change.
10
+ * When omitted, the existing order players value is preserved.
11
+ */
12
+ players?: number;
13
+ /**
14
+ * Optional new children amount to apply together with the slot change.
15
+ * When omitted, the existing order children value is preserved.
16
+ */
17
+ children?: number;
18
+ /**
19
+ * Free-form text describing the resolved variation/duration (e.g. the
20
+ * variation title for fix slots or `${duration} мин` for flex slots).
21
+ * Stored on the order so it can be rendered alongside the slot info
22
+ * without re-resolving the variation on the client.
23
+ */
24
+ variationHint?: string;
3
25
  }
@@ -15,8 +15,53 @@ const class_validator_1 = require("class-validator");
15
15
  class UpdateOrderSlotDto {
16
16
  }
17
17
  __decorate([
18
+ (0, class_validator_1.IsOptional)(),
18
19
  (0, class_validator_1.IsNumber)(),
19
20
  (0, class_transformer_1.Expose)(),
20
21
  __metadata("design:type", Number)
21
22
  ], UpdateOrderSlotDto.prototype, "slotId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsNumber)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", Number)
27
+ ], UpdateOrderSlotDto.prototype, "questroomId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], UpdateOrderSlotDto.prototype, "date", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], UpdateOrderSlotDto.prototype, "start", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsNumber)(),
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", Number)
42
+ ], UpdateOrderSlotDto.prototype, "tariffId", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsNumber)(),
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", Number)
48
+ ], UpdateOrderSlotDto.prototype, "duration", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsNumber)(),
52
+ (0, class_transformer_1.Expose)(),
53
+ __metadata("design:type", Number)
54
+ ], UpdateOrderSlotDto.prototype, "players", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsNumber)(),
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", Number)
60
+ ], UpdateOrderSlotDto.prototype, "children", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsString)(),
64
+ (0, class_transformer_1.Expose)(),
65
+ __metadata("design:type", String)
66
+ ], UpdateOrderSlotDto.prototype, "variationHint", void 0);
22
67
  exports.UpdateOrderSlotDto = UpdateOrderSlotDto;
@@ -5,6 +5,7 @@ declare class Client {
5
5
  id: number;
6
6
  name: string;
7
7
  surname: string;
8
+ patronymic: string;
8
9
  birthday: string;
9
10
  sendAds: boolean;
10
11
  }
@@ -32,6 +32,10 @@ __decorate([
32
32
  (0, class_transformer_1.Expose)(),
33
33
  __metadata("design:type", String)
34
34
  ], Client.prototype, "surname", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], Client.prototype, "patronymic", void 0);
35
39
  __decorate([
36
40
  (0, class_transformer_1.Expose)(),
37
41
  __metadata("design:type", String)
@@ -1,9 +1,11 @@
1
1
  import { ClientTypeEnum } from '../../client/emun/client-type.enum';
2
2
  import { QuestroomRow } from '../../openapi/shared/openapi-questroom.ro';
3
3
  import { Languages } from '../../shared/enum/languages.enum';
4
+ import { WidgetBookingFiledEnum } from '../../widget/enum/widget-booking-filed.enum';
4
5
  declare class Client {
5
6
  name: string;
6
7
  surname: string;
8
+ patronymic: string;
7
9
  email: string;
8
10
  phone: string;
9
11
  }
@@ -11,6 +13,7 @@ declare class Participant {
11
13
  clientType: ClientTypeEnum;
12
14
  name: string;
13
15
  surname: string;
16
+ patronymic: string;
14
17
  email: string;
15
18
  }
16
19
  declare class OrderParticipant {
@@ -22,8 +25,10 @@ export declare class OrderForSignRO extends QuestroomRow {
22
25
  code: string;
23
26
  profileId: number;
24
27
  language?: Languages;
28
+ isRu: boolean;
25
29
  canceledWithFine: boolean;
26
30
  needWaiver: boolean;
31
+ waiverFields: WidgetBookingFiledEnum[];
27
32
  players: number;
28
33
  children: number;
29
34
  utcDate: string;
@@ -25,6 +25,10 @@ __decorate([
25
25
  (0, class_transformer_1.Expose)(),
26
26
  __metadata("design:type", String)
27
27
  ], Client.prototype, "surname", void 0);
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], Client.prototype, "patronymic", void 0);
28
32
  __decorate([
29
33
  (0, class_transformer_1.Expose)(),
30
34
  __metadata("design:type", String)
@@ -48,6 +52,11 @@ __decorate([
48
52
  (0, class_transformer_1.Transform)(({ value }) => `${value.slice(0, 1)}.`),
49
53
  __metadata("design:type", String)
50
54
  ], Participant.prototype, "surname", void 0);
55
+ __decorate([
56
+ (0, class_transformer_1.Expose)(),
57
+ (0, class_transformer_1.Transform)(({ value }) => (value ? `${value.slice(0, 1)}.` : '')),
58
+ __metadata("design:type", String)
59
+ ], Participant.prototype, "patronymic", void 0);
51
60
  __decorate([
52
61
  (0, class_transformer_1.Expose)(),
53
62
  __metadata("design:type", String)
@@ -81,6 +90,10 @@ __decorate([
81
90
  (0, class_transformer_1.Expose)(),
82
91
  __metadata("design:type", String)
83
92
  ], OrderForSignRO.prototype, "language", void 0);
93
+ __decorate([
94
+ (0, class_transformer_1.Expose)(),
95
+ __metadata("design:type", Boolean)
96
+ ], OrderForSignRO.prototype, "isRu", void 0);
84
97
  __decorate([
85
98
  (0, class_transformer_1.Expose)(),
86
99
  __metadata("design:type", Boolean)
@@ -89,6 +102,10 @@ __decorate([
89
102
  (0, class_transformer_1.Expose)(),
90
103
  __metadata("design:type", Boolean)
91
104
  ], OrderForSignRO.prototype, "needWaiver", void 0);
105
+ __decorate([
106
+ (0, class_transformer_1.Expose)(),
107
+ __metadata("design:type", Array)
108
+ ], OrderForSignRO.prototype, "waiverFields", void 0);
92
109
  __decorate([
93
110
  (0, class_transformer_1.Expose)(),
94
111
  __metadata("design:type", Number)
@@ -1,3 +1,4 @@
1
+ import { WidgetBookingFiledEnum } from '../../widget/enum/widget-booking-filed.enum';
1
2
  declare class Minor {
2
3
  name: string;
3
4
  surname: string;
@@ -11,11 +12,16 @@ export declare class SignOrderDTO {
11
12
  signBase64: string;
12
13
  isParticipant: boolean;
13
14
  existingParticipantId: number;
15
+ waiverFields: WidgetBookingFiledEnum[];
14
16
  name: string;
15
17
  surname: string;
18
+ patronymic: string;
19
+ isRu: boolean;
16
20
  sendAds: boolean;
17
21
  email: string;
18
22
  phone: string;
23
+ birthday: string;
24
+ address: string;
19
25
  existingChilds: number[];
20
26
  childs: Minor[];
21
27
  }
@@ -13,6 +13,7 @@ exports.SignOrderDTO = 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");
16
+ const widget_booking_filed_enum_1 = require("../../widget/enum/widget-booking-filed.enum");
16
17
  const ins_minor_1 = require("../../shared/ins-minor");
17
18
  const is_not_blank_1 = require("../../shared/is-not-blank");
18
19
  const is_uniq_email_1 = require("../../shared/is-uniq-email");
@@ -73,6 +74,13 @@ __decorate([
73
74
  (0, class_transformer_1.Expose)(),
74
75
  __metadata("design:type", Number)
75
76
  ], SignOrderDTO.prototype, "existingParticipantId", void 0);
77
+ __decorate([
78
+ (0, class_validator_1.IsArray)(),
79
+ (0, class_validator_1.IsEnum)(widget_booking_filed_enum_1.WidgetBookingFiledEnum, { each: true }),
80
+ (0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
81
+ (0, class_transformer_1.Expose)(),
82
+ __metadata("design:type", Array)
83
+ ], SignOrderDTO.prototype, "waiverFields", void 0);
76
84
  __decorate([
77
85
  (0, class_validator_1.ValidateIf)(({ existingParticipantId }) => !existingParticipantId),
78
86
  (0, is_not_blank_1.IsNotBlank)(),
@@ -85,6 +93,18 @@ __decorate([
85
93
  (0, class_transformer_1.Expose)(),
86
94
  __metadata("design:type", String)
87
95
  ], SignOrderDTO.prototype, "surname", void 0);
96
+ __decorate([
97
+ (0, class_validator_1.ValidateIf)(({ existingParticipantId, isRu }) => !existingParticipantId && !!isRu),
98
+ (0, is_not_blank_1.IsNotBlank)(),
99
+ (0, class_transformer_1.Expose)(),
100
+ __metadata("design:type", String)
101
+ ], SignOrderDTO.prototype, "patronymic", void 0);
102
+ __decorate([
103
+ (0, class_validator_1.IsBoolean)(),
104
+ (0, class_transformer_1.Transform)(({ value }) => !!value),
105
+ (0, class_transformer_1.Expose)(),
106
+ __metadata("design:type", Boolean)
107
+ ], SignOrderDTO.prototype, "isRu", void 0);
88
108
  __decorate([
89
109
  (0, class_validator_1.IsBoolean)(),
90
110
  (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
@@ -99,11 +119,29 @@ __decorate([
99
119
  __metadata("design:type", String)
100
120
  ], SignOrderDTO.prototype, "email", void 0);
101
121
  __decorate([
102
- (0, class_validator_1.ValidateIf)(({ existingParticipantId }) => !existingParticipantId),
122
+ (0, class_validator_1.ValidateIf)(({ existingParticipantId, waiverFields }) => !existingParticipantId &&
123
+ Array.isArray(waiverFields) &&
124
+ waiverFields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.PHONE)),
103
125
  (0, is_not_blank_1.IsNotBlank)(),
104
126
  (0, class_transformer_1.Expose)(),
105
127
  __metadata("design:type", String)
106
128
  ], SignOrderDTO.prototype, "phone", void 0);
129
+ __decorate([
130
+ (0, class_validator_1.ValidateIf)(({ existingParticipantId, waiverFields }) => !existingParticipantId &&
131
+ Array.isArray(waiverFields) &&
132
+ waiverFields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.BIRTHDAY)),
133
+ (0, is_not_blank_1.IsNotBlank)(),
134
+ (0, class_transformer_1.Expose)(),
135
+ __metadata("design:type", String)
136
+ ], SignOrderDTO.prototype, "birthday", void 0);
137
+ __decorate([
138
+ (0, class_validator_1.ValidateIf)(({ existingParticipantId, waiverFields }) => !existingParticipantId &&
139
+ Array.isArray(waiverFields) &&
140
+ waiverFields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
141
+ (0, is_not_blank_1.IsNotBlank)(),
142
+ (0, class_transformer_1.Expose)(),
143
+ __metadata("design:type", String)
144
+ ], SignOrderDTO.prototype, "address", void 0);
107
145
  __decorate([
108
146
  (0, class_validator_1.IsArray)(),
109
147
  (0, class_transformer_1.Expose)(),
@@ -11,4 +11,5 @@ export declare class ProfileEmailCardRO {
11
11
  orderEmailId: number;
12
12
  orderId: number;
13
13
  certificateId: number;
14
+ recipientType: 'client' | 'user';
14
15
  }
@@ -58,4 +58,8 @@ __decorate([
58
58
  (0, class_transformer_1.Expose)(),
59
59
  __metadata("design:type", Number)
60
60
  ], ProfileEmailCardRO.prototype, "certificateId", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", String)
64
+ ], ProfileEmailCardRO.prototype, "recipientType", void 0);
61
65
  exports.ProfileEmailCardRO = ProfileEmailCardRO;
@@ -3,6 +3,8 @@ export declare enum ProfileSalesStatus {
3
3
  NO_ANSWER = "no_answer",
4
4
  NO_CEO = "no_ceo",
5
5
  FOLLOW_UP = "follow_up",
6
+ FOLOW_UP_SM = "folow_up_sm",
7
+ FOLOW_UP_CALL = "folow_up_call",
6
8
  DEMO = "demo",
7
9
  THINKING = "thinking",
8
10
  ONBOARDING = "onboarding",
@@ -7,6 +7,8 @@ var ProfileSalesStatus;
7
7
  ProfileSalesStatus["NO_ANSWER"] = "no_answer";
8
8
  ProfileSalesStatus["NO_CEO"] = "no_ceo";
9
9
  ProfileSalesStatus["FOLLOW_UP"] = "follow_up";
10
+ ProfileSalesStatus["FOLOW_UP_SM"] = "folow_up_sm";
11
+ ProfileSalesStatus["FOLOW_UP_CALL"] = "folow_up_call";
10
12
  ProfileSalesStatus["DEMO"] = "demo";
11
13
  ProfileSalesStatus["THINKING"] = "thinking";
12
14
  ProfileSalesStatus["ONBOARDING"] = "onboarding";
@@ -27,7 +27,8 @@ __decorate([
27
27
  __metadata("design:type", Number)
28
28
  ], CreateNotificationChanelDto.prototype, "userId", void 0);
29
29
  __decorate([
30
- (0, class_validator_1.ValidateIf)(({ type }) => type !== notification_chanel_type_enum_1.NotificationChanelTypeEnum.CLIENT),
30
+ (0, class_validator_1.ValidateIf)(({ type }) => type !== notification_chanel_type_enum_1.NotificationChanelTypeEnum.CLIENT
31
+ && type !== notification_chanel_type_enum_1.NotificationChanelTypeEnum.CLIENT_SMS),
31
32
  (0, is_not_blank_1.IsNotBlank)(),
32
33
  (0, class_transformer_1.Expose)(),
33
34
  __metadata("design:type", String)
@@ -3,5 +3,7 @@ export declare enum NotificationChanelTypeEnum {
3
3
  DISCORD = "discord",
4
4
  WEBHOOK = "webhook",
5
5
  SLACK = "slack",
6
- CLIENT = "client"
6
+ CLIENT = "client",
7
+ CLIENT_SMS = "client-sms",
8
+ SMS = "sms"
7
9
  }
@@ -8,4 +8,6 @@ var NotificationChanelTypeEnum;
8
8
  NotificationChanelTypeEnum["WEBHOOK"] = "webhook";
9
9
  NotificationChanelTypeEnum["SLACK"] = "slack";
10
10
  NotificationChanelTypeEnum["CLIENT"] = "client";
11
+ NotificationChanelTypeEnum["CLIENT_SMS"] = "client-sms";
12
+ NotificationChanelTypeEnum["SMS"] = "sms";
11
13
  })(NotificationChanelTypeEnum = exports.NotificationChanelTypeEnum || (exports.NotificationChanelTypeEnum = {}));
@@ -0,0 +1,4 @@
1
+ import { SmsProviderEnum } from '../sms-provider.enum';
2
+ export declare class GetSmsSettingsDto {
3
+ provider: SmsProviderEnum;
4
+ }
@@ -9,15 +9,15 @@ 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.SlotRoomTemplateRO = void 0;
12
+ exports.GetSmsSettingsDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const ro_class_1 = require("../shared/ro-class");
15
- const slot_room_template_element_1 = require("./slot-room-template-element");
16
- class SlotRoomTemplateRO extends ro_class_1.RO {
14
+ const class_validator_1 = require("class-validator");
15
+ const sms_provider_enum_1 = require("../sms-provider.enum");
16
+ class GetSmsSettingsDto {
17
17
  }
18
18
  __decorate([
19
19
  (0, class_transformer_1.Expose)(),
20
- (0, class_transformer_1.Type)(() => slot_room_template_element_1.SlotRoomTemplateElement),
21
- __metadata("design:type", Array)
22
- ], SlotRoomTemplateRO.prototype, "slots", void 0);
23
- exports.SlotRoomTemplateRO = SlotRoomTemplateRO;
20
+ (0, class_validator_1.IsEnum)(sms_provider_enum_1.SmsProviderEnum),
21
+ __metadata("design:type", String)
22
+ ], GetSmsSettingsDto.prototype, "provider", void 0);
23
+ exports.GetSmsSettingsDto = GetSmsSettingsDto;
@@ -0,0 +1,5 @@
1
+ import { ProfileSmsRecipientTypeEnum } from '../profile-sms-recipient-type.enum';
2
+ export declare class QueryOrderSmsLogsDto {
3
+ limit?: number;
4
+ recipientType?: ProfileSmsRecipientTypeEnum;
5
+ }
@@ -0,0 +1,29 @@
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.QueryOrderSmsLogsDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const profile_sms_recipient_type_enum_1 = require("../profile-sms-recipient-type.enum");
16
+ class QueryOrderSmsLogsDto {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ __metadata("design:type", Number)
22
+ ], QueryOrderSmsLogsDto.prototype, "limit", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsEnum)(profile_sms_recipient_type_enum_1.ProfileSmsRecipientTypeEnum),
27
+ __metadata("design:type", String)
28
+ ], QueryOrderSmsLogsDto.prototype, "recipientType", void 0);
29
+ exports.QueryOrderSmsLogsDto = QueryOrderSmsLogsDto;
@@ -0,0 +1,4 @@
1
+ export declare class SendOrderClientEmailDto {
2
+ text: string;
3
+ subject: string;
4
+ }
@@ -0,0 +1,27 @@
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.SendOrderClientEmailDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const is_not_blank_1 = require("../../../shared/is-not-blank");
15
+ class SendOrderClientEmailDto {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ __metadata("design:type", String)
21
+ ], SendOrderClientEmailDto.prototype, "text", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ (0, is_not_blank_1.IsNotBlank)(),
25
+ __metadata("design:type", String)
26
+ ], SendOrderClientEmailDto.prototype, "subject", void 0);
27
+ exports.SendOrderClientEmailDto = SendOrderClientEmailDto;
@@ -0,0 +1,3 @@
1
+ export declare class SendOrderClientSmsDto {
2
+ text: string;
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.SendOrderClientSmsDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const is_not_blank_1 = require("../../../shared/is-not-blank");
15
+ class SendOrderClientSmsDto {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ __metadata("design:type", String)
21
+ ], SendOrderClientSmsDto.prototype, "text", void 0);
22
+ exports.SendOrderClientSmsDto = SendOrderClientSmsDto;
@@ -0,0 +1,6 @@
1
+ import { SmsProviderEnum } from '../sms-provider.enum';
2
+ export declare class UpdateSmsSettingsDto {
3
+ provider: SmsProviderEnum;
4
+ token?: string | null;
5
+ senderId?: string | null;
6
+ }