@intelact/bright 0.9.127 → 0.9.129
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/brand/brand.model.d.ts +1 -0
- package/lib/brand/brand.model.js +6 -0
- package/lib/brand/brand.model.js.map +1 -1
- 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/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 +0 -19
- 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 +0 -3
- 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 +0 -3
- 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/category.js
DELETED
@@ -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;IAMzB,eAAe,CAAS;IAExB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAgB,EAAE,MAAgB,IAAI;QACvD,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,KAAK;YACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AAlDD,4BAkDC;AA9CA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;uCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;sCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;6CACW;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACN;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACK;AAMzB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACF,eAAM;iDAAC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Post } from './post';
|
2
|
-
import { Publisher } from './publisher';
|
3
|
-
import { Metric } 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
|
-
}
|
package/lib/models/collection.js
DELETED
@@ -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;;yCACH;AAMd;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACN,eAAM;+CAAC;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;2CAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;2CAAC;AAMb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACX,qBAAS;6CAAC"}
|
package/lib/models/feedback.d.ts
DELETED
@@ -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
|
-
}
|
package/lib/models/feedback.js
DELETED
@@ -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
|
-
//# sourceMappingURL=feedback.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../src/models/feedback.ts"],"names":[],"mappings":"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"}
|
package/lib/models/gallery.d.ts
DELETED
package/lib/models/gallery.js
DELETED
@@ -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"}
|
package/lib/models/index.d.ts
DELETED
@@ -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';
|
package/lib/models/index.js
DELETED
@@ -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
|
package/lib/models/index.js.map
DELETED
@@ -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"}
|
package/lib/models/item.d.ts
DELETED
@@ -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
|
-
}
|
package/lib/models/item.js
DELETED
@@ -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
|
package/lib/models/item.js.map
DELETED
@@ -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"}
|
package/lib/models/link.d.ts
DELETED
@@ -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
|
-
}
|
package/lib/models/link.js
DELETED
@@ -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
|
package/lib/models/link.js.map
DELETED
@@ -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"}
|
package/lib/models/log.d.ts
DELETED
@@ -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
|
package/lib/models/log.js.map
DELETED
@@ -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"}
|
package/lib/models/metric.d.ts
DELETED
@@ -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
|
-
}
|