@escapenavigator/types 1.6.94 → 1.6.96

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 (36) hide show
  1. package/dist/client/client-form.dto.d.ts +4 -1
  2. package/dist/client/client-form.dto.js +22 -9
  3. package/dist/client/client.ro.d.ts +3 -0
  4. package/dist/client/client.ro.js +9 -0
  5. package/dist/client/create-client-from-widget.dto.d.ts +1 -0
  6. package/dist/client/create-client-from-widget.dto.js +5 -0
  7. package/dist/client/emun/client-type.enum.d.ts +4 -0
  8. package/dist/client/emun/client-type.enum.js +8 -0
  9. package/dist/constants/all-languages-by-namespace.d.ts +3 -0
  10. package/dist/constants/all-languages-by-namespace.js +29 -0
  11. package/dist/constants/uploading/upload-order-bookeo-rows.js +1 -1
  12. package/dist/openapi/orders/openapi-order-for-order-service.ro.d.ts +14 -2
  13. package/dist/openapi/orders/openapi-order-for-order-service.ro.js +36 -2
  14. package/dist/order/order.ro.d.ts +11 -8
  15. package/dist/order/order.ro.js +35 -29
  16. package/dist/order/waivers/order-participants.ro.d.ts +21 -0
  17. package/dist/order/waivers/order-participants.ro.js +74 -0
  18. package/dist/order/waivers/order-to-sign.ro.d.ts +9 -3
  19. package/dist/order/waivers/order-to-sign.ro.js +20 -5
  20. package/dist/order/waivers/sign-order.dto.d.ts +3 -0
  21. package/dist/order/waivers/sign-order.dto.js +20 -0
  22. package/dist/profile/admin-profile.ro.d.ts +2 -0
  23. package/dist/profile/admin-profile.ro.js +4 -0
  24. package/dist/profile/create-profile.dto.d.ts +2 -0
  25. package/dist/profile/create-profile.dto.js +5 -0
  26. package/dist/profile/enum/profile-tag.enum.d.ts +4 -0
  27. package/dist/profile/enum/profile-tag.enum.js +8 -0
  28. package/dist/profile/query-admin-profile.dto.d.ts +2 -0
  29. package/dist/profile/query-admin-profile.dto.js +4 -0
  30. package/dist/shared/ins-minor.js +1 -1
  31. package/dist/tsconfig.build.tsbuildinfo +1 -1
  32. package/dist/widget/enum/widget-booking-filed.enum.d.ts +2 -0
  33. package/dist/widget/enum/widget-booking-filed.enum.js +2 -0
  34. package/package.json +2 -2
  35. package/dist/order/update-participants.dto.d.ts +0 -10
  36. package/dist/order/update-participants.dto.js +0 -50
@@ -69,26 +69,46 @@ __decorate([
69
69
  __metadata("design:type", Boolean)
70
70
  ], SignOrderDTO.prototype, "isParticipant", void 0);
71
71
  __decorate([
72
+ (0, class_validator_1.IsOptional)(),
73
+ (0, class_transformer_1.Expose)(),
74
+ __metadata("design:type", Number)
75
+ ], SignOrderDTO.prototype, "existingParticipantId", void 0);
76
+ __decorate([
77
+ (0, class_validator_1.ValidateIf)(({ existingParticipantId }) => !existingParticipantId),
72
78
  (0, is_not_blank_1.IsNotBlank)(),
73
79
  (0, class_transformer_1.Expose)(),
74
80
  __metadata("design:type", String)
75
81
  ], SignOrderDTO.prototype, "name", void 0);
76
82
  __decorate([
83
+ (0, class_validator_1.ValidateIf)(({ existingParticipantId }) => !existingParticipantId),
77
84
  (0, is_not_blank_1.IsNotBlank)(),
78
85
  (0, class_transformer_1.Expose)(),
79
86
  __metadata("design:type", String)
80
87
  ], SignOrderDTO.prototype, "surname", void 0);
81
88
  __decorate([
89
+ (0, class_validator_1.IsBoolean)(),
90
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
91
+ (0, class_transformer_1.Expose)(),
92
+ __metadata("design:type", Boolean)
93
+ ], SignOrderDTO.prototype, "sendAds", void 0);
94
+ __decorate([
95
+ (0, class_validator_1.ValidateIf)(({ existingParticipantId }) => !existingParticipantId),
82
96
  (0, class_validator_1.IsEmail)(),
83
97
  (0, is_uniq_email_1.IsEmailUnique)(),
84
98
  (0, class_transformer_1.Expose)(),
85
99
  __metadata("design:type", String)
86
100
  ], SignOrderDTO.prototype, "email", void 0);
87
101
  __decorate([
102
+ (0, class_validator_1.ValidateIf)(({ existingParticipantId }) => !existingParticipantId),
88
103
  (0, is_not_blank_1.IsNotBlank)(),
89
104
  (0, class_transformer_1.Expose)(),
90
105
  __metadata("design:type", String)
91
106
  ], SignOrderDTO.prototype, "phone", void 0);
