@escapenavigator/types 2.0.10 → 2.0.12

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 (54) hide show
  1. package/dist/agregator/agregator-outdoor.ro.d.ts +111 -0
  2. package/dist/agregator/agregator-outdoor.ro.js +11 -0
  3. package/dist/agregator/agregator-questroom.ro.d.ts +8 -0
  4. package/dist/agregator/agregator-questroom.ro.js +4 -0
  5. package/dist/location/transfer-location-for-admin.dto.d.ts +5 -0
  6. package/dist/location/transfer-location-for-admin.dto.js +25 -0
  7. package/dist/partners-portal/admin/admin-moderate-portal-story.dto.d.ts +8 -0
  8. package/dist/partners-portal/admin/admin-moderate-portal-story.dto.js +35 -0
  9. package/dist/partners-portal/admin/admin-portal-partner.ro.d.ts +10 -0
  10. package/dist/partners-portal/admin/admin-portal-partner.ro.js +2 -0
  11. package/dist/partners-portal/admin/admin-update-portal-material-order.dto.d.ts +5 -0
  12. package/dist/partners-portal/admin/admin-update-portal-material-order.dto.js +29 -0
  13. package/dist/partners-portal/admin/admin-update-portal-partner.dto.d.ts +6 -0
  14. package/dist/partners-portal/admin/admin-update-portal-partner.dto.js +37 -0
  15. package/dist/partners-portal/create-portal-material-order.dto.d.ts +7 -0
  16. package/dist/partners-portal/create-portal-material-order.dto.js +36 -0
  17. package/dist/partners-portal/create-portal-story.dto.d.ts +18 -0
  18. package/dist/partners-portal/create-portal-story.dto.js +86 -0
  19. package/dist/partners-portal/enum/portal-material-order-status.enum.d.ts +7 -0
  20. package/dist/partners-portal/enum/portal-material-order-status.enum.js +11 -0
  21. package/dist/partners-portal/enum/portal-partner-type.enum.d.ts +6 -0
  22. package/dist/partners-portal/enum/portal-partner-type.enum.js +10 -0
  23. package/dist/partners-portal/enum/portal-story-status.enum.d.ts +12 -0
  24. package/dist/partners-portal/enum/portal-story-status.enum.js +16 -0
  25. package/dist/partners-portal/login-portal-partner.dto.d.ts +4 -0
  26. package/dist/partners-portal/login-portal-partner.dto.js +28 -0
  27. package/dist/partners-portal/portal-city-option.ro.d.ts +7 -0
  28. package/dist/partners-portal/portal-city-option.ro.js +2 -0
  29. package/dist/partners-portal/portal-material-order.ro.d.ts +13 -0
  30. package/dist/partners-portal/portal-material-order.ro.js +2 -0
  31. package/dist/partners-portal/portal-partner-email.dto.d.ts +4 -0
  32. package/dist/partners-portal/portal-partner-email.dto.js +24 -0
  33. package/dist/partners-portal/portal-partner.ro.d.ts +25 -0
  34. package/dist/partners-portal/portal-partner.ro.js +2 -0
  35. package/dist/partners-portal/portal-stats.ro.d.ts +38 -0
  36. package/dist/partners-portal/portal-stats.ro.js +2 -0
  37. package/dist/partners-portal/portal-story-step.d.ts +19 -0
  38. package/dist/partners-portal/portal-story-step.js +2 -0
  39. package/dist/partners-portal/portal-story.ro.d.ts +19 -0
  40. package/dist/partners-portal/portal-story.ro.js +2 -0
  41. package/dist/partners-portal/register-portal-partner.dto.d.ts +12 -0
  42. package/dist/partners-portal/register-portal-partner.dto.js +52 -0
  43. package/dist/partners-portal/reset-portal-partner-password.dto.d.ts +6 -0
  44. package/dist/partners-portal/reset-portal-partner-password.dto.js +34 -0
  45. package/dist/partners-portal/update-portal-partner.dto.d.ts +6 -0
  46. package/dist/partners-portal/update-portal-partner.dto.js +36 -0
  47. package/dist/partners-portal/update-portal-story.dto.d.ts +9 -0
  48. package/dist/partners-portal/update-portal-story.dto.js +51 -0
  49. package/dist/partners-portal/verify-portal-partner.dto.d.ts +5 -0
  50. package/dist/partners-portal/verify-portal-partner.dto.js +29 -0
  51. package/dist/profile/admin-profile.ro.d.ts +8 -0
  52. package/dist/profile/admin-profile.ro.js +26 -1
  53. package/dist/tsconfig.build.tsbuildinfo +1 -1
  54. package/package.json +2 -2
