@escapenavigator/types 1.6.9 → 1.6.11

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 (41) hide show
  1. package/dist/agregator/agregator-questroom.ro.d.ts +2 -0
  2. package/dist/agregator/dto/agregator-questrooms-search.dto.d.ts +1 -1
  3. package/dist/client/client-form.dto.d.ts +1 -0
  4. package/dist/client/client-form.dto.js +5 -0
  5. package/dist/emails/index.d.ts +1 -0
  6. package/dist/profile/admin-profile.ro.d.ts +32 -0
  7. package/dist/profile/admin-profile.ro.js +122 -0
  8. package/dist/profile/create-profile-message.dto.d.ts +4 -0
  9. package/dist/profile/create-profile-message.dto.js +28 -0
  10. package/dist/profile/email/create-profile-email.dto.d.ts +4 -0
  11. package/dist/profile/email/create-profile-email.dto.js +27 -0
  12. package/dist/profile/email/create-profile-sending.dto.d.ts +4 -0
  13. package/dist/profile/email/create-profile-sending.dto.js +27 -0
  14. package/dist/profile/email/profile-email.ro.d.ts +7 -0
  15. package/dist/profile/email/profile-email.ro.js +37 -0
  16. package/dist/profile/email/profile-letter.ro.d.ts +7 -0
  17. package/dist/profile/email/profile-letter.ro.js +35 -0
  18. package/dist/profile/enum/profile-step.enum.d.ts +5 -1
  19. package/dist/profile/enum/profile-step.enum.js +6 -0
  20. package/dist/profile/enum/profile-subscription.enum.d.ts +10 -0
  21. package/dist/profile/enum/profile-subscription.enum.js +14 -0
  22. package/dist/profile/profile-subscription.ro.d.ts +8 -0
  23. package/dist/profile/profile-subscription.ro.js +35 -0
  24. package/dist/profile/profile.ro.d.ts +5 -23
  25. package/dist/profile/profile.ro.js +90 -0
  26. package/dist/profile/update-current.dto.d.ts +0 -2
  27. package/dist/profile/update-current.dto.js +0 -7
  28. package/dist/questroom/agregator-questroom.ro.d.ts +1 -0
  29. package/dist/questroom/create-questroom.dto.d.ts +2 -0
  30. package/dist/questroom/create-questroom.dto.js +10 -0
  31. package/dist/questroom/questroom.ro.d.ts +2 -0
  32. package/dist/role/create-role.dto.d.ts +1 -0
  33. package/dist/role/create-role.dto.js +6 -0
  34. package/dist/role/role.ro.d.ts +1 -0
  35. package/dist/tsconfig.build.tsbuildinfo +1 -1
  36. package/dist/upselling/create-upselling.dto.d.ts +1 -0
  37. package/dist/upselling/create-upselling.dto.js +6 -0
  38. package/dist/upselling/upselling.ro.d.ts +1 -0
  39. package/dist/widget-openapi/openapi-questroom.ro.d.ts +3 -0
  40. package/dist/widget-openapi/openapi-questroom.ro.js +11 -3
  41. package/package.json +2 -2
@@ -10,6 +10,7 @@ export declare type AgregatorQuestroomRO = {
10
10
  id: number;
11
11
  createdAt: Date;
12
12
  slug: string;
13
+ teaser: string;
13
14
  title: string;
14
15
  type: QuestroomTypeEnum;
15
16
  organization: {
@@ -39,6 +40,7 @@ export declare type AgregatorQuestroomRO = {
39
40
  city: AgregatorCityRO;
40
41
  };
41
42
  legend?: string;
43
+ importantInfo?: string;
42
44
  actors: QuestroomActorsEnum;
43
45
  questroomTags: TagsEnum[];
44
46
  photo: string;
@@ -7,7 +7,7 @@ export declare type AgregatorQuestroomsSearchDTO = {
7
7
  players?: string;
8
8
  rating?: string;
9
9
  type?: string;
10
- tag?: TagsEnum;
10
+ tags?: TagsEnum[];
11
11
  language?: string;
12
12
  difficult?: string;
13
13
  fear?: string;
@@ -8,4 +8,5 @@ export declare class ClientFormDto {
8
8
  address: string;
9
9
  postcode: string;
10
10
  city: string;
11
+ sendAds: boolean;
11
12
  }
@@ -63,4 +63,9 @@ __decorate([
63
63
  (0, class_transformer_1.Expose)(),
64
64
  __metadata("design:type", String)
65
65
  ], ClientFormDto.prototype, "city", void 0);
66
+ __decorate([
67
+ (0, class_validator_1.IsBoolean)(),
68
+ (0, class_transformer_1.Expose)(),
69
+ __metadata("design:type", Boolean)
70
+ ], ClientFormDto.prototype, "sendAds", void 0);
66
71
  exports.ClientFormDto = ClientFormDto;
@@ -26,5 +26,6 @@ export declare type SendEmailRequestParams = {
26
26
  to: string;
27
27
  subject: string;
28
28
  data: Context;
29
+ tags?: string;
29
30
  };
30
31
  export {};
@@ -0,0 +1,32 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
+ import { ProfileStepEnum } from './enum/profile-step.enum';
3
+ declare class Message {
4
+ text: string;
5
+ }
6
+ export declare class AdminProfileRO {
7
+ id: number;
8
+ createdAt: Date;
9
+ title: string;
10
+ legalTitle: string;
11
+ phoneForCustomers: string;
12
+ mainEmail: string;
13
+ secondaryEmails: string[];
14
+ site: string;
15
+ contactPhone: string;
16
+ contactName: string;
17
+ facebook: string;
18
+ instagram: string;
19
+ agreementLink: string;
20
+ slug: string;
21
+ registrationRequestId: number;
22
+ country: CountriesEnum;
23
+ locationsCount: number;
24
+ questroomsCount: number;
25
+ questroomsDeletedCount: number;
26
+ lastVisit: Date;
27
+ step: ProfileStepEnum;
28
+ updateStepDate: Date;
29
+ crm: string;
30
+ messages: Message[];
31
+ }
32
+ export {};
@@ -0,0 +1,122 @@
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.AdminProfileRO = 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_step_enum_1 = require("./enum/profile-step.enum");
17
+ class Message {
18
+ }
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], Message.prototype, "text", void 0);
23
+ class AdminProfileRO {
24
+ }
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Number)
28
+ ], AdminProfileRO.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", Date)
32
+ ], AdminProfileRO.prototype, "createdAt", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], AdminProfileRO.prototype, "title", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], AdminProfileRO.prototype, "legalTitle", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", String)
44
+ ], AdminProfileRO.prototype, "phoneForCustomers", void 0);
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", String)
48
+ ], AdminProfileRO.prototype, "mainEmail", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", Array)
52
+ ], AdminProfileRO.prototype, "secondaryEmails", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", String)
56
+ ], AdminProfileRO.prototype, "site", void 0);
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", String)
60
+ ], AdminProfileRO.prototype, "contactPhone", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", String)
64
+ ], AdminProfileRO.prototype, "contactName", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", String)
68
+ ], AdminProfileRO.prototype, "facebook", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ __metadata("design:type", String)
72
+ ], AdminProfileRO.prototype, "instagram", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)(),
75
+ __metadata("design:type", String)
76
+ ], AdminProfileRO.prototype, "agreementLink", void 0);
77
+ __decorate([
78
+ (0, class_transformer_1.Expose)(),
79
+ __metadata("design:type", String)
80
+ ], AdminProfileRO.prototype, "slug", void 0);
81
+ __decorate([
82
+ (0, class_transformer_1.Expose)(),
83
+ __metadata("design:type", Number)
84
+ ], AdminProfileRO.prototype, "registrationRequestId", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Expose)(),
87
+ __metadata("design:type", String)
88
+ ], AdminProfileRO.prototype, "country", void 0);
89
+ __decorate([
90
+ (0, class_transformer_1.Expose)(),
91
+ __metadata("design:type", Number)
92
+ ], AdminProfileRO.prototype, "locationsCount", void 0);
93
+ __decorate([
94
+ (0, class_transformer_1.Expose)(),
95
+ __metadata("design:type", Number)
96
+ ], AdminProfileRO.prototype, "questroomsCount", void 0);
97
+ __decorate([
98
+ (0, class_transformer_1.Expose)(),
99
+ __metadata("design:type", Number)
100
+ ], AdminProfileRO.prototype, "questroomsDeletedCount", void 0);
101
+ __decorate([
102
+ (0, class_transformer_1.Expose)(),
103
+ __metadata("design:type", Date)
104
+ ], AdminProfileRO.prototype, "lastVisit", void 0);
105
+ __decorate([
106
+ (0, class_transformer_1.Expose)(),
107
+ __metadata("design:type", String)
108
+ ], AdminProfileRO.prototype, "step", void 0);
109
+ __decorate([
110
+ (0, class_transformer_1.Expose)(),
111
+ __metadata("design:type", Date)
112
+ ], AdminProfileRO.prototype, "updateStepDate", void 0);
113
+ __decorate([
114
+ (0, class_transformer_1.Expose)(),
115
+ __metadata("design:type", String)
116
+ ], AdminProfileRO.prototype, "crm", void 0);
117
+ __decorate([
118
+ (0, class_transformer_1.Expose)(),
119
+ (0, class_transformer_1.Type)(() => Message),
120
+ __metadata("design:type", Array)
121
+ ], AdminProfileRO.prototype, "messages", void 0);
122
+ exports.AdminProfileRO = AdminProfileRO;
@@ -0,0 +1,4 @@
1
+ export declare class CreateProfileMessageDto {
2
+ text: string;
3
+ profileId: number;
4
+ }
@@ -0,0 +1,28 @@
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.CreateProfileMessageDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const is_not_blank_1 = require("../shared/is-not-blank");
16
+ class CreateProfileMessageDto {
17
+ }
18
+ __decorate([
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], CreateProfileMessageDto.prototype, "text", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsPositive)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", Number)
27
+ ], CreateProfileMessageDto.prototype, "profileId", void 0);
28
+ exports.CreateProfileMessageDto = CreateProfileMessageDto;
@@ -0,0 +1,4 @@
1
+ export declare class CreateProfileEmailDto {
2
+ title: string;
3
+ tag: 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.CreateProfileEmailDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const is_not_blank_1 = require("../../shared/is-not-blank");
15
+ class CreateProfileEmailDto {
16
+ }
17
+ __decorate([
18
+ (0, is_not_blank_1.IsNotBlank)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], CreateProfileEmailDto.prototype, "title", void 0);
22
+ __decorate([
23
+ (0, is_not_blank_1.IsNotBlank)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], CreateProfileEmailDto.prototype, "tag", void 0);
27
+ exports.CreateProfileEmailDto = CreateProfileEmailDto;
@@ -0,0 +1,4 @@
1
+ export declare class CreateProfileSendingDto {
2
+ profileIds: number[];
3
+ emailId: number;
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.CreateProfileSendingDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateProfileSendingDto {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ (0, class_validator_1.IsNumber)({}, { each: true }),
20
+ __metadata("design:type", Array)
21
+ ], CreateProfileSendingDto.prototype, "profileIds", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsPositive)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", Number)
26
+ ], CreateProfileSendingDto.prototype, "emailId", void 0);
27
+ exports.CreateProfileSendingDto = CreateProfileSendingDto;
@@ -0,0 +1,7 @@
1
+ export declare class ProfileEmailRO {
2
+ id: number;
3
+ title: string;
4
+ tag: string;
5
+ sent: number;
6
+ letters: number;
7
+ }
@@ -0,0 +1,37 @@
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.ProfileEmailRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ class ProfileEmailRO {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ __metadata("design:type", Number)
20
+ ], ProfileEmailRO.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], ProfileEmailRO.prototype, "title", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], ProfileEmailRO.prototype, "tag", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", Number)
32
+ ], ProfileEmailRO.prototype, "sent", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", Number)
36
+ ], ProfileEmailRO.prototype, "letters", void 0);
37
+ exports.ProfileEmailRO = ProfileEmailRO;
@@ -0,0 +1,7 @@
1
+ import { ProfileRO } from '../profile.ro';
2
+ export declare class ProfileLetterRO {
3
+ id: number;
4
+ createdAt: Date;
5
+ emailId: number;
6
+ profile: ProfileRO;
7
+ }
@@ -0,0 +1,35 @@
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.ProfileLetterRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const profile_ro_1 = require("../profile.ro");
16
+ class ProfileLetterRO {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], ProfileLetterRO.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", Date)
25
+ ], ProfileLetterRO.prototype, "createdAt", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", Number)
29
+ ], ProfileLetterRO.prototype, "emailId", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)(),
32
+ (0, class_transformer_1.Type)(() => profile_ro_1.ProfileRO),
33
+ __metadata("design:type", profile_ro_1.ProfileRO)
34
+ ], ProfileLetterRO.prototype, "profile", void 0);
35
+ exports.ProfileLetterRO = ProfileLetterRO;
@@ -1,7 +1,9 @@
1
1
  export declare enum ProfileStepEnum {
2
2
  CLOSED = "closed",
3
+ CANCELED = "canceled",
3
4
  NOT_VERIFIED = "not_verified",
4
5
  READY_TO_VERIFY = "ready_to_verify",
6
+ SENT_EMAIL = "sent_email",
5
7
  OPEN_EMAIL = "open_email",
6
8
  OPEN_REQUEST_PAGE = "open_request_page",
7
9
  LINK_REQUESTED = "link_requested",
@@ -12,5 +14,7 @@ export declare enum ProfileStepEnum {
12
14
  VERIFICATION_QUESTROOMS = "verification_questrooms",
13
15
  INTEGRATED_NO = "integrated_no",
14
16
  INTEGRATED_BOOKEO = "integrated_bookeo",
15
- CRM = "CRM"
17
+ CRM = "CRM",
18
+ CRM_UNPDAID = "CRM_unpdaid",
19
+ CRM_TRIAL = "CRM_trial"
16
20
  }
@@ -5,16 +5,20 @@ var ProfileStepEnum;
5
5
  (function (ProfileStepEnum) {
6
6
  // закрыт
7
7
  ProfileStepEnum["CLOSED"] = "closed";
8
+ ProfileStepEnum["CANCELED"] = "canceled";
8
9
  // не готов к рассылке
9
10
  ProfileStepEnum["NOT_VERIFIED"] = "not_verified";
10
11
  // готов к рассылке
11
12
  ProfileStepEnum["READY_TO_VERIFY"] = "ready_to_verify";
12
13
  // открыл квест на агрегаторе и нажал на кнопку
14
+ ProfileStepEnum["SENT_EMAIL"] = "sent_email";
15
+ // открыл квест на агрегаторе
13
16
  ProfileStepEnum["OPEN_EMAIL"] = "open_email";
14
17
  // открыл квест на агрегаторе и нажал на кнопку 'я владелец'
15
18
  ProfileStepEnum["OPEN_REQUEST_PAGE"] = "open_request_page";
16
19
  // ввел правильный email и получил линк
17
20
  ProfileStepEnum["LINK_REQUESTED"] = "link_requested";
21
+ // шаги верификации
18
22
  ProfileStepEnum["VERIFICATION_USER_DATA"] = "verification_user";
19
23
  ProfileStepEnum["VERIFICATION_PROFILE"] = "verification_profile";
20
24
  ProfileStepEnum["VERIFICATION_RULES"] = "verification_rules";
@@ -23,4 +27,6 @@ var ProfileStepEnum;
23
27
  ProfileStepEnum["INTEGRATED_NO"] = "integrated_no";
24
28
  ProfileStepEnum["INTEGRATED_BOOKEO"] = "integrated_bookeo";
25
29
  ProfileStepEnum["CRM"] = "CRM";
30
+ ProfileStepEnum["CRM_UNPDAID"] = "CRM_unpdaid";
31
+ ProfileStepEnum["CRM_TRIAL"] = "CRM_trial";
26
32
  })(ProfileStepEnum = exports.ProfileStepEnum || (exports.ProfileStepEnum = {}));
@@ -0,0 +1,10 @@
1
+ export declare enum ProfileSubscriptionEnum {
2
+ INCOMPLITE = "incomplete",
3
+ INCOMPLITE_EXPIRED = "incomplete_expired",
4
+ TRAILING = "trialing",
5
+ ACTIVE = "active",
6
+ PAST_DUE = "past_due",
7
+ CANCELED = "canceled",
8
+ UNPAID = "unpaid",
9
+ PAUSED = "paused"
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProfileSubscriptionEnum = void 0;
4
+ var ProfileSubscriptionEnum;
5
+ (function (ProfileSubscriptionEnum) {
6
+ ProfileSubscriptionEnum["INCOMPLITE"] = "incomplete";
7
+ ProfileSubscriptionEnum["INCOMPLITE_EXPIRED"] = "incomplete_expired";
8
+ ProfileSubscriptionEnum["TRAILING"] = "trialing";
9
+ ProfileSubscriptionEnum["ACTIVE"] = "active";
10
+ ProfileSubscriptionEnum["PAST_DUE"] = "past_due";
11
+ ProfileSubscriptionEnum["CANCELED"] = "canceled";
12
+ ProfileSubscriptionEnum["UNPAID"] = "unpaid";
13
+ ProfileSubscriptionEnum["PAUSED"] = "paused";
14
+ })(ProfileSubscriptionEnum = exports.ProfileSubscriptionEnum || (exports.ProfileSubscriptionEnum = {}));
@@ -0,0 +1,8 @@
1
+ import { ProfileCurrencyEnum } from './enum/profile-currency';
2
+ import { ProfileSubscriptionEnum } from './enum/profile-subscription.enum';
3
+ export declare class ProfileSubscripton {
4
+ status: ProfileSubscriptionEnum;
5
+ quantity: number;
6
+ currreny: ProfileCurrencyEnum;
7
+ cancel_at: number;
8
+ }
@@ -0,0 +1,35 @@
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.ProfileSubscripton = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const profile_currency_1 = require("./enum/profile-currency");
16
+ const profile_subscription_enum_1 = require("./enum/profile-subscription.enum");
17
+ class ProfileSubscripton {
18
+ }
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], ProfileSubscripton.prototype, "status", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", Number)
26
+ ], ProfileSubscripton.prototype, "quantity", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], ProfileSubscripton.prototype, "currreny", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", Number)
34
+ ], ProfileSubscripton.prototype, "cancel_at", void 0);
35
+ exports.ProfileSubscripton = ProfileSubscripton;
@@ -1,42 +1,24 @@
1
1
  import { CountriesEnum } from '../shared/enum/countries.enum';
2
2
  import { Languages } from '../shared/enum/languages.enum';
3
- import { ResponseObject } from '../shared/ro';
4
3
  import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
5
- import { ProfileCurrencyEnum } from './enum/profile-currency';
6
4
  import { ProfileStepEnum } from './enum/profile-step.enum';
7
- export declare type ProfileRO = ResponseObject & {
5
+ export declare class ProfileRO {
6
+ id: number;
7
+ createdAt: Date;
8
8
  title: string;
9
9
  legalTitle: string;
10
10
  phoneForCustomers: string;
11
11
  mainEmail: string;
12
- secondaryEmails: string[];
13
12
  site: string;
14
- logo: string;
15
- contactPhone: string;
16
- contactName: string;
17
- facebook: string;
18
- instagram: string;
19
- comment: string;
20
13
  agreementLink: string;
14
+ crm: string;
21
15
  hasWidgets: boolean;
22
16
  slug: string;
23
- registrationRequestId: number;
24
17
  language: Languages;
25
18
  availableLanguages: Languages[];
26
19
  country: CountriesEnum;
27
20
  locationsCount: number;
28
21
  questroomsCount: number;
29
- questroomsDeletedCount: number;
30
- lastVisit: Date;
31
- stripeCustomer: string;
32
22
  step: ProfileStepEnum;
33
- crm: string;
34
23
  bookingFields: WidgetBookingFiledEnum[];
35
- subscriptionStatus: string;
36
- subscription?: {
37
- status: 'active' | 'past_due' | 'unpaid' | 'incomplete' | 'incomplete_expired' | 'paused' | 'trialing';
38
- quantity: number;
39
- currreny: ProfileCurrencyEnum;
40
- cancel_at: number;
41
- };
42
- };
24
+ }