107
+ __decorate([
108
+ (0, class_validator_1.IsArray)(),
109
+ (0, class_transformer_1.Expose)(),
110
+ __metadata("design:type", Array)
111
+ ], SignOrderDTO.prototype, "existingChilds", void 0);
92
112
  __decorate([
93
113
  (0, class_validator_1.IsArray)(),
94
114
  (0, class_transformer_1.Expose)(),
@@ -7,6 +7,7 @@ import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum
7
7
  import { ProfileStatusEnum } from './enum/profile-step.enum';
8
8
  import { ProfileSubscriptionTypeEnum } from './enum/profile-subscription-type.enum';
9
9
  import { ProfileSubscriptionEnum } from './enum/profile-subscription.enum';
10
+ import { ProfileTagEnum } from './enum/profile-tag.enum';
10
11
  declare class History {
11
12
  createdAt: Date;
12
13
  row: string;
@@ -30,6 +31,7 @@ export declare class AdminProfileRO {
30
31
  legalTitle: string;
31
32
  phoneForCustomers: string;
32
33
  logo: string;
34
+ tags: ProfileTagEnum[];
33
35
  nowEscape: boolean;
34
36
  mainEmail: string;
35
37
  secondaryEmails: string[];
@@ -106,6 +106,10 @@ __decorate([
106
106
  (0, class_transformer_1.Expose)(),
107
107
  __metadata("design:type", String)
108
108
  ], AdminProfileRO.prototype, "logo", void 0);
109
+ __decorate([
110
+ (0, class_transformer_1.Expose)(),
111
+ __metadata("design:type", Array)
112
+ ], AdminProfileRO.prototype, "tags", void 0);
109
113
  __decorate([
110
114
  (0, class_transformer_1.Expose)(),
111
115
  __metadata("design:type", Boolean)
@@ -3,6 +3,7 @@ import { Languages } from '../shared/enum/languages.enum';
3
3
  import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
4
4
  import { PartnerProgramEnum } from './enum/partner-program.enum';
5
5
  import { ProfileStatusEnum } from './enum/profile-step.enum';
6
+ import { ProfileTagEnum } from './enum/profile-tag.enum';
6
7
  export declare class CreateProfileDto {
7
8
  country: CountriesEnum;
8
9
  crmVerification: CrmVerificationEnum;
@@ -16,6 +17,7 @@ export declare class CreateProfileDto {
16
17
  status: ProfileStatusEnum;
17
18
  mainEmail: string;
18
19
  secondaryEmails: string[];
20
+ tags: ProfileTagEnum[];
19
21
  legalTitle: string;
20
22
  instagram?: string;
21
23
  facebook?: string;
@@ -84,6 +84,11 @@ __decorate([
84
84
  (0, class_transformer_1.Expose)(),
85
85
  __metadata("design:type", Array)
86
86
  ], CreateProfileDto.prototype, "secondaryEmails", void 0);
87
+ __decorate([
88
+ (0, class_validator_1.IsArray)(),
89
+ (0, class_transformer_1.Expose)(),
90
+ __metadata("design:type", Array)
91
+ ], CreateProfileDto.prototype, "tags", void 0);
87
92
  __decorate([
88
93
  (0, class_validator_1.IsOptional)(),
89
94
  (0, class_transformer_1.Expose)(),
@@ -0,0 +1,4 @@
1
+ export declare enum ProfileTagEnum {
2
+ REJECT = "reject",
3
+ PRESENTATION = "presentation"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProfileTagEnum = void 0;
4
+ var ProfileTagEnum;
5
+ (function (ProfileTagEnum) {
6
+ ProfileTagEnum["REJECT"] = "reject";
7
+ ProfileTagEnum["PRESENTATION"] = "presentation";
8
+ })(ProfileTagEnum = exports.ProfileTagEnum || (exports.ProfileTagEnum = {}));
@@ -4,7 +4,9 @@ import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum
4
4
  import { ProfileStatusEnum } from './enum/profile-step.enum';
5
5
  import { ProfileSubscriptionTypeEnum } from './enum/profile-subscription-type.enum';
6
6
  import { ProfileSubscriptionEnum } from './enum/profile-subscription.enum';
7
+ import { ProfileTagEnum } from './enum/profile-tag.enum';
7
8
  export declare class QueryAdminProfileDto {
9
+ tags?: ProfileTagEnum[];
8
10
  partnerProgram?: PartnerProgramEnum;
9
11
  subscriptionStatus?: ProfileSubscriptionEnum[];
10
12
  subscriptionType?: ProfileSubscriptionTypeEnum;
@@ -18,6 +18,10 @@ const profile_integration_type_enum_1 = require("./enum/profile-integration-type
18
18
  const profile_subscription_type_enum_1 = require("./enum/profile-subscription-type.enum");
19
19
  class QueryAdminProfileDto {
20
20
  }
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", Array)
24
+ ], QueryAdminProfileDto.prototype, "tags", void 0);
21
25
  __decorate([
22
26
  (0, class_transformer_1.Expose)(),
23
27
  __metadata("design:type", String)
@@ -23,7 +23,7 @@ function IsMinor(validationOptions) {
23
23
  const monthDifference = today.getMonth() - birthday.getMonth();
24
24
  const dayDifference = today.getDate() - birthday.getDate();
25
25
  if (monthDifference < 0 || (monthDifference === 0 && dayDifference < 0)) {
26
- return age - 1 >= 18;
26
+ return age - 1 < 18;
27
27
  }
28
28
  return age < 18;
29
29
  },