@escapenavigator/types 1.6.88 → 1.6.89

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.
@@ -11,6 +11,7 @@ declare class Customization {
11
11
  showBookedSlots: boolean;
12
12
  showWrapper: boolean;
13
13
  showOtherQuests: boolean;
14
+ showCertificatesButton: boolean;
14
15
  mainColor: string;
15
16
  style: WidgetStyleEnum;
16
17
  view: WidgetViewEnum;
@@ -35,6 +35,10 @@ __decorate([
35
35
  (0, class_transformer_1.Expose)(),
36
36
  __metadata("design:type", Boolean)
37
37
  ], Customization.prototype, "showOtherQuests", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", Boolean)
41
+ ], Customization.prototype, "showCertificatesButton", void 0);
38
42
  __decorate([
39
43
  (0, class_transformer_1.Expose)(),
40
44
  __metadata("design:type", String)
@@ -1,4 +1,4 @@
1
- export declare class CreateProfileActionDto {
1
+ export declare class CreateProfileActionRO {
2
2
  type: string;
3
3
  description: string;
4
4
  date: string;
@@ -9,46 +9,46 @@ 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.CreateProfileActionDto = void 0;
12
+ 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
- class CreateProfileActionDto {
16
+ class CreateProfileActionRO {
17
17
  }
18
18
  __decorate([
19
19
  (0, is_not_blank_1.IsNotBlank)(),
20
20
  (0, class_transformer_1.Expose)(),
21
21
  __metadata("design:type", String)
22
- ], CreateProfileActionDto.prototype, "type", void 0);
22
+ ], CreateProfileActionRO.prototype, "type", void 0);
23
23
  __decorate([
24
24
  (0, class_validator_1.IsOptional)(),
25
25
  (0, class_transformer_1.Expose)(),
26
26
  __metadata("design:type", String)
27
- ], CreateProfileActionDto.prototype, "description", void 0);
27
+ ], CreateProfileActionRO.prototype, "description", void 0);
28
28
  __decorate([
29
29
  (0, is_not_blank_1.IsNotBlank)(),
30
30
  (0, class_transformer_1.Expose)(),
31
31
  __metadata("design:type", String)
32
- ], CreateProfileActionDto.prototype, "date", void 0);
32
+ ], CreateProfileActionRO.prototype, "date", void 0);
33
33
  __decorate([
34
34
  (0, class_validator_1.IsOptional)(),
35
35
  (0, class_validator_1.IsMilitaryTime)(),
36
36
  (0, class_transformer_1.Expose)(),
37
37
  __metadata("design:type", String)
38
- ], CreateProfileActionDto.prototype, "time", void 0);
38
+ ], CreateProfileActionRO.prototype, "time", void 0);
39
39
  __decorate([
40
40
  (0, class_validator_1.IsPositive)(),
41
41
  (0, class_transformer_1.Expose)(),
42
42
  __metadata("design:type", Number)
43
- ], CreateProfileActionDto.prototype, "profileId", void 0);
43
+ ], CreateProfileActionRO.prototype, "profileId", void 0);
44
44
  __decorate([
45
45
  (0, class_validator_1.IsOptional)(),
46
46
  (0, class_transformer_1.Expose)(),
47
47
  __metadata("design:type", Number)
48
- ], CreateProfileActionDto.prototype, "prevActionId", void 0);
48
+ ], CreateProfileActionRO.prototype, "prevActionId", void 0);
49
49
  __decorate([
50
50
  (0, class_validator_1.IsOptional)(),
51
51
  (0, class_transformer_1.Expose)(),
52
52
  __metadata("design:type", String)
53
- ], CreateProfileActionDto.prototype, "prevResult", void 0);
54
- exports.CreateProfileActionDto = CreateProfileActionDto;
53
+ ], CreateProfileActionRO.prototype, "prevResult", void 0);
54
+ exports.CreateProfileActionRO = CreateProfileActionRO;
@@ -2,7 +2,7 @@ declare class Profile {
2
2
  id: number;
3
3
  title: string;
4
4
  }
5
- export declare class ProfileActionDto {
5
+ export declare class ProfileActionRO {
6
6
  id: number;
7
7
  profile: Profile;
8
8
  createdAt: Date;
@@ -9,7 +9,7 @@ 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.ProfileActionDto = void 0;
12
+ exports.ProfileActionRO = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  class Profile {
@@ -22,47 +22,47 @@ __decorate([
22
22
  (0, class_transformer_1.Expose)(),
23
23
  __metadata("design:type", String)
24
24
  ], Profile.prototype, "title", void 0);
25
- class ProfileActionDto {
25
+ class ProfileActionRO {
26
26
  }
27
27
  __decorate([
28
28
  (0, class_transformer_1.Expose)(),
29
29
  __metadata("design:type", Number)
30
- ], ProfileActionDto.prototype, "id", void 0);
30
+ ], ProfileActionRO.prototype, "id", void 0);
31
31
  __decorate([
32
32
  (0, class_transformer_1.Expose)(),
33
33
  (0, class_transformer_1.Type)(() => Profile),
34
34
  __metadata("design:type", Profile)
35
- ], ProfileActionDto.prototype, "profile", void 0);
35
+ ], ProfileActionRO.prototype, "profile", void 0);
36
36
  __decorate([
37
37
  (0, class_transformer_1.Expose)(),
38
38
  __metadata("design:type", Date)
39
- ], ProfileActionDto.prototype, "createdAt", void 0);
39
+ ], ProfileActionRO.prototype, "createdAt", void 0);
40
40
  __decorate([
41
41
  (0, class_transformer_1.Expose)(),
42
42
  __metadata("design:type", String)
43
- ], ProfileActionDto.prototype, "author", void 0);
43
+ ], ProfileActionRO.prototype, "author", void 0);
44
44
  __decorate([
45
45
  (0, class_transformer_1.Expose)(),
46
46
  __metadata("design:type", String)
47
- ], ProfileActionDto.prototype, "type", void 0);
47
+ ], ProfileActionRO.prototype, "type", void 0);
48
48
  __decorate([
49
49
  (0, class_transformer_1.Expose)(),
50
50
  __metadata("design:type", String)
51
- ], ProfileActionDto.prototype, "description", void 0);
51
+ ], ProfileActionRO.prototype, "description", void 0);
52
52
  __decorate([
53
53
  (0, class_transformer_1.Expose)(),
54
54
  __metadata("design:type", String)
55
- ], ProfileActionDto.prototype, "result", void 0);
55
+ ], ProfileActionRO.prototype, "result", void 0);
56
56
  __decorate([
57
57
  (0, class_transformer_1.Expose)(),
58
58
  __metadata("design:type", String)
59
- ], ProfileActionDto.prototype, "date", void 0);
59
+ ], ProfileActionRO.prototype, "date", void 0);
60
60
  __decorate([
61
61
  (0, class_transformer_1.Expose)(),
62
62
  __metadata("design:type", String)
63
- ], ProfileActionDto.prototype, "time", void 0);
63
+ ], ProfileActionRO.prototype, "time", void 0);
64
64
  __decorate([
65
65
  (0, class_transformer_1.Expose)(),
66
66
  __metadata("design:type", Boolean)
67
- ], ProfileActionDto.prototype, "done", void 0);
68
- exports.ProfileActionDto = ProfileActionDto;
67
+ ], ProfileActionRO.prototype, "done", void 0);
68
+ exports.ProfileActionRO = ProfileActionRO;
@@ -1,5 +1,5 @@
1
1
  import { CountriesEnum } from '../shared/enum/countries.enum';
2
- import { ProfileActionDto } from './action/profile-action.dto';
2
+ import { ProfileActionRO } from './action/profile-action.dto';
3
3
  import { ProfileContctRO } from './contacts/profile-contact.ro';
4
4
  import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
5
5
  import { PartnerProgramEnum } from './enum/partner-program.enum';
@@ -46,7 +46,7 @@ export declare class AdminProfileRO {
46
46
  questroomsDeletedCount: number;
47
47
  lastVisit: Date;
48
48
  crm: string;
49
- actions: ProfileActionDto[];
49
+ actions: ProfileActionRO[];
50
50
  contacts: ProfileContctRO[];
51
51
  }
52
52
  export {};
@@ -172,7 +172,7 @@ __decorate([
172
172
  ], AdminProfileRO.prototype, "crm", void 0);
173
173
  __decorate([
174
174
  (0, class_transformer_1.Expose)(),
175
- (0, class_transformer_1.Type)(() => profile_action_dto_1.ProfileActionDto),
175
+ (0, class_transformer_1.Type)(() => profile_action_dto_1.ProfileActionRO),
176
176
  __metadata("design:type", Array)
177
177
  ], AdminProfileRO.prototype, "actions", void 0);
178
178
  __decorate([
@@ -0,0 +1,5 @@
1
+ export declare class ProfileApiKeyRO {
2
+ id: number;
3
+ createdAt: Date;
4
+ key: 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.ProfileApiKeyRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ class ProfileApiKeyRO {
15
+ }
16
+ __decorate([
17
+ (0, class_transformer_1.Expose)(),
18
+ __metadata("design:type", Number)
19
+ ], ProfileApiKeyRO.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", Date)
23
+ ], ProfileApiKeyRO.prototype, "createdAt", void 0);
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ (0, class_transformer_1.Transform)(({ value }) => `****${value.slice(-20)}`),
27
+ __metadata("design:type", String)
28
+ ], ProfileApiKeyRO.prototype, "key", void 0);
29
+ exports.ProfileApiKeyRO = ProfileApiKeyRO;
@@ -6,5 +6,6 @@ export declare class UpdateWidgetCustomizationDto {
6
6
  style: WidgetStyleEnum;
7
7
  view: WidgetViewEnum;
8
8
  showOtherQuests: boolean;
9
+ showCertificatesButton: boolean;
9
10
  mainColor: string;
10
11
  }
@@ -41,6 +41,11 @@ __decorate([
41
41
  (0, class_transformer_1.Expose)(),
42
42
  __metadata("design:type", Boolean)
43
43
  ], UpdateWidgetCustomizationDto.prototype, "showOtherQuests", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsBoolean)(),
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", Boolean)
48
+ ], UpdateWidgetCustomizationDto.prototype, "showCertificatesButton", void 0);
44
49
  __decorate([
45
50
  (0, class_validator_1.IsHexColor)(),
46
51
  (0, class_transformer_1.Expose)(),
@@ -4,6 +4,7 @@ export declare class WidgetCustomizationRO {
4
4
  showBookedSlots: boolean;
5
5
  showWrapper: boolean;
6
6
  showOtherQuests: boolean;
7
+ showCertificatesButton: boolean;
7
8
  mainColor: string;
8
9
  style: WidgetStyleEnum;
9
10
  view: WidgetViewEnum;
@@ -27,6 +27,10 @@ __decorate([
27
27
  (0, class_transformer_1.Expose)(),
28
28
  __metadata("design:type", Boolean)
29
29
  ], WidgetCustomizationRO.prototype, "showOtherQuests", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", Boolean)
33
+ ], WidgetCustomizationRO.prototype, "showCertificatesButton", void 0);
30
34
  __decorate([
31
35
  (0, class_transformer_1.Expose)(),
32
36
  __metadata("design:type", String)