@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
@@ -0,0 +1,16 @@
|
|
1
|
+
import { PostType } from '../post';
|
2
|
+
import { UserEvent } from '../user';
|
3
|
+
export declare class ChartPerformanceDto {
|
4
|
+
startDate: Date;
|
5
|
+
endDate: Date;
|
6
|
+
types?: PostType[];
|
7
|
+
events?: UserEvent[];
|
8
|
+
publishers?: number[];
|
9
|
+
}
|
10
|
+
export declare class ChartTopDto {
|
11
|
+
startDate: Date;
|
12
|
+
endDate: Date;
|
13
|
+
types?: PostType[];
|
14
|
+
publishers?: number[];
|
15
|
+
limit?: number;
|
16
|
+
}
|
@@ -0,0 +1,87 @@
|
|
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.ChartTopDto = exports.ChartPerformanceDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
15
|
+
const post_1 = require("../post");
|
16
|
+
const user_1 = require("../user");
|
17
|
+
class ChartPerformanceDto {
|
18
|
+
startDate;
|
19
|
+
endDate;
|
20
|
+
types;
|
21
|
+
events;
|
22
|
+
publishers;
|
23
|
+
}
|
24
|
+
exports.ChartPerformanceDto = ChartPerformanceDto;
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
27
|
+
(0, class_validator_1.IsDate)(),
|
28
|
+
(0, class_transformer_1.Type)(() => Date),
|
29
|
+
__metadata("design:type", Date)
|
30
|
+
], ChartPerformanceDto.prototype, "startDate", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
33
|
+
(0, class_validator_1.IsDate)(),
|
34
|
+
(0, class_transformer_1.Type)(() => Date),
|
35
|
+
__metadata("design:type", Date)
|
36
|
+
], ChartPerformanceDto.prototype, "endDate", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
39
|
+
(0, class_validator_1.IsEnum)(post_1.PostType, { each: true }),
|
40
|
+
__metadata("design:type", Array)
|
41
|
+
], ChartPerformanceDto.prototype, "types", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
44
|
+
(0, class_validator_1.IsEnum)(user_1.UserEvent, { each: true }),
|
45
|
+
__metadata("design:type", Array)
|
46
|
+
], ChartPerformanceDto.prototype, "events", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
49
|
+
(0, class_validator_1.IsArray)(),
|
50
|
+
__metadata("design:type", Array)
|
51
|
+
], ChartPerformanceDto.prototype, "publishers", void 0);
|
52
|
+
class ChartTopDto {
|
53
|
+
startDate;
|
54
|
+
endDate;
|
55
|
+
types;
|
56
|
+
publishers;
|
57
|
+
limit;
|
58
|
+
}
|
59
|
+
exports.ChartTopDto = ChartTopDto;
|
60
|
+
__decorate([
|
61
|
+
(0, class_validator_1.IsNotEmpty)(),
|
62
|
+
(0, class_validator_1.IsDate)(),
|
63
|
+
(0, class_transformer_1.Type)(() => Date),
|
64
|
+
__metadata("design:type", Date)
|
65
|
+
], ChartTopDto.prototype, "startDate", void 0);
|
66
|
+
__decorate([
|
67
|
+
(0, class_validator_1.IsNotEmpty)(),
|
68
|
+
(0, class_validator_1.IsDate)(),
|
69
|
+
(0, class_transformer_1.Type)(() => Date),
|
70
|
+
__metadata("design:type", Date)
|
71
|
+
], ChartTopDto.prototype, "endDate", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
74
|
+
(0, class_validator_1.IsEnum)(post_1.PostType, { each: true }),
|
75
|
+
__metadata("design:type", Array)
|
76
|
+
], ChartTopDto.prototype, "types", void 0);
|
77
|
+
__decorate([
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
79
|
+
(0, class_validator_1.IsArray)(),
|
80
|
+
__metadata("design:type", Array)
|
81
|
+
], ChartTopDto.prototype, "publishers", void 0);
|
82
|
+
__decorate([
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
84
|
+
(0, class_validator_1.IsNumber)(),
|
85
|
+
__metadata("design:type", Number)
|
86
|
+
], ChartTopDto.prototype, "limit", void 0);
|
87
|
+
//# sourceMappingURL=chart.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"chart.dto.js","sourceRoot":"","sources":["../../src/chart/chart.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsG;AACtG,yDAAyC;AACzC,kCAAmC;AACnC,kCAAoC;AAEpC,MAAa,mBAAmB;IAK/B,SAAS,CAAO;IAKhB,OAAO,CAAO;IAId,KAAK,CAAc;IAInB,MAAM,CAAe;IAIrB,UAAU,CAAY;CACtB;AAvBD,kDAuBC;AAlBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;sDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;oDAAC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACd;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;mDACb;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;uDACY;AAGvB,MAAa,WAAW;IAKvB,SAAS,CAAO;IAKhB,OAAO,CAAO;IAId,KAAK,CAAc;IAInB,UAAU,CAAY;IAItB,KAAK,CAAU;CACf;AAvBD,kCAuBC;AAlBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;8CAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;4CAAC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;0CACd;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CACY;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACI"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { PostType } from "../post";
|
2
|
+
export interface ITopPost {
|
3
|
+
id: number;
|
4
|
+
title: string;
|
5
|
+
author: string;
|
6
|
+
publisher: string;
|
7
|
+
type: PostType;
|
8
|
+
score: number;
|
9
|
+
}
|
10
|
+
export interface ITopTopic {
|
11
|
+
id: number;
|
12
|
+
title: string;
|
13
|
+
score: number;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"chart.interface.js","sourceRoot":"","sources":["../../src/chart/chart.interface.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"chart.model.js","sourceRoot":"","sources":["../../src/chart/chart.model.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ChartRangeType = void 0;
|
4
|
+
var ChartRangeType;
|
5
|
+
(function (ChartRangeType) {
|
6
|
+
ChartRangeType["LastMonth"] = "lastMonth";
|
7
|
+
ChartRangeType["Last6Months"] = "last6Months";
|
8
|
+
ChartRangeType["LastYear"] = "lastYear";
|
9
|
+
ChartRangeType["Overall"] = "overall";
|
10
|
+
})(ChartRangeType || (exports.ChartRangeType = ChartRangeType = {}));
|
11
|
+
//# sourceMappingURL=chart.types.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"chart.types.js","sourceRoot":"","sources":["../../src/chart/chart.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,yCAAuB,CAAA;IACvB,6CAA2B,CAAA;IAC3B,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACpB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./
|
18
|
-
__exportStar(require("./
|
17
|
+
__exportStar(require("./chart.dto"), exports);
|
18
|
+
__exportStar(require("./chart.interface"), exports);
|
19
|
+
__exportStar(require("./chart.model"), exports);
|
20
|
+
__exportStar(require("./chart.types"), exports);
|
19
21
|
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/chart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B"}
|
@@ -2,6 +2,7 @@ import { PostType } from '../post/post.type';
|
|
2
2
|
import { Metric } from '../metric/metric.model';
|
3
3
|
import { User } from '../user/user.model';
|
4
4
|
import { FeedbackItem } from './feedback-item.model';
|
5
|
+
import { Item } from '../item';
|
5
6
|
export declare class Feedback {
|
6
7
|
id: number;
|
7
8
|
type: PostType;
|
@@ -19,4 +20,5 @@ export declare class Feedback {
|
|
19
20
|
get totalCompletions(): Metric;
|
20
21
|
get totalPosts(): Metric;
|
21
22
|
get totalUsers(): Metric;
|
23
|
+
static toItemList(data: Feedback[], key?: 'id' | 'type'): Item<any>[];
|
22
24
|
}
|
@@ -18,6 +18,7 @@ const user_model_1 = require("../user/user.model");
|
|
18
18
|
const feedback_item_model_1 = require("./feedback-item.model");
|
19
19
|
const metric_1 = require("../metric");
|
20
20
|
const user_1 = require("../user");
|
21
|
+
const item_1 = require("../item");
|
21
22
|
class Feedback {
|
22
23
|
id;
|
23
24
|
type;
|
@@ -45,6 +46,14 @@ class Feedback {
|
|
45
46
|
get totalUsers() {
|
46
47
|
return this?.metrics?.find(i => i.event === metric_1.MetricType.Users);
|
47
48
|
}
|
49
|
+
static toItemList(data, key = 'id') {
|
50
|
+
if (!data || data.length === 0)
|
51
|
+
return [];
|
52
|
+
return data.map(i => new item_1.Item({
|
53
|
+
title: i.title,
|
54
|
+
value: i[key]
|
55
|
+
}));
|
56
|
+
}
|
48
57
|
}
|
49
58
|
exports.Feedback = Feedback;
|
50
59
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"feedback.model.js","sourceRoot":"","sources":["../../src/feedback/feedback.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,mDAA0C;AAC1C,iDAA6C;AAC7C,yDAAgD;AAChD,mDAA0C;AAC1C,+DAAqD;AACrD,sCAAuC;AACvC,kCAAoC;
|
1
|
+
{"version":3,"file":"feedback.model.js","sourceRoot":"","sources":["../../src/feedback/feedback.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,mDAA0C;AAC1C,iDAA6C;AAC7C,yDAAgD;AAChD,mDAA0C;AAC1C,+DAAqD;AACrD,sCAAuC;AACvC,kCAAoC;AACpC,kCAA+B;AAE/B,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,IAAI,CAAW;IAKf,KAAK,CAAS;IAGd,WAAW,CAAQ;IAInB,IAAI,CAAS;IAab,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAMhB,KAAK,CAAiB;IAEtB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,IAAI,UAAU;QACb,OAAO,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAG,mBAAU,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IAED,IAAI,gBAAgB;QACnB,OAAO,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAG,gBAAS,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,UAAU;QACb,OAAO,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAG,mBAAU,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IAED,IAAI,UAAU;QACb,O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iBAAI,CAAC;8BACN,iBAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;2CAAC;AAMhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAY,CAAC;;uCACH"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -19,6 +19,7 @@ __exportStar(require("./author"), exports);
|
|
19
19
|
__exportStar(require("./boost"), exports);
|
20
20
|
__exportStar(require("./brand"), exports);
|
21
21
|
__exportStar(require("./category"), exports);
|
22
|
+
__exportStar(require("./chart"), exports);
|
22
23
|
__exportStar(require("./collection"), exports);
|
23
24
|
__exportStar(require("./common"), exports);
|
24
25
|
__exportStar(require("./contact"), exports);
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,iDAA+B;AAC/B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,uCAAqB;AACrB,yCAAuB;AACvB,iDAA+B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,iDAA+B;AAC/B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,uCAAqB;AACrB,yCAAuB;AACvB,iDAA+B"}
|
@@ -2,6 +2,7 @@ import { AccountStatus } from '../security/account.status';
|
|
2
2
|
import { PostType } from '../post/post.type';
|
3
3
|
import { Metric } from '../metric/metric.model';
|
4
4
|
import { User } from '../user/user.model';
|
5
|
+
import { Item } from '../item';
|
5
6
|
export declare class Publisher {
|
6
7
|
id: number;
|
7
8
|
shortname: string;
|
@@ -30,4 +31,5 @@ export declare class Publisher {
|
|
30
31
|
hasAuthorizedType(type: PostType): boolean;
|
31
32
|
get totalUsers(): Metric;
|
32
33
|
get totalPosts(): Metric;
|
34
|
+
static toItemList(data: Publisher[], key?: 'id' | 'shortname'): Item<any>[];
|
33
35
|
}
|
@@ -15,6 +15,7 @@ const account_status_1 = require("../security/account.status");
|
|
15
15
|
const metric_model_1 = require("../metric/metric.model");
|
16
16
|
const user_model_1 = require("../user/user.model");
|
17
17
|
const metric_1 = require("../metric");
|
18
|
+
const item_1 = require("../item");
|
18
19
|
class Publisher {
|
19
20
|
id;
|
20
21
|
shortname;
|
@@ -59,6 +60,14 @@ class Publisher {
|
|
59
60
|
get totalPosts() {
|
60
61
|
return this?.metrics?.find(i => i.event === metric_1.MetricType.Posts);
|
61
62
|
}
|
63
|
+
static toItemList(data, key = 'id') {
|
64
|
+
if (!data || data.length === 0)
|
65
|
+
return [];
|
66
|
+
return data.map(i => new item_1.Item({
|
67
|
+
title: i.name,
|
68
|
+
value: i[key]
|
69
|
+
}));
|
70
|
+
}
|
62
71
|
}
|
63
72
|
exports.Publisher = Publisher;
|
64
73
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"publisher.model.js","sourceRoot":"","sources":["../../src/publisher/publisher.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+DAA2D;AAE3D,yDAAgD;AAChD,mDAA0C;AAC1C,sCAAuC;
|
1
|
+
{"version":3,"file":"publisher.model.js","sourceRoot":"","sources":["../../src/publisher/publisher.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+DAA2D;AAE3D,yDAAgD;AAChD,mDAA0C;AAC1C,sCAAuC;AACvC,kCAA+B;AAG/B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAWX,SAAS,CAAS;IAGlB,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,GAAG,CAAS;IAGZ,IAAI,CAAS;IAKb,MAAM,CAAgB;IAGtB,gBAAgB,CAAa;IAI7B,gBAAgB,CAAU;IAW1B,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,eAAe,CAAO;IAItB,eAAe,CAAO;IAItB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IA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