@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.
- package/lib/chart/chart.dto.d.ts +16 -0
- package/lib/chart/chart.dto.js +87 -0
- package/lib/chart/chart.dto.js.map +1 -0
- package/lib/chart/chart.interface.d.ts +14 -0
- package/lib/{models/pagination.js → chart/chart.interface.js} +1 -1
- package/lib/chart/chart.interface.js.map +1 -0
- package/lib/chart/chart.model.d.ts +8 -0
- package/lib/{models/token.js → chart/chart.model.js} +1 -1
- package/lib/chart/chart.model.js.map +1 -0
- package/lib/chart/chart.types.d.ts +6 -0
- package/lib/chart/chart.types.js +11 -0
- package/lib/chart/chart.types.js.map +1 -0
- package/lib/chart/index.d.ts +4 -0
- package/lib/{helpers → chart}/index.js +4 -2
- package/lib/chart/index.js.map +1 -0
- package/lib/feedback/feedback.model.d.ts +2 -0
- package/lib/feedback/feedback.model.js +9 -0
- package/lib/feedback/feedback.model.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/publisher/publisher.model.d.ts +2 -0
- package/lib/publisher/publisher.model.js +9 -0
- package/lib/publisher/publisher.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/lib/author/author.sort.d.ts +0 -7
- package/lib/author/author.sort.js +0 -12
- package/lib/author/author.sort.js.map +0 -1
- package/lib/common/browse.dto.d.ts +0 -9
- package/lib/common/browse.dto.js +0 -47
- package/lib/common/browse.dto.js.map +0 -1
- package/lib/dtos/asset.dto.d.ts +0 -14
- package/lib/dtos/asset.dto.js +0 -70
- package/lib/dtos/asset.dto.js.map +0 -1
- package/lib/dtos/auth.dto.d.ts +0 -39
- package/lib/dtos/auth.dto.js +0 -162
- package/lib/dtos/auth.dto.js.map +0 -1
- package/lib/dtos/author.dto.d.ts +0 -14
- package/lib/dtos/author.dto.js +0 -57
- package/lib/dtos/author.dto.js.map +0 -1
- package/lib/dtos/boost.dto.d.ts +0 -5
- package/lib/dtos/boost.dto.js +0 -38
- package/lib/dtos/boost.dto.js.map +0 -1
- package/lib/dtos/brand.dto.d.ts +0 -6
- package/lib/dtos/brand.dto.js +0 -41
- package/lib/dtos/brand.dto.js.map +0 -1
- package/lib/dtos/browse.dto.d.ts +0 -11
- package/lib/dtos/browse.dto.js +0 -55
- package/lib/dtos/browse.dto.js.map +0 -1
- package/lib/dtos/bulk.dto.d.ts +0 -3
- package/lib/dtos/bulk.dto.js +0 -22
- package/lib/dtos/bulk.dto.js.map +0 -1
- package/lib/dtos/category.dto.d.ts +0 -7
- package/lib/dtos/category.dto.js +0 -38
- package/lib/dtos/category.dto.js.map +0 -1
- package/lib/dtos/contact.dto.d.ts +0 -5
- package/lib/dtos/contact.dto.js +0 -35
- package/lib/dtos/contact.dto.js.map +0 -1
- package/lib/dtos/feedback.dto.d.ts +0 -9
- package/lib/dtos/feedback.dto.js +0 -47
- package/lib/dtos/feedback.dto.js.map +0 -1
- package/lib/dtos/general.dto.d.ts +0 -25
- package/lib/dtos/general.dto.js +0 -94
- package/lib/dtos/general.dto.js.map +0 -1
- package/lib/dtos/index.d.ts +0 -15
- package/lib/dtos/index.js +0 -32
- package/lib/dtos/index.js.map +0 -1
- package/lib/dtos/notification.d.ts +0 -4
- package/lib/dtos/notification.dto.d.ts +0 -4
- package/lib/dtos/notification.dto.js +0 -29
- package/lib/dtos/notification.dto.js.map +0 -1
- package/lib/dtos/notification.js +0 -29
- package/lib/dtos/notification.js.map +0 -1
- package/lib/dtos/post.dto.d.ts +0 -25
- package/lib/dtos/post.dto.js +0 -118
- package/lib/dtos/post.dto.js.map +0 -1
- package/lib/dtos/promotion.dto.d.ts +0 -5
- package/lib/dtos/promotion.dto.js +0 -38
- package/lib/dtos/promotion.dto.js.map +0 -1
- package/lib/dtos/publisher.dto.d.ts +0 -8
- package/lib/dtos/publisher.dto.js +0 -39
- package/lib/dtos/publisher.dto.js.map +0 -1
- package/lib/dtos/question.dto.d.ts +0 -15
- package/lib/dtos/question.dto.js +0 -86
- package/lib/dtos/question.dto.js.map +0 -1
- package/lib/dtos/search.dto.d.ts +0 -12
- package/lib/dtos/search.dto.js +0 -72
- package/lib/dtos/search.dto.js.map +0 -1
- package/lib/dtos/survey.dto.d.ts +0 -9
- package/lib/dtos/survey.dto.js +0 -54
- package/lib/dtos/survey.dto.js.map +0 -1
- package/lib/dtos/topic.dto.d.ts +0 -12
- package/lib/dtos/topic.dto.js +0 -50
- package/lib/dtos/topic.dto.js.map +0 -1
- package/lib/dtos/user.dto.d.ts +0 -24
- package/lib/dtos/user.dto.js +0 -99
- package/lib/dtos/user.dto.js.map +0 -1
- package/lib/enums/account.enum.d.ts +0 -11
- package/lib/enums/account.enum.js +0 -17
- package/lib/enums/account.enum.js.map +0 -1
- package/lib/enums/asset.enum.d.ts +0 -7
- package/lib/enums/asset.enum.js +0 -12
- package/lib/enums/asset.enum.js.map +0 -1
- package/lib/enums/color.enum.d.ts +0 -30
- package/lib/enums/color.enum.js +0 -37
- package/lib/enums/color.enum.js.map +0 -1
- package/lib/enums/feed.enum.d.ts +0 -5
- package/lib/enums/feed.enum.js +0 -10
- package/lib/enums/feed.enum.js.map +0 -1
- package/lib/enums/index.d.ts +0 -13
- package/lib/enums/index.js +0 -30
- package/lib/enums/index.js.map +0 -1
- package/lib/enums/module.enum.d.ts +0 -28
- package/lib/enums/module.enum.js +0 -34
- package/lib/enums/module.enum.js.map +0 -1
- package/lib/enums/notification.enum.d.ts +0 -12
- package/lib/enums/notification.enum.js +0 -18
- package/lib/enums/notification.enum.js.map +0 -1
- package/lib/enums/popularity.enum.d.ts +0 -8
- package/lib/enums/popularity.enum.js +0 -13
- package/lib/enums/popularity.enum.js.map +0 -1
- package/lib/enums/post.enum.d.ts +0 -8
- package/lib/enums/post.enum.js +0 -13
- package/lib/enums/post.enum.js.map +0 -1
- package/lib/enums/setting.enum.d.ts +0 -10
- package/lib/enums/setting.enum.js +0 -15
- package/lib/enums/setting.enum.js.map +0 -1
- package/lib/enums/social.enum.d.ts +0 -14
- package/lib/enums/social.enum.js +0 -20
- package/lib/enums/social.enum.js.map +0 -1
- package/lib/enums/sort.enum.d.ts +0 -21
- package/lib/enums/sort.enum.js +0 -28
- package/lib/enums/sort.enum.js.map +0 -1
- package/lib/enums/status.enum.d.ts +0 -13
- package/lib/enums/status.enum.js +0 -19
- package/lib/enums/status.enum.js.map +0 -1
- package/lib/enums/survey.enum.d.ts +0 -6
- package/lib/enums/survey.enum.js +0 -11
- package/lib/enums/survey.enum.js.map +0 -1
- package/lib/enums/tracks.enum.d.ts +0 -38
- package/lib/enums/tracks.enum.js +0 -46
- package/lib/enums/tracks.enum.js.map +0 -1
- package/lib/enums/verification.enum.d.ts +0 -5
- package/lib/enums/verification.enum.js +0 -10
- package/lib/enums/verification.enum.js.map +0 -1
- package/lib/helpers/index.d.ts +0 -2
- package/lib/helpers/index.js.map +0 -1
- package/lib/helpers/popularity.helper.d.ts +0 -2
- package/lib/helpers/popularity.helper.js +0 -58
- package/lib/helpers/popularity.helper.js.map +0 -1
- package/lib/helpers/post.helper.d.ts +0 -2
- package/lib/helpers/post.helper.js +0 -22
- package/lib/helpers/post.helper.js.map +0 -1
- package/lib/metric/metric.interface.d.ts +0 -11
- package/lib/metric/metric.interface.js +0 -3
- package/lib/metric/metric.interface.js.map +0 -1
- package/lib/models/asset.d.ts +0 -10
- package/lib/models/asset.js +0 -54
- package/lib/models/asset.js.map +0 -1
- package/lib/models/author.d.ts +0 -16
- package/lib/models/author.js +0 -83
- package/lib/models/author.js.map +0 -1
- package/lib/models/boost.d.ts +0 -14
- package/lib/models/boost.js +0 -73
- package/lib/models/boost.js.map +0 -1
- package/lib/models/brand.d.ts +0 -38
- package/lib/models/brand.js +0 -241
- package/lib/models/brand.js.map +0 -1
- package/lib/models/category.d.ts +0 -13
- package/lib/models/category.js +0 -69
- package/lib/models/category.js.map +0 -1
- package/lib/models/collection.d.ts +0 -14
- package/lib/models/collection.js +0 -65
- package/lib/models/collection.js.map +0 -1
- package/lib/models/feedback.d.ts +0 -38
- package/lib/models/feedback.js +0 -157
- package/lib/models/feedback.js.map +0 -1
- package/lib/models/gallery.d.ts +0 -6
- package/lib/models/gallery.js +0 -36
- package/lib/models/gallery.js.map +0 -1
- package/lib/models/index.d.ts +0 -23
- package/lib/models/index.js +0 -40
- package/lib/models/index.js.map +0 -1
- package/lib/models/item.d.ts +0 -14
- package/lib/models/item.js +0 -37
- package/lib/models/item.js.map +0 -1
- package/lib/models/link.d.ts +0 -16
- package/lib/models/link.js +0 -35
- package/lib/models/link.js.map +0 -1
- package/lib/models/log.d.ts +0 -11
- package/lib/models/log.js +0 -16
- package/lib/models/log.js.map +0 -1
- package/lib/models/metric.d.ts +0 -20
- package/lib/models/metric.js +0 -186
- package/lib/models/metric.js.map +0 -1
- package/lib/models/notification.d.ts +0 -14
- package/lib/models/notification.js +0 -64
- package/lib/models/notification.js.map +0 -1
- package/lib/models/pagination.d.ts +0 -17
- package/lib/models/pagination.js.map +0 -1
- package/lib/models/post.d.ts +0 -88
- package/lib/models/post.js +0 -466
- package/lib/models/post.js.map +0 -1
- package/lib/models/promotion.d.ts +0 -21
- package/lib/models/promotion.js +0 -108
- package/lib/models/promotion.js.map +0 -1
- package/lib/models/publisher.d.ts +0 -25
- package/lib/models/publisher.js +0 -118
- package/lib/models/publisher.js.map +0 -1
- package/lib/models/question.d.ts +0 -47
- package/lib/models/question.js +0 -238
- package/lib/models/question.js.map +0 -1
- package/lib/models/quote.d.ts +0 -5
- package/lib/models/quote.js +0 -31
- package/lib/models/quote.js.map +0 -1
- package/lib/models/response.d.ts +0 -6
- package/lib/models/response.js +0 -3
- package/lib/models/response.js.map +0 -1
- package/lib/models/share.d.ts +0 -6
- package/lib/models/share.js +0 -3
- package/lib/models/share.js.map +0 -1
- package/lib/models/survey.d.ts +0 -43
- package/lib/models/survey.js +0 -214
- package/lib/models/survey.js.map +0 -1
- package/lib/models/token.d.ts +0 -7
- package/lib/models/token.js.map +0 -1
- package/lib/models/topic.d.ts +0 -17
- package/lib/models/topic.js +0 -90
- package/lib/models/topic.js.map +0 -1
- package/lib/models/user.d.ts +0 -49
- package/lib/models/user.js +0 -258
- package/lib/models/user.js.map +0 -1
- package/lib/survey/survey.event.d.ts +0 -5
- package/lib/survey/survey.event.js +0 -10
- package/lib/survey/survey.event.js.map +0 -1
package/lib/models/metric.js
DELETED
@@ -1,186 +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.Metric = void 0;
|
13
|
-
const enums_1 = require("../enums");
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
15
|
-
class Metric {
|
16
|
-
name;
|
17
|
-
title;
|
18
|
-
type;
|
19
|
-
value;
|
20
|
-
active;
|
21
|
-
icon;
|
22
|
-
iconActive;
|
23
|
-
constructor(props) {
|
24
|
-
Object.assign(this, props);
|
25
|
-
}
|
26
|
-
static seen(val, active) {
|
27
|
-
return new Metric({
|
28
|
-
title: 'seen',
|
29
|
-
type: enums_1.MetricType.Seen,
|
30
|
-
icon: ['fas', 'eye'],
|
31
|
-
iconActive: ['fas', 'eye'],
|
32
|
-
value: val || 0,
|
33
|
-
active: active
|
34
|
-
});
|
35
|
-
}
|
36
|
-
static open(val, active) {
|
37
|
-
return new Metric({
|
38
|
-
title: 'opens',
|
39
|
-
type: enums_1.MetricType.Open,
|
40
|
-
icon: ['fas', 'book-open'],
|
41
|
-
iconActive: ['fas', 'book-open-reader'],
|
42
|
-
value: val || 0,
|
43
|
-
active: active
|
44
|
-
});
|
45
|
-
}
|
46
|
-
static like(val, active) {
|
47
|
-
return new Metric({
|
48
|
-
title: 'likes',
|
49
|
-
type: enums_1.MetricType.Like,
|
50
|
-
icon: ['far', 'heart'],
|
51
|
-
iconActive: ['fas', 'heart'],
|
52
|
-
value: val || 0,
|
53
|
-
active: active
|
54
|
-
});
|
55
|
-
}
|
56
|
-
static bookmark(val, active) {
|
57
|
-
return new Metric({
|
58
|
-
title: 'bookmarks',
|
59
|
-
type: enums_1.MetricType.Bookmark,
|
60
|
-
icon: ['far', 'bookmark'],
|
61
|
-
iconActive: ['fas', 'bookmark'],
|
62
|
-
value: val || 0,
|
63
|
-
active: active
|
64
|
-
});
|
65
|
-
}
|
66
|
-
static share(val, active) {
|
67
|
-
return new Metric({
|
68
|
-
title: 'shares',
|
69
|
-
type: enums_1.MetricType.Share,
|
70
|
-
icon: ['far', 'share-from-square'],
|
71
|
-
iconActive: ['fas', 'share-from-square'],
|
72
|
-
value: val || 0,
|
73
|
-
active: active
|
74
|
-
});
|
75
|
-
}
|
76
|
-
static download(val, active) {
|
77
|
-
return new Metric({
|
78
|
-
title: 'downloads',
|
79
|
-
type: enums_1.MetricType.Download,
|
80
|
-
icon: ['fas', 'download'],
|
81
|
-
iconActive: ['fas', 'download'],
|
82
|
-
value: val || 0,
|
83
|
-
active: active
|
84
|
-
});
|
85
|
-
}
|
86
|
-
static feedback(val, active) {
|
87
|
-
return new Metric({
|
88
|
-
title: 'feedbacks',
|
89
|
-
type: enums_1.MetricType.Feedback,
|
90
|
-
icon: ['far', 'comments'],
|
91
|
-
iconActive: ['fas', 'comments'],
|
92
|
-
value: val || 0,
|
93
|
-
active: active
|
94
|
-
});
|
95
|
-
}
|
96
|
-
static total(title, val, icon, active) {
|
97
|
-
return new Metric({
|
98
|
-
title: title,
|
99
|
-
type: enums_1.MetricType.Total,
|
100
|
-
icon: icon || ['fas', 'gauge-high'],
|
101
|
-
iconActive: icon || ['fas', 'gauge-high'],
|
102
|
-
value: val || 0,
|
103
|
-
active: active
|
104
|
-
});
|
105
|
-
}
|
106
|
-
}
|
107
|
-
exports.Metric = Metric;
|
108
|
-
__decorate([
|
109
|
-
(0, class_transformer_1.Expose)(),
|
110
|
-
__metadata("design:type", String)
|
111
|
-
], Metric.prototype, "name", void 0);
|
112
|
-
__decorate([
|
113
|
-
(0, class_transformer_1.Expose)(),
|
114
|
-
__metadata("design:type", String)
|
115
|
-
], Metric.prototype, "title", void 0);
|
116
|
-
__decorate([
|
117
|
-
(0, class_transformer_1.Expose)(),
|
118
|
-
__metadata("design:type", String)
|
119
|
-
], Metric.prototype, "type", void 0);
|
120
|
-
__decorate([
|
121
|
-
(0, class_transformer_1.Expose)(),
|
122
|
-
(0, class_transformer_1.Transform)(({ obj }) => obj?.value || 0),
|
123
|
-
__metadata("design:type", Number)
|
124
|
-
], Metric.prototype, "value", void 0);
|
125
|
-
__decorate([
|
126
|
-
(0, class_transformer_1.Expose)(),
|
127
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
128
|
-
__metadata("design:type", Boolean)
|
129
|
-
], Metric.prototype, "active", void 0);
|
130
|
-
__decorate([
|
131
|
-
(0, class_transformer_1.Expose)(),
|
132
|
-
(0, class_transformer_1.Transform)(({ obj }) => {
|
133
|
-
if (obj?.icon)
|
134
|
-
return obj.icon;
|
135
|
-
switch (obj?.type) {
|
136
|
-
case enums_1.MetricType.Seen:
|
137
|
-
return ['fas', 'eye'];
|
138
|
-
case enums_1.MetricType.Open:
|
139
|
-
return ['fas', 'book-open'];
|
140
|
-
case enums_1.MetricType.Like:
|
141
|
-
return ['far', 'heart'];
|
142
|
-
case enums_1.MetricType.Bookmark:
|
143
|
-
return ['far', 'bookmark'];
|
144
|
-
case enums_1.MetricType.Share:
|
145
|
-
return ['far', 'share-from-square'];
|
146
|
-
case enums_1.MetricType.Download:
|
147
|
-
return ['fas', 'download'];
|
148
|
-
case enums_1.MetricType.Feedback:
|
149
|
-
return ['far', 'comments'];
|
150
|
-
case enums_1.MetricType.Total:
|
151
|
-
return ['fas', 'gauge-high'];
|
152
|
-
default:
|
153
|
-
return ['fas', 'gauge'];
|
154
|
-
}
|
155
|
-
}),
|
156
|
-
__metadata("design:type", Object)
|
157
|
-
], Metric.prototype, "icon", void 0);
|
158
|
-
__decorate([
|
159
|
-
(0, class_transformer_1.Expose)(),
|
160
|
-
(0, class_transformer_1.Transform)(({ obj }) => {
|
161
|
-
if (obj?.icon)
|
162
|
-
return obj.icon;
|
163
|
-
switch (obj?.type) {
|
164
|
-
case enums_1.MetricType.Seen:
|
165
|
-
return ['fas', 'eye'];
|
166
|
-
case enums_1.MetricType.Open:
|
167
|
-
return ['fas', 'book-open-reader'];
|
168
|
-
case enums_1.MetricType.Like:
|
169
|
-
return ['fas', 'heart'];
|
170
|
-
case enums_1.MetricType.Bookmark:
|
171
|
-
return ['fas', 'bookmark'];
|
172
|
-
case enums_1.MetricType.Share:
|
173
|
-
return ['fas', 'share-from-square'];
|
174
|
-
case enums_1.MetricType.Download:
|
175
|
-
return ['fas', 'download'];
|
176
|
-
case enums_1.MetricType.Feedback:
|
177
|
-
return ['fas', 'comments'];
|
178
|
-
case enums_1.MetricType.Total:
|
179
|
-
return ['fas', 'gauge-high'];
|
180
|
-
default:
|
181
|
-
return ['fas', 'gauge-simple-high'];
|
182
|
-
}
|
183
|
-
}),
|
184
|
-
__metadata("design:type", Object)
|
185
|
-
], Metric.prototype, "iconActive", void 0);
|
186
|
-
//# sourceMappingURL=metric.js.map
|
package/lib/models/metric.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"metric.js","sourceRoot":"","sources":["../../src/models/metric.ts"],"names":[],"mappings":";;;;;;;;;;;;A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,EAAE,UAAU,CAAC,CAAC;YAC5B,KAAK,kBAAU,CAAC,QAAQ;gBACvB,OAAO,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;YAC5B,KAAK,kBAAU,CAAC,KAAK;gBACpB,OAAO,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;YAC9B;gBACC,OAAO,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;QACtC,CAAC;IACF,CAAC,CAAC;;0CACmB"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { NotificationType } from '../enums';
|
2
|
-
export declare class Notification {
|
3
|
-
type: NotificationType;
|
4
|
-
title: string;
|
5
|
-
message: string;
|
6
|
-
data: string;
|
7
|
-
autoClose: number;
|
8
|
-
constructor(props?: Partial<Notification>);
|
9
|
-
}
|
10
|
-
export declare class NotificationToken {
|
11
|
-
deviceType: string;
|
12
|
-
token: string;
|
13
|
-
constructor(props?: Partial<NotificationToken>);
|
14
|
-
}
|
@@ -1,64 +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.NotificationToken = exports.Notification = void 0;
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
14
|
-
const enums_1 = require("../enums");
|
15
|
-
class Notification {
|
16
|
-
type;
|
17
|
-
title;
|
18
|
-
message;
|
19
|
-
data;
|
20
|
-
autoClose;
|
21
|
-
constructor(props) {
|
22
|
-
Object.assign(this, props);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
exports.Notification = Notification;
|
26
|
-
__decorate([
|
27
|
-
(0, class_transformer_1.Expose)(),
|
28
|
-
__metadata("design:type", String)
|
29
|
-
], Notification.prototype, "type", void 0);
|
30
|
-
__decorate([
|
31
|
-
(0, class_transformer_1.Expose)(),
|
32
|
-
__metadata("design:type", String)
|
33
|
-
], Notification.prototype, "title", void 0);
|
34
|
-
__decorate([
|
35
|
-
(0, class_transformer_1.Expose)(),
|
36
|
-
__metadata("design:type", String)
|
37
|
-
], Notification.prototype, "message", void 0);
|
38
|
-
__decorate([
|
39
|
-
(0, class_transformer_1.Expose)(),
|
40
|
-
__metadata("design:type", String)
|
41
|
-
], Notification.prototype, "data", void 0);
|
42
|
-
__decorate([
|
43
|
-
(0, class_transformer_1.Expose)(),
|
44
|
-
(0, class_transformer_1.Type)(() => Number),
|
45
|
-
(0, class_transformer_1.Transform)(({ value }) => value || 3000),
|
46
|
-
__metadata("design:type", Number)
|
47
|
-
], Notification.prototype, "autoClose", void 0);
|
48
|
-
class NotificationToken {
|
49
|
-
deviceType;
|
50
|
-
token;
|
51
|
-
constructor(props) {
|
52
|
-
Object.assign(this, props);
|
53
|
-
}
|
54
|
-
}
|
55
|
-
exports.NotificationToken = NotificationToken;
|
56
|
-
__decorate([
|
57
|
-
(0, class_transformer_1.Expose)(),
|
58
|
-
__metadata("design:type", String)
|
59
|
-
], NotificationToken.prototype, "deviceType", void 0);
|
60
|
-
__decorate([
|
61
|
-
(0, class_transformer_1.Expose)(),
|
62
|
-
__metadata("design:type", String)
|
63
|
-
], NotificationToken.prototype, "token", void 0);
|
64
|
-
//# sourceMappingURL=notification.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/models/notification.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,oCAA4C;AAK5C,MAAa,YAAY;IAMxB,IAAI,CAAmB;IAMvB,KAAK,CAAS;IAMd,OAAO,CAAS;IAMhB,IAAI,CAAS;IAQb,SAAS,CAAS;IAElB,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArCD,oCAqCC;AA/BA;IADC,IAAA,0BAAM,GAAE;;0CACc;AAMvB;IADC,IAAA,0BAAM,GAAE;;2CACK;AAMd;IADC,IAAA,0BAAM,GAAE;;6CACO;AAMhB;IADC,IAAA,0BAAM,GAAE;;0CACI;AAQb;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC;;+CACtB;AAUnB,MAAa,iBAAiB;IAM7B,UAAU,CAAS;IAMnB,KAAK,CAAS;IAEd,YAAY,KAAkC;QAC7C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAjBD,8CAiBC;AAXA;IADC,IAAA,0BAAM,GAAE;;qDACU;AAMnB;IADC,IAAA,0BAAM,GAAE;;gDACK"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
export interface IPaginationRequest<T = any> {
|
2
|
-
skip: number;
|
3
|
-
page?: number;
|
4
|
-
limit: number;
|
5
|
-
orderBy: string;
|
6
|
-
orderDirection: 'ASC' | 'DESC';
|
7
|
-
params?: T;
|
8
|
-
}
|
9
|
-
export interface IPaginationResponse<T> {
|
10
|
-
currentPage: number;
|
11
|
-
skippedRecords: number;
|
12
|
-
totalPages: number;
|
13
|
-
hasNext: boolean;
|
14
|
-
data: T[];
|
15
|
-
payloadSize: number;
|
16
|
-
totalRecords: number;
|
17
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../src/models/pagination.ts"],"names":[],"mappings":""}
|
package/lib/models/post.d.ts
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
2
|
-
import { Author } from './author';
|
3
|
-
import { Publisher } from './publisher';
|
4
|
-
import { Topic } from './topic';
|
5
|
-
import { Context, PostType, StatusType } from '../enums';
|
6
|
-
import { GalleryItem } from './gallery';
|
7
|
-
import { Feedback } from './feedback';
|
8
|
-
import { Item } from './item';
|
9
|
-
import { Metric } from './metric';
|
10
|
-
import { Log } from './log';
|
11
|
-
export declare class Post {
|
12
|
-
id: number;
|
13
|
-
slug: string;
|
14
|
-
title: string;
|
15
|
-
description: string;
|
16
|
-
content: string;
|
17
|
-
info: IPostAdditionals;
|
18
|
-
duration: number;
|
19
|
-
icon: IconProp;
|
20
|
-
svgIcon: string;
|
21
|
-
pdfUrl: string;
|
22
|
-
imageUrl: string;
|
23
|
-
feedUrl: string;
|
24
|
-
mediaUrl: string;
|
25
|
-
externUrl: string;
|
26
|
-
status: StatusType;
|
27
|
-
postType: PostType;
|
28
|
-
weight: number;
|
29
|
-
popularity: Item<number>;
|
30
|
-
totalSeen: Metric;
|
31
|
-
metricOpens: Metric;
|
32
|
-
metricLikes: Metric;
|
33
|
-
metricShares: Metric;
|
34
|
-
metricBookmarks: Metric;
|
35
|
-
metricDownloads: Metric;
|
36
|
-
metricFeedbacks: Metric;
|
37
|
-
statusChanged: Log;
|
38
|
-
published: Log;
|
39
|
-
blocked: Log;
|
40
|
-
created: Log;
|
41
|
-
updated: Log;
|
42
|
-
deleted: Log;
|
43
|
-
publisher: Publisher;
|
44
|
-
author: Author;
|
45
|
-
topics: Topic[];
|
46
|
-
feedback: Feedback;
|
47
|
-
collection: Post[];
|
48
|
-
gallery: GalleryItem[];
|
49
|
-
constructor(props?: Partial<Post>);
|
50
|
-
get type(): PostType;
|
51
|
-
getStatusAuthorizations(): {
|
52
|
-
draft: boolean;
|
53
|
-
approve: boolean;
|
54
|
-
publish: boolean;
|
55
|
-
unpublish: boolean;
|
56
|
-
archive: boolean;
|
57
|
-
unarchive: boolean;
|
58
|
-
block: boolean;
|
59
|
-
unblock: boolean;
|
60
|
-
};
|
61
|
-
getPublishValidators(): Item[];
|
62
|
-
validateForPublish(): boolean;
|
63
|
-
getStatusContext(): Context;
|
64
|
-
}
|
65
|
-
export interface IPostAdditionals {
|
66
|
-
book?: IPostBookInfo;
|
67
|
-
events?: IPostEventInfo[];
|
68
|
-
}
|
69
|
-
export interface IPostBookInfo {
|
70
|
-
bookTranslatedBy?: string;
|
71
|
-
bookTotalPages?: number;
|
72
|
-
bookISBN?: string;
|
73
|
-
bookPrice?: number;
|
74
|
-
bookPublishDate?: number;
|
75
|
-
bookPublisher?: string;
|
76
|
-
}
|
77
|
-
export interface IPostEventInfo {
|
78
|
-
id: number;
|
79
|
-
name: string;
|
80
|
-
location: string;
|
81
|
-
date: Date;
|
82
|
-
schedule: {
|
83
|
-
id: number;
|
84
|
-
title: string;
|
85
|
-
start: string;
|
86
|
-
end: string;
|
87
|
-
}[];
|
88
|
-
}
|