@intelact/bright 0.9.75 → 0.9.77

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/lib/dtos/boost.dto.d.ts +0 -12
  2. package/lib/dtos/boost.dto.js +1 -50
  3. package/lib/dtos/boost.dto.js.map +1 -1
  4. package/lib/dtos/brand.dto.d.ts +0 -15
  5. package/lib/dtos/brand.dto.js +1 -46
  6. package/lib/dtos/brand.dto.js.map +1 -1
  7. package/lib/dtos/feedback.dto.d.ts +0 -9
  8. package/lib/dtos/feedback.dto.js +1 -28
  9. package/lib/dtos/feedback.dto.js.map +1 -1
  10. package/lib/dtos/general.dto.d.ts +3 -0
  11. package/lib/dtos/general.dto.js +10 -1
  12. package/lib/dtos/general.dto.js.map +1 -1
  13. package/lib/dtos/index.d.ts +0 -4
  14. package/lib/dtos/index.js +0 -4
  15. package/lib/dtos/index.js.map +1 -1
  16. package/lib/dtos/post.dto.d.ts +0 -22
  17. package/lib/dtos/post.dto.js +1 -65
  18. package/lib/dtos/post.dto.js.map +1 -1
  19. package/lib/dtos/promotion.dto.d.ts +0 -8
  20. package/lib/dtos/promotion.dto.js +1 -37
  21. package/lib/dtos/promotion.dto.js.map +1 -1
  22. package/lib/dtos/question.dto.d.ts +0 -19
  23. package/lib/dtos/question.dto.js +1 -62
  24. package/lib/dtos/question.dto.js.map +1 -1
  25. package/lib/dtos/search.dto.d.ts +12 -0
  26. package/lib/dtos/search.dto.js +72 -0
  27. package/lib/dtos/search.dto.js.map +1 -0
  28. package/lib/dtos/survey.dto.d.ts +0 -24
  29. package/lib/dtos/survey.dto.js +1 -90
  30. package/lib/dtos/survey.dto.js.map +1 -1
  31. package/lib/dtos/user.dto.d.ts +0 -3
  32. package/lib/dtos/user.dto.js +1 -10
  33. package/lib/dtos/user.dto.js.map +1 -1
  34. package/lib/enums/asset.enum.d.ts +1 -3
  35. package/lib/enums/asset.enum.js +0 -2
  36. package/lib/enums/asset.enum.js.map +1 -1
  37. package/lib/enums/index.d.ts +0 -1
  38. package/lib/enums/index.js +0 -1
  39. package/lib/enums/index.js.map +1 -1
  40. package/lib/enums/module.enum.d.ts +0 -19
  41. package/lib/enums/module.enum.js +1 -21
  42. package/lib/enums/module.enum.js.map +1 -1
  43. package/lib/enums/setting.enum.d.ts +2 -2
  44. package/lib/enums/setting.enum.js +2 -2
  45. package/lib/enums/tracks.enum.d.ts +13 -2
  46. package/lib/enums/tracks.enum.js +23 -11
  47. package/lib/enums/tracks.enum.js.map +1 -1
  48. package/lib/models/author.d.ts +6 -4
  49. package/lib/models/author.js +22 -18
  50. package/lib/models/author.js.map +1 -1
  51. package/lib/models/boost.d.ts +5 -6
  52. package/lib/models/boost.js +17 -23
  53. package/lib/models/boost.js.map +1 -1
  54. package/lib/models/brand.d.ts +3 -1
  55. package/lib/models/brand.js +23 -3
  56. package/lib/models/brand.js.map +1 -1
  57. package/lib/models/category.d.ts +2 -1
  58. package/lib/models/category.js +7 -5
  59. package/lib/models/category.js.map +1 -1
  60. package/lib/models/collection.d.ts +5 -5
  61. package/lib/models/collection.js +19 -18
  62. package/lib/models/collection.js.map +1 -1
  63. package/lib/models/feedback.d.ts +7 -2
  64. package/lib/models/feedback.js +35 -28
  65. package/lib/models/feedback.js.map +1 -1
  66. package/lib/models/index.d.ts +2 -1
  67. package/lib/models/index.js +2 -1
  68. package/lib/models/index.js.map +1 -1
  69. package/lib/models/log.d.ts +11 -0
  70. package/lib/models/log.js +16 -0
  71. package/lib/models/log.js.map +1 -0
  72. package/lib/models/metric.d.ts +20 -0
  73. package/lib/models/metric.js +186 -0
  74. package/lib/models/metric.js.map +1 -0
  75. package/lib/models/post.d.ts +21 -29
  76. package/lib/models/post.js +213 -242
  77. package/lib/models/post.js.map +1 -1
  78. package/lib/models/promotion.d.ts +7 -2
  79. package/lib/models/promotion.js +31 -3
  80. package/lib/models/promotion.js.map +1 -1
  81. package/lib/models/publisher.d.ts +7 -3
  82. package/lib/models/publisher.js +30 -14
  83. package/lib/models/publisher.js.map +1 -1
  84. package/lib/models/question.d.ts +20 -29
  85. package/lib/models/question.js +88 -174
  86. package/lib/models/question.js.map +1 -1
  87. package/lib/models/quote.d.ts +0 -1
  88. package/lib/models/quote.js +0 -6
  89. package/lib/models/quote.js.map +1 -1
  90. package/lib/models/survey.d.ts +10 -2
  91. package/lib/models/survey.js +51 -25
  92. package/lib/models/survey.js.map +1 -1
  93. package/lib/models/topic.d.ts +5 -1
  94. package/lib/models/topic.js +26 -10
  95. package/lib/models/topic.js.map +1 -1
  96. package/lib/tsconfig.tsbuildinfo +1 -1
  97. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import { PostType, SortType, StatusType } from "../enums";
2
+ export declare class SearchParamsDto {
3
+ type?: PostType;
4
+ status?: StatusType;
5
+ term?: string;
6
+ sort?: SortType;
7
+ topics?: number[];
8
+ categories?: number[];
9
+ authors?: number[];
10
+ startDate?: Date;
11
+ endDate?: Date;
12
+ }
@@ -0,0 +1,72 @@
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.SearchParamsDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const enums_1 = require("../enums");
15
+ const class_transformer_1 = require("class-transformer");
16
+ class SearchParamsDto {
17
+ type;
18
+ status;
19
+ term;
20
+ sort;
21
+ topics;
22
+ categories;
23
+ authors;
24
+ startDate;
25
+ endDate;
26
+ }
27
+ exports.SearchParamsDto = SearchParamsDto;
28
+ __decorate([
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_validator_1.IsEnum)(enums_1.PostType),
31
+ __metadata("design:type", String)
32
+ ], SearchParamsDto.prototype, "type", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsEnum)(enums_1.StatusType),
36
+ __metadata("design:type", String)
37
+ ], SearchParamsDto.prototype, "status", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], SearchParamsDto.prototype, "term", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsEnum)(enums_1.SortType),
46
+ __metadata("design:type", String)
47
+ ], SearchParamsDto.prototype, "sort", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsOptional)(),
50
+ __metadata("design:type", Array)
51
+ ], SearchParamsDto.prototype, "topics", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsOptional)(),
54
+ __metadata("design:type", Array)
55
+ ], SearchParamsDto.prototype, "categories", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsOptional)(),
58
+ __metadata("design:type", Array)
59
+ ], SearchParamsDto.prototype, "authors", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsOptional)(),
62
+ (0, class_validator_1.IsDate)(),
63
+ (0, class_transformer_1.Type)(() => Date),
64
+ __metadata("design:type", Date)
65
+ ], SearchParamsDto.prototype, "startDate", void 0);
66
+ __decorate([
67
+ (0, class_validator_1.IsOptional)(),
68
+ (0, class_validator_1.IsDate)(),
69
+ (0, class_transformer_1.Type)(() => Date),
70
+ __metadata("design:type", Date)
71
+ ], SearchParamsDto.prototype, "endDate", void 0);
72
+ //# sourceMappingURL=search.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.dto.js","sourceRoot":"","sources":["../../src/dtos/search.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAA0D;AAC1D,yDAAyC;AAMzC,MAAa,eAAe;IAI3B,IAAI,CAAY;IAIhB,MAAM,CAAc;IAIpB,IAAI,CAAU;IAId,IAAI,CAAY;IAGhB,MAAM,CAAY;IAGlB,UAAU,CAAY;IAGtB,OAAO,CAAY;IAKnB,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CACf;AApCD,0CAoCC;AAhCA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;6CACD;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;+CACC;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;6CACD;AAGhB;IADC,IAAA,4BAAU,GAAE;;+CACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;mDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;gDACM;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;kDAAC;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACP,IAAI;gDAAC"}
@@ -1,33 +1,9 @@
1
- import { StatusType, SortType } from '../enums';
2
- export declare class SurveyParamsDto {
3
- status: StatusType;
4
- startDate: Date;
5
- endDate: Date;
6
- term: string;
7
- sort: SortType;
8
- }
9
1
  export declare class CreateSurveyDto {
10
2
  name: string;
11
3
  startDate: Date;
12
4
  endDate: Date;
13
5
  }
14
- export declare class SurveyNameDto {
15
- name: string;
16
- }
17
- export declare class SurveyDescriptionDto {
18
- description: string;
19
- }
20
- export declare class SurveyImageDto {
21
- url: string;
22
- }
23
- export declare class SurveyPeriodDto {
24
- startDate: Date;
25
- endDate: Date;
26
- }
27
6
  export declare class SurveyQuestionDto {
28
7
  question: string;
29
8
  multiple: boolean;
30
9
  }
31
- export declare class SurveyOptionDto {
32
- content: string;
33
- }
@@ -9,45 +9,9 @@ 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.SurveyOptionDto = exports.SurveyQuestionDto = exports.SurveyPeriodDto = exports.SurveyImageDto = exports.SurveyDescriptionDto = exports.SurveyNameDto = exports.CreateSurveyDto = exports.SurveyParamsDto = void 0;
12
+ exports.SurveyQuestionDto = exports.CreateSurveyDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
- const enums_1 = require("../enums");
16
- class SurveyParamsDto {
17
- status;
18
- startDate;
19
- endDate;
20
- term;
21
- sort;
22
- }
23
- exports.SurveyParamsDto = SurveyParamsDto;
24
- __decorate([
25
- (0, class_validator_1.IsOptional)(),
26
- (0, class_validator_1.IsEnum)(enums_1.StatusType),
27
- __metadata("design:type", String)
28
- ], SurveyParamsDto.prototype, "status", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsOptional)(),
31
- (0, class_validator_1.IsDate)(),
32
- (0, class_transformer_1.Type)(() => Date),
33
- __metadata("design:type", Date)
34
- ], SurveyParamsDto.prototype, "startDate", void 0);
35
- __decorate([
36
- (0, class_validator_1.IsOptional)(),
37
- (0, class_validator_1.IsDate)(),
38
- (0, class_transformer_1.Type)(() => Date),
39
- __metadata("design:type", Date)
40
- ], SurveyParamsDto.prototype, "endDate", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsOptional)(),
43
- (0, class_validator_1.IsString)(),
44
- __metadata("design:type", String)
45
- ], SurveyParamsDto.prototype, "term", void 0);
46
- __decorate([
47
- (0, class_validator_1.IsOptional)(),
48
- (0, class_validator_1.IsEnum)(enums_1.SortType),
49
- __metadata("design:type", String)
50
- ], SurveyParamsDto.prototype, "sort", void 0);
51
15
  class CreateSurveyDto {
52
16
  name;
53
17
  startDate;
@@ -71,50 +35,6 @@ __decorate([
71
35
  (0, class_transformer_1.Type)(() => Date),
72
36
  __metadata("design:type", Date)
73
37
  ], CreateSurveyDto.prototype, "endDate", void 0);
74
- class SurveyNameDto {
75
- name;
76
- }
77
- exports.SurveyNameDto = SurveyNameDto;
78
- __decorate([
79
- (0, class_validator_1.IsNotEmpty)(),
80
- (0, class_validator_1.IsString)(),
81
- __metadata("design:type", String)
82
- ], SurveyNameDto.prototype, "name", void 0);
83
- class SurveyDescriptionDto {
84
- description;
85
- }
86
- exports.SurveyDescriptionDto = SurveyDescriptionDto;
87
- __decorate([
88
- (0, class_validator_1.IsNotEmpty)(),
89
- (0, class_validator_1.IsString)(),
90
- __metadata("design:type", String)
91
- ], SurveyDescriptionDto.prototype, "description", void 0);
92
- class SurveyImageDto {
93
- url;
94
- }
95
- exports.SurveyImageDto = SurveyImageDto;
96
- __decorate([
97
- (0, class_validator_1.IsNotEmpty)(),
98
- (0, class_validator_1.IsString)(),
99
- __metadata("design:type", String)
100
- ], SurveyImageDto.prototype, "url", void 0);
101
- class SurveyPeriodDto {
102
- startDate;
103
- endDate;
104
- }
105
- exports.SurveyPeriodDto = SurveyPeriodDto;
106
- __decorate([
107
- (0, class_validator_1.IsNotEmpty)(),
108
- (0, class_validator_1.IsDate)(),
109
- (0, class_transformer_1.Type)(() => Date),
110
- __metadata("design:type", Date)
111
- ], SurveyPeriodDto.prototype, "startDate", void 0);
112
- __decorate([
113
- (0, class_validator_1.IsNotEmpty)(),
114
- (0, class_validator_1.IsDate)(),
115
- (0, class_transformer_1.Type)(() => Date),
116
- __metadata("design:type", Date)
117
- ], SurveyPeriodDto.prototype, "endDate", void 0);
118
38
  class SurveyQuestionDto {
119
39
  question;
120
40
  multiple;
@@ -131,13 +51,4 @@ __decorate([
131
51
  (0, class_transformer_1.Type)(() => Boolean),
132
52
  __metadata("design:type", Boolean)
133
53
  ], SurveyQuestionDto.prototype, "multiple", void 0);
134
- class SurveyOptionDto {
135
- content;
136
- }
137
- exports.SurveyOptionDto = SurveyOptionDto;
138
- __decorate([
139
- (0, class_validator_1.IsNotEmpty)(),
140
- (0, class_validator_1.IsString)(),
141
- __metadata("design:type", String)
142
- ], SurveyOptionDto.prototype, "content", void 0);
143
54
  //# sourceMappingURL=survey.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey.dto.js","sourceRoot":"","sources":["../../src/dtos/survey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8F;AAC9F,yDAAyC;AACzC,oCAAgD;AAEhD,MAAa,eAAe;IAI3B,MAAM,CAAa;IAKnB,SAAS,CAAO;IAKhB,OAAO,CAAO;IAId,IAAI,CAAS;IAIb,IAAI,CAAW;CACf;AAvBD,0CAuBC;AAnBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;+CACA;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;kDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;gDAAC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;6CACF;AAGhB,MAAa,eAAe;IAI3B,IAAI,CAAS;IAKb,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,0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IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;mDACF;AAGnB,MAAa,eAAe;IAG3B,OAAO,CAAS;CAChB;AAJD,0CAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACK"}
1
+ {"version":3,"file":"survey.dto.js","sourceRoot":"","sources":["../../src/dtos/survey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,yDAAyC;AAEzC,MAAa,eAAe;IAI3B,IAAI,CAAS;IAKb,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,0CAeC;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;kDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;gDAAC;AAGf,MAAa,iBAAiB;IAI7B,QAAQ,CAAS;IAKjB,QAAQ,CAAU;CAClB;AAVD,8CAUC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;mDACF"}
@@ -12,9 +12,6 @@ export declare class SubmitUserPasswordDto {
12
12
  passwordRepeat: string;
13
13
  otp: string;
14
14
  }
15
- export declare class SubmitUserNameDto {
16
- name: string;
17
- }
18
15
  export declare class SubmitUserPhoneDto {
19
16
  phone: string;
20
17
  otp: string;
@@ -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.SubmitUserProfilePictureDto = exports.SubmitUserRolesDto = exports.SubmitUserPhoneDto = exports.SubmitUserNameDto = exports.SubmitUserPasswordDto = exports.SubmitUserEmailDto = exports.InviteUserDto = void 0;
12
+ exports.SubmitUserProfilePictureDto = exports.SubmitUserRolesDto = exports.SubmitUserPhoneDto = exports.SubmitUserPasswordDto = exports.SubmitUserEmailDto = exports.InviteUserDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const security_1 = require("../security");
15
15
  class InviteUserDto {
@@ -63,15 +63,6 @@ __decorate([
63
63
  (0, class_validator_1.IsString)(),
64
64
  __metadata("design:type", String)
65
65
  ], SubmitUserPasswordDto.prototype, "otp", void 0);
66
- class SubmitUserNameDto {
67
- name;
68
- }
69
- exports.SubmitUserNameDto = SubmitUserNameDto;
70
- __decorate([
71
- (0, class_validator_1.IsNotEmpty)(),
72
- (0, class_validator_1.IsString)(),
73
- __metadata("design:type", String)
74
- ], SubmitUserNameDto.prototype, "name", void 0);
75
66
  class SubmitUserPhoneDto {
76
67
  phone;
77
68
  otp;
@@ -1 +1 @@
1
- {"version":3,"file":"user.dto.js","sourceRoot":"","sources":["../../src/dtos/user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0F;AAC1F,0CAAmC;AAGnC,MAAa,aAAa;IAItB,KAAK,CAAS;IAId,KAAK,CAAS;CACjB;AATD,sCASC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;4CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACf;AAGlB,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,GAAG,CAAS;CACZ;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ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2
  Image = "IMAGE",
3
3
  Video = "VIDEO",
4
- VideoFeed = "VIDEO_FEED",
5
4
  Audio = "AUDIO",
6
5
  Doc = "DOC",
7
- Embed = "EMBED",
8
- ImageExtern = "IMAGE_EXT"
6
+ Embed = "EMBED"
9
7
  }
@@ -5,10 +5,8 @@ var AssetType;
5
5
  (function (AssetType) {
6
6
  AssetType["Image"] = "IMAGE";
7
7
  AssetType["Video"] = "VIDEO";
8
- AssetType["VideoFeed"] = "VIDEO_FEED";
9
8
  AssetType["Audio"] = "AUDIO";
10
9
  AssetType["Doc"] = "DOC";
11
10
  AssetType["Embed"] = "EMBED";
12
- AssetType["ImageExtern"] = "IMAGE_EXT";
13
11
  })(AssetType || (exports.AssetType = AssetType = {}));
14
12
  //# sourceMappingURL=asset.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"asset.enum.js","sourceRoot":"","sources":["../../src/enums/asset.enum.ts"],"names":[],"mappings":";;;AAQA,IAAY,SAQX;AARD,WAAY,SAAS;IACpB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,qCAAwB,CAAA;IACxB,4BAAe,CAAA;IACf,wBAAW,CAAA;IACX,4BAAe,CAAA;IACf,sCAAyB,CAAA;AAC1B,CAAC,EARW,SAAS,yBAAT,SAAS,QAQpB"}
1
+ {"version":3,"file":"asset.enum.js","sourceRoot":"","sources":["../../src/enums/asset.enum.ts"],"names":[],"mappings":";;;AAQA,IAAY,SAMX;AAND,WAAY,SAAS;IACpB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,wBAAa,CAAA;IACb,4BAAe,CAAA;AAChB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB"}
@@ -1,7 +1,6 @@
1
1
  export * from './account.enum';
2
2
  export * from './asset.enum';
3
3
  export * from './color.enum';
4
- export * from './feed.enum';
5
4
  export * from './notification.enum';
6
5
  export * from './module.enum';
7
6
  export * from './popularity.enum';
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account.enum"), exports);
18
18
  __exportStar(require("./asset.enum"), exports);
19
19
  __exportStar(require("./color.enum"), exports);
20
- __exportStar(require("./feed.enum"), exports);
21
20
  __exportStar(require("./notification.enum"), exports);
22
21
  __exportStar(require("./module.enum"), exports);
23
22
  __exportStar(require("./popularity.enum"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,sDAAoC"}
@@ -4,22 +4,3 @@ export declare enum ModuleType {
4
4
  Library = "LIBRARY",
5
5
  Question = "QUESTION"
6
6
  }
7
- export declare enum FeatureType {
8
- Dashboard = "dashboard",
9
- Post = "post",
10
- Question = "question",
11
- Collection = "colleaction",
12
- Author = "author",
13
- Report = "report",
14
- Feedback = "feedback",
15
- Survey = "survey",
16
- Feed = "feed",
17
- Publisher = "publisher",
18
- Promotion = "Promotion",
19
- Topic = "topic",
20
- Asset = "asset",
21
- Team = "team",
22
- Setting = "setting",
23
- Profile = "profile",
24
- Boost = "boost"
25
- }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FeatureType = exports.ModuleType = void 0;
3
+ exports.ModuleType = void 0;
4
4
  var ModuleType;
5
5
  (function (ModuleType) {
6
6
  ModuleType["Home"] = "HOME";
@@ -8,24 +8,4 @@ var ModuleType;
8
8
  ModuleType["Library"] = "LIBRARY";
9
9
  ModuleType["Question"] = "QUESTION";
10
10
  })(ModuleType || (exports.ModuleType = ModuleType = {}));
11
- var FeatureType;
12
- (function (FeatureType) {
13
- FeatureType["Dashboard"] = "dashboard";
14
- FeatureType["Post"] = "post";
15
- FeatureType["Question"] = "question";
16
- FeatureType["Collection"] = "colleaction";
17
- FeatureType["Author"] = "author";
18
- FeatureType["Report"] = "report";
19
- FeatureType["Feedback"] = "feedback";
20
- FeatureType["Survey"] = "survey";
21
- FeatureType["Feed"] = "feed";
22
- FeatureType["Publisher"] = "publisher";
23
- FeatureType["Promotion"] = "Promotion";
24
- FeatureType["Topic"] = "topic";
25
- FeatureType["Asset"] = "asset";
26
- FeatureType["Team"] = "team";
27
- FeatureType["Setting"] = "setting";
28
- FeatureType["Profile"] = "profile";
29
- FeatureType["Boost"] = "boost";
30
- })(FeatureType || (exports.FeatureType = FeatureType = {}));
31
11
  //# sourceMappingURL=module.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.enum.js","sourceRoot":"","sources":["../../src/enums/module.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAqBX;AArBD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAKb,+BAAiB,CAAA;IAKjB,iCAAmB,CAAA;IAMnB,mCAAqB,CAAA;AACtB,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB;AAED,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACtB,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,oCAAqB,CAAA;IACrB,yCAA0B,CAAA;IAC1B,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;IACvB,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AAChB,CAAC,EAlBW,WAAW,2BAAX,WAAW,QAkBtB"}
1
+ {"version":3,"file":"module.enum.js","sourceRoot":"","sources":["../../src/enums/module.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAqBX;AArBD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAKb,+BAAiB,CAAA;IAKjB,iCAAmB,CAAA;IAMnB,mCAAqB,CAAA;AACtB,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB"}
@@ -4,7 +4,7 @@ export declare enum SettingType {
4
4
  Social = "SOCIAL",
5
5
  Link = "LINK",
6
6
  Auth = "AUTH",
7
- MAIL = "MAIL",
8
- PROVIDER = "PROVIDER",
7
+ Mail = "MAIL",
8
+ Provider = "PROVIDER",
9
9
  Other = "OTHER"
10
10
  }
@@ -8,8 +8,8 @@ var SettingType;
8
8
  SettingType["Social"] = "SOCIAL";
9
9
  SettingType["Link"] = "LINK";
10
10
  SettingType["Auth"] = "AUTH";
11
- SettingType["MAIL"] = "MAIL";
12
- SettingType["PROVIDER"] = "PROVIDER";
11
+ SettingType["Mail"] = "MAIL";
12
+ SettingType["Provider"] = "PROVIDER";
13
13
  SettingType["Other"] = "OTHER";
14
14
  })(SettingType || (exports.SettingType = SettingType = {}));
15
15
  //# sourceMappingURL=setting.enum.js.map
@@ -1,11 +1,22 @@
1
- export declare enum ContentActionType {
1
+ export declare enum MetricType {
2
2
  Seen = "SEEN",
3
3
  Open = "OPEN",
4
4
  Like = "LIKE",
5
5
  Bookmark = "BOOKMARK",
6
6
  Share = "SHARE",
7
7
  Download = "DOWNLOAD",
8
- Feedback = "FEEDBACK"
8
+ Feedback = "FEEDBACK",
9
+ Total = "TOTAL"
10
+ }
11
+ export declare enum LogType {
12
+ Created = "CREATED",
13
+ Updated = "UPDATED",
14
+ Deleted = "DELETED",
15
+ Status = "STATUS",
16
+ Started = "STARTED",
17
+ Rejected = "REJECTED",
18
+ Completed = "COMPLETED",
19
+ Attention = "Attention"
9
20
  }
10
21
  export declare enum SurveyActionType {
11
22
  Start = "START",
@@ -1,16 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthActionType = exports.SurveyActionType = exports.ContentActionType = void 0;
4
- var ContentActionType;
5
- (function (ContentActionType) {
6
- ContentActionType["Seen"] = "SEEN";
7
- ContentActionType["Open"] = "OPEN";
8
- ContentActionType["Like"] = "LIKE";
9
- ContentActionType["Bookmark"] = "BOOKMARK";
10
- ContentActionType["Share"] = "SHARE";
11
- ContentActionType["Download"] = "DOWNLOAD";
12
- ContentActionType["Feedback"] = "FEEDBACK";
13
- })(ContentActionType || (exports.ContentActionType = ContentActionType = {}));
3
+ exports.AuthActionType = exports.SurveyActionType = exports.LogType = exports.MetricType = void 0;
4
+ var MetricType;
5
+ (function (MetricType) {
6
+ MetricType["Seen"] = "SEEN";
7
+ MetricType["Open"] = "OPEN";
8
+ MetricType["Like"] = "LIKE";
9
+ MetricType["Bookmark"] = "BOOKMARK";
10
+ MetricType["Share"] = "SHARE";
11
+ MetricType["Download"] = "DOWNLOAD";
12
+ MetricType["Feedback"] = "FEEDBACK";
13
+ MetricType["Total"] = "TOTAL";
14
+ })(MetricType || (exports.MetricType = MetricType = {}));
15
+ var LogType;
16
+ (function (LogType) {
17
+ LogType["Created"] = "CREATED";
18
+ LogType["Updated"] = "UPDATED";
19
+ LogType["Deleted"] = "DELETED";
20
+ LogType["Status"] = "STATUS";
21
+ LogType["Started"] = "STARTED";
22
+ LogType["Rejected"] = "REJECTED";
23
+ LogType["Completed"] = "COMPLETED";
24
+ LogType["Attention"] = "Attention";
25
+ })(LogType || (exports.LogType = LogType = {}));
14
26
  var SurveyActionType;
15
27
  (function (SurveyActionType) {
16
28
  SurveyActionType["Start"] = "START";
@@ -1 +1 @@
1
- {"version":3,"file":"tracks.enum.js","sourceRoot":"","sources":["../../src/enums/tracks.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,iBA6BX;AA7BD,WAAY,iBAAiB;IAI5B,kCAAa,CAAA;IAIb,kCAAa,CAAA;IAIb,kCAAa,CAAA;IAIb,0CAAqB,CAAA;IAIrB,oCAAe,CAAA;IAIf,0CAAqB,CAAA;IAIrB,0CAAqB,CAAA;AACtB,CAAC,EA7BW,iBAAiB,iCAAjB,iBAAiB,QA6B5B;AAKD,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAI3B,mCAAe,CAAA;IAKf,2CAAuB,CAAA;IAKvB,qCAAiB,CAAA;AAClB,CAAC,EAfW,gBAAgB,gCAAhB,gBAAgB,QAe3B;AAED,IAAY,cAmCX;AAnCD,WAAY,cAAc;IAIzB,mCAAiB,CAAA;IAKjB,mCAAiB,CAAA;IAKjB,qCAAmB,CAAA;IAKnB,yCAAuB,CAAA;IAKvB,2CAAyB,CAAA;IAKzB,qCAAmB,CAAA;IAKnB,yCAAuB,CAAA;AACxB,CAAC,EAnCW,cAAc,8BAAd,cAAc,QAmCzB"}
1
+ {"version":3,"file":"tracks.enum.js","sourceRoot":"","sources":["../../src/enums/tracks.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAmCX;AAnCD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,mCAAqB,CAAA;IAIrB,6BAAe,CAAA;IAIf,mCAAqB,CAAA;IAIrB,mCAAqB,CAAA;IAKrB,6BAAe,CAAA;AAEhB,CAAC,EAnCW,UAAU,0BAAV,UAAU,QAmCrB;AAED,IAAY,OA4CX;AA5CD,WAAY,OAAO;IAClB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IAYnB,4BAAiB,CAAA;IAOjB,8BAAmB,CAAA;IAOnB,gCAAqB,CAAA;IAOrB,kCAAuB,CAAA;IAOvB,kCAAuB,CAAA;AACxB,CAAC,EA5CW,OAAO,uBAAP,OAAO,QA4ClB;AAKD,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAI3B,mCAAe,CAAA;IAKf,2CAAuB,CAAA;IAKvB,qCAAiB,CAAA;AAClB,CAAC,EAfW,gBAAgB,gCAAhB,gBAAgB,QAe3B;AAED,IAAY,cAmCX;AAnCD,WAAY,cAAc;IAIzB,mCAAiB,CAAA;IAKjB,mCAAiB,CAAA;IAKjB,qCAAmB,CAAA;IAKnB,yCAAuB,CAAA;IAKvB,2CAAyB,CAAA;IAKzB,qCAAmB,CAAA;IAKnB,yCAAuB,CAAA;AACxB,CAAC,EAnCW,cAAc,8BAAd,cAAc,QAmCzB"}
@@ -1,14 +1,16 @@
1
1
  import { Item } from "./item";
2
+ import { Metric } from "./metric";
3
+ import { Log } from "./log";
2
4
  export declare class Author {
3
5
  id: number;
4
6
  slug: string;
5
7
  name: string;
6
8
  biography: string;
7
9
  imageUrl: string;
8
- totalPosts: number;
9
- totalQuestionsComments: number;
10
- totalQuestions: number;
11
- metrics: Item[];
10
+ metricPosts: Metric;
11
+ metricQuestionFeedbacks: Metric;
12
+ logCreated: Log;
13
+ logUpdated: Log;
12
14
  constructor(props?: Partial<Author>);
13
15
  static toItemList(data: Author[], key?: 'id' | 'slug'): Item<any>[];
14
16
  }
@@ -12,16 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Author = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const item_1 = require("./item");
15
+ const metric_1 = require("./metric");
16
+ const log_1 = require("./log");
15
17
  class Author {
16
18
  id;
17
19
  slug;
18
20
  name;
19
21
  biography;
20
22
  imageUrl;
21
- totalPosts;
22
- totalQuestionsComments;
23
- totalQuestions;
24
- metrics;
23
+ metricPosts;
24
+ metricQuestionFeedbacks;
25
+ logCreated;
26
+ logUpdated;
25
27
  constructor(props) {
26
28
  Object.assign(this, props);
27
29
  }
@@ -58,22 +60,24 @@ __decorate([
58
60
  ], Author.prototype, "imageUrl", void 0);
59
61
  __decorate([
60
62
  (0, class_transformer_1.Expose)(),
61
- (0, class_transformer_1.Type)(() => Number),
62
- __metadata("design:type", Number)
63
- ], Author.prototype, "totalPosts", void 0);
63
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
64
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj?.totalPosts, ['fas', 'book-open'])),
65
+ __metadata("design:type", metric_1.Metric)
66
+ ], Author.prototype, "metricPosts", void 0);
64
67
  __decorate([
65
68
  (0, class_transformer_1.Expose)(),
66
- (0, class_transformer_1.Type)(() => Number),
67
- __metadata("design:type", Number)
68
- ], Author.prototype, "totalQuestionsComments", void 0);
69
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
70
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalQuestionFeedbacks', obj?.totalQuestionsFeedbacks)),
71
+ __metadata("design:type", metric_1.Metric)
72
+ ], Author.prototype, "metricQuestionFeedbacks", void 0);
69
73
  __decorate([
70
- (0, class_transformer_1.Expose)(),
71
- (0, class_transformer_1.Type)(() => Number),
72
- __metadata("design:type", Number)
73
- ], Author.prototype, "totalQuestions", void 0);
74
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
75
+ (0, class_transformer_1.Type)(() => log_1.Log),
76
+ __metadata("design:type", log_1.Log)
77
+ ], Author.prototype, "logCreated", void 0);
74
78
  __decorate([
75
- (0, class_transformer_1.Expose)(),
76
- (0, class_transformer_1.Type)(() => item_1.Item),
77
- __metadata("design:type", Array)
78
- ], Author.prototype, "metrics", void 0);
79
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
80
+ (0, class_transformer_1.Type)(() => log_1.Log),
81
+ __metadata("design:type", log_1.Log)
82
+ ], Author.prototype, "logUpdated", void 0);
79
83
  //# sourceMappingURL=author.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"author.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ACQ;AAWjB;IAPC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,eAAM,CAAC,KAAK,CACnC,YAAY,EACZ,GAAG,EAAE,UAAU,EACf,CAAC,KAAK,EAAE,WAAW,CAAC,CACpB,CAAC;8BACW,eAAM;2CAAC;AAQpB;IANC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,eAAM,CAAC,KAAK,CACnC,wBAAwB,EACxB,GAAG,EAAE,uBAAuB,CAC5B,CAAC;8BACuB,eAAM;uDAAC;AAMhC;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACJ,SAAG;0CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACJ,SAAG;0CAAC"}
@@ -1,15 +1,14 @@
1
1
  import { Post } from './post';
2
- import { User } from './user';
3
- import { Item } from './item';
2
+ import { Metric } from './metric';
3
+ import { Log } from './log';
4
4
  export declare class Boost {
5
5
  id: number;
6
6
  title: string;
7
7
  startDate: Date;
8
8
  endDate: Date;
9
- totalItems: number;
10
9
  items: Post[];
11
- createdBy: User;
12
- createdOn: Date;
13
- metrics: Item[];
10
+ metricPosts: Metric;
11
+ logCreated: Log;
12
+ logUpdated: Log;
14
13
  constructor(props?: Partial<Boost>);
15
14
  }