@intelact/bright 0.9.126 → 0.9.128

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. package/lib/chart/chart.dto.d.ts +16 -0
  2. package/lib/chart/chart.dto.js +87 -0
  3. package/lib/chart/chart.dto.js.map +1 -0
  4. package/lib/chart/chart.interface.d.ts +14 -0
  5. package/lib/{models/pagination.js → chart/chart.interface.js} +1 -1
  6. package/lib/chart/chart.interface.js.map +1 -0
  7. package/lib/chart/chart.model.d.ts +8 -0
  8. package/lib/{models/token.js → chart/chart.model.js} +1 -1
  9. package/lib/chart/chart.model.js.map +1 -0
  10. package/lib/chart/chart.types.d.ts +6 -0
  11. package/lib/chart/chart.types.js +11 -0
  12. package/lib/chart/chart.types.js.map +1 -0
  13. package/lib/chart/index.d.ts +4 -0
  14. package/lib/{helpers → chart}/index.js +4 -2
  15. package/lib/chart/index.js.map +1 -0
  16. package/lib/feedback/feedback.model.d.ts +2 -0
  17. package/lib/feedback/feedback.model.js +9 -0
  18. package/lib/feedback/feedback.model.js.map +1 -1
  19. package/lib/index.d.ts +1 -0
  20. package/lib/index.js +1 -0
  21. package/lib/index.js.map +1 -1
  22. package/lib/publisher/publisher.model.d.ts +2 -0
  23. package/lib/publisher/publisher.model.js +9 -0
  24. package/lib/publisher/publisher.model.js.map +1 -1
  25. package/lib/tsconfig.tsbuildinfo +1 -1
  26. package/package.json +1 -1
  27. package/lib/author/author.sort.d.ts +0 -7
  28. package/lib/author/author.sort.js +0 -12
  29. package/lib/author/author.sort.js.map +0 -1
  30. package/lib/common/browse.dto.d.ts +0 -9
  31. package/lib/common/browse.dto.js +0 -47
  32. package/lib/common/browse.dto.js.map +0 -1
  33. package/lib/dtos/asset.dto.d.ts +0 -14
  34. package/lib/dtos/asset.dto.js +0 -70
  35. package/lib/dtos/asset.dto.js.map +0 -1
  36. package/lib/dtos/auth.dto.d.ts +0 -39
  37. package/lib/dtos/auth.dto.js +0 -162
  38. package/lib/dtos/auth.dto.js.map +0 -1
  39. package/lib/dtos/author.dto.d.ts +0 -14
  40. package/lib/dtos/author.dto.js +0 -57
  41. package/lib/dtos/author.dto.js.map +0 -1
  42. package/lib/dtos/boost.dto.d.ts +0 -5
  43. package/lib/dtos/boost.dto.js +0 -38
  44. package/lib/dtos/boost.dto.js.map +0 -1
  45. package/lib/dtos/brand.dto.d.ts +0 -6
  46. package/lib/dtos/brand.dto.js +0 -41
  47. package/lib/dtos/brand.dto.js.map +0 -1
  48. package/lib/dtos/browse.dto.d.ts +0 -11
  49. package/lib/dtos/browse.dto.js +0 -55
  50. package/lib/dtos/browse.dto.js.map +0 -1
  51. package/lib/dtos/bulk.dto.d.ts +0 -3
  52. package/lib/dtos/bulk.dto.js +0 -22
  53. package/lib/dtos/bulk.dto.js.map +0 -1
  54. package/lib/dtos/category.dto.d.ts +0 -7
  55. package/lib/dtos/category.dto.js +0 -38
  56. package/lib/dtos/category.dto.js.map +0 -1
  57. package/lib/dtos/contact.dto.d.ts +0 -5
  58. package/lib/dtos/contact.dto.js +0 -35
  59. package/lib/dtos/contact.dto.js.map +0 -1
  60. package/lib/dtos/feedback.dto.d.ts +0 -9
  61. package/lib/dtos/feedback.dto.js +0 -47
  62. package/lib/dtos/feedback.dto.js.map +0 -1
  63. package/lib/dtos/general.dto.d.ts +0 -25
  64. package/lib/dtos/general.dto.js +0 -94
  65. package/lib/dtos/general.dto.js.map +0 -1
  66. package/lib/dtos/index.d.ts +0 -15
  67. package/lib/dtos/index.js +0 -32
  68. package/lib/dtos/index.js.map +0 -1
  69. package/lib/dtos/notification.d.ts +0 -4
  70. package/lib/dtos/notification.dto.d.ts +0 -4
  71. package/lib/dtos/notification.dto.js +0 -29
  72. package/lib/dtos/notification.dto.js.map +0 -1
  73. package/lib/dtos/notification.js +0 -29
  74. package/lib/dtos/notification.js.map +0 -1
  75. package/lib/dtos/post.dto.d.ts +0 -25
  76. package/lib/dtos/post.dto.js +0 -118
  77. package/lib/dtos/post.dto.js.map +0 -1
  78. package/lib/dtos/promotion.dto.d.ts +0 -5
  79. package/lib/dtos/promotion.dto.js +0 -38
  80. package/lib/dtos/promotion.dto.js.map +0 -1
  81. package/lib/dtos/publisher.dto.d.ts +0 -8
  82. package/lib/dtos/publisher.dto.js +0 -39
  83. package/lib/dtos/publisher.dto.js.map +0 -1
  84. package/lib/dtos/question.dto.d.ts +0 -15
  85. package/lib/dtos/question.dto.js +0 -86
  86. package/lib/dtos/question.dto.js.map +0 -1
  87. package/lib/dtos/search.dto.d.ts +0 -12
  88. package/lib/dtos/search.dto.js +0 -72
  89. package/lib/dtos/search.dto.js.map +0 -1
  90. package/lib/dtos/survey.dto.d.ts +0 -9
  91. package/lib/dtos/survey.dto.js +0 -54
  92. package/lib/dtos/survey.dto.js.map +0 -1
  93. package/lib/dtos/topic.dto.d.ts +0 -12
  94. package/lib/dtos/topic.dto.js +0 -50
  95. package/lib/dtos/topic.dto.js.map +0 -1
  96. package/lib/dtos/user.dto.d.ts +0 -24
  97. package/lib/dtos/user.dto.js +0 -99
  98. package/lib/dtos/user.dto.js.map +0 -1
  99. package/lib/enums/account.enum.d.ts +0 -11
  100. package/lib/enums/account.enum.js +0 -17
  101. package/lib/enums/account.enum.js.map +0 -1
  102. package/lib/enums/asset.enum.d.ts +0 -7
  103. package/lib/enums/asset.enum.js +0 -12
  104. package/lib/enums/asset.enum.js.map +0 -1
  105. package/lib/enums/color.enum.d.ts +0 -30
  106. package/lib/enums/color.enum.js +0 -37
  107. package/lib/enums/color.enum.js.map +0 -1
  108. package/lib/enums/feed.enum.d.ts +0 -5
  109. package/lib/enums/feed.enum.js +0 -10
  110. package/lib/enums/feed.enum.js.map +0 -1
  111. package/lib/enums/index.d.ts +0 -13
  112. package/lib/enums/index.js +0 -30
  113. package/lib/enums/index.js.map +0 -1
  114. package/lib/enums/module.enum.d.ts +0 -28
  115. package/lib/enums/module.enum.js +0 -34
  116. package/lib/enums/module.enum.js.map +0 -1
  117. package/lib/enums/notification.enum.d.ts +0 -12
  118. package/lib/enums/notification.enum.js +0 -18
  119. package/lib/enums/notification.enum.js.map +0 -1
  120. package/lib/enums/popularity.enum.d.ts +0 -8
  121. package/lib/enums/popularity.enum.js +0 -13
  122. package/lib/enums/popularity.enum.js.map +0 -1
  123. package/lib/enums/post.enum.d.ts +0 -8
  124. package/lib/enums/post.enum.js +0 -13
  125. package/lib/enums/post.enum.js.map +0 -1
  126. package/lib/enums/setting.enum.d.ts +0 -10
  127. package/lib/enums/setting.enum.js +0 -15
  128. package/lib/enums/setting.enum.js.map +0 -1
  129. package/lib/enums/social.enum.d.ts +0 -14
  130. package/lib/enums/social.enum.js +0 -20
  131. package/lib/enums/social.enum.js.map +0 -1
  132. package/lib/enums/sort.enum.d.ts +0 -21
  133. package/lib/enums/sort.enum.js +0 -28
  134. package/lib/enums/sort.enum.js.map +0 -1
  135. package/lib/enums/status.enum.d.ts +0 -13
  136. package/lib/enums/status.enum.js +0 -19
  137. package/lib/enums/status.enum.js.map +0 -1
  138. package/lib/enums/survey.enum.d.ts +0 -6
  139. package/lib/enums/survey.enum.js +0 -11
  140. package/lib/enums/survey.enum.js.map +0 -1
  141. package/lib/enums/tracks.enum.d.ts +0 -38
  142. package/lib/enums/tracks.enum.js +0 -46
  143. package/lib/enums/tracks.enum.js.map +0 -1
  144. package/lib/enums/verification.enum.d.ts +0 -5
  145. package/lib/enums/verification.enum.js +0 -10
  146. package/lib/enums/verification.enum.js.map +0 -1
  147. package/lib/helpers/index.d.ts +0 -2
  148. package/lib/helpers/index.js.map +0 -1
  149. package/lib/helpers/popularity.helper.d.ts +0 -2
  150. package/lib/helpers/popularity.helper.js +0 -58
  151. package/lib/helpers/popularity.helper.js.map +0 -1
  152. package/lib/helpers/post.helper.d.ts +0 -2
  153. package/lib/helpers/post.helper.js +0 -22
  154. package/lib/helpers/post.helper.js.map +0 -1
  155. package/lib/metric/metric.interface.d.ts +0 -11
  156. package/lib/metric/metric.interface.js +0 -3
  157. package/lib/metric/metric.interface.js.map +0 -1
  158. package/lib/models/asset.d.ts +0 -10
  159. package/lib/models/asset.js +0 -54
  160. package/lib/models/asset.js.map +0 -1
  161. package/lib/models/author.d.ts +0 -16
  162. package/lib/models/author.js +0 -83
  163. package/lib/models/author.js.map +0 -1
  164. package/lib/models/boost.d.ts +0 -14
  165. package/lib/models/boost.js +0 -73
  166. package/lib/models/boost.js.map +0 -1
  167. package/lib/models/brand.d.ts +0 -38
  168. package/lib/models/brand.js +0 -241
  169. package/lib/models/brand.js.map +0 -1
  170. package/lib/models/category.d.ts +0 -13
  171. package/lib/models/category.js +0 -69
  172. package/lib/models/category.js.map +0 -1
  173. package/lib/models/collection.d.ts +0 -14
  174. package/lib/models/collection.js +0 -65
  175. package/lib/models/collection.js.map +0 -1
  176. package/lib/models/feedback.d.ts +0 -38
  177. package/lib/models/feedback.js +0 -157
  178. package/lib/models/feedback.js.map +0 -1
  179. package/lib/models/gallery.d.ts +0 -6
  180. package/lib/models/gallery.js +0 -36
  181. package/lib/models/gallery.js.map +0 -1
  182. package/lib/models/index.d.ts +0 -23
  183. package/lib/models/index.js +0 -40
  184. package/lib/models/index.js.map +0 -1
  185. package/lib/models/item.d.ts +0 -14
  186. package/lib/models/item.js +0 -37
  187. package/lib/models/item.js.map +0 -1
  188. package/lib/models/link.d.ts +0 -16
  189. package/lib/models/link.js +0 -35
  190. package/lib/models/link.js.map +0 -1
  191. package/lib/models/log.d.ts +0 -11
  192. package/lib/models/log.js +0 -16
  193. package/lib/models/log.js.map +0 -1
  194. package/lib/models/metric.d.ts +0 -20
  195. package/lib/models/metric.js +0 -186
  196. package/lib/models/metric.js.map +0 -1
  197. package/lib/models/notification.d.ts +0 -14
  198. package/lib/models/notification.js +0 -64
  199. package/lib/models/notification.js.map +0 -1
  200. package/lib/models/pagination.d.ts +0 -17
  201. package/lib/models/pagination.js.map +0 -1
  202. package/lib/models/post.d.ts +0 -88
  203. package/lib/models/post.js +0 -466
  204. package/lib/models/post.js.map +0 -1
  205. package/lib/models/promotion.d.ts +0 -21
  206. package/lib/models/promotion.js +0 -108
  207. package/lib/models/promotion.js.map +0 -1
  208. package/lib/models/publisher.d.ts +0 -25
  209. package/lib/models/publisher.js +0 -118
  210. package/lib/models/publisher.js.map +0 -1
  211. package/lib/models/question.d.ts +0 -47
  212. package/lib/models/question.js +0 -238
  213. package/lib/models/question.js.map +0 -1
  214. package/lib/models/quote.d.ts +0 -5
  215. package/lib/models/quote.js +0 -31
  216. package/lib/models/quote.js.map +0 -1
  217. package/lib/models/response.d.ts +0 -6
  218. package/lib/models/response.js +0 -3
  219. package/lib/models/response.js.map +0 -1
  220. package/lib/models/share.d.ts +0 -6
  221. package/lib/models/share.js +0 -3
  222. package/lib/models/share.js.map +0 -1
  223. package/lib/models/survey.d.ts +0 -43
  224. package/lib/models/survey.js +0 -214
  225. package/lib/models/survey.js.map +0 -1
  226. package/lib/models/token.d.ts +0 -7
  227. package/lib/models/token.js.map +0 -1
  228. package/lib/models/topic.d.ts +0 -17
  229. package/lib/models/topic.js +0 -90
  230. package/lib/models/topic.js.map +0 -1
  231. package/lib/models/user.d.ts +0 -49
  232. package/lib/models/user.js +0 -258
  233. package/lib/models/user.js.map +0 -1
  234. package/lib/survey/survey.event.d.ts +0 -5
  235. package/lib/survey/survey.event.js +0 -10
  236. package/lib/survey/survey.event.js.map +0 -1
@@ -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,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,WAAI,CAAC;YAC7B,KAAK,EAAE,CAAC,CAAC,IAAI;YACb,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AAlED,wBAkEC;AA9DA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;oCACI;AAKb;IADC,IAAA,0BAAM,GAAE;;oCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;yCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;wCACQ;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,gBAAgB,EAChB,GAAG,EAAE,cAAc,CACnB,CAAC;8BACe,eAAM;+CAAC;AAMxB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;uCAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,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;aAClB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aACxB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CACT,IAAI,WAAI,CAAC;YACR,EAAE,EAAE,CAAC,CAAC,IAAI;YACV,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,IAAI,EAAE,CAAC,CAAC,KAAK;YACb,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;SACjB,CAAC,CACF,C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,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
- }
@@ -1,69 +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.Category = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const item_1 = require("./item");
15
- const metric_1 = require("./metric");
16
- class Category {
17
- id;
18
- title;
19
- hash;
20
- description;
21
- sort;
22
- questionEnabled;
23
- metricQuestions;
24
- constructor(props) {
25
- Object.assign(this, props);
26
- }
27
- static toItemList(data, key = 'id') {
28
- if (!data || data.length === 0)
29
- return [];
30
- return data.map(i => new item_1.Item({
31
- title: i.title,
32
- value: i[key]
33
- }));
34
- }
35
- }
36
- exports.Category = Category;
37
- __decorate([
38
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
39
- (0, class_transformer_1.Type)(() => Number),
40
- __metadata("design:type", Number)
41
- ], Category.prototype, "id", void 0);
42
- __decorate([
43
- (0, class_transformer_1.Expose)(),
44
- __metadata("design:type", String)
45
- ], Category.prototype, "title", void 0);
46
- __decorate([
47
- (0, class_transformer_1.Expose)(),
48
- __metadata("design:type", String)
49
- ], Category.prototype, "hash", void 0);
50
- __decorate([
51
- (0, class_transformer_1.Expose)(),
52
- __metadata("design:type", String)
53
- ], Category.prototype, "description", void 0);
54
- __decorate([
55
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
56
- (0, class_transformer_1.Type)(() => Number),
57
- __metadata("design:type", Number)
58
- ], Category.prototype, "sort", void 0);
59
- __decorate([
60
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
61
- (0, class_transformer_1.Type)(() => Boolean),
62
- __metadata("design:type", Boolean)
63
- ], Category.prototype, "questionEnabled", void 0);
64
- __decorate([
65
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
66
- (0, class_transformer_1.Type)(() => metric_1.Metric),
67
- __metadata("design:type", metric_1.Metric)
68
- ], Category.prototype, "metricQuestions", void 0);
69
- //# sourceMappingURL=category.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAC9B,qCAAkC;AAGlC,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAIb,eAAe,CAAU;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} from './metric';
4
- import { Log } from './log';
5
- export declare class Collection {
6
- id: number;
7
- title: string;
8
- items: Post[];
9
- metricPosts: Metric;
10
- created: Log;
11
- updated: Log;
12
- publisher: Publisher;
13
- constructor(props?: Partial<Collection>);
14
- }
@@ -1,65 +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.Collection = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const post_1 = require("./post");
15
- const publisher_1 = require("./publisher");
16
- const metric_1 = require("./metric");
17
- const log_1 = require("./log");
18
- class Collection {
19
- id;
20
- title;
21
- items;
22
- metricPosts;
23
- created;
24
- updated;
25
- publisher;
26
- constructor(props) {
27
- Object.assign(this, props);
28
- }
29
- }
30
- exports.Collection = Collection;
31
- __decorate([
32
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
33
- (0, class_transformer_1.Type)(() => Number),
34
- __metadata("design:type", Number)
35
- ], Collection.prototype, "id", void 0);
36
- __decorate([
37
- (0, class_transformer_1.Expose)(),
38
- __metadata("design:type", String)
39
- ], Collection.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
- ], Collection.prototype, "items", void 0);
45
- __decorate([
46
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
47
- (0, class_transformer_1.Type)(() => metric_1.Metric),
48
- __metadata("design:type", metric_1.Metric)
49
- ], Collection.prototype, "metricPosts", void 0);
50
- __decorate([
51
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
52
- (0, class_transformer_1.Type)(() => log_1.Log),
53
- __metadata("design:type", log_1.Log)
54
- ], Collection.prototype, "created", void 0);
55
- __decorate([
56
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
57
- (0, class_transformer_1.Type)(() => log_1.Log),
58
- __metadata("design:type", log_1.Log)
59
- ], Collection.prototype, "updated", void 0);
60
- __decorate([
61
- (0, class_transformer_1.Expose)(),
62
- (0, class_transformer_1.Type)(() => publisher_1.Publisher),
63
- __metadata("design:type", publisher_1.Publisher)
64
- ], Collection.prototype, "publisher", void 0);
65
- //# sourceMappingURL=collection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAC9B,2CAAwC;AACxC,qCAAkC;AAClC,+BAA4B;AAE5B,MAAa,UAAU;IAItB,EAAE,CAAS;IAKX,KAAK,CAAS;IAId,KAAK,CAAS;IAMd,WAAW,CAAS;IAMpB,OAAO,CAAM;IAIb,OAAO,CAAM;IAMb,SAAS,CAAY;IAErB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxCD,gCAwCC;AApCA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;yCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;yC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