@intelact/bright 0.9.127 → 0.9.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. package/lib/brand/brand.model.d.ts +1 -0
  2. package/lib/brand/brand.model.js +6 -0
  3. package/lib/brand/brand.model.js.map +1 -1
  4. package/lib/feedback/feedback.model.d.ts +2 -0
  5. package/lib/feedback/feedback.model.js +9 -0
  6. package/lib/feedback/feedback.model.js.map +1 -1
  7. package/lib/publisher/publisher.model.d.ts +2 -0
  8. package/lib/publisher/publisher.model.js +9 -0
  9. package/lib/publisher/publisher.model.js.map +1 -1
  10. package/lib/tsconfig.tsbuildinfo +1 -1
  11. package/package.json +1 -1
  12. package/lib/author/author.sort.d.ts +0 -7
  13. package/lib/author/author.sort.js +0 -12
  14. package/lib/author/author.sort.js.map +0 -1
  15. package/lib/common/browse.dto.d.ts +0 -9
  16. package/lib/common/browse.dto.js +0 -47
  17. package/lib/common/browse.dto.js.map +0 -1
  18. package/lib/dtos/asset.dto.d.ts +0 -14
  19. package/lib/dtos/asset.dto.js +0 -70
  20. package/lib/dtos/asset.dto.js.map +0 -1
  21. package/lib/dtos/auth.dto.d.ts +0 -39
  22. package/lib/dtos/auth.dto.js +0 -162
  23. package/lib/dtos/auth.dto.js.map +0 -1
  24. package/lib/dtos/author.dto.d.ts +0 -14
  25. package/lib/dtos/author.dto.js +0 -57
  26. package/lib/dtos/author.dto.js.map +0 -1
  27. package/lib/dtos/boost.dto.d.ts +0 -5
  28. package/lib/dtos/boost.dto.js +0 -38
  29. package/lib/dtos/boost.dto.js.map +0 -1
  30. package/lib/dtos/brand.dto.d.ts +0 -6
  31. package/lib/dtos/brand.dto.js +0 -41
  32. package/lib/dtos/brand.dto.js.map +0 -1
  33. package/lib/dtos/browse.dto.d.ts +0 -11
  34. package/lib/dtos/browse.dto.js +0 -55
  35. package/lib/dtos/browse.dto.js.map +0 -1
  36. package/lib/dtos/bulk.dto.d.ts +0 -3
  37. package/lib/dtos/bulk.dto.js +0 -22
  38. package/lib/dtos/bulk.dto.js.map +0 -1
  39. package/lib/dtos/category.dto.d.ts +0 -7
  40. package/lib/dtos/category.dto.js +0 -38
  41. package/lib/dtos/category.dto.js.map +0 -1
  42. package/lib/dtos/contact.dto.d.ts +0 -5
  43. package/lib/dtos/contact.dto.js +0 -35
  44. package/lib/dtos/contact.dto.js.map +0 -1
  45. package/lib/dtos/feedback.dto.d.ts +0 -9
  46. package/lib/dtos/feedback.dto.js +0 -47
  47. package/lib/dtos/feedback.dto.js.map +0 -1
  48. package/lib/dtos/general.dto.d.ts +0 -25
  49. package/lib/dtos/general.dto.js +0 -94
  50. package/lib/dtos/general.dto.js.map +0 -1
  51. package/lib/dtos/index.d.ts +0 -15
  52. package/lib/dtos/index.js +0 -32
  53. package/lib/dtos/index.js.map +0 -1
  54. package/lib/dtos/notification.d.ts +0 -4
  55. package/lib/dtos/notification.dto.d.ts +0 -4
  56. package/lib/dtos/notification.dto.js +0 -29
  57. package/lib/dtos/notification.dto.js.map +0 -1
  58. package/lib/dtos/notification.js +0 -29
  59. package/lib/dtos/notification.js.map +0 -1
  60. package/lib/dtos/post.dto.d.ts +0 -25
  61. package/lib/dtos/post.dto.js +0 -118
  62. package/lib/dtos/post.dto.js.map +0 -1
  63. package/lib/dtos/promotion.dto.d.ts +0 -5
  64. package/lib/dtos/promotion.dto.js +0 -38
  65. package/lib/dtos/promotion.dto.js.map +0 -1
  66. package/lib/dtos/publisher.dto.d.ts +0 -8
  67. package/lib/dtos/publisher.dto.js +0 -39
  68. package/lib/dtos/publisher.dto.js.map +0 -1
  69. package/lib/dtos/question.dto.d.ts +0 -15
  70. package/lib/dtos/question.dto.js +0 -86
  71. package/lib/dtos/question.dto.js.map +0 -1
  72. package/lib/dtos/search.dto.d.ts +0 -12
  73. package/lib/dtos/search.dto.js +0 -72
  74. package/lib/dtos/search.dto.js.map +0 -1
  75. package/lib/dtos/survey.dto.d.ts +0 -9
  76. package/lib/dtos/survey.dto.js +0 -54
  77. package/lib/dtos/survey.dto.js.map +0 -1
  78. package/lib/dtos/topic.dto.d.ts +0 -12
  79. package/lib/dtos/topic.dto.js +0 -50
  80. package/lib/dtos/topic.dto.js.map +0 -1
  81. package/lib/dtos/user.dto.d.ts +0 -24
  82. package/lib/dtos/user.dto.js +0 -99
  83. package/lib/dtos/user.dto.js.map +0 -1
  84. package/lib/enums/account.enum.d.ts +0 -11
  85. package/lib/enums/account.enum.js +0 -17
  86. package/lib/enums/account.enum.js.map +0 -1
  87. package/lib/enums/asset.enum.d.ts +0 -7
  88. package/lib/enums/asset.enum.js +0 -12
  89. package/lib/enums/asset.enum.js.map +0 -1
  90. package/lib/enums/color.enum.d.ts +0 -30
  91. package/lib/enums/color.enum.js +0 -37
  92. package/lib/enums/color.enum.js.map +0 -1
  93. package/lib/enums/feed.enum.d.ts +0 -5
  94. package/lib/enums/feed.enum.js +0 -10
  95. package/lib/enums/feed.enum.js.map +0 -1
  96. package/lib/enums/index.d.ts +0 -13
  97. package/lib/enums/index.js +0 -30
  98. package/lib/enums/index.js.map +0 -1
  99. package/lib/enums/module.enum.d.ts +0 -28
  100. package/lib/enums/module.enum.js +0 -34
  101. package/lib/enums/module.enum.js.map +0 -1
  102. package/lib/enums/notification.enum.d.ts +0 -12
  103. package/lib/enums/notification.enum.js +0 -18
  104. package/lib/enums/notification.enum.js.map +0 -1
  105. package/lib/enums/popularity.enum.d.ts +0 -8
  106. package/lib/enums/popularity.enum.js +0 -13
  107. package/lib/enums/popularity.enum.js.map +0 -1
  108. package/lib/enums/post.enum.d.ts +0 -8
  109. package/lib/enums/post.enum.js +0 -13
  110. package/lib/enums/post.enum.js.map +0 -1
  111. package/lib/enums/setting.enum.d.ts +0 -10
  112. package/lib/enums/setting.enum.js +0 -15
  113. package/lib/enums/setting.enum.js.map +0 -1
  114. package/lib/enums/social.enum.d.ts +0 -14
  115. package/lib/enums/social.enum.js +0 -20
  116. package/lib/enums/social.enum.js.map +0 -1
  117. package/lib/enums/sort.enum.d.ts +0 -21
  118. package/lib/enums/sort.enum.js +0 -28
  119. package/lib/enums/sort.enum.js.map +0 -1
  120. package/lib/enums/status.enum.d.ts +0 -13
  121. package/lib/enums/status.enum.js +0 -19
  122. package/lib/enums/status.enum.js.map +0 -1
  123. package/lib/enums/survey.enum.d.ts +0 -6
  124. package/lib/enums/survey.enum.js +0 -11
  125. package/lib/enums/survey.enum.js.map +0 -1
  126. package/lib/enums/tracks.enum.d.ts +0 -38
  127. package/lib/enums/tracks.enum.js +0 -46
  128. package/lib/enums/tracks.enum.js.map +0 -1
  129. package/lib/enums/verification.enum.d.ts +0 -5
  130. package/lib/enums/verification.enum.js +0 -10
  131. package/lib/enums/verification.enum.js.map +0 -1
  132. package/lib/helpers/index.d.ts +0 -2
  133. package/lib/helpers/index.js +0 -19
  134. package/lib/helpers/index.js.map +0 -1
  135. package/lib/helpers/popularity.helper.d.ts +0 -2
  136. package/lib/helpers/popularity.helper.js +0 -58
  137. package/lib/helpers/popularity.helper.js.map +0 -1
  138. package/lib/helpers/post.helper.d.ts +0 -2
  139. package/lib/helpers/post.helper.js +0 -22
  140. package/lib/helpers/post.helper.js.map +0 -1
  141. package/lib/metric/metric.interface.d.ts +0 -11
  142. package/lib/metric/metric.interface.js +0 -3
  143. package/lib/metric/metric.interface.js.map +0 -1
  144. package/lib/models/asset.d.ts +0 -10
  145. package/lib/models/asset.js +0 -54
  146. package/lib/models/asset.js.map +0 -1
  147. package/lib/models/author.d.ts +0 -16
  148. package/lib/models/author.js +0 -83
  149. package/lib/models/author.js.map +0 -1
  150. package/lib/models/boost.d.ts +0 -14
  151. package/lib/models/boost.js +0 -73
  152. package/lib/models/boost.js.map +0 -1
  153. package/lib/models/brand.d.ts +0 -38
  154. package/lib/models/brand.js +0 -241
  155. package/lib/models/brand.js.map +0 -1
  156. package/lib/models/category.d.ts +0 -13
  157. package/lib/models/category.js +0 -69
  158. package/lib/models/category.js.map +0 -1
  159. package/lib/models/collection.d.ts +0 -14
  160. package/lib/models/collection.js +0 -65
  161. package/lib/models/collection.js.map +0 -1
  162. package/lib/models/feedback.d.ts +0 -38
  163. package/lib/models/feedback.js +0 -157
  164. package/lib/models/feedback.js.map +0 -1
  165. package/lib/models/gallery.d.ts +0 -6
  166. package/lib/models/gallery.js +0 -36
  167. package/lib/models/gallery.js.map +0 -1
  168. package/lib/models/index.d.ts +0 -23
  169. package/lib/models/index.js +0 -40
  170. package/lib/models/index.js.map +0 -1
  171. package/lib/models/item.d.ts +0 -14
  172. package/lib/models/item.js +0 -37
  173. package/lib/models/item.js.map +0 -1
  174. package/lib/models/link.d.ts +0 -16
  175. package/lib/models/link.js +0 -35
  176. package/lib/models/link.js.map +0 -1
  177. package/lib/models/log.d.ts +0 -11
  178. package/lib/models/log.js +0 -16
  179. package/lib/models/log.js.map +0 -1
  180. package/lib/models/metric.d.ts +0 -20
  181. package/lib/models/metric.js +0 -186
  182. package/lib/models/metric.js.map +0 -1
  183. package/lib/models/notification.d.ts +0 -14
  184. package/lib/models/notification.js +0 -64
  185. package/lib/models/notification.js.map +0 -1
  186. package/lib/models/pagination.d.ts +0 -17
  187. package/lib/models/pagination.js +0 -3
  188. package/lib/models/pagination.js.map +0 -1
  189. package/lib/models/post.d.ts +0 -88
  190. package/lib/models/post.js +0 -466
  191. package/lib/models/post.js.map +0 -1
  192. package/lib/models/promotion.d.ts +0 -21
  193. package/lib/models/promotion.js +0 -108
  194. package/lib/models/promotion.js.map +0 -1
  195. package/lib/models/publisher.d.ts +0 -25
  196. package/lib/models/publisher.js +0 -118
  197. package/lib/models/publisher.js.map +0 -1
  198. package/lib/models/question.d.ts +0 -47
  199. package/lib/models/question.js +0 -238
  200. package/lib/models/question.js.map +0 -1
  201. package/lib/models/quote.d.ts +0 -5
  202. package/lib/models/quote.js +0 -31
  203. package/lib/models/quote.js.map +0 -1
  204. package/lib/models/response.d.ts +0 -6
  205. package/lib/models/response.js +0 -3
  206. package/lib/models/response.js.map +0 -1
  207. package/lib/models/share.d.ts +0 -6
  208. package/lib/models/share.js +0 -3
  209. package/lib/models/share.js.map +0 -1
  210. package/lib/models/survey.d.ts +0 -43
  211. package/lib/models/survey.js +0 -214
  212. package/lib/models/survey.js.map +0 -1
  213. package/lib/models/token.d.ts +0 -7
  214. package/lib/models/token.js +0 -3
  215. package/lib/models/token.js.map +0 -1
  216. package/lib/models/topic.d.ts +0 -17
  217. package/lib/models/topic.js +0 -90
  218. package/lib/models/topic.js.map +0 -1
  219. package/lib/models/user.d.ts +0 -49
  220. package/lib/models/user.js +0 -258
  221. package/lib/models/user.js.map +0 -1
  222. package/lib/survey/survey.event.d.ts +0 -5
  223. package/lib/survey/survey.event.js +0 -10
  224. package/lib/survey/survey.event.js.map +0 -1
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPostIcon = void 0;
4
- const enums_1 = require("../enums");
5
- function getPostIcon(postType, custom) {
6
- switch (postType) {
7
- case enums_1.PostType.Article:
8
- return custom ? '/assets/icons/content-type-article.svg' : 'file-lines';
9
- case enums_1.PostType.Book:
10
- return custom ? '/assets/icons/content-type-book.svg' : 'book-open';
11
- case enums_1.PostType.Audio:
12
- return custom ? '/assets/icons/content-type-audio.svg' : 'headphones';
13
- case enums_1.PostType.Video:
14
- return custom ? '/assets/icons/content-type-video.svg' : 'circle-play';
15
- case enums_1.PostType.News:
16
- return custom ? '/assets/icons/content-type-news.svg' : 'newspaper';
17
- case enums_1.PostType.Event:
18
- return custom ? '/assets/icons/content-type-event.svg' : 'microphone';
19
- }
20
- }
21
- exports.getPostIcon = getPostIcon;
22
- //# sourceMappingURL=post.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"post.helper.js","sourceRoot":"","sources":["../../src/helpers/post.helper.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AAEpC,SAAgB,WAAW,CAAC,QAAkB,EAAE,MAAgB;IAC/D,QAAQ,QAAQ,EAAE,CAAC;QAClB,KAAK,gBAAQ,CAAC,OAAO;YACpB,OAAO,MAAM,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAA,YAAY,CAAC;QACxE,KAAK,gBAAQ,CAAC,IAAI;YACjB,OAAO,MAAM,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,WAAW,CAAC;QACrE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,YAAY,CAAC;QACvE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,aAAa,CAAC;QACxE,KAAK,gBAAQ,CAAC,IAAI;YACjB,OAAO,MAAM,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,WAAW,CAAC;QACrE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,YAAY,CAAC;IACxE,CAAC;AACF,CAAC;AAfD,kCAeC"}
@@ -1,11 +0,0 @@
1
- export interface IMetrics {
2
- id: number;
3
- seen: number;
4
- opens: number;
5
- likes: number;
6
- shares: number;
7
- bookmarks: number;
8
- downloads: number;
9
- feedbacks: number;
10
- items: number;
11
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=metric.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metric.interface.js","sourceRoot":"","sources":["../../src/metric/metric.interface.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- import { AssetType } from '../enums';
2
- export declare class Asset {
3
- id: number;
4
- type: AssetType;
5
- url: string;
6
- title: string;
7
- tags: string[];
8
- mimeType: string;
9
- constructor(props?: Partial<Asset>);
10
- }
@@ -1,54 +0,0 @@
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.Asset = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const enums_1 = require("../enums");
15
- class Asset {
16
- id;
17
- type;
18
- url;
19
- title;
20
- tags;
21
- mimeType;
22
- constructor(props) {
23
- Object.assign(this, props);
24
- }
25
- }
26
- exports.Asset = Asset;
27
- __decorate([
28
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
29
- (0, class_transformer_1.Type)(() => Number),
30
- __metadata("design:type", Number)
31
- ], Asset.prototype, "id", void 0);
32
- __decorate([
33
- (0, class_transformer_1.Expose)(),
34
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
35
- __metadata("design:type", String)
36
- ], Asset.prototype, "type", void 0);
37
- __decorate([
38
- (0, class_transformer_1.Expose)(),
39
- __metadata("design:type", String)
40
- ], Asset.prototype, "url", void 0);
41
- __decorate([
42
- (0, class_transformer_1.Expose)(),
43
- __metadata("design:type", String)
44
- ], Asset.prototype, "title", void 0);
45
- __decorate([
46
- (0, class_transformer_1.Expose)(),
47
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
48
- __metadata("design:type", Array)
49
- ], Asset.prototype, "tags", void 0);
50
- __decorate([
51
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
52
- __metadata("design:type", String)
53
- ], Asset.prototype, "mimeType", void 0);
54
- //# sourceMappingURL=asset.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asset.js","sourceRoot":"","sources":["../../src/models/asset.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAqC;AAKrC,MAAa,KAAK;IAIjB,EAAE,CAAS;IAIX,IAAI,CAAY;IAGhB,GAAG,CAAS;IAGZ,KAAK,CAAS;IAId,IAAI,CAAW;IAGf,QAAQ,CAAS;IAEjB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1BD,sBA0BC;AAtBA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;mCACd;AAGhB;IADC,IAAA,0BAAM,GAAE;;kCACG;AAGZ;IADC,IAAA,0BAAM,GAAE;;oCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;mCACf;AAGf;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;uCACb"}
@@ -1,16 +0,0 @@
1
- import { Item } from "./item";
2
- import { Metric } from "./metric";
3
- import { Log } from "./log";
4
- export declare class Author {
5
- id: number;
6
- slug: string;
7
- name: string;
8
- biography: string;
9
- imageUrl: string;
10
- metricPosts: Metric;
11
- metricQuestions: Metric;
12
- created: Log;
13
- updated: Log;
14
- constructor(props?: Partial<Author>);
15
- static toItemList(data: Author[], key?: 'id' | 'slug'): Item<any>[];
16
- }
@@ -1,83 +0,0 @@
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.Author = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const item_1 = require("./item");
15
- const metric_1 = require("./metric");
16
- const log_1 = require("./log");
17
- class Author {
18
- id;
19
- slug;
20
- name;
21
- biography;
22
- imageUrl;
23
- metricPosts;
24
- metricQuestions;
25
- created;
26
- updated;
27
- constructor(props) {
28
- Object.assign(this, props);
29
- }
30
- static toItemList(data, key = 'id') {
31
- if (!data || data.length === 0)
32
- return [];
33
- return data.map(i => new item_1.Item({
34
- title: i.name,
35
- value: i[key]
36
- }));
37
- }
38
- }
39
- exports.Author = Author;
40
- __decorate([
41
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
42
- (0, class_transformer_1.Type)(() => Number),
43
- __metadata("design:type", Number)
44
- ], Author.prototype, "id", void 0);
45
- __decorate([
46
- (0, class_transformer_1.Expose)(),
47
- __metadata("design:type", String)
48
- ], Author.prototype, "slug", void 0);
49
- __decorate([
50
- (0, class_transformer_1.Expose)(),
51
- __metadata("design:type", String)
52
- ], Author.prototype, "name", void 0);
53
- __decorate([
54
- (0, class_transformer_1.Expose)(),
55
- __metadata("design:type", String)
56
- ], Author.prototype, "biography", void 0);
57
- __decorate([
58
- (0, class_transformer_1.Expose)(),
59
- __metadata("design:type", String)
60
- ], Author.prototype, "imageUrl", void 0);
61
- __decorate([
62
- (0, class_transformer_1.Expose)(),
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);
67
- __decorate([
68
- (0, class_transformer_1.Expose)(),
69
- (0, class_transformer_1.Type)(() => metric_1.Metric),
70
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalQuestions', obj?.totalQuestions)),
71
- __metadata("design:type", metric_1.Metric)
72
- ], Author.prototype, "metricQuestions", void 0);
73
- __decorate([
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, "created", void 0);
78
- __decorate([
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, "updated", void 0);
83
- //# sourceMappingURL=author.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"author.js","sourceRoot":"","sources":["../../src/models/author.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAE5B,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,IAAI,CAAS;IAGb,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAWjB,WAAW,CAAS;IAQpB,eAAe,CAAS;IAMxB,OAAO,CAAM;IAIb,OAAO,CAAM;IAEb,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAc,EAAE,MAAgB,IAAI;QACrD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAG,CAAC;YAAE,OAAO,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,GAAG,CAA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AAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;uCAAC"}
@@ -1,14 +0,0 @@
1
- import { Post } from './post';
2
- import { Metric } from './metric';
3
- import { Log } from './log';
4
- export declare class Boost {
5
- id: number;
6
- title: string;
7
- items: Post[];
8
- startDate: Date;
9
- endDate: Date;
10
- metricPosts: Metric;
11
- created: Log;
12
- updated: Log;
13
- constructor(props?: Partial<Boost>);
14
- }
@@ -1,73 +0,0 @@
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.Boost = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const post_1 = require("./post");
15
- const metric_1 = require("./metric");
16
- const log_1 = require("./log");
17
- let Boost = class Boost {
18
- id;
19
- title;
20
- items;
21
- startDate;
22
- endDate;
23
- metricPosts;
24
- created;
25
- updated;
26
- constructor(props) {
27
- Object.assign(this, props);
28
- }
29
- };
30
- exports.Boost = Boost;
31
- __decorate([
32
- (0, class_transformer_1.Expose)(),
33
- (0, class_transformer_1.Type)(() => Number),
34
- __metadata("design:type", Number)
35
- ], Boost.prototype, "id", void 0);
36
- __decorate([
37
- (0, class_transformer_1.Expose)(),
38
- __metadata("design:type", String)
39
- ], Boost.prototype, "title", void 0);
40
- __decorate([
41
- (0, class_transformer_1.Expose)(),
42
- (0, class_transformer_1.Type)(() => post_1.Post),
43
- __metadata("design:type", Array)
44
- ], Boost.prototype, "items", void 0);
45
- __decorate([
46
- (0, class_transformer_1.Expose)(),
47
- (0, class_transformer_1.Type)(() => Date),
48
- __metadata("design:type", Date)
49
- ], Boost.prototype, "startDate", void 0);
50
- __decorate([
51
- (0, class_transformer_1.Expose)(),
52
- (0, class_transformer_1.Type)(() => Date),
53
- __metadata("design:type", Date)
54
- ], Boost.prototype, "endDate", void 0);
55
- __decorate([
56
- (0, class_transformer_1.Type)(() => metric_1.Metric),
57
- __metadata("design:type", metric_1.Metric)
58
- ], Boost.prototype, "metricPosts", void 0);
59
- __decorate([
60
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
61
- (0, class_transformer_1.Type)(() => log_1.Log),
62
- __metadata("design:type", log_1.Log)
63
- ], Boost.prototype, "created", void 0);
64
- __decorate([
65
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
66
- (0, class_transformer_1.Type)(() => log_1.Log),
67
- __metadata("design:type", log_1.Log)
68
- ], Boost.prototype, "updated", void 0);
69
- exports.Boost = Boost = __decorate([
70
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
71
- __metadata("design:paramtypes", [Object])
72
- ], Boost);
73
- //# sourceMappingURL=boost.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boost.js","sourceRoot":"","sources":["../../src/models/boost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAGrB,IAAM,KAAK,GAAX,MAAM,KAAK;IAIjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAId,KAAK,CAAS;IAMd,SAAS,CAAO;IAIhB,OAAO,CAAO;IAKd,WAAW,CAAS;IAMpB,OAAO,CAAM;IAIb,OAAO,CAAM;IAEb,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AA3CY,sBAAK;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;oCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;oCACH;AAMd;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;sCAAC;AAKd;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACN,eAAM;0CAAC;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;sCAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;sCAAC;gBAtCD,KAAK;IADjB,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;GACjB,KAAK,CA2CjB"}
@@ -1,38 +0,0 @@
1
- import { AccountStatusType, ModuleType, PostType, SettingType } from '../enums';
2
- import { Publisher } from './publisher';
3
- import { Link } from './link';
4
- export declare class Brand {
5
- id: number;
6
- shortname: string;
7
- modules: ModuleType[];
8
- contentTypes: PostType[];
9
- name: string;
10
- slogan: string;
11
- url: string;
12
- email: string;
13
- description: string;
14
- logo: string;
15
- status: AccountStatusType;
16
- language: string;
17
- maintaince: boolean;
18
- apiVersion: string;
19
- appUpgrade: boolean;
20
- settings: BrandSetting[];
21
- publishers: Publisher[];
22
- constructor(props?: Partial<Brand>);
23
- getMobileStoreLinks(): Link[];
24
- getSocialLinks(): Link[];
25
- getLegalLinks(): Link[];
26
- getExternImageProviders(): string[];
27
- getExternVideoProviders(): string[];
28
- }
29
- export declare class BrandSetting {
30
- id: number;
31
- scope: SettingType;
32
- name: string;
33
- value: string;
34
- title: string;
35
- description: string;
36
- brand: Brand;
37
- constructor(props?: Partial<BrandSetting>);
38
- }
@@ -1,241 +0,0 @@
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.BrandSetting = exports.Brand = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const enums_1 = require("../enums");
15
- const publisher_1 = require("./publisher");
16
- const link_1 = require("./link");
17
- class Brand {
18
- id;
19
- shortname;
20
- modules;
21
- contentTypes;
22
- name;
23
- slogan;
24
- url;
25
- email;
26
- description;
27
- logo;
28
- status;
29
- language;
30
- maintaince;
31
- apiVersion;
32
- appUpgrade;
33
- settings;
34
- publishers;
35
- constructor(props) {
36
- Object.assign(this, props);
37
- }
38
- getMobileStoreLinks() {
39
- if (!this.settings) {
40
- return;
41
- }
42
- const def = {
43
- LINK_PLAY_STORE_URL: ['fab', 'google-play'],
44
- LINK_APPLE_STORE_URL: ['fab', 'app-store'],
45
- };
46
- return this.settings
47
- .filter(i => def[i.name])
48
- .map(i => (new link_1.Link({
49
- id: i.name,
50
- title: i.title,
51
- href: i.value,
52
- icon: def[i.name]
53
- })));
54
- }
55
- getSocialLinks() {
56
- if (!this.settings) {
57
- return;
58
- }
59
- const ICON = {
60
- SOCIAL_FACEBOOK_URL: ['fab', 'facebook-f'],
61
- SOCIAL_INSTAGRAM_URL: ['fab', 'instagram'],
62
- SOCIAL_TWITTER_URL: ['fab', 'x-twitter'],
63
- SOCIAL_LINKEDIN_URL: ['fab', 'linkedin-in'],
64
- };
65
- return this.settings
66
- .filter(i => i.scope === enums_1.SettingType.Social)
67
- .map(i => (new link_1.Link({
68
- id: i.name,
69
- title: i.title,
70
- href: i.value,
71
- icon: ICON[i.name]
72
- })));
73
- }
74
- getLegalLinks() {
75
- if (!this.settings) {
76
- return;
77
- }
78
- return this.settings
79
- .filter(i => i.scope === enums_1.SettingType.Legal)
80
- .map((i) => (new link_1.Link({
81
- id: i.name.toLowerCase().replaceAll('_', '-'),
82
- title: i.title,
83
- url: i.value.replaceAll(this.url, '')
84
- })));
85
- }
86
- getExternImageProviders() {
87
- const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'IMAGE_PROVIDERS');
88
- return setting?.value?.length > 0 ? setting.value.split(',') : [];
89
- }
90
- getExternVideoProviders() {
91
- const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'VIDEO_PROVIDERS');
92
- return setting?.value?.length > 0 ? setting.value.split(',') : [];
93
- }
94
- }
95
- exports.Brand = Brand;
96
- __decorate([
97
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
98
- (0, class_transformer_1.Type)(() => Number),
99
- __metadata("design:type", Number)
100
- ], Brand.prototype, "id", void 0);
101
- __decorate([
102
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
103
- __metadata("design:type", String)
104
- ], Brand.prototype, "shortname", void 0);
105
- __decorate([
106
- (0, class_transformer_1.Expose)(),
107
- __metadata("design:type", Array)
108
- ], Brand.prototype, "modules", void 0);
109
- __decorate([
110
- (0, class_transformer_1.Expose)(),
111
- __metadata("design:type", Array)
112
- ], Brand.prototype, "contentTypes", void 0);
113
- __decorate([
114
- (0, class_transformer_1.Expose)(),
115
- __metadata("design:type", String)
116
- ], Brand.prototype, "name", void 0);
117
- __decorate([
118
- (0, class_transformer_1.Expose)(),
119
- __metadata("design:type", String)
120
- ], Brand.prototype, "slogan", void 0);
121
- __decorate([
122
- (0, class_transformer_1.Expose)(),
123
- __metadata("design:type", String)
124
- ], Brand.prototype, "url", void 0);
125
- __decorate([
126
- (0, class_transformer_1.Expose)(),
127
- __metadata("design:type", String)
128
- ], Brand.prototype, "email", void 0);
129
- __decorate([
130
- (0, class_transformer_1.Expose)(),
131
- __metadata("design:type", String)
132
- ], Brand.prototype, "description", void 0);
133
- __decorate([
134
- (0, class_transformer_1.Expose)(),
135
- __metadata("design:type", String)
136
- ], Brand.prototype, "logo", void 0);
137
- __decorate([
138
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
139
- __metadata("design:type", String)
140
- ], Brand.prototype, "status", void 0);
141
- __decorate([
142
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
143
- __metadata("design:type", String)
144
- ], Brand.prototype, "language", void 0);
145
- __decorate([
146
- (0, class_transformer_1.Expose)(),
147
- (0, class_transformer_1.Type)(() => Boolean),
148
- __metadata("design:type", Boolean)
149
- ], Brand.prototype, "maintaince", void 0);
150
- __decorate([
151
- (0, class_transformer_1.Expose)(),
152
- __metadata("design:type", String)
153
- ], Brand.prototype, "apiVersion", void 0);
154
- __decorate([
155
- (0, class_transformer_1.Expose)(),
156
- (0, class_transformer_1.Type)(() => Boolean),
157
- __metadata("design:type", Boolean)
158
- ], Brand.prototype, "appUpgrade", void 0);
159
- __decorate([
160
- (0, class_transformer_1.Expose)(),
161
- (0, class_transformer_1.Type)(() => BrandSetting),
162
- __metadata("design:type", Array)
163
- ], Brand.prototype, "settings", void 0);
164
- __decorate([
165
- (0, class_transformer_1.Expose)(),
166
- (0, class_transformer_1.Type)(() => publisher_1.Publisher),
167
- __metadata("design:type", Array)
168
- ], Brand.prototype, "publishers", void 0);
169
- __decorate([
170
- (0, class_transformer_1.Expose)(),
171
- __metadata("design:type", Function),
172
- __metadata("design:paramtypes", []),
173
- __metadata("design:returntype", Array)
174
- ], Brand.prototype, "getMobileStoreLinks", null);
175
- __decorate([
176
- (0, class_transformer_1.Expose)(),
177
- __metadata("design:type", Function),
178
- __metadata("design:paramtypes", []),
179
- __metadata("design:returntype", Array)
180
- ], Brand.prototype, "getSocialLinks", null);
181
- __decorate([
182
- (0, class_transformer_1.Expose)(),
183
- __metadata("design:type", Function),
184
- __metadata("design:paramtypes", []),
185
- __metadata("design:returntype", Array)
186
- ], Brand.prototype, "getLegalLinks", null);
187
- __decorate([
188
- (0, class_transformer_1.Expose)(),
189
- __metadata("design:type", Function),
190
- __metadata("design:paramtypes", []),
191
- __metadata("design:returntype", Array)
192
- ], Brand.prototype, "getExternImageProviders", null);
193
- __decorate([
194
- (0, class_transformer_1.Expose)(),
195
- __metadata("design:type", Function),
196
- __metadata("design:paramtypes", []),
197
- __metadata("design:returntype", Array)
198
- ], Brand.prototype, "getExternVideoProviders", null);
199
- class BrandSetting {
200
- id;
201
- scope;
202
- name;
203
- value;
204
- title;
205
- description;
206
- brand;
207
- constructor(props) {
208
- Object.assign(this, props);
209
- }
210
- }
211
- exports.BrandSetting = BrandSetting;
212
- __decorate([
213
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
214
- __metadata("design:type", Number)
215
- ], BrandSetting.prototype, "id", void 0);
216
- __decorate([
217
- (0, class_transformer_1.Expose)(),
218
- __metadata("design:type", String)
219
- ], BrandSetting.prototype, "scope", void 0);
220
- __decorate([
221
- (0, class_transformer_1.Expose)(),
222
- __metadata("design:type", String)
223
- ], BrandSetting.prototype, "name", void 0);
224
- __decorate([
225
- (0, class_transformer_1.Expose)(),
226
- __metadata("design:type", String)
227
- ], BrandSetting.prototype, "value", void 0);
228
- __decorate([
229
- (0, class_transformer_1.Expose)(),
230
- __metadata("design:type", String)
231
- ], BrandSetting.prototype, "title", void 0);
232
- __decorate([
233
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
234
- __metadata("design:type", String)
235
- ], BrandSetting.prototype, "description", void 0);
236
- __decorate([
237
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
238
- (0, class_transformer_1.Type)(() => Brand),
239
- __metadata("design:type", Brand)
240
- ], BrandSetting.prototype, "brand", void 0);
241
- //# sourceMappingURL=brand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/models/brand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,oCAAgF;AAChF,2CAAwC;AACxC,iCAA8B;AAE9B,MAAa,KAAK;IAIjB,EAAE,CAAS;IAWX,SAAS,CAAS;IAMlB,OAAO,CAAe;IAMtB,YAAY,CAAa;IAKzB,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,GAAG,CAAS;IAMZ,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAKb,MAAM,CAAoB;IAG1B,QAAQ,CAAS;IAIjB,UAAU,CAAU;IAGpB,UAAU,CAAS;IAInB,UAAU,CAAU;IAMpB,QAAQ,CAAiB;IAIzB,UAAU,CAAc;IAExB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IASD,mBAAmB;QAElB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,OAAO;QACR,CAAC;QAMD,MAAM,GAAG,GAA+B;YACvC,mBAAmB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;YAC3C,oBAAoB,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC;SAC1C,CAAC;QAEF,OAAO,IAAI,CAAC,QAAQ;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S;IAGX,KAAK,CAAc;IAGnB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAGd,WAAW,CAAS;IAIpB,KAAK,CAAQ;IAEb,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA3BD,oCA2BC;AAxBA;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;wCACnB;AAGX;IADC,IAAA,0BAAM,GAAE;;2CACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;0CACI;AAGb;IADC,IAAA,0BAAM,GAAE;;2CACK;AAGd;IADC,IAAA,0BAAM,GAAE;;2CACK;AAGd;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;iDACV;AAIpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC;8BACX,KAAK;2CAAC"}
@@ -1,13 +0,0 @@
1
- import { Item } from "./item";
2
- import { Metric } from "./metric";
3
- export declare class Category {
4
- id: number;
5
- title: string;
6
- hash: string;
7
- description: string;
8
- sort: number;
9
- questionEnabled: boolean;
10
- metricQuestions: Metric;
11
- constructor(props?: Partial<Category>);
12
- static toItemList(data: Category[], key?: 'id' | 'hash'): Item<any>[];
13
- }