@escapenavigator/types 1.10.11 → 1.10.13

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 (64) hide show
  1. package/dist/client/client.ro.d.ts +8 -0
  2. package/dist/client/client.ro.js +23 -0
  3. package/dist/client/create-client.dto.d.ts +1 -0
  4. package/dist/client/create-client.dto.js +5 -0
  5. package/dist/client/query-client.dto.d.ts +1 -0
  6. package/dist/client/query-client.dto.js +5 -0
  7. package/dist/openapi/certificates/openapi-create-certificate-sale.dto.js +6 -2
  8. package/dist/openapi/orders/openapi-order.ro.d.ts +1 -0
  9. package/dist/openapi/orders/openapi-order.ro.js +4 -0
  10. package/dist/openapi/shared/openapi-questroom.ro.d.ts +3 -2
  11. package/dist/openapi/shared/openapi-questroom.ro.js +3 -2
  12. package/dist/order/order.ro.d.ts +6 -0
  13. package/dist/order/order.ro.js +19 -0
  14. package/dist/order-promocode/create-order-refund-promocode.dto.d.ts +5 -0
  15. package/dist/order-promocode/create-order-refund-promocode.dto.js +32 -0
  16. package/dist/order-upselling/create-order-upselling.dto.d.ts +9 -7
  17. package/dist/order-upselling/create-order-upselling.dto.js +24 -0
  18. package/dist/profile/action/create-profile-action.dto.d.ts +9 -3
  19. package/dist/profile/action/create-profile-action.dto.js +41 -8
  20. package/dist/profile/action/update-profile-action.dto.d.ts +10 -0
  21. package/dist/profile/action/update-profile-action.dto.js +59 -0
  22. package/dist/profile/admin-dashboard-profile.ro.d.ts +25 -0
  23. package/dist/profile/admin-dashboard-profile.ro.js +86 -0
  24. package/dist/profile/admin-profile.ro.d.ts +2 -2
  25. package/dist/profile/admin-profile.ro.js +5 -6
  26. package/dist/profile/contacts/all-profile-contacst.ro.d.ts +6 -0
  27. package/dist/profile/contacts/all-profile-contacst.ro.js +29 -0
  28. package/dist/profile/create-profile.dto.d.ts +2 -0
  29. package/dist/profile/create-profile.dto.js +6 -0
  30. package/dist/profile/enum/profile-sales-status.enum.d.ts +13 -0
  31. package/dist/profile/enum/profile-sales-status.enum.js +17 -0
  32. package/dist/profile/query-admin-profile.dto.d.ts +3 -0
  33. package/dist/profile/query-admin-profile.dto.js +8 -0
  34. package/dist/promocode/promocode.ro.d.ts +1 -0
  35. package/dist/promocode/promocode.ro.js +4 -0
  36. package/dist/questroom/create-questroom.dto.d.ts +2 -1
  37. package/dist/questroom/create-questroom.dto.js +3 -2
  38. package/dist/questroom/enum/questroom-confirm-type.enum.d.ts +5 -0
  39. package/dist/questroom/enum/questroom-confirm-type.enum.js +9 -0
  40. package/dist/questroom/questroom.ro.d.ts +2 -1
  41. package/dist/questroom/questroom.ro.js +3 -2
  42. package/dist/role/create-role.dto.d.ts +1 -0
  43. package/dist/role/create-role.dto.js +6 -0
  44. package/dist/role/role.ro.d.ts +1 -0
  45. package/dist/role/role.ro.js +4 -0
  46. package/dist/shared/is-not-zero.d.ts +2 -0
  47. package/dist/shared/is-not-zero.js +23 -0
  48. package/dist/slot-rule/create-rule.dto.d.ts +1 -0
  49. package/dist/slot-rule/create-rule.dto.js +6 -0
  50. package/dist/slot-rule/defailt-rule.d.ts +1 -0
  51. package/dist/slot-rule/defailt-rule.js +1 -0
  52. package/dist/slot-rule/rule.ro.d.ts +1 -0
  53. package/dist/slot-rule/rule.ro.js +4 -0
  54. package/dist/tsconfig.build.tsbuildinfo +1 -1
  55. package/dist/user/fine/create-user-fine.dto.d.ts +5 -0
  56. package/dist/user/fine/create-user-fine.dto.js +33 -0
  57. package/dist/user/fine/user-fine.ro.d.ts +13 -0
  58. package/dist/user/fine/user-fine.ro.js +49 -0
  59. package/dist/user/reports/user-monthly-report.ro.d.ts +1 -0
  60. package/dist/user/salary-schema/create-salary-schema.dto.d.ts +12 -0
  61. package/dist/user/salary-schema/create-salary-schema.dto.js +58 -0
  62. package/dist/user/salary-schema/salary-schema.ro.d.ts +12 -0
  63. package/dist/user/salary-schema/salary-schema.ro.js +50 -0
  64. package/package.json +2 -2
