@intelact/bright 0.9.76 → 0.9.78
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/dtos/boost.dto.d.ts +0 -12
- package/lib/dtos/boost.dto.js +1 -50
- package/lib/dtos/boost.dto.js.map +1 -1
- package/lib/dtos/brand.dto.d.ts +0 -15
- package/lib/dtos/brand.dto.js +1 -46
- package/lib/dtos/brand.dto.js.map +1 -1
- package/lib/dtos/feedback.dto.d.ts +0 -9
- package/lib/dtos/feedback.dto.js +1 -28
- package/lib/dtos/feedback.dto.js.map +1 -1
- package/lib/dtos/general.dto.d.ts +3 -0
- package/lib/dtos/general.dto.js +10 -1
- package/lib/dtos/general.dto.js.map +1 -1
- package/lib/dtos/index.d.ts +0 -4
- package/lib/dtos/index.js +0 -4
- package/lib/dtos/index.js.map +1 -1
- package/lib/dtos/post.dto.d.ts +0 -22
- package/lib/dtos/post.dto.js +1 -65
- package/lib/dtos/post.dto.js.map +1 -1
- package/lib/dtos/promotion.dto.d.ts +0 -8
- package/lib/dtos/promotion.dto.js +1 -37
- package/lib/dtos/promotion.dto.js.map +1 -1
- package/lib/dtos/question.dto.d.ts +0 -19
- package/lib/dtos/question.dto.js +1 -62
- package/lib/dtos/question.dto.js.map +1 -1
- package/lib/dtos/search.dto.d.ts +12 -0
- package/lib/dtos/search.dto.js +72 -0
- package/lib/dtos/search.dto.js.map +1 -0
- package/lib/dtos/survey.dto.d.ts +0 -24
- package/lib/dtos/survey.dto.js +1 -90
- package/lib/dtos/survey.dto.js.map +1 -1
- package/lib/dtos/user.dto.d.ts +0 -3
- package/lib/dtos/user.dto.js +1 -10
- package/lib/dtos/user.dto.js.map +1 -1
- package/lib/enums/asset.enum.js.map +1 -1
- package/lib/enums/index.d.ts +0 -1
- package/lib/enums/index.js +0 -1
- package/lib/enums/index.js.map +1 -1
- package/lib/enums/module.enum.d.ts +0 -19
- package/lib/enums/module.enum.js +1 -21
- package/lib/enums/module.enum.js.map +1 -1
- package/lib/enums/setting.enum.d.ts +2 -2
- package/lib/enums/setting.enum.js +2 -2
- package/lib/enums/tracks.enum.d.ts +13 -2
- package/lib/enums/tracks.enum.js +23 -11
- package/lib/enums/tracks.enum.js.map +1 -1
- package/lib/helpers/index.d.ts +2 -0
- package/lib/helpers/index.js +19 -0
- package/lib/helpers/index.js.map +1 -0
- package/lib/helpers/popularity.helper.d.ts +2 -0
- package/lib/helpers/popularity.helper.js +58 -0
- package/lib/helpers/popularity.helper.js.map +1 -0
- package/lib/helpers/post.helper.d.ts +2 -0
- package/lib/helpers/post.helper.js +22 -0
- package/lib/helpers/post.helper.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/models/author.d.ts +6 -4
- package/lib/models/author.js +22 -18
- package/lib/models/author.js.map +1 -1
- package/lib/models/boost.d.ts +6 -7
- package/lib/models/boost.js +22 -29
- package/lib/models/boost.js.map +1 -1
- package/lib/models/brand.d.ts +6 -4
- package/lib/models/brand.js +38 -18
- package/lib/models/brand.js.map +1 -1
- package/lib/models/category.d.ts +2 -1
- package/lib/models/category.js +6 -5
- package/lib/models/category.js.map +1 -1
- package/lib/models/collection.d.ts +5 -5
- package/lib/models/collection.js +20 -20
- package/lib/models/collection.js.map +1 -1
- package/lib/models/feedback.d.ts +8 -5
- package/lib/models/feedback.js +37 -54
- package/lib/models/feedback.js.map +1 -1
- package/lib/models/index.d.ts +2 -1
- package/lib/models/index.js +2 -1
- package/lib/models/index.js.map +1 -1
- package/lib/models/log.d.ts +11 -0
- package/lib/models/log.js +16 -0
- package/lib/models/log.js.map +1 -0
- package/lib/models/metric.d.ts +20 -0
- package/lib/models/metric.js +186 -0
- package/lib/models/metric.js.map +1 -0
- package/lib/models/post.d.ts +26 -36
- package/lib/models/post.js +238 -358
- package/lib/models/post.js.map +1 -1
- package/lib/models/promotion.d.ts +9 -3
- package/lib/models/promotion.js +40 -8
- package/lib/models/promotion.js.map +1 -1
- package/lib/models/publisher.d.ts +8 -3
- package/lib/models/publisher.js +34 -14
- package/lib/models/publisher.js.map +1 -1
- package/lib/models/question.d.ts +21 -27
- package/lib/models/question.js +95 -162
- package/lib/models/question.js.map +1 -1
- package/lib/models/quote.d.ts +0 -1
- package/lib/models/quote.js +0 -6
- package/lib/models/quote.js.map +1 -1
- package/lib/models/survey.d.ts +15 -9
- package/lib/models/survey.js +70 -54
- package/lib/models/survey.js.map +1 -1
- package/lib/models/topic.d.ts +5 -1
- package/lib/models/topic.js +21 -55
- package/lib/models/topic.js.map +1 -1
- package/lib/models/user.d.ts +4 -4
- package/lib/models/user.js +100 -22
- package/lib/models/user.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/lib/models/post.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/models/post.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAE5D,qCAAkC;AAClC,2CAAwC;AACxC,mCAAgC;AAChC,oCAA+E;AAC/E,uCAAwC;AACxC,yCAAsC;AACtC,iCAA8B;AAC9B,iCAA8B;AAM9B,MAAa,IAAI;IAIhB,EAAE,CAAS;IAMX,SAAS,CAAY;IAIrB,MAAM,CAAS;IAGf,MAAM,CAAU;IAIhB,QAAQ,CAAW;IAInB,UAAU,CAAQ;IAIlB,OAAO,CAAgB;IAKvB,QAAQ,CAAsB;IAG9B,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,OAAO,CAAS;IAehB,IAAI,CAAmB;IAIvB,QAAQ,CAAS;IAmBjB,IAAI,CAAW;IAmBf,OAAO,CAAS;IAIhB,IAAI,CAAW;IAKf,MAAM,CAAS;IAGf,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,SAAS,CAAS;IAKlB,MAAM,CAAa;IAInB,MAAM,CAAS;IA4Df,UAAU,CAAe;IAyEzB,gBAAgB,CASd;IAMF,SAAS,CAAS;IAIlB,UAAU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A,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACX,qBAAS;uCAAC;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACX,eAAM;oCAAC;AAGf;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAK,CAAC;;oCACF;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mBAAQ,CAAC;8BACX,mBAAQ;sCAAC;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;wCACC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAW,CAAC;;qCACD;AAmBvB;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;mDA+E7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;gDAuF7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;8CAqD7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;4CAgB7B"}
|
@@ -1,15 +1,21 @@
|
|
1
1
|
import { StatusLabel, StatusType } from "../enums";
|
2
|
-
import {
|
2
|
+
import { Metric } from "./metric";
|
3
|
+
import { Log } from "./log";
|
3
4
|
export declare class Promotion {
|
4
5
|
id: number;
|
5
6
|
title: string;
|
6
7
|
imageUrl: string;
|
7
8
|
feedUrl: string;
|
8
9
|
url: string;
|
10
|
+
status: StatusType;
|
9
11
|
startDate: Date;
|
10
12
|
endDate: Date;
|
11
|
-
status: StatusType;
|
12
13
|
label: StatusLabel;
|
13
|
-
|
14
|
+
metricSeen: Metric;
|
15
|
+
metricOpens: Metric;
|
16
|
+
statusChanged: Log;
|
17
|
+
published: Log;
|
18
|
+
created: Log;
|
19
|
+
updated: Log;
|
14
20
|
constructor(props?: Partial<Promotion>);
|
15
21
|
}
|
package/lib/models/promotion.js
CHANGED
@@ -13,17 +13,24 @@ exports.Promotion = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const enums_1 = require("../enums");
|
15
15
|
const item_1 = require("./item");
|
16
|
+
const metric_1 = require("./metric");
|
17
|
+
const log_1 = require("./log");
|
16
18
|
class Promotion {
|
17
19
|
id;
|
18
20
|
title;
|
19
21
|
imageUrl;
|
20
22
|
feedUrl;
|
21
23
|
url;
|
24
|
+
status;
|
22
25
|
startDate;
|
23
26
|
endDate;
|
24
|
-
status;
|
25
27
|
label;
|
26
|
-
|
28
|
+
metricSeen;
|
29
|
+
metricOpens;
|
30
|
+
statusChanged;
|
31
|
+
published;
|
32
|
+
created;
|
33
|
+
updated;
|
27
34
|
constructor(props) {
|
28
35
|
Object.assign(this, props);
|
29
36
|
}
|
@@ -50,6 +57,10 @@ __decorate([
|
|
50
57
|
(0, class_transformer_1.Expose)(),
|
51
58
|
__metadata("design:type", String)
|
52
59
|
], Promotion.prototype, "url", void 0);
|
60
|
+
__decorate([
|
61
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
62
|
+
__metadata("design:type", String)
|
63
|
+
], Promotion.prototype, "status", void 0);
|
53
64
|
__decorate([
|
54
65
|
(0, class_transformer_1.Expose)(),
|
55
66
|
(0, class_transformer_1.Type)(() => Date),
|
@@ -60,17 +71,38 @@ __decorate([
|
|
60
71
|
(0, class_transformer_1.Type)(() => Date),
|
61
72
|
__metadata("design:type", Date)
|
62
73
|
], Promotion.prototype, "endDate", void 0);
|
63
|
-
__decorate([
|
64
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
65
|
-
__metadata("design:type", String)
|
66
|
-
], Promotion.prototype, "status", void 0);
|
67
74
|
__decorate([
|
68
75
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
69
76
|
__metadata("design:type", String)
|
70
77
|
], Promotion.prototype, "label", void 0);
|
78
|
+
__decorate([
|
79
|
+
(0, class_transformer_1.Expose)(),
|
80
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
81
|
+
__metadata("design:type", metric_1.Metric)
|
82
|
+
], Promotion.prototype, "metricSeen", void 0);
|
71
83
|
__decorate([
|
72
84
|
(0, class_transformer_1.Expose)(),
|
73
85
|
(0, class_transformer_1.Type)(() => item_1.Item),
|
74
|
-
__metadata("design:type",
|
75
|
-
], Promotion.prototype, "
|
86
|
+
__metadata("design:type", metric_1.Metric)
|
87
|
+
], Promotion.prototype, "metricOpens", void 0);
|
88
|
+
__decorate([
|
89
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
90
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
91
|
+
__metadata("design:type", log_1.Log)
|
92
|
+
], Promotion.prototype, "statusChanged", void 0);
|
93
|
+
__decorate([
|
94
|
+
(0, class_transformer_1.Expose)(),
|
95
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
96
|
+
__metadata("design:type", log_1.Log)
|
97
|
+
], Promotion.prototype, "published", 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
|
+
], Promotion.prototype, "created", 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
|
+
], Promotion.prototype, "updated", void 0);
|
76
108
|
//# sourceMappingURL=promotion.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAmD;AACnD,iCAA8B;
|
1
|
+
{"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAmD;AACnD,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAM5B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,GAAG,CAAS;IAKZ,MAAM,CAAa;IAInB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAGd,KAAK,CAAc;IAMnB,UAAU,CAAS;IAInB,WAAW,CAAS;IAMpB,aAAa,CAAM;IAInB,SAAS,CAAM;IAIf,OAAO,CAAM;IAIb,OAAO,CAAM;IAEb,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnED,8BAmEC;AA/DA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;wCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;2CACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;0CACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;sCACG;AAKZ;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;yCACX;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;0CAAC;AAGd;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;wCACX;AAMnB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACP,eAAM;6CAAC;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACJ,eAAM;8CAAC;AAMpB;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,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACL,SAAG;4CAAC;AAIf;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"}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { AccountStatusType, PostType } from '../enums';
|
2
|
+
import { Metric } from './metric';
|
3
|
+
import { Log } from './log';
|
2
4
|
export declare class Publisher {
|
3
5
|
id: number;
|
4
6
|
name: string;
|
@@ -9,9 +11,12 @@ export declare class Publisher {
|
|
9
11
|
status: AccountStatusType;
|
10
12
|
allowedPostTypes: PostType[];
|
11
13
|
publicVisibility: boolean;
|
12
|
-
|
13
|
-
|
14
|
-
|
14
|
+
metricPosts: Metric;
|
15
|
+
metricUsers: Metric;
|
16
|
+
invited: Log;
|
17
|
+
statusChanged: Log;
|
18
|
+
created: Log;
|
19
|
+
updated: Log;
|
15
20
|
constructor(props?: Partial<Publisher>);
|
16
21
|
isActive(): boolean;
|
17
22
|
isDisabled(): boolean;
|
package/lib/models/publisher.js
CHANGED
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Publisher = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const enums_1 = require("../enums");
|
15
|
+
const metric_1 = require("./metric");
|
16
|
+
const log_1 = require("./log");
|
15
17
|
class Publisher {
|
16
18
|
id;
|
17
19
|
name;
|
@@ -22,9 +24,12 @@ class Publisher {
|
|
22
24
|
status;
|
23
25
|
allowedPostTypes;
|
24
26
|
publicVisibility;
|
25
|
-
|
26
|
-
|
27
|
-
|
27
|
+
metricPosts;
|
28
|
+
metricUsers;
|
29
|
+
invited;
|
30
|
+
statusChanged;
|
31
|
+
created;
|
32
|
+
updated;
|
28
33
|
constructor(props) {
|
29
34
|
Object.assign(this, props);
|
30
35
|
}
|
@@ -82,17 +87,32 @@ __decorate([
|
|
82
87
|
], Publisher.prototype, "publicVisibility", void 0);
|
83
88
|
__decorate([
|
84
89
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
85
|
-
(0, class_transformer_1.Type)(() =>
|
86
|
-
__metadata("design:type",
|
87
|
-
], Publisher.prototype, "
|
90
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
91
|
+
__metadata("design:type", metric_1.Metric)
|
92
|
+
], Publisher.prototype, "metricPosts", void 0);
|
88
93
|
__decorate([
|
89
|
-
(0, class_transformer_1.Expose)(),
|
90
|
-
(0, class_transformer_1.Type)(() =>
|
91
|
-
__metadata("design:type",
|
92
|
-
], Publisher.prototype, "
|
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);
|
93
98
|
__decorate([
|
94
|
-
(0, class_transformer_1.Expose)(),
|
95
|
-
(0, class_transformer_1.Type)(() =>
|
96
|
-
__metadata("design:type",
|
97
|
-
], Publisher.prototype, "
|
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);
|
98
118
|
//# sourceMappingURL=publisher.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"publisher.js","sourceRoot":"","sources":["../../src/models/publisher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAuD;
|
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;IA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,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;mDACM;AAM1B;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACN,eAAM;8CAAC;AAIpB;IAFC,IAAA,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
CHANGED
@@ -2,52 +2,46 @@ import { Author } from './author';
|
|
2
2
|
import { User } from './user';
|
3
3
|
import { Category } from './category';
|
4
4
|
import { StatusType } from '../enums';
|
5
|
-
import {
|
5
|
+
import { Metric } from './metric';
|
6
|
+
import { Log } from './log';
|
6
7
|
export declare class Question {
|
7
8
|
id: number;
|
8
|
-
status: StatusType;
|
9
9
|
slug: string;
|
10
10
|
title: string;
|
11
|
+
question: string;
|
11
12
|
name: string;
|
12
13
|
email: string;
|
13
14
|
phone: string;
|
14
|
-
|
15
|
+
status: StatusType;
|
15
16
|
private: boolean;
|
16
17
|
closed: boolean;
|
17
|
-
totalHits: number;
|
18
|
-
totalComments: number;
|
19
|
-
totalItems: number;
|
20
|
-
totalLikes: number;
|
21
|
-
totalShares: number;
|
22
|
-
totalBookmarks: number;
|
23
|
-
isBookmarked: boolean;
|
24
|
-
isLiked: boolean;
|
25
|
-
isShared: boolean;
|
26
18
|
myQuestion: boolean;
|
27
|
-
|
28
|
-
|
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;
|
29
31
|
user: User;
|
30
32
|
comments: QuestionComment[];
|
31
|
-
items: QuestionComment[];
|
32
33
|
categories: Category[];
|
33
|
-
topics: Category[];
|
34
|
-
tags: string[];
|
35
|
-
bookmark: Item<number>;
|
36
|
-
like: Item<number>;
|
37
|
-
share: Item<number>;
|
38
|
-
hit: Item<number>;
|
39
|
-
reactions: Item<number>;
|
40
|
-
badge: Item<string>;
|
41
|
-
metrics: Item[];
|
42
34
|
constructor(props?: Partial<Question>);
|
43
35
|
}
|
44
36
|
export declare class QuestionComment {
|
45
37
|
id: number;
|
46
|
-
question: Question;
|
47
38
|
author: Author;
|
39
|
+
question: Question;
|
48
40
|
comment: string;
|
49
41
|
status: StatusType;
|
50
|
-
|
51
|
-
|
42
|
+
published: Log;
|
43
|
+
statusChanged: Log;
|
44
|
+
created: Log;
|
45
|
+
updated: Log;
|
52
46
|
constructor(props?: Partial<QuestionComment>);
|
53
47
|
}
|