@intelact/bright 0.9.127 → 0.9.128
Sign up to get free protection for your applications and to get access to all the features.
- 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/publisher.js
DELETED
@@ -1,118 +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.Publisher = 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
|
-
class Publisher {
|
18
|
-
id;
|
19
|
-
name;
|
20
|
-
slogan;
|
21
|
-
description;
|
22
|
-
url;
|
23
|
-
logo;
|
24
|
-
status;
|
25
|
-
allowedPostTypes;
|
26
|
-
publicVisibility;
|
27
|
-
metricPosts;
|
28
|
-
metricUsers;
|
29
|
-
invited;
|
30
|
-
statusChanged;
|
31
|
-
created;
|
32
|
-
updated;
|
33
|
-
constructor(props) {
|
34
|
-
Object.assign(this, props);
|
35
|
-
}
|
36
|
-
isActive() {
|
37
|
-
return this.status === enums_1.AccountStatusType.Active;
|
38
|
-
}
|
39
|
-
isDisabled() {
|
40
|
-
return this.status === enums_1.AccountStatusType.Disabled;
|
41
|
-
}
|
42
|
-
isClosed() {
|
43
|
-
return this.status === enums_1.AccountStatusType.Closed;
|
44
|
-
}
|
45
|
-
hasAuthorizedType(type) {
|
46
|
-
return this?.allowedPostTypes?.includes(type);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
exports.Publisher = Publisher;
|
50
|
-
__decorate([
|
51
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
52
|
-
(0, class_transformer_1.Type)(() => Number),
|
53
|
-
__metadata("design:type", Number)
|
54
|
-
], Publisher.prototype, "id", void 0);
|
55
|
-
__decorate([
|
56
|
-
(0, class_transformer_1.Expose)(),
|
57
|
-
__metadata("design:type", String)
|
58
|
-
], Publisher.prototype, "name", void 0);
|
59
|
-
__decorate([
|
60
|
-
(0, class_transformer_1.Expose)(),
|
61
|
-
__metadata("design:type", String)
|
62
|
-
], Publisher.prototype, "slogan", void 0);
|
63
|
-
__decorate([
|
64
|
-
(0, class_transformer_1.Expose)(),
|
65
|
-
__metadata("design:type", String)
|
66
|
-
], Publisher.prototype, "description", void 0);
|
67
|
-
__decorate([
|
68
|
-
(0, class_transformer_1.Expose)(),
|
69
|
-
__metadata("design:type", String)
|
70
|
-
], Publisher.prototype, "url", void 0);
|
71
|
-
__decorate([
|
72
|
-
(0, class_transformer_1.Expose)(),
|
73
|
-
__metadata("design:type", String)
|
74
|
-
], Publisher.prototype, "logo", void 0);
|
75
|
-
__decorate([
|
76
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
77
|
-
__metadata("design:type", String)
|
78
|
-
], Publisher.prototype, "status", void 0);
|
79
|
-
__decorate([
|
80
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
81
|
-
__metadata("design:type", Array)
|
82
|
-
], Publisher.prototype, "allowedPostTypes", void 0);
|
83
|
-
__decorate([
|
84
|
-
(0, class_transformer_1.Expose)(),
|
85
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
86
|
-
__metadata("design:type", Boolean)
|
87
|
-
], Publisher.prototype, "publicVisibility", void 0);
|
88
|
-
__decorate([
|
89
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
90
|
-
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
91
|
-
__metadata("design:type", metric_1.Metric)
|
92
|
-
], Publisher.prototype, "metricPosts", void 0);
|
93
|
-
__decorate([
|
94
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
95
|
-
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
96
|
-
__metadata("design:type", metric_1.Metric)
|
97
|
-
], Publisher.prototype, "metricUsers", void 0);
|
98
|
-
__decorate([
|
99
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
100
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
101
|
-
__metadata("design:type", log_1.Log)
|
102
|
-
], Publisher.prototype, "invited", void 0);
|
103
|
-
__decorate([
|
104
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
105
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
106
|
-
__metadata("design:type", log_1.Log)
|
107
|
-
], Publisher.prototype, "statusChanged", void 0);
|
108
|
-
__decorate([
|
109
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
110
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
111
|
-
__metadata("design:type", log_1.Log)
|
112
|
-
], Publisher.prototype, "created", void 0);
|
113
|
-
__decorate([
|
114
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
115
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
116
|
-
__metadata("design:type", log_1.Log)
|
117
|
-
], Publisher.prototype, "updated", void 0);
|
118
|
-
//# sourceMappingURL=publisher.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"publisher.js","sourceRoot":"","sources":["../../src/models/publisher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAuD;AACvD,qCAAkC;AAClC,+BAA4B;AAG5B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,GAAG,CAAS;IAGZ,IAAI,CAAS;IAKb,MAAM,CAAoB;IAG1B,gBAAgB,CAAa;IAI7B,gBAAgB,CAAU;IAM1B,WAAW,CAAS;IAIpB,WAAW,CAAS;IAMpB,OAAO,CAAM;IAIb,aAAa,CAAM;IAInB,OAAO,CAAM;IAIb,OAAO,CAAM;IAEb,YAAY,KAA0B;QACr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0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACN,eAAM;8CAAC;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;0CAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACD,SAAG;gDAAC;AAInB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;0CAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;0CAAC"}
|
package/lib/models/question.d.ts
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
import { Author } from './author';
|
2
|
-
import { User } from './user';
|
3
|
-
import { Category } from './category';
|
4
|
-
import { StatusType } from '../enums';
|
5
|
-
import { Metric } from './metric';
|
6
|
-
import { Log } from './log';
|
7
|
-
export declare class Question {
|
8
|
-
id: number;
|
9
|
-
slug: string;
|
10
|
-
title: string;
|
11
|
-
question: string;
|
12
|
-
name: string;
|
13
|
-
email: string;
|
14
|
-
phone: string;
|
15
|
-
status: StatusType;
|
16
|
-
private: boolean;
|
17
|
-
closed: boolean;
|
18
|
-
myQuestion: boolean;
|
19
|
-
metricSeen: Metric;
|
20
|
-
metricOpens: Metric;
|
21
|
-
metricLikes: Metric;
|
22
|
-
metricShares: Metric;
|
23
|
-
metricBookmarks: Metric;
|
24
|
-
metricComments: Metric;
|
25
|
-
attention: Log;
|
26
|
-
statusChanged: Log;
|
27
|
-
published: Log;
|
28
|
-
created: Log;
|
29
|
-
updated: Log;
|
30
|
-
deleted: Log;
|
31
|
-
user: User;
|
32
|
-
comments: QuestionComment[];
|
33
|
-
categories: Category[];
|
34
|
-
constructor(props?: Partial<Question>);
|
35
|
-
}
|
36
|
-
export declare class QuestionComment {
|
37
|
-
id: number;
|
38
|
-
author: Author;
|
39
|
-
question: Question;
|
40
|
-
comment: string;
|
41
|
-
status: StatusType;
|
42
|
-
published: Log;
|
43
|
-
statusChanged: Log;
|
44
|
-
created: Log;
|
45
|
-
updated: Log;
|
46
|
-
constructor(props?: Partial<QuestionComment>);
|
47
|
-
}
|
package/lib/models/question.js
DELETED
@@ -1,238 +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.QuestionComment = exports.Question = void 0;
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
14
|
-
const author_1 = require("./author");
|
15
|
-
const user_1 = require("./user");
|
16
|
-
const category_1 = require("./category");
|
17
|
-
const enums_1 = require("../enums");
|
18
|
-
const metric_1 = require("./metric");
|
19
|
-
const log_1 = require("./log");
|
20
|
-
class Question {
|
21
|
-
id;
|
22
|
-
slug;
|
23
|
-
title;
|
24
|
-
question;
|
25
|
-
name;
|
26
|
-
email;
|
27
|
-
phone;
|
28
|
-
status;
|
29
|
-
private;
|
30
|
-
closed;
|
31
|
-
myQuestion;
|
32
|
-
metricSeen;
|
33
|
-
metricOpens;
|
34
|
-
metricLikes;
|
35
|
-
metricShares;
|
36
|
-
metricBookmarks;
|
37
|
-
metricComments;
|
38
|
-
attention;
|
39
|
-
statusChanged;
|
40
|
-
published;
|
41
|
-
created;
|
42
|
-
updated;
|
43
|
-
deleted;
|
44
|
-
user;
|
45
|
-
comments;
|
46
|
-
categories;
|
47
|
-
constructor(props) {
|
48
|
-
Object.assign(this, props);
|
49
|
-
}
|
50
|
-
}
|
51
|
-
exports.Question = Question;
|
52
|
-
__decorate([
|
53
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
54
|
-
(0, class_transformer_1.Type)(() => Number),
|
55
|
-
__metadata("design:type", Number)
|
56
|
-
], Question.prototype, "id", void 0);
|
57
|
-
__decorate([
|
58
|
-
(0, class_transformer_1.Expose)(),
|
59
|
-
__metadata("design:type", String)
|
60
|
-
], Question.prototype, "slug", void 0);
|
61
|
-
__decorate([
|
62
|
-
(0, class_transformer_1.Expose)(),
|
63
|
-
__metadata("design:type", String)
|
64
|
-
], Question.prototype, "title", void 0);
|
65
|
-
__decorate([
|
66
|
-
(0, class_transformer_1.Expose)(),
|
67
|
-
__metadata("design:type", String)
|
68
|
-
], Question.prototype, "question", void 0);
|
69
|
-
__decorate([
|
70
|
-
(0, class_transformer_1.Expose)(),
|
71
|
-
__metadata("design:type", String)
|
72
|
-
], Question.prototype, "name", void 0);
|
73
|
-
__decorate([
|
74
|
-
(0, class_transformer_1.Expose)(),
|
75
|
-
__metadata("design:type", String)
|
76
|
-
], Question.prototype, "email", void 0);
|
77
|
-
__decorate([
|
78
|
-
(0, class_transformer_1.Expose)(),
|
79
|
-
__metadata("design:type", String)
|
80
|
-
], Question.prototype, "phone", void 0);
|
81
|
-
__decorate([
|
82
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
83
|
-
__metadata("design:type", String)
|
84
|
-
], Question.prototype, "status", void 0);
|
85
|
-
__decorate([
|
86
|
-
(0, class_transformer_1.Expose)(),
|
87
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
88
|
-
__metadata("design:type", Boolean)
|
89
|
-
], Question.prototype, "private", void 0);
|
90
|
-
__decorate([
|
91
|
-
(0, class_transformer_1.Expose)(),
|
92
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
93
|
-
__metadata("design:type", Boolean)
|
94
|
-
], Question.prototype, "closed", void 0);
|
95
|
-
__decorate([
|
96
|
-
(0, class_transformer_1.Expose)(),
|
97
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
98
|
-
__metadata("design:type", Boolean)
|
99
|
-
], Question.prototype, "myQuestion", void 0);
|
100
|
-
__decorate([
|
101
|
-
(0, class_transformer_1.Expose)(),
|
102
|
-
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
103
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalSeen, obj?.hasSeen)),
|
104
|
-
__metadata("design:type", metric_1.Metric)
|
105
|
-
], Question.prototype, "metricSeen", void 0);
|
106
|
-
__decorate([
|
107
|
-
(0, class_transformer_1.Expose)(),
|
108
|
-
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
109
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalOpens, obj?.hasOpen)),
|
110
|
-
__metadata("design:type", metric_1.Metric)
|
111
|
-
], Question.prototype, "metricOpens", void 0);
|
112
|
-
__decorate([
|
113
|
-
(0, class_transformer_1.Expose)(),
|
114
|
-
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
115
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalLikes, obj?.hasLike)),
|
116
|
-
__metadata("design:type", metric_1.Metric)
|
117
|
-
], Question.prototype, "metricLikes", void 0);
|
118
|
-
__decorate([
|
119
|
-
(0, class_transformer_1.Expose)(),
|
120
|
-
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
121
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalShares, obj?.hasShare)),
|
122
|
-
__metadata("design:type", metric_1.Metric)
|
123
|
-
], Question.prototype, "metricShares", void 0);
|
124
|
-
__decorate([
|
125
|
-
(0, class_transformer_1.Expose)(),
|
126
|
-
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
127
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalBookmarks, obj?.hasBookmark)),
|
128
|
-
__metadata("design:type", metric_1.Metric)
|
129
|
-
], Question.prototype, "metricBookmarks", void 0);
|
130
|
-
__decorate([
|
131
|
-
(0, class_transformer_1.Expose)(),
|
132
|
-
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
133
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.feedback(obj?.totalComments, obj?.hasComment)),
|
134
|
-
__metadata("design:type", metric_1.Metric)
|
135
|
-
], Question.prototype, "metricComments", void 0);
|
136
|
-
__decorate([
|
137
|
-
(0, class_transformer_1.Expose)(),
|
138
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
139
|
-
__metadata("design:type", log_1.Log)
|
140
|
-
], Question.prototype, "attention", void 0);
|
141
|
-
__decorate([
|
142
|
-
(0, class_transformer_1.Expose)(),
|
143
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
144
|
-
__metadata("design:type", log_1.Log)
|
145
|
-
], Question.prototype, "statusChanged", void 0);
|
146
|
-
__decorate([
|
147
|
-
(0, class_transformer_1.Expose)(),
|
148
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
149
|
-
__metadata("design:type", log_1.Log)
|
150
|
-
], Question.prototype, "published", void 0);
|
151
|
-
__decorate([
|
152
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
153
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
154
|
-
__metadata("design:type", log_1.Log)
|
155
|
-
], Question.prototype, "created", void 0);
|
156
|
-
__decorate([
|
157
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
158
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
159
|
-
__metadata("design:type", log_1.Log)
|
160
|
-
], Question.prototype, "updated", void 0);
|
161
|
-
__decorate([
|
162
|
-
(0, class_transformer_1.Expose)({ groups: ['console'] }),
|
163
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
164
|
-
__metadata("design:type", log_1.Log)
|
165
|
-
], Question.prototype, "deleted", void 0);
|
166
|
-
__decorate([
|
167
|
-
(0, class_transformer_1.Expose)(),
|
168
|
-
(0, class_transformer_1.Type)(() => user_1.User),
|
169
|
-
__metadata("design:type", user_1.User)
|
170
|
-
], Question.prototype, "user", void 0);
|
171
|
-
__decorate([
|
172
|
-
(0, class_transformer_1.Expose)(),
|
173
|
-
(0, class_transformer_1.Type)(() => QuestionComment),
|
174
|
-
__metadata("design:type", Array)
|
175
|
-
], Question.prototype, "comments", void 0);
|
176
|
-
__decorate([
|
177
|
-
(0, class_transformer_1.Expose)(),
|
178
|
-
(0, class_transformer_1.Type)(() => category_1.Category),
|
179
|
-
__metadata("design:type", Array)
|
180
|
-
], Question.prototype, "categories", void 0);
|
181
|
-
class QuestionComment {
|
182
|
-
id;
|
183
|
-
author;
|
184
|
-
question;
|
185
|
-
comment;
|
186
|
-
status;
|
187
|
-
published;
|
188
|
-
statusChanged;
|
189
|
-
created;
|
190
|
-
updated;
|
191
|
-
constructor(props) {
|
192
|
-
Object.assign(this, props);
|
193
|
-
}
|
194
|
-
}
|
195
|
-
exports.QuestionComment = QuestionComment;
|
196
|
-
__decorate([
|
197
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
198
|
-
(0, class_transformer_1.Type)(() => Number),
|
199
|
-
__metadata("design:type", Number)
|
200
|
-
], QuestionComment.prototype, "id", void 0);
|
201
|
-
__decorate([
|
202
|
-
(0, class_transformer_1.Expose)(),
|
203
|
-
(0, class_transformer_1.Type)(() => author_1.Author),
|
204
|
-
__metadata("design:type", author_1.Author)
|
205
|
-
], QuestionComment.prototype, "author", void 0);
|
206
|
-
__decorate([
|
207
|
-
(0, class_transformer_1.Expose)(),
|
208
|
-
__metadata("design:type", Question)
|
209
|
-
], QuestionComment.prototype, "question", void 0);
|
210
|
-
__decorate([
|
211
|
-
(0, class_transformer_1.Expose)(),
|
212
|
-
__metadata("design:type", String)
|
213
|
-
], QuestionComment.prototype, "comment", void 0);
|
214
|
-
__decorate([
|
215
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
216
|
-
__metadata("design:type", String)
|
217
|
-
], QuestionComment.prototype, "status", void 0);
|
218
|
-
__decorate([
|
219
|
-
(0, class_transformer_1.Expose)(),
|
220
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
221
|
-
__metadata("design:type", log_1.Log)
|
222
|
-
], QuestionComment.prototype, "published", void 0);
|
223
|
-
__decorate([
|
224
|
-
(0, class_transformer_1.Expose)(),
|
225
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
226
|
-
__metadata("design:type", log_1.Log)
|
227
|
-
], QuestionComment.prototype, "statusChanged", void 0);
|
228
|
-
__decorate([
|
229
|
-
(0, class_transformer_1.Expose)(),
|
230
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
231
|
-
__metadata("design:type", log_1.Log)
|
232
|
-
], QuestionComment.prototype, "created", void 0);
|
233
|
-
__decorate([
|
234
|
-
(0, class_transformer_1.Expose)(),
|
235
|
-
(0, class_transformer_1.Type)(() => log_1.Log),
|
236
|
-
__metadata("design:type", log_1.Log)
|
237
|
-
], QuestionComment.prototype, "updated", void 0);
|
238
|
-
//# sourceMappingURL=question.js.map
|
@@ -1 +0,0 @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G,CAAC;8BACL,SAAG;kDAAC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACD,SAAG;sDAAC;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;gDAAC;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;gDAAC"}
|
package/lib/models/quote.d.ts
DELETED
package/lib/models/quote.js
DELETED
@@ -1,31 +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.Quote = void 0;
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
14
|
-
class Quote {
|
15
|
-
id;
|
16
|
-
imageUrl;
|
17
|
-
constructor(props) {
|
18
|
-
Object.assign(this, props);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
exports.Quote = Quote;
|
22
|
-
__decorate([
|
23
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
24
|
-
(0, class_transformer_1.Type)(() => Number),
|
25
|
-
__metadata("design:type", Number)
|
26
|
-
], Quote.prototype, "id", void 0);
|
27
|
-
__decorate([
|
28
|
-
(0, class_transformer_1.Expose)(),
|
29
|
-
__metadata("design:type", String)
|
30
|
-
], Quote.prototype, "imageUrl", void 0);
|
31
|
-
//# sourceMappingURL=quote.js.map
|
package/lib/models/quote.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/models/quote.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAEjB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAZD,sBAYC;AARA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACQ"}
|
package/lib/models/response.d.ts
DELETED
package/lib/models/response.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../src/models/response.ts"],"names":[],"mappings":""}
|
package/lib/models/share.d.ts
DELETED
package/lib/models/share.js
DELETED
package/lib/models/share.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"share.js","sourceRoot":"","sources":["../../src/models/share.ts"],"names":[],"mappings":""}
|
package/lib/models/survey.d.ts
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
import { StatusType, StatusLabel } from '../enums';
|
2
|
-
import { Metric } from './metric';
|
3
|
-
import { Log } from './log';
|
4
|
-
export declare class Survey {
|
5
|
-
id: number;
|
6
|
-
slug: string;
|
7
|
-
name: string;
|
8
|
-
description: string;
|
9
|
-
imageUrl: string;
|
10
|
-
items: SurveyItem[];
|
11
|
-
status: StatusType;
|
12
|
-
label: StatusLabel;
|
13
|
-
startDate: Date;
|
14
|
-
endDate: Date;
|
15
|
-
isStarted: boolean;
|
16
|
-
metricSeen: Metric;
|
17
|
-
metricOpens: Metric;
|
18
|
-
metricQuestions: Metric;
|
19
|
-
metricUsers: Metric;
|
20
|
-
statusChanged: Log;
|
21
|
-
published: Log;
|
22
|
-
created: Log;
|
23
|
-
updated: Log;
|
24
|
-
constructor(props?: Partial<Survey>);
|
25
|
-
}
|
26
|
-
export declare class SurveyItem {
|
27
|
-
id: number;
|
28
|
-
question: string;
|
29
|
-
multiple: boolean;
|
30
|
-
readonly: boolean;
|
31
|
-
sort: number;
|
32
|
-
survey: Survey;
|
33
|
-
options: SurveyOption[];
|
34
|
-
constructor(props?: Partial<SurveyItem>);
|
35
|
-
}
|
36
|
-
export declare class SurveyOption {
|
37
|
-
id: number;
|
38
|
-
content: string;
|
39
|
-
sort: number;
|
40
|
-
isSelected: boolean;
|
41
|
-
item: SurveyItem;
|
42
|
-
constructor(props?: Partial<SurveyOption>);
|
43
|
-
}
|