@@ -2,6 +2,12 @@ import { RO } from '../shared/ro-class';
2
2
  import { ClientTypeEnum } from './emun/client-type.enum';
3
3
  export declare class PrevData {
4
4
  }
5
+ declare class ParentRO extends RO {
6
+ name: string;
7
+ surname: string;
8
+ phone: string;
9
+ email: string;
10
+ }
5
11
  export declare class ClientRO extends RO {
6
12
  clientType: ClientTypeEnum;
7
13
  birthday: string;
@@ -21,4 +27,6 @@ export declare class ClientRO extends RO {
21
27
  certificatesCount: number;
22
28
  blockedDate?: string;
23
29
  previousData: PrevData[];
30
+ parent: ParentRO;
24
31
  }
32
+ export {};
@@ -20,6 +20,24 @@ PrevData = __decorate([
20
20
  (0, class_transformer_1.Expose)()
21
21
  ], PrevData);
22
22
  exports.PrevData = PrevData;
23
+ class ParentRO extends ro_class_1.RO {
24
+ }
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], ParentRO.prototype, "name", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], ParentRO.prototype, "surname", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], ParentRO.prototype, "phone", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], ParentRO.prototype, "email", void 0);
23
41
  class ClientRO extends ro_class_1.RO {
24
42
  }
25
43
  __decorate([
@@ -95,4 +113,9 @@ __decorate([
95
113
  (0, class_transformer_1.Type)(() => PrevData),
96
114
  __metadata("design:type", Array)
97
115
  ], ClientRO.prototype, "previousData", void 0);
116
+ __decorate([
117
+ (0, class_transformer_1.Expose)(),
118
+ (0, class_transformer_1.Type)(() => ParentRO),
119
+ __metadata("design:type", ParentRO)
120
+ ], ClientRO.prototype, "parent", void 0);
98
121
  exports.ClientRO = ClientRO;
@@ -1,4 +1,5 @@
1
1
  import { ClientFormDto } from './client-form.dto';
2
2
  export declare class CreateClientDto extends ClientFormDto {
3
3
  phone2: string;
4
+ parentId: number;
4
5
  }
@@ -20,4 +20,9 @@ __decorate([
20
20
  (0, class_transformer_1.Expose)(),
21
21
  __metadata("design:type", String)
22
22
  ], CreateClientDto.prototype, "phone2", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsOptional)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", Number)
27
+ ], CreateClientDto.prototype, "parentId", void 0);
23
28
  exports.CreateClientDto = CreateClientDto;
@@ -1,4 +1,5 @@
1
1
  export declare class QueryClientDto {
2
+ parentId?: number;
2
3
  lastGame?: [string, string];
3
4
  gamesCount?: string[];
4
5
  blockedClient?: 'blocked' | 'not_blocked';
@@ -14,6 +14,11 @@ const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
15
  class QueryClientDto {
16
16
  }
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], QueryClientDto.prototype, "parentId", void 0);
17
22
  __decorate([
18
23
  (0, class_validator_1.IsOptional)(),
19
24
  (0, class_transformer_1.Expose)(),
@@ -141,13 +141,17 @@ __decorate([
141
141
  __metadata("design:type", String)
142
142
  ], OpenapiCreateCertificateSaleDto.prototype, "deliveryMessage", void 0);
143
143
  __decorate([
144
- (0, class_validator_1.ValidateIf)((row) => !row.sendAfterPayment && row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
144
+ (0, class_validator_1.ValidateIf)((row) => !row.sendAfterPayment &&
145
+ !row.sameRecipient &&
146
+ row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
145
147
  (0, is_not_blank_1.IsNotBlank)(),
146
148
  (0, class_transformer_1.Expose)(),
147
149
  __metadata("design:type", String)
148
150
  ], OpenapiCreateCertificateSaleDto.prototype, "sendingDate", void 0);
149
151
  __decorate([
150
- (0, class_validator_1.ValidateIf)((row) => !row.sendAfterPayment && row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
152
+ (0, class_validator_1.ValidateIf)((row) => !row.sendAfterPayment &&
153
+ !row.sameRecipient &&
154
+ row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
151
155
  (0, class_validator_1.IsMilitaryTime)(),
152
156
  (0, class_transformer_1.Transform)(({ value }) => (value && (value === null || value === void 0 ? void 0 : value.length) === 4 && value[1] === ':' ? `0${value}` : value)),
153
157
  (0, class_validator_1.Length)(5),
@@ -27,6 +27,7 @@ declare class Rule {
27
27
  minHoursForFullFine: number;
28
28
  cancelationRule: QuestroomCancelationTypeEnum;
29
29
  cancelationAmount: number;
30
+ clientCanCancel: boolean;
30
31
  }
31
32
  declare class Slot {
32
33
  id: number;
@@ -82,6 +82,10 @@ __decorate([
82
82
  (0, class_transformer_1.Expose)(),
83
83
  __metadata("design:type", Number)
84
84
  ], Rule.prototype, "cancelationAmount", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Expose)(),
87
+ __metadata("design:type", Boolean)
88
+ ], Rule.prototype, "clientCanCancel", void 0);
85
89
  class Slot {
86
90
  }
87
91
  __decorate([
@@ -1,3 +1,4 @@
1
+ import { QuestroomConfirmTypeEnum } from '../../questroom/enum/questroom-confirm-type.enum';
1
2
  import { QuestroomTypeEnum } from '../../questroom/enum/questroom-type.enum';
2
3
  import { Languages } from '../../shared/enum/languages.enum';
3
4
  export declare const transformQuestroom: ({ value, language, }: {
@@ -20,7 +21,7 @@ export declare const transformQuestroom: ({ value, language, }: {
20
21
  photo: string;
21
22
  time: number;
22
23
  type: QuestroomTypeEnum;
23
- needConfirm: boolean;
24
+ confirmType: QuestroomConfirmTypeEnum;
24
25
  playersMax: number;
25
26
  disabledLanguages: Languages[];
26
27
  playersMin: number;
@@ -64,7 +65,7 @@ export declare class OpenapiQuestroomRO {
64
65
  photo: string;
65
66
  time: number;
66
67
  type: QuestroomTypeEnum;
67
- needConfirm: boolean;
68
+ confirmType: QuestroomConfirmTypeEnum;
68
69
  playersMax: number;
69
70
  disabledLanguages: Languages[];
70
71
  playersMin: number;
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.QuestroomRow = exports.OpenapiQuestroomRO = exports.transformQuestroom = void 0;
24
24
  /* eslint-disable max-classes-per-file */
25
25
  const class_transformer_1 = require("class-transformer");
26
+ const questroom_confirm_type_enum_1 = require("../../questroom/enum/questroom-confirm-type.enum");
26
27
  const questroom_type_enum_1 = require("../../questroom/enum/questroom-type.enum");
27
28
  const languages_enum_1 = require("../../shared/enum/languages.enum");
28
29
  const transformQuestroom = ({ value, language, }) => {
@@ -139,8 +140,8 @@ __decorate([
139
140
  ], OpenapiQuestroomRO.prototype, "type", void 0);
140
141
  __decorate([
141
142
  (0, class_transformer_1.Expose)(),
142
- __metadata("design:type", Boolean)
143
- ], OpenapiQuestroomRO.prototype, "needConfirm", void 0);
143
+ __metadata("design:type", String)
144
+ ], OpenapiQuestroomRO.prototype, "confirmType", void 0);
144
145
  __decorate([
145
146
  (0, class_transformer_1.Expose)(),
146
147
  __metadata("design:type", Number)
@@ -81,6 +81,11 @@ declare class CustomFiled {
81
81
  title: string;
82
82
  value: string;
83
83
  }
84
+ declare class ReturnedPromocode {
85
+ id: number;
86
+ code: string;
87
+ discount: number;
88
+ }
84
89
  export declare class OrderRO extends RO {
85
90
  utm: Utm;
86
91
  customFields: CustomFiled[];
@@ -88,6 +93,7 @@ export declare class OrderRO extends RO {
88
93
  updatedAt: Date;
89
94
  language?: Languages;
90
95
  slotDiscount: number;
96
+ returnedPromocode: ReturnedPromocode;
91
97
  tax: number;
92
98
  price: {
93
99
  [x: string]: number;
@@ -252,6 +252,20 @@ __decorate([
252
252
  (0, class_transformer_1.Expose)(),
253
253
  __metadata("design:type", String)
254
254
  ], CustomFiled.prototype, "value", void 0);
255
+ class ReturnedPromocode {
256
+ }
257
+ __decorate([
258
+ (0, class_transformer_1.Expose)(),
259
+ __metadata("design:type", Number)
260
+ ], ReturnedPromocode.prototype, "id", void 0);
261
+ __decorate([
262
+ (0, class_transformer_1.Expose)(),
263
+ __metadata("design:type", String)
264
+ ], ReturnedPromocode.prototype, "code", void 0);
265
+ __decorate([
266
+ (0, class_transformer_1.Expose)(),
267
+ __metadata("design:type", Number)
268
+ ], ReturnedPromocode.prototype, "discount", void 0);
255
269
  class OrderRO extends ro_class_1.RO {
256
270
  }
257
271
  __decorate([
@@ -280,6 +294,11 @@ __decorate([
280
294
  (0, class_transformer_1.Expose)(),
281
295
  __metadata("design:type", Number)
282
296
  ], OrderRO.prototype, "slotDiscount", void 0);
297
+ __decorate([
298
+ (0, class_transformer_1.Expose)(),
299
+ (0, class_transformer_1.Type)(() => ReturnedPromocode),
300
+ __metadata("design:type", ReturnedPromocode)
301
+ ], OrderRO.prototype, "returnedPromocode", void 0);
283
302
  __decorate([
284
303
  (0, class_transformer_1.Expose)(),
285
304
  __metadata("design:type", Number)
@@ -0,0 +1,5 @@
1
+ export declare class CreateOrderRefundPromocodeDto {
2
+ orderId: number;
3
+ code: string;
4
+ discount: 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.CreateOrderRefundPromocodeDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateOrderRefundPromocodeDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsNumber)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], CreateOrderRefundPromocodeDto.prototype, "orderId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], CreateOrderRefundPromocodeDto.prototype, "code", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", Number)
31
+ ], CreateOrderRefundPromocodeDto.prototype, "discount", void 0);
32
+ exports.CreateOrderRefundPromocodeDto = CreateOrderRefundPromocodeDto;
@@ -1,9 +1,11 @@
1
+ declare class Upselling {
2
+ id: number;
3
+ amount?: number;
4
+ byEachPerson?: boolean;
5
+ comment?: string;
6
+ title?: string;
7
+ }
1
8
  export declare class CreateOrderUpsellingDto {
2
- upsellings: Array<{
3
- id: number;
4
- amount?: number;
5
- byEachPerson?: boolean;
6
- comment?: string;
7
- title?: string;
8
- }>;
9
+ upsellings: Upselling[];
9
10
  }
11
+ export {};
@@ -10,14 +10,38 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateOrderUpsellingDto = 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");
16
+ class Upselling {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], Upselling.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", Number)
25
+ ], Upselling.prototype, "amount", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", Boolean)
29
+ ], Upselling.prototype, "byEachPerson", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], Upselling.prototype, "comment", void 0);
34
+ __decorate([
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], Upselling.prototype, "title", void 0);
15
38
  class CreateOrderUpsellingDto {
16
39
  }
17
40
  __decorate([
18
41
  (0, class_validator_1.IsArray)(),
19
42
  (0, class_validator_1.ArrayMinSize)(1),
20
43
  (0, class_transformer_1.Expose)(),
44
+ (0, class_transformer_1.Type)(() => Upselling),
21
45
  __metadata("design:type", Array)
22
46
  ], CreateOrderUpsellingDto.prototype, "upsellings", void 0);
23
47
  exports.CreateOrderUpsellingDto = CreateOrderUpsellingDto;
@@ -1,10 +1,16 @@
1
+ import { ProfileSalesStatus } from '../enum/profile-sales-status.enum';
1
2
  export declare class CreateProfileActionRO {
3
+ salesStatus: ProfileSalesStatus;
2
4
  type: string;
3
5
  description: string;
6
+ result: string;
7
+ done: boolean;
8
+ success: boolean;
4
9
  date: string;
5
10
  time: string;
6
11
  profileId: number;
7
- prevActionId: number;
8
- prevActionStatus: boolean;
9
- prevResult: string;
12
+ nextActionType: string;
13
+ nextActionDescription: string;
14
+ nextActionDate: string;
15
+ nextActionTime: string;
10
16
  }
@@ -13,8 +13,14 @@ exports.CreateProfileActionRO = void 0;
13
13
  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
+ const profile_sales_status_enum_1 = require("../enum/profile-sales-status.enum");
16
17
  class CreateProfileActionRO {
17
18
  }
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], CreateProfileActionRO.prototype, "salesStatus", void 0);
18
24
  __decorate([
19
25
  (0, is_not_blank_1.IsNotBlank)(),
20
26
  (0, class_transformer_1.Expose)(),
@@ -29,8 +35,25 @@ __decorate([
29
35
  (0, is_not_blank_1.IsNotBlank)(),
30
36
  (0, class_transformer_1.Expose)(),
31
37
  __metadata("design:type", String)
38
+ ], CreateProfileActionRO.prototype, "result", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsBoolean)(),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", Boolean)
43
+ ], CreateProfileActionRO.prototype, "done", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsBoolean)(),
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", Boolean)
48
+ ], CreateProfileActionRO.prototype, "success", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.ValidateIf)(({ done }) => !done),
51
+ (0, is_not_blank_1.IsNotBlank)(),
52
+ (0, class_transformer_1.Expose)(),
53
+ __metadata("design:type", String)
32
54
  ], CreateProfileActionRO.prototype, "date", void 0);
33
55
  __decorate([
56
+ (0, class_validator_1.ValidateIf)(({ done }) => !done),
34
57
  (0, is_not_blank_1.IsNotBlank)(),
35
58
  (0, class_validator_1.IsMilitaryTime)(),
36
59
  (0, class_transformer_1.Expose)(),
@@ -42,18 +65,28 @@ __decorate([
42
65
  __metadata("design:type", Number)
43
66
  ], CreateProfileActionRO.prototype, "profileId", void 0);
44
67
  __decorate([
45
- (0, class_validator_1.IsOptional)(),
68
+ (0, class_validator_1.ValidateIf)(({ success }) => success),
69
+ (0, is_not_blank_1.IsNotBlank)(),
46
70
  (0, class_transformer_1.Expose)(),
47
- __metadata("design:type", Number)
48
- ], CreateProfileActionRO.prototype, "prevActionId", void 0);
71
+ __metadata("design:type", String)
72
+ ], CreateProfileActionRO.prototype, "nextActionType", void 0);
49
73
  __decorate([
50
- (0, class_validator_1.IsOptional)(),
74
+ (0, class_validator_1.ValidateIf)(({ success }) => success),
75
+ (0, is_not_blank_1.IsNotBlank)(),
51
76
  (0, class_transformer_1.Expose)(),
52
- __metadata("design:type", Boolean)
53
- ], CreateProfileActionRO.prototype, "prevActionStatus", void 0);
77
+ __metadata("design:type", String)
78
+ ], CreateProfileActionRO.prototype, "nextActionDescription", void 0);
54
79
  __decorate([
55
- (0, class_validator_1.IsOptional)(),
80
+ (0, class_validator_1.ValidateIf)(({ success }) => success),
81
+ (0, is_not_blank_1.IsNotBlank)(),
82
+ (0, class_transformer_1.Expose)(),
83
+ __metadata("design:type", String)
84
+ ], CreateProfileActionRO.prototype, "nextActionDate", void 0);
85
+ __decorate([
86
+ (0, class_validator_1.ValidateIf)(({ success }) => success),
87
+ (0, is_not_blank_1.IsNotBlank)(),
88
+ (0, class_validator_1.IsMilitaryTime)(),
56
89
  (0, class_transformer_1.Expose)(),
57
90
  __metadata("design:type", String)
58
- ], CreateProfileActionRO.prototype, "prevResult", void 0);
91
+ ], CreateProfileActionRO.prototype, "nextActionTime", void 0);
59
92
  exports.CreateProfileActionRO = CreateProfileActionRO;
@@ -0,0 +1,10 @@
1
+ import { ProfileSalesStatus } from '../enum/profile-sales-status.enum';
2
+ export declare class UpdateProfileActionRO {
3
+ salesStatus: ProfileSalesStatus;
4
+ result: string;
5
+ success: boolean;
6
+ nextActionType: string;
7
+ nextActionDescription: string;
8
+ nextActionDate: string;
9
+ nextActionTime: string;
10
+ }
@@ -0,0 +1,59 @@
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.UpdateProfileActionRO = 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
+ const profile_sales_status_enum_1 = require("../enum/profile-sales-status.enum");
17
+ class UpdateProfileActionRO {
18
+ }
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], UpdateProfileActionRO.prototype, "salesStatus", void 0);
24
+ __decorate([
25
+ (0, is_not_blank_1.IsNotBlank)(),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], UpdateProfileActionRO.prototype, "result", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsBoolean)(),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", Boolean)
33
+ ], UpdateProfileActionRO.prototype, "success", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.ValidateIf)(({ success }) => success),
36
+ (0, is_not_blank_1.IsNotBlank)(),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], UpdateProfileActionRO.prototype, "nextActionType", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.ValidateIf)(({ success }) => success),
42
+ (0, is_not_blank_1.IsNotBlank)(),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], UpdateProfileActionRO.prototype, "nextActionDescription", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.ValidateIf)(({ success }) => success),
48
+ (0, is_not_blank_1.IsNotBlank)(),
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", String)
51
+ ], UpdateProfileActionRO.prototype, "nextActionDate", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.ValidateIf)(({ success }) => success),
54
+ (0, is_not_blank_1.IsNotBlank)(),
55
+ (0, class_validator_1.IsMilitaryTime)(),
56
+ (0, class_transformer_1.Expose)(),
57
+ __metadata("design:type", String)
58
+ ], UpdateProfileActionRO.prototype, "nextActionTime", void 0);
59
+ exports.UpdateProfileActionRO = UpdateProfileActionRO;
@@ -0,0 +1,25 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
+ import { ProfileActionRO } from './action/profile-action.dto';
3
+ import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
4
+ import { PartnerProgramEnum } from './enum/partner-program.enum';
5
+ import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
6
+ import { ProfileStatusEnum } from './enum/profile-step.enum';
7
+ import { ProfileSubscriptionTypeEnum } from './enum/profile-subscription-type.enum';
8
+ import { ProfileSubscriptionEnum } from './enum/profile-subscription.enum';
9
+ export declare class AdminDashboardProfileRO {
10
+ partnerProgram: PartnerProgramEnum;
11
+ subscriptionStatus: ProfileSubscriptionEnum;
12
+ crmVerification: CrmVerificationEnum;
13
+ subscriptionType: ProfileSubscriptionTypeEnum;
14
+ subscriptionCancelationDate: number;
15
+ updateDate: Date;
16
+ status: ProfileStatusEnum;
17
+ integrationType: ProfileIntegrationTypeEnum;
18
+ id: number;
19
+ title: string;
20
+ country: CountriesEnum;
21
+ questroomsCount: number;
22
+ lastVisit: Date;
23
+ crm: string;
24
+ actions: ProfileActionRO[];
25
+ }
@@ -0,0 +1,86 @@
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.AdminDashboardProfileRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const countries_enum_1 = require("../shared/enum/countries.enum");
16
+ const profile_action_dto_1 = require("./action/profile-action.dto");
17
+ const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
18
+ const partner_program_enum_1 = require("./enum/partner-program.enum");
19
+ const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
20
+ const profile_step_enum_1 = require("./enum/profile-step.enum");
21
+ const profile_subscription_type_enum_1 = require("./enum/profile-subscription-type.enum");
22
+ const profile_subscription_enum_1 = require("./enum/profile-subscription.enum");
23
+ class AdminDashboardProfileRO {
24
+ }
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], AdminDashboardProfileRO.prototype, "partnerProgram", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], AdminDashboardProfileRO.prototype, "subscriptionStatus", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], AdminDashboardProfileRO.prototype, "crmVerification", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], AdminDashboardProfileRO.prototype, "subscriptionType", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", Number)
44
+ ], AdminDashboardProfileRO.prototype, "subscriptionCancelationDate", void 0);
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", Date)
48
+ ], AdminDashboardProfileRO.prototype, "updateDate", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", String)
52
+ ], AdminDashboardProfileRO.prototype, "status", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", String)
56
+ ], AdminDashboardProfileRO.prototype, "integrationType", void 0);
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", Number)
60
+ ], AdminDashboardProfileRO.prototype, "id", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", String)
64
+ ], AdminDashboardProfileRO.prototype, "title", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", String)
68
+ ], AdminDashboardProfileRO.prototype, "country", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ __metadata("design:type", Number)
72
+ ], AdminDashboardProfileRO.prototype, "questroomsCount", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)(),
75
+ __metadata("design:type", Date)
76
+ ], AdminDashboardProfileRO.prototype, "lastVisit", void 0);
77
+ __decorate([
78
+ (0, class_transformer_1.Expose)(),
79
+ __metadata("design:type", String)
80
+ ], AdminDashboardProfileRO.prototype, "crm", void 0);
81
+ __decorate([
82
+ (0, class_transformer_1.Expose)(),
83
+ (0, class_transformer_1.Type)(() => profile_action_dto_1.ProfileActionRO),
84
+ __metadata("design:type", Array)
85
+ ], AdminDashboardProfileRO.prototype, "actions", void 0);
86
+ exports.AdminDashboardProfileRO = AdminDashboardProfileRO;
@@ -1,9 +1,9 @@
1
1
  import { CountriesEnum } from '../shared/enum/countries.enum';
2
2
  import { ProfileActionRO } from './action/profile-action.dto';
3
- import { ProfileContctRO } from './contacts/profile-contact.ro';
4
3
  import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
5
4
  import { PartnerProgramEnum } from './enum/partner-program.enum';
6
5
  import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
6
+ import { ProfileSalesStatus } from './enum/profile-sales-status.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';
@@ -16,6 +16,7 @@ declare class History {
16
16
  }
17
17
  export declare class AdminProfileRO {
18
18
  history: History[];
19
+ salesStatus: ProfileSalesStatus;
19
20
  partnerProgram: PartnerProgramEnum;
20
21
  lastEmailSendId: string;
21
22
  subscriptionStatus: ProfileSubscriptionEnum;
@@ -50,6 +51,5 @@ export declare class AdminProfileRO {
50
51
  lastVisit: Date;
51
52
  crm: string;
52
53
  actions: ProfileActionRO[];
53
- contacts: ProfileContctRO[];
54
54
  }
55
55
  export {};