@@ -0,0 +1,24 @@
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.PortalPartnerEmailDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /** Used by resend-code and password recovery endpoints. */
16
+ class PortalPartnerEmailDto {
17
+ }
18
+ exports.PortalPartnerEmailDto = PortalPartnerEmailDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsEmail)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
23
+ __metadata("design:type", String)
24
+ ], PortalPartnerEmailDto.prototype, "email", void 0);
@@ -0,0 +1,25 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
+ import { PortalPartnerTypeEnum } from './enum/portal-partner-type.enum';
3
+ export type PortalPartnerRO = {
4
+ id: number;
5
+ createdAt: Date;
6
+ type: PortalPartnerTypeEnum;
7
+ name: string;
8
+ email: string;
9
+ /** Venue only. */
10
+ companyName?: string;
11
+ /** Venue only. */
12
+ cityId?: number;
13
+ /** Venue only, denormalized for display. */
14
+ cityTitle?: string;
15
+ cityCountry?: CountriesEnum;
16
+ /**
17
+ * Venue only: personal promo code printed on marketing materials.
18
+ * Sales are attributed to the venue when this code is applied to an order.
19
+ */
20
+ promocode?: string;
21
+ /** Commission % of gross sales, set by admin. 0 = not negotiated yet. */
22
+ commissionPercent: number;
23
+ emailVerified: boolean;
24
+ blocked: boolean;
25
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,38 @@
1
+ /**
2
+ * One month of partner earnings. Commission is computed on the fly:
3
+ * gross sales of attributed paid orders × partner's commissionPercent.
4
+ * Sums are in minor units (cents) per currency.
5
+ */
6
+ export type PortalMonthlyStatsRO = {
7
+ /** First day of the month, ISO date (yyyy-MM-01). */
8
+ month: string;
9
+ /** Games granted/played in this month. */
10
+ games: number;
11
+ /** Gross sales in minor units, grouped by currency code. */
12
+ sales: Record<string, number>;
13
+ /** Commission in minor units, grouped by currency code. */
14
+ commission: Record<string, number>;
15
+ };
16
+ export type PortalStoryStatsRO = {
17
+ storyId: number;
18
+ storyTitle: string;
19
+ /** Total games granted for the produced quest. */
20
+ games: number;
21
+ /** Gross sales in minor units by currency. */
22
+ sales: Record<string, number>;
23
+ /** Commission in minor units by currency. */
24
+ commission: Record<string, number>;
25
+ };
26
+ export type PortalPartnerStatsRO = {
27
+ commissionPercent: number;
28
+ /** Venue only: total QR scans. */
29
+ qrScans?: number;
30
+ /** Totals for the whole partnership. */
31
+ totalGames: number;
32
+ totalSales: Record<string, number>;
33
+ totalCommission: Record<string, number>;
34
+ /** Last 12 months, oldest first. */
35
+ monthly: PortalMonthlyStatsRO[];
36
+ /** Author only: per-story breakdown. */
37
+ stories?: PortalStoryStatsRO[];
38
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * One stop of an author story. Deliberately simple (plain text) — the
3
+ * production team converts approved stories into full city-quest content
4
+ * (geo points, assets, riddle mechanics) in the admin CMS.
5
+ */
6
+ export type PortalStoryStep = {
7
+ /** Short stop name, e.g. "Old Town Clock". */
8
+ title: string;
9
+ /** Where the players should be (address / landmark description). */
10
+ location: string;
11
+ /** Narrative text the players read at this stop. */
12
+ narrative: string;
13
+ /** The riddle / task text. */
14
+ riddle: string;
15
+ /** Expected answer. */
16
+ answer: string;
17
+ /** Optional hint. */
18
+ hint?: string;
19
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ import { PortalStoryStatusEnum } from './enum/portal-story-status.enum';
3
+ import { PortalStoryStep } from './portal-story-step';
4
+ export type PortalStoryRO = {
5
+ id: number;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ partnerId: number;
9
+ title: string;
10
+ description?: string;
11
+ cityName?: string;
12
+ language: Languages;
13
+ steps: PortalStoryStep[];
14
+ status: PortalStoryStatusEnum;
15
+ rejectionReason?: string;
16
+ /** Set by admin when a real city quest is produced from this story. */
17
+ cityQuestId?: number;
18
+ submittedAt?: Date;
19
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { PortalPartnerTypeEnum } from './enum/portal-partner-type.enum';
2
+ export declare class RegisterPortalPartnerDto {
3
+ type: PortalPartnerTypeEnum;
4
+ /** Contact person full name. */
5
+ name: string;
6
+ email: string;
7
+ password: string;
8
+ /** Venue only: hostel / hotel name. */
9
+ companyName?: string;
10
+ /** Venue only: city where the venue is located. */
11
+ cityId?: number;
12
+ }
@@ -0,0 +1,52 @@
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.RegisterPortalPartnerDto = 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 portal_partner_type_enum_1 = require("./enum/portal-partner-type.enum");
17
+ class RegisterPortalPartnerDto {
18
+ }
19
+ exports.RegisterPortalPartnerDto = RegisterPortalPartnerDto;
20
+ __decorate([
21
+ (0, class_validator_1.IsEnum)(portal_partner_type_enum_1.PortalPartnerTypeEnum),
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], RegisterPortalPartnerDto.prototype, "type", void 0);
25
+ __decorate([
26
+ (0, is_not_blank_1.IsNotBlank)(),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], RegisterPortalPartnerDto.prototype, "name", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEmail)(),
32
+ (0, class_transformer_1.Expose)(),
33
+ (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
34
+ __metadata("design:type", String)
35
+ ], RegisterPortalPartnerDto.prototype, "email", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.MinLength)(8),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], RegisterPortalPartnerDto.prototype, "password", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsString)(),
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", String)
46
+ ], RegisterPortalPartnerDto.prototype, "companyName", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, class_validator_1.IsInt)(),
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", Number)
52
+ ], RegisterPortalPartnerDto.prototype, "cityId", void 0);
@@ -0,0 +1,6 @@
1
+ export declare class ResetPortalPartnerPasswordDto {
2
+ email: string;
3
+ /** 6-digit code from the recovery email. */
4
+ code: string;
5
+ password: string;
6
+ }
@@ -0,0 +1,34 @@
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.ResetPortalPartnerPasswordDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class ResetPortalPartnerPasswordDto {
16
+ }
17
+ exports.ResetPortalPartnerPasswordDto = ResetPortalPartnerPasswordDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsEmail)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
22
+ __metadata("design:type", String)
23
+ ], ResetPortalPartnerPasswordDto.prototype, "email", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.Length)(6, 6),
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim()),
28
+ __metadata("design:type", String)
29
+ ], ResetPortalPartnerPasswordDto.prototype, "code", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.MinLength)(8),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], ResetPortalPartnerPasswordDto.prototype, "password", void 0);
@@ -0,0 +1,6 @@
1
+ /** Self-service profile update from the partners portal. */
2
+ export declare class UpdatePortalPartnerDto {
3
+ name?: string;
4
+ companyName?: string;
5
+ cityId?: number;
6
+ }
@@ -0,0 +1,36 @@
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.UpdatePortalPartnerDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /** Self-service profile update from the partners portal. */
16
+ class UpdatePortalPartnerDto {
17
+ }
18
+ exports.UpdatePortalPartnerDto = UpdatePortalPartnerDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], UpdatePortalPartnerDto.prototype, "name", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsString)(),
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], UpdatePortalPartnerDto.prototype, "companyName", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsInt)(),
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", Number)
36
+ ], UpdatePortalPartnerDto.prototype, "cityId", void 0);
@@ -0,0 +1,9 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ import { PortalStoryStepDto } from './create-portal-story.dto';
3
+ export declare class UpdatePortalStoryDto {
4
+ title?: string;
5
+ description?: string;
6
+ cityName?: string;
7
+ language?: Languages;
8
+ steps?: PortalStoryStepDto[];
9
+ }
@@ -0,0 +1,51 @@
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.UpdatePortalStoryDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const languages_enum_1 = require("../shared/enum/languages.enum");
16
+ const create_portal_story_dto_1 = require("./create-portal-story.dto");
17
+ class UpdatePortalStoryDto {
18
+ }
19
+ exports.UpdatePortalStoryDto = UpdatePortalStoryDto;
20
+ __decorate([
21
+ (0, class_validator_1.IsOptional)(),
22
+ (0, class_validator_1.IsString)(),
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", String)
25
+ ], UpdatePortalStoryDto.prototype, "title", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], UpdatePortalStoryDto.prototype, "description", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], UpdatePortalStoryDto.prototype, "cityName", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsEnum)(languages_enum_1.Languages),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], UpdatePortalStoryDto.prototype, "language", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_validator_1.IsArray)(),
47
+ (0, class_validator_1.ValidateNested)({ each: true }),
48
+ (0, class_transformer_1.Type)(() => create_portal_story_dto_1.PortalStoryStepDto),
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", Array)
51
+ ], UpdatePortalStoryDto.prototype, "steps", void 0);
@@ -0,0 +1,5 @@
1
+ export declare class VerifyPortalPartnerDto {
2
+ email: string;
3
+ /** 6-digit code from the verification email. */
4
+ code: string;
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.VerifyPortalPartnerDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class VerifyPortalPartnerDto {
16
+ }
17
+ exports.VerifyPortalPartnerDto = VerifyPortalPartnerDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsEmail)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
22
+ __metadata("design:type", String)
23
+ ], VerifyPortalPartnerDto.prototype, "email", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.Length)(6, 6),
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim()),
28
+ __metadata("design:type", String)
29
+ ], VerifyPortalPartnerDto.prototype, "code", void 0);
@@ -1,3 +1,4 @@
1
+ import { GooglePlacesStatusEnum } from '../google-places/google-places-status.enum';
1
2
  import { CountriesEnum } from '../shared/enum/countries.enum';
2
3
  import { ProfileActionRO } from './action/profile-action.ro';
3
4
  import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
@@ -12,6 +13,12 @@ import { ProfileSubscriptionTypeEnum } from './enum/profile-subscription-type.en
12
13
  import { ProfileTagEnum } from './enum/profile-tag.enum';
13
14
  import { ProfileTechStatusEnum } from './enum/profile-tech-status.enum';
14
15
  import { ProfileCommissionRO } from './profile-commission.ro';
16
+ export declare class AdminProfileGooglePlaceRO {
17
+ id: number;
18
+ placeId: string;
19
+ locationId: number;
20
+ status: GooglePlacesStatusEnum;
21
+ }
15
22
  declare class History {
16
23
  createdAt: Date;
17
24
  row: string;
@@ -64,5 +71,6 @@ export declare class AdminProfileRO {
64
71
  lastVisit: Date;
65
72
  crm: string;
66
73
  actions: ProfileActionRO[];
74
+ googlePlaces: AdminProfileGooglePlaceRO[];
67
75
  }
68
76
  export {};
@@ -9,9 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AdminProfileRO = void 0;
12
+ exports.AdminProfileRO = exports.AdminProfileGooglePlaceRO = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
14
  const class_transformer_1 = require("class-transformer");
15
+ const google_places_status_enum_1 = require("../google-places/google-places-status.enum");
15
16
  const countries_enum_1 = require("../shared/enum/countries.enum");
16
17
  const profile_action_ro_1 = require("./action/profile-action.ro");
17
18
  const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
@@ -25,6 +26,25 @@ const profile_subscription_enum_1 = require("./enum/profile-subscription.enum");
25
26
  const profile_subscription_type_enum_1 = require("./enum/profile-subscription-type.enum");
26
27
  const profile_tech_status_enum_1 = require("./enum/profile-tech-status.enum");
27
28
  const profile_commission_ro_1 = require("./profile-commission.ro");
29
+ class AdminProfileGooglePlaceRO {
30
+ }
31
+ exports.AdminProfileGooglePlaceRO = AdminProfileGooglePlaceRO;
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", Number)
35
+ ], AdminProfileGooglePlaceRO.prototype, "id", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], AdminProfileGooglePlaceRO.prototype, "placeId", void 0);
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", Number)
43
+ ], AdminProfileGooglePlaceRO.prototype, "locationId", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", String)
47
+ ], AdminProfileGooglePlaceRO.prototype, "status", void 0);
28
48
  class History {
29
49
  }
30
50
  __decorate([
@@ -229,3 +249,8 @@ __decorate([
229
249
  (0, class_transformer_1.Type)(() => profile_action_ro_1.ProfileActionRO),
230
250
  __metadata("design:type", Array)
231
251
  ], AdminProfileRO.prototype, "actions", void 0);
252
+ __decorate([
253
+ (0, class_transformer_1.Expose)(),
254
+ (0, class_transformer_1.Type)(() => AdminProfileGooglePlaceRO),
255
+ __metadata("design:type", Array)
256
+ ], AdminProfileRO.prototype, "googlePlaces", void 0);