@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,38 +0,0 @@
1
- import { PostType } from '../enums';
2
- import { Metric } from './metric';
3
- import { Log } from './log';
4
- export declare class Feedback {
5
- id: number;
6
- type: PostType;
7
- title: string;
8
- description: string;
9
- icon: string;
10
- metricQuestions: Metric;
11
- metricPosts: Metric;
12
- metricUsers: Metric;
13
- created: Log;
14
- updated: Log;
15
- items: FeedbackItem[];
16
- constructor(props?: Partial<Feedback>);
17
- }
18
- export declare class FeedbackItem {
19
- id: number;
20
- question: string;
21
- multiple: boolean;
22
- sort: number;
23
- readonly: boolean;
24
- options: FeedbackOption[];
25
- constructor(props?: Partial<FeedbackItem>);
26
- }
27
- export declare class FeedbackOption {
28
- id: number;
29
- content: string;
30
- sort: number;
31
- isSelected: boolean;
32
- constructor(props?: Partial<FeedbackOption>);
33
- }
34
- export interface IFeedbackData {
35
- title: string;
36
- closable: boolean;
37
- feedback: Feedback;
38
- }
@@ -1,157 +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.FeedbackOption = exports.FeedbackItem = exports.Feedback = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const enums_1 = require("../enums");
15
- const metric_1 = require("./metric");
16
- const log_1 = require("./log");
17
- const helpers_1 = require("../helpers");
18
- class Feedback {
19
- id;
20
- type;
21
- title;
22
- description;
23
- icon;
24
- metricQuestions;
25
- metricPosts;
26
- metricUsers;
27
- created;
28
- updated;
29
- items;
30
- constructor(props) {
31
- Object.assign(this, props);
32
- }
33
- }
34
- exports.Feedback = Feedback;
35
- __decorate([
36
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
37
- (0, class_transformer_1.Type)(() => Number),
38
- __metadata("design:type", Number)
39
- ], Feedback.prototype, "id", void 0);
40
- __decorate([
41
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
42
- __metadata("design:type", String)
43
- ], Feedback.prototype, "type", void 0);
44
- __decorate([
45
- (0, class_transformer_1.Expose)(),
46
- __metadata("design:type", String)
47
- ], Feedback.prototype, "title", void 0);
48
- __decorate([
49
- (0, class_transformer_1.Expose)(),
50
- __metadata("design:type", String)
51
- ], Feedback.prototype, "description", void 0);
52
- __decorate([
53
- (0, class_transformer_1.Expose)(),
54
- (0, class_transformer_1.Transform)(({ obj }) => (0, helpers_1.getPostIcon)(obj?.type, true)),
55
- __metadata("design:type", String)
56
- ], Feedback.prototype, "icon", void 0);
57
- __decorate([
58
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
59
- (0, class_transformer_1.Type)(() => metric_1.Metric),
60
- __metadata("design:type", metric_1.Metric)
61
- ], Feedback.prototype, "metricQuestions", void 0);
62
- __decorate([
63
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
64
- (0, class_transformer_1.Type)(() => metric_1.Metric),
65
- __metadata("design:type", metric_1.Metric)
66
- ], Feedback.prototype, "metricPosts", void 0);
67
- __decorate([
68
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
69
- (0, class_transformer_1.Type)(() => metric_1.Metric),
70
- __metadata("design:type", metric_1.Metric)
71
- ], Feedback.prototype, "metricUsers", void 0);
72
- __decorate([
73
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
74
- (0, class_transformer_1.Type)(() => log_1.Log),
75
- __metadata("design:type", log_1.Log)
76
- ], Feedback.prototype, "created", void 0);
77
- __decorate([
78
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
79
- (0, class_transformer_1.Type)(() => log_1.Log),
80
- __metadata("design:type", log_1.Log)
81
- ], Feedback.prototype, "updated", void 0);
82
- __decorate([
83
- (0, class_transformer_1.Expose)(),
84
- (0, class_transformer_1.Type)(() => FeedbackItem),
85
- __metadata("design:type", Array)
86
- ], Feedback.prototype, "items", void 0);
87
- class FeedbackItem {
88
- id;
89
- question;
90
- multiple;
91
- sort;
92
- readonly;
93
- options;
94
- constructor(props) {
95
- Object.assign(this, props);
96
- }
97
- }
98
- exports.FeedbackItem = FeedbackItem;
99
- __decorate([
100
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
101
- (0, class_transformer_1.Type)(() => Number),
102
- __metadata("design:type", Number)
103
- ], FeedbackItem.prototype, "id", void 0);
104
- __decorate([
105
- (0, class_transformer_1.Expose)(),
106
- __metadata("design:type", String)
107
- ], FeedbackItem.prototype, "question", void 0);
108
- __decorate([
109
- (0, class_transformer_1.Expose)(),
110
- (0, class_transformer_1.Type)(() => Boolean),
111
- __metadata("design:type", Boolean)
112
- ], FeedbackItem.prototype, "multiple", void 0);
113
- __decorate([
114
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
115
- (0, class_transformer_1.Type)(() => Number),
116
- __metadata("design:type", Number)
117
- ], FeedbackItem.prototype, "sort", void 0);
118
- __decorate([
119
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
120
- (0, class_transformer_1.Type)(() => Boolean),
121
- __metadata("design:type", Boolean)
122
- ], FeedbackItem.prototype, "readonly", void 0);
123
- __decorate([
124
- (0, class_transformer_1.Expose)(),
125
- (0, class_transformer_1.Type)(() => FeedbackOption),
126
- __metadata("design:type", Array)
127
- ], FeedbackItem.prototype, "options", void 0);
128
- class FeedbackOption {
129
- id;
130
- content;
131
- sort;
132
- isSelected;
133
- constructor(props) {
134
- Object.assign(this, props);
135
- }
136
- }
137
- exports.FeedbackOption = FeedbackOption;
138
- __decorate([
139
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
140
- (0, class_transformer_1.Type)(() => Number),
141
- __metadata("design:type", Number)
142
- ], FeedbackOption.prototype, "id", void 0);
143
- __decorate([
144
- (0, class_transformer_1.Expose)(),
145
- __metadata("design:type", String)
146
- ], FeedbackOption.prototype, "content", void 0);
147
- __decorate([
148
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
149
- (0, class_transformer_1.Type)(() => Number),
150
- __metadata("design:type", Number)
151
- ], FeedbackOption.prototype, "sort", void 0);
152
- __decorate([
153
- (0, class_transformer_1.Expose)(),
154
- (0, class_transformer_1.Type)(() => Boolean),
155
- __metadata("design:type", Boolean)
156
- ], FeedbackOption.prototype, "isSelected", void 0);
157
- //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OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACN;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;8CACF;AAMlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC;;6CACD;AAO3B,MAAa,cAAc;IAI1B,EAAE,CAAS;IAKX,OAAO,CAAS;IAMhB,IAAI,CAAS;IAIb,UAAU,CAAU;IAEpB,YAAY,KAA+B;QAC1C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxBD,wCAwBC;AApBA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACR;AAKX;IADC,IAAA,0BAAM,GAAE;;+CACO;AAMhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACN;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;kDACA"}
@@ -1,6 +0,0 @@
1
- export declare class GalleryItem {
2
- title: string;
3
- imageUrl: string;
4
- sort: number;
5
- constructor(props?: Partial<GalleryItem>);
6
- }
@@ -1,36 +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.GalleryItem = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- class GalleryItem {
15
- title;
16
- imageUrl;
17
- sort;
18
- constructor(props) {
19
- Object.assign(this, props);
20
- }
21
- }
22
- exports.GalleryItem = GalleryItem;
23
- __decorate([
24
- (0, class_transformer_1.Expose)(),
25
- __metadata("design:type", String)
26
- ], GalleryItem.prototype, "title", void 0);
27
- __decorate([
28
- (0, class_transformer_1.Expose)(),
29
- __metadata("design:type", String)
30
- ], GalleryItem.prototype, "imageUrl", void 0);
31
- __decorate([
32
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
33
- (0, class_transformer_1.Type)(() => Number),
34
- __metadata("design:type", Number)
35
- ], GalleryItem.prototype, "sort", void 0);
36
- //# sourceMappingURL=gallery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../src/models/gallery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,WAAW;IAGvB,KAAK,CAAS;IAGd,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAEb,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAfD,kCAeC;AAZA;IADC,IAAA,0BAAM,GAAE;;0CACK;AAGd;IADC,IAAA,0BAAM,GAAE;;6CACQ;AAIjB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACN"}
@@ -1,23 +0,0 @@
1
- export * from './author';
2
- export * from './boost';
3
- export * from './brand';
4
- export * from './category';
5
- export * from './collection';
6
- export * from './feedback';
7
- export * from './gallery';
8
- export * from './item';
9
- export * from './link';
10
- export * from './log';
11
- export * from './metric';
12
- export * from './notification';
13
- export * from './post';
14
- export * from './promotion';
15
- export * from './publisher';
16
- export * from './question';
17
- export * from './quote';
18
- export * from './response';
19
- export * from './share';
20
- export * from './survey';
21
- export * from './token';
22
- export * from './topic';
23
- export * from './user';
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./author"), exports);
18
- __exportStar(require("./boost"), exports);
19
- __exportStar(require("./brand"), exports);
20
- __exportStar(require("./category"), exports);
21
- __exportStar(require("./collection"), exports);
22
- __exportStar(require("./feedback"), exports);
23
- __exportStar(require("./gallery"), exports);
24
- __exportStar(require("./item"), exports);
25
- __exportStar(require("./link"), exports);
26
- __exportStar(require("./log"), exports);
27
- __exportStar(require("./metric"), exports);
28
- __exportStar(require("./notification"), exports);
29
- __exportStar(require("./post"), exports);
30
- __exportStar(require("./promotion"), exports);
31
- __exportStar(require("./publisher"), exports);
32
- __exportStar(require("./question"), exports);
33
- __exportStar(require("./quote"), exports);
34
- __exportStar(require("./response"), exports);
35
- __exportStar(require("./share"), exports);
36
- __exportStar(require("./survey"), exports);
37
- __exportStar(require("./token"), exports);
38
- __exportStar(require("./topic"), exports);
39
- __exportStar(require("./user"), exports);
40
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,iDAA+B;AAC/B,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB"}
@@ -1,14 +0,0 @@
1
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
- import { Context } from '../enums';
3
- export declare class Item<T = any> {
4
- name?: string;
5
- title?: string;
6
- value?: T;
7
- active?: boolean;
8
- readonly?: boolean;
9
- icon?: IconProp;
10
- iconSelected?: IconProp;
11
- context?: Context;
12
- props?: any;
13
- constructor(props?: Partial<Item>);
14
- }
@@ -1,37 +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.Item = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- class Item {
15
- name;
16
- title;
17
- value;
18
- active;
19
- readonly;
20
- icon;
21
- iconSelected;
22
- context;
23
- props;
24
- constructor(props) {
25
- Object.assign(this, props);
26
- }
27
- }
28
- exports.Item = Item;
29
- __decorate([
30
- (0, class_transformer_1.Type)(() => Number),
31
- __metadata("design:type", Boolean)
32
- ], Item.prototype, "active", void 0);
33
- __decorate([
34
- (0, class_transformer_1.Type)(() => Number),
35
- __metadata("design:type", Boolean)
36
- ], Item.prototype, "readonly", void 0);
37
- //# sourceMappingURL=item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item.js","sourceRoot":"","sources":["../../src/models/item.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAyC;AAYzC,MAAa,IAAI;IAKhB,IAAI,CAAU;IAMd,KAAK,CAAU;IAKf,KAAK,CAAK;IAMV,MAAM,CAAW;IAMjB,QAAQ,CAAW;IAKnB,IAAI,CAAY;IAKhB,YAAY,CAAY;IAKxB,OAAO,CAAW;IAKlB,KAAK,CAAO;IAEZ,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArDD,oBAqDC;AA/BA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACF;AAMjB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACA"}
@@ -1,16 +0,0 @@
1
- import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
- import { Permission, Role } from "../security";
3
- export declare class Link {
4
- id?: string;
5
- title?: string;
6
- icon?: IconProp;
7
- iconName?: any;
8
- image?: string;
9
- url?: string;
10
- href?: string;
11
- active?: boolean;
12
- permission?: string;
13
- permissions?: Permission[];
14
- roles?: Role[];
15
- constructor(props: Partial<Link>);
16
- }
@@ -1,35 +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.Link = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- class Link {
15
- id;
16
- title;
17
- icon;
18
- iconName;
19
- image;
20
- url;
21
- href;
22
- active;
23
- permission;
24
- permissions;
25
- roles;
26
- constructor(props) {
27
- Object.assign(this, props);
28
- }
29
- }
30
- exports.Link = Link;
31
- __decorate([
32
- (0, class_transformer_1.Type)(() => Boolean),
33
- __metadata("design:type", Boolean)
34
- ], Link.prototype, "active", void 0);
35
- //# sourceMappingURL=link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/models/link.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAyC;AAQzC,MAAa,IAAI;IAIhB,EAAE,CAAU;IAKZ,KAAK,CAAU;IAKf,IAAI,CAAY;IAKhB,QAAQ,CAAO;IAKf,KAAK,CAAU;IAKf,GAAG,CAAU;IAKb,IAAI,CAAU;IAMd,MAAM,CAAW;IAOjB,UAAU,CAAU;IAKpB,WAAW,CAAgB;IAK3B,KAAK,CAAU;IAEf,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA9DD,oBA8DC;AAtBA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;oCACH"}
@@ -1,11 +0,0 @@
1
- import { EventType, ModuleScope } from "../enums";
2
- import { User } from "./user";
3
- export declare class Log {
4
- on: Date;
5
- by?: User;
6
- content?: string;
7
- entityId?: number;
8
- scope?: ModuleScope;
9
- event?: EventType;
10
- constructor(props?: Partial<Log>);
11
- }
package/lib/models/log.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Log = void 0;
4
- class Log {
5
- on;
6
- by;
7
- content;
8
- entityId;
9
- scope;
10
- event;
11
- constructor(props) {
12
- Object.assign(this, props);
13
- }
14
- }
15
- exports.Log = Log;
16
- //# sourceMappingURL=log.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/models/log.ts"],"names":[],"mappings":";;;AAIA,MAAa,GAAG;IAMf,EAAE,CAAO;IAQT,EAAE,CAAQ;IAMV,OAAO,CAAU;IAQjB,QAAQ,CAAU;IAQlB,KAAK,CAAe;IAMpB,KAAK,CAAa;IAElB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/CD,kBA+CC"}
@@ -1,20 +0,0 @@
1
- import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
- import { MetricType } from "../enums";
3
- export declare class Metric {
4
- name?: string;
5
- title?: string;
6
- type: MetricType;
7
- value: number;
8
- active: boolean;
9
- icon: IconProp;
10
- iconActive: IconProp;
11
- constructor(props?: Partial<Metric>);
12
- static seen(val: number, active?: boolean): Metric;
13
- static open(val: number, active?: boolean): Metric;
14
- static like(val: number, active?: boolean): Metric;
15
- static bookmark(val: number, active?: boolean): Metric;
16
- static share(val: number, active?: boolean): Metric;
17
- static download(val: number, active?: boolean): Metric;
18
- static feedback(val: number, active?: boolean): Metric;
19
- static total(title: string, val: number, icon?: IconProp, active?: boolean): Metric;
20
- }