@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
@@ -0,0 +1,12 @@
|
|
1
|
+
import { PostType, SortType, StatusType } from "../enums";
|
2
|
+
export declare class SearchParamsDto {
|
3
|
+
type?: PostType;
|
4
|
+
status?: StatusType;
|
5
|
+
term?: string;
|
6
|
+
sort?: SortType;
|
7
|
+
topics?: number[];
|
8
|
+
categories?: number[];
|
9
|
+
authors?: number[];
|
10
|
+
startDate?: Date;
|
11
|
+
endDate?: Date;
|
12
|
+
}
|
@@ -0,0 +1,72 @@
|
|
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.SearchParamsDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
16
|
+
class SearchParamsDto {
|
17
|
+
type;
|
18
|
+
status;
|
19
|
+
term;
|
20
|
+
sort;
|
21
|
+
topics;
|
22
|
+
categories;
|
23
|
+
authors;
|
24
|
+
startDate;
|
25
|
+
endDate;
|
26
|
+
}
|
27
|
+
exports.SearchParamsDto = SearchParamsDto;
|
28
|
+
__decorate([
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
30
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], SearchParamsDto.prototype, "type", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
35
|
+
(0, class_validator_1.IsEnum)(enums_1.StatusType),
|
36
|
+
__metadata("design:type", String)
|
37
|
+
], SearchParamsDto.prototype, "status", void 0);
|
38
|
+
__decorate([
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
40
|
+
(0, class_validator_1.IsString)(),
|
41
|
+
__metadata("design:type", String)
|
42
|
+
], SearchParamsDto.prototype, "term", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
45
|
+
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
46
|
+
__metadata("design:type", String)
|
47
|
+
], SearchParamsDto.prototype, "sort", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
50
|
+
__metadata("design:type", Array)
|
51
|
+
], SearchParamsDto.prototype, "topics", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
54
|
+
__metadata("design:type", Array)
|
55
|
+
], SearchParamsDto.prototype, "categories", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
58
|
+
__metadata("design:type", Array)
|
59
|
+
], SearchParamsDto.prototype, "authors", void 0);
|
60
|
+
__decorate([
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
62
|
+
(0, class_validator_1.IsDate)(),
|
63
|
+
(0, class_transformer_1.Type)(() => Date),
|
64
|
+
__metadata("design:type", Date)
|
65
|
+
], SearchParamsDto.prototype, "startDate", void 0);
|
66
|
+
__decorate([
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
68
|
+
(0, class_validator_1.IsDate)(),
|
69
|
+
(0, class_transformer_1.Type)(() => Date),
|
70
|
+
__metadata("design:type", Date)
|
71
|
+
], SearchParamsDto.prototype, "endDate", void 0);
|
72
|
+
//# sourceMappingURL=search.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"search.dto.js","sourceRoot":"","sources":["../../src/dtos/search.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAA0D;AAC1D,yDAAyC;AAMzC,MAAa,eAAe;IAI3B,IAAI,CAAY;IAIhB,MAAM,CAAc;IAIpB,IAAI,CAAU;IAId,IAAI,CAAY;IAGhB,MAAM,CAAY;IAGlB,UAAU,CAAY;IAGtB,OAAO,CAAY;IAKnB,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CACf;AApCD,0CAoCC;AAhCA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;6CACD;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;+CACC;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;6CACD;AAGhB;IADC,IAAA,4BAAU,GAAE;;+CACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;mDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;gDACM;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;kDAAC;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACP,IAAI;gDAAC"}
|
package/lib/dtos/survey.dto.d.ts
CHANGED
@@ -1,33 +1,9 @@
|
|
1
|
-
import { StatusType, SortType } from '../enums';
|
2
|
-
export declare class SurveyParamsDto {
|
3
|
-
status: StatusType;
|
4
|
-
startDate: Date;
|
5
|
-
endDate: Date;
|
6
|
-
term: string;
|
7
|
-
sort: SortType;
|
8
|
-
}
|
9
1
|
export declare class CreateSurveyDto {
|
10
2
|
name: string;
|
11
3
|
startDate: Date;
|
12
4
|
endDate: Date;
|
13
5
|
}
|
14
|
-
export declare class SurveyNameDto {
|
15
|
-
name: string;
|
16
|
-
}
|
17
|
-
export declare class SurveyDescriptionDto {
|
18
|
-
description: string;
|
19
|
-
}
|
20
|
-
export declare class SurveyImageDto {
|
21
|
-
url: string;
|
22
|
-
}
|
23
|
-
export declare class SurveyPeriodDto {
|
24
|
-
startDate: Date;
|
25
|
-
endDate: Date;
|
26
|
-
}
|
27
6
|
export declare class SurveyQuestionDto {
|
28
7
|
question: string;
|
29
8
|
multiple: boolean;
|
30
9
|
}
|
31
|
-
export declare class SurveyOptionDto {
|
32
|
-
content: string;
|
33
|
-
}
|
package/lib/dtos/survey.dto.js
CHANGED
@@ -9,45 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.SurveyQuestionDto = exports.CreateSurveyDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
15
|
-
const enums_1 = require("../enums");
|
16
|
-
class SurveyParamsDto {
|
17
|
-
status;
|
18
|
-
startDate;
|
19
|
-
endDate;
|
20
|
-
term;
|
21
|
-
sort;
|
22
|
-
}
|
23
|
-
exports.SurveyParamsDto = SurveyParamsDto;
|
24
|
-
__decorate([
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
26
|
-
(0, class_validator_1.IsEnum)(enums_1.StatusType),
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], SurveyParamsDto.prototype, "status", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
31
|
-
(0, class_validator_1.IsDate)(),
|
32
|
-
(0, class_transformer_1.Type)(() => Date),
|
33
|
-
__metadata("design:type", Date)
|
34
|
-
], SurveyParamsDto.prototype, "startDate", void 0);
|
35
|
-
__decorate([
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
37
|
-
(0, class_validator_1.IsDate)(),
|
38
|
-
(0, class_transformer_1.Type)(() => Date),
|
39
|
-
__metadata("design:type", Date)
|
40
|
-
], SurveyParamsDto.prototype, "endDate", void 0);
|
41
|
-
__decorate([
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
43
|
-
(0, class_validator_1.IsString)(),
|
44
|
-
__metadata("design:type", String)
|
45
|
-
], SurveyParamsDto.prototype, "term", void 0);
|
46
|
-
__decorate([
|
47
|
-
(0, class_validator_1.IsOptional)(),
|
48
|
-
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
49
|
-
__metadata("design:type", String)
|
50
|
-
], SurveyParamsDto.prototype, "sort", void 0);
|
51
15
|
class CreateSurveyDto {
|
52
16
|
name;
|
53
17
|
startDate;
|
@@ -71,50 +35,6 @@ __decorate([
|
|
71
35
|
(0, class_transformer_1.Type)(() => Date),
|
72
36
|
__metadata("design:type", Date)
|
73
37
|
], CreateSurveyDto.prototype, "endDate", void 0);
|
74
|
-
class SurveyNameDto {
|
75
|
-
name;
|
76
|
-
}
|
77
|
-
exports.SurveyNameDto = SurveyNameDto;
|
78
|
-
__decorate([
|
79
|
-
(0, class_validator_1.IsNotEmpty)(),
|
80
|
-
(0, class_validator_1.IsString)(),
|
81
|
-
__metadata("design:type", String)
|
82
|
-
], SurveyNameDto.prototype, "name", void 0);
|
83
|
-
class SurveyDescriptionDto {
|
84
|
-
description;
|
85
|
-
}
|
86
|
-
exports.SurveyDescriptionDto = SurveyDescriptionDto;
|
87
|
-
__decorate([
|
88
|
-
(0, class_validator_1.IsNotEmpty)(),
|
89
|
-
(0, class_validator_1.IsString)(),
|
90
|
-
__metadata("design:type", String)
|
91
|
-
], SurveyDescriptionDto.prototype, "description", void 0);
|
92
|
-
class SurveyImageDto {
|
93
|
-
url;
|
94
|
-
}
|
95
|
-
exports.SurveyImageDto = SurveyImageDto;
|
96
|
-
__decorate([
|
97
|
-
(0, class_validator_1.IsNotEmpty)(),
|
98
|
-
(0, class_validator_1.IsString)(),
|
99
|
-
__metadata("design:type", String)
|
100
|
-
], SurveyImageDto.prototype, "url", void 0);
|
101
|
-
class SurveyPeriodDto {
|
102
|
-
startDate;
|
103
|
-
endDate;
|
104
|
-
}
|
105
|
-
exports.SurveyPeriodDto = SurveyPeriodDto;
|
106
|
-
__decorate([
|
107
|
-
(0, class_validator_1.IsNotEmpty)(),
|
108
|
-
(0, class_validator_1.IsDate)(),
|
109
|
-
(0, class_transformer_1.Type)(() => Date),
|
110
|
-
__metadata("design:type", Date)
|
111
|
-
], SurveyPeriodDto.prototype, "startDate", void 0);
|
112
|
-
__decorate([
|
113
|
-
(0, class_validator_1.IsNotEmpty)(),
|
114
|
-
(0, class_validator_1.IsDate)(),
|
115
|
-
(0, class_transformer_1.Type)(() => Date),
|
116
|
-
__metadata("design:type", Date)
|
117
|
-
], SurveyPeriodDto.prototype, "endDate", void 0);
|
118
38
|
class SurveyQuestionDto {
|
119
39
|
question;
|
120
40
|
multiple;
|
@@ -131,13 +51,4 @@ __decorate([
|
|
131
51
|
(0, class_transformer_1.Type)(() => Boolean),
|
132
52
|
__metadata("design:type", Boolean)
|
133
53
|
], SurveyQuestionDto.prototype, "multiple", void 0);
|
134
|
-
class SurveyOptionDto {
|
135
|
-
content;
|
136
|
-
}
|
137
|
-
exports.SurveyOptionDto = SurveyOptionDto;
|
138
|
-
__decorate([
|
139
|
-
(0, class_validator_1.IsNotEmpty)(),
|
140
|
-
(0, class_validator_1.IsString)(),
|
141
|
-
__metadata("design:type", String)
|
142
|
-
], SurveyOptionDto.prototype, "content", void 0);
|
143
54
|
//# sourceMappingURL=survey.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"survey.dto.js","sourceRoot":"","sources":["../../src/dtos/survey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"survey.dto.js","sourceRoot":"","sources":["../../src/dtos/survey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,yDAAyC;AAEzC,MAAa,eAAe;IAI3B,IAAI,CAAS;IAKb,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,0CAeC;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;kDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;gDAAC;AAGf,MAAa,iBAAiB;IAI7B,QAAQ,CAAS;IAKjB,QAAQ,CAAU;CAClB;AAVD,8CAUC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;mDACF"}
|
package/lib/dtos/user.dto.d.ts
CHANGED
package/lib/dtos/user.dto.js
CHANGED
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.SubmitUserProfilePictureDto = exports.SubmitUserRolesDto = exports.SubmitUserPhoneDto = exports.
|
12
|
+
exports.SubmitUserProfilePictureDto = exports.SubmitUserRolesDto = exports.SubmitUserPhoneDto = exports.SubmitUserPasswordDto = exports.SubmitUserEmailDto = exports.InviteUserDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const security_1 = require("../security");
|
15
15
|
class InviteUserDto {
|
@@ -63,15 +63,6 @@ __decorate([
|
|
63
63
|
(0, class_validator_1.IsString)(),
|
64
64
|
__metadata("design:type", String)
|
65
65
|
], SubmitUserPasswordDto.prototype, "otp", void 0);
|
66
|
-
class SubmitUserNameDto {
|
67
|
-
name;
|
68
|
-
}
|
69
|
-
exports.SubmitUserNameDto = SubmitUserNameDto;
|
70
|
-
__decorate([
|
71
|
-
(0, class_validator_1.IsNotEmpty)(),
|
72
|
-
(0, class_validator_1.IsString)(),
|
73
|
-
__metadata("design:type", String)
|
74
|
-
], SubmitUserNameDto.prototype, "name", void 0);
|
75
66
|
class SubmitUserPhoneDto {
|
76
67
|
phone;
|
77
68
|
otp;
|
package/lib/dtos/user.dto.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.dto.js","sourceRoot":"","sources":["../../src/dtos/user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0F;AAC1F,0CAAmC;AAGnC,MAAa,aAAa;IAItB,KAAK,CAAS;IAId,KAAK,CAAS;CACjB;AATD,sCASC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;4CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACf;AAGlB,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,GAAG,CAAS;CACZ;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACC;AAGb,MAAa,qBAAqB;IAIjC,QAAQ,CAAS;IAIjB,cAAc,CAAS;IAIvB,GAAG,CAAS;CACZ;AAbD,sDAaC;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACC;AAGb,MAAa,
|
1
|
+
{"version":3,"file":"user.dto.js","sourceRoot":"","sources":["../../src/dtos/user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0F;AAC1F,0CAAmC;AAGnC,MAAa,aAAa;IAItB,KAAK,CAAS;IAId,KAAK,CAAS;CACjB;AATD,sCASC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;4CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACf;AAGlB,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,GAAG,CAAS;CACZ;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACC;AAGb,MAAa,qBAAqB;IAIjC,QAAQ,CAAS;IAIjB,cAAc,CAAS;IAIvB,GAAG,CAAS;CACZ;AAbD,sDAaC;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACC;AAGb,MAAa,kBAAkB;IAG9B,KAAK,CAAS;IAId,GAAG,CAAS;CACZ;AARD,gDAQC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACC;AAGb,MAAa,kBAAkB;IAG9B,KAAK,CAAS;CACd;AAJD,gDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,eAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iDAC5B;AAGf,MAAa,2BAA2B;IAGvC,GAAG,CAAS;CACZ;AAJD,kEAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"asset.enum.js","sourceRoot":"","sources":["../../src/enums/asset.enum.ts"],"names":[],"mappings":";;;AAQA,IAAY,SAMX;AAND,WAAY,SAAS;IACpB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,
|
1
|
+
{"version":3,"file":"asset.enum.js","sourceRoot":"","sources":["../../src/enums/asset.enum.ts"],"names":[],"mappings":";;;AAQA,IAAY,SAMX;AAND,WAAY,SAAS;IACpB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,wBAAa,CAAA;IACb,4BAAe,CAAA;AAChB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB"}
|
package/lib/enums/index.d.ts
CHANGED
package/lib/enums/index.js
CHANGED
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./account.enum"), exports);
|
18
18
|
__exportStar(require("./asset.enum"), exports);
|
19
19
|
__exportStar(require("./color.enum"), exports);
|
20
|
-
__exportStar(require("./feed.enum"), exports);
|
21
20
|
__exportStar(require("./notification.enum"), exports);
|
22
21
|
__exportStar(require("./module.enum"), exports);
|
23
22
|
__exportStar(require("./popularity.enum"), exports);
|
package/lib/enums/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,sDAAoC"}
|
@@ -4,22 +4,3 @@ export declare enum ModuleType {
|
|
4
4
|
Library = "LIBRARY",
|
5
5
|
Question = "QUESTION"
|
6
6
|
}
|
7
|
-
export declare enum FeatureType {
|
8
|
-
Dashboard = "dashboard",
|
9
|
-
Post = "post",
|
10
|
-
Question = "question",
|
11
|
-
Collection = "colleaction",
|
12
|
-
Author = "author",
|
13
|
-
Report = "report",
|
14
|
-
Feedback = "feedback",
|
15
|
-
Survey = "survey",
|
16
|
-
Feed = "feed",
|
17
|
-
Publisher = "publisher",
|
18
|
-
Promotion = "Promotion",
|
19
|
-
Topic = "topic",
|
20
|
-
Asset = "asset",
|
21
|
-
Team = "team",
|
22
|
-
Setting = "setting",
|
23
|
-
Profile = "profile",
|
24
|
-
Boost = "boost"
|
25
|
-
}
|
package/lib/enums/module.enum.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ModuleType = void 0;
|
4
4
|
var ModuleType;
|
5
5
|
(function (ModuleType) {
|
6
6
|
ModuleType["Home"] = "HOME";
|
@@ -8,24 +8,4 @@ var ModuleType;
|
|
8
8
|
ModuleType["Library"] = "LIBRARY";
|
9
9
|
ModuleType["Question"] = "QUESTION";
|
10
10
|
})(ModuleType || (exports.ModuleType = ModuleType = {}));
|
11
|
-
var FeatureType;
|
12
|
-
(function (FeatureType) {
|
13
|
-
FeatureType["Dashboard"] = "dashboard";
|
14
|
-
FeatureType["Post"] = "post";
|
15
|
-
FeatureType["Question"] = "question";
|
16
|
-
FeatureType["Collection"] = "colleaction";
|
17
|
-
FeatureType["Author"] = "author";
|
18
|
-
FeatureType["Report"] = "report";
|
19
|
-
FeatureType["Feedback"] = "feedback";
|
20
|
-
FeatureType["Survey"] = "survey";
|
21
|
-
FeatureType["Feed"] = "feed";
|
22
|
-
FeatureType["Publisher"] = "publisher";
|
23
|
-
FeatureType["Promotion"] = "Promotion";
|
24
|
-
FeatureType["Topic"] = "topic";
|
25
|
-
FeatureType["Asset"] = "asset";
|
26
|
-
FeatureType["Team"] = "team";
|
27
|
-
FeatureType["Setting"] = "setting";
|
28
|
-
FeatureType["Profile"] = "profile";
|
29
|
-
FeatureType["Boost"] = "boost";
|
30
|
-
})(FeatureType || (exports.FeatureType = FeatureType = {}));
|
31
11
|
//# sourceMappingURL=module.enum.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module.enum.js","sourceRoot":"","sources":["../../src/enums/module.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAqBX;AArBD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAKb,+BAAiB,CAAA;IAKjB,iCAAmB,CAAA;IAMnB,mCAAqB,CAAA;AACtB,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB
|
1
|
+
{"version":3,"file":"module.enum.js","sourceRoot":"","sources":["../../src/enums/module.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAqBX;AArBD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAKb,+BAAiB,CAAA;IAKjB,iCAAmB,CAAA;IAMnB,mCAAqB,CAAA;AACtB,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB"}
|
@@ -8,8 +8,8 @@ var SettingType;
|
|
8
8
|
SettingType["Social"] = "SOCIAL";
|
9
9
|
SettingType["Link"] = "LINK";
|
10
10
|
SettingType["Auth"] = "AUTH";
|
11
|
-
SettingType["
|
12
|
-
SettingType["
|
11
|
+
SettingType["Mail"] = "MAIL";
|
12
|
+
SettingType["Provider"] = "PROVIDER";
|
13
13
|
SettingType["Other"] = "OTHER";
|
14
14
|
})(SettingType || (exports.SettingType = SettingType = {}));
|
15
15
|
//# sourceMappingURL=setting.enum.js.map
|
@@ -1,11 +1,22 @@
|
|
1
|
-
export declare enum
|
1
|
+
export declare enum MetricType {
|
2
2
|
Seen = "SEEN",
|
3
3
|
Open = "OPEN",
|
4
4
|
Like = "LIKE",
|
5
5
|
Bookmark = "BOOKMARK",
|
6
6
|
Share = "SHARE",
|
7
7
|
Download = "DOWNLOAD",
|
8
|
-
Feedback = "FEEDBACK"
|
8
|
+
Feedback = "FEEDBACK",
|
9
|
+
Total = "TOTAL"
|
10
|
+
}
|
11
|
+
export declare enum LogType {
|
12
|
+
Created = "CREATED",
|
13
|
+
Updated = "UPDATED",
|
14
|
+
Deleted = "DELETED",
|
15
|
+
Status = "STATUS",
|
16
|
+
Started = "STARTED",
|
17
|
+
Rejected = "REJECTED",
|
18
|
+
Completed = "COMPLETED",
|
19
|
+
Attention = "Attention"
|
9
20
|
}
|
10
21
|
export declare enum SurveyActionType {
|
11
22
|
Start = "START",
|
package/lib/enums/tracks.enum.js
CHANGED
@@ -1,16 +1,28 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AuthActionType = exports.SurveyActionType = exports.
|
4
|
-
var
|
5
|
-
(function (
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
exports.AuthActionType = exports.SurveyActionType = exports.LogType = exports.MetricType = void 0;
|
4
|
+
var MetricType;
|
5
|
+
(function (MetricType) {
|
6
|
+
MetricType["Seen"] = "SEEN";
|
7
|
+
MetricType["Open"] = "OPEN";
|
8
|
+
MetricType["Like"] = "LIKE";
|
9
|
+
MetricType["Bookmark"] = "BOOKMARK";
|
10
|
+
MetricType["Share"] = "SHARE";
|
11
|
+
MetricType["Download"] = "DOWNLOAD";
|
12
|
+
MetricType["Feedback"] = "FEEDBACK";
|
13
|
+
MetricType["Total"] = "TOTAL";
|
14
|
+
})(MetricType || (exports.MetricType = MetricType = {}));
|
15
|
+
var LogType;
|
16
|
+
(function (LogType) {
|
17
|
+
LogType["Created"] = "CREATED";
|
18
|
+
LogType["Updated"] = "UPDATED";
|
19
|
+
LogType["Deleted"] = "DELETED";
|
20
|
+
LogType["Status"] = "STATUS";
|
21
|
+
LogType["Started"] = "STARTED";
|
22
|
+
LogType["Rejected"] = "REJECTED";
|
23
|
+
LogType["Completed"] = "COMPLETED";
|
24
|
+
LogType["Attention"] = "Attention";
|
25
|
+
})(LogType || (exports.LogType = LogType = {}));
|
14
26
|
var SurveyActionType;
|
15
27
|
(function (SurveyActionType) {
|
16
28
|
SurveyActionType["Start"] = "START";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tracks.enum.js","sourceRoot":"","sources":["../../src/enums/tracks.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,
|
1
|
+
{"version":3,"file":"tracks.enum.js","sourceRoot":"","sources":["../../src/enums/tracks.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAmCX;AAnCD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,mCAAqB,CAAA;IAIrB,6BAAe,CAAA;IAIf,mCAAqB,CAAA;IAIrB,mCAAqB,CAAA;IAKrB,6BAAe,CAAA;AAEhB,CAAC,EAnCW,UAAU,0BAAV,UAAU,QAmCrB;AAED,IAAY,OA4CX;AA5CD,WAAY,OAAO;IAClB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IAYnB,4BAAiB,CAAA;IAOjB,8BAAmB,CAAA;IAOnB,gCAAqB,CAAA;IAOrB,kCAAuB,CAAA;IAOvB,kCAAuB,CAAA;AACxB,CAAC,EA5CW,OAAO,uBAAP,OAAO,QA4ClB;AAKD,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAI3B,mCAAe,CAAA;IAKf,2CAAuB,CAAA;IAKvB,qCAAiB,CAAA;AAClB,CAAC,EAfW,gBAAgB,gCAAhB,gBAAgB,QAe3B;AAED,IAAY,cAmCX;AAnCD,WAAY,cAAc;IAIzB,mCAAiB,CAAA;IAKjB,mCAAiB,CAAA;IAKjB,qCAAmB,CAAA;IAKnB,yCAAuB,CAAA;IAKvB,2CAAyB,CAAA;IAKzB,qCAAmB,CAAA;IAKnB,yCAAuB,CAAA;AACxB,CAAC,EAnCW,cAAc,8BAAd,cAAc,QAmCzB"}
|
@@ -0,0 +1,19 @@
|
|
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("./popularity.helper"), exports);
|
18
|
+
__exportStar(require("./post.helper"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,gDAA8B"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getPopularityByWeight = void 0;
|
4
|
+
const enums_1 = require("../enums");
|
5
|
+
const models_1 = require("../models");
|
6
|
+
function getPopularityByWeight(weight) {
|
7
|
+
if (!weight) {
|
8
|
+
return new models_1.Item({
|
9
|
+
title: 'n/A',
|
10
|
+
value: 0,
|
11
|
+
context: enums_1.Context.Light
|
12
|
+
});
|
13
|
+
}
|
14
|
+
if (weight < 1.9999) {
|
15
|
+
return new models_1.Item({
|
16
|
+
title: enums_1.Popularity.Poor,
|
17
|
+
value: weight,
|
18
|
+
context: enums_1.Context.Secondary
|
19
|
+
});
|
20
|
+
}
|
21
|
+
if (weight >= 2 && weight < 3.9999) {
|
22
|
+
return new models_1.Item({
|
23
|
+
title: enums_1.Popularity.Week,
|
24
|
+
value: weight,
|
25
|
+
context: enums_1.Context.Dark
|
26
|
+
});
|
27
|
+
}
|
28
|
+
if (weight >= 4 && weight < 5.9999) {
|
29
|
+
return new models_1.Item({
|
30
|
+
title: enums_1.Popularity.Fair,
|
31
|
+
value: weight,
|
32
|
+
context: enums_1.Context.Primary
|
33
|
+
});
|
34
|
+
}
|
35
|
+
if (weight >= 6 && weight < 7.9999) {
|
36
|
+
return new models_1.Item({
|
37
|
+
title: enums_1.Popularity.Great,
|
38
|
+
value: weight,
|
39
|
+
context: enums_1.Context.Info
|
40
|
+
});
|
41
|
+
}
|
42
|
+
if (weight >= 8 && weight < 8.9999) {
|
43
|
+
return new models_1.Item({
|
44
|
+
title: enums_1.Popularity.Excellent,
|
45
|
+
value: weight,
|
46
|
+
context: enums_1.Context.Success
|
47
|
+
});
|
48
|
+
}
|
49
|
+
if (weight >= 9 && weight <= 10) {
|
50
|
+
return new models_1.Item({
|
51
|
+
title: enums_1.Popularity.Exceptional,
|
52
|
+
value: weight,
|
53
|
+
context: enums_1.Context.Danger
|
54
|
+
});
|
55
|
+
}
|
56
|
+
}
|
57
|
+
exports.getPopularityByWeight = getPopularityByWeight;
|
58
|
+
//# sourceMappingURL=popularity.helper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"popularity.helper.js","sourceRoot":"","sources":["../../src/helpers/popularity.helper.ts"],"names":[],"mappings":";;;AAAA,oCAA+C;AAC/C,sCAAiC;AAEjC,SAAgB,qBAAqB,CAAC,MAAc;IAEnD,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,CAAC;YACR,OAAO,EAAE,eAAO,CAAC,KAAK;SACtB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACrB,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,IAAI;YACtB,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,SAAS;SAC1B,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,IAAI;YACtB,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,IAAI;SACrB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,IAAI;YACtB,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,OAAO;SACxB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,KAAK;YACvB,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,IAAI;SACrB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,SAAS;YAC3B,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,OAAO;SACxB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,EAAE,EAAE,CAAC;QACjC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,WAAW;YAC7B,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,MAAM;SACvB,CAAC,CAAC;IACJ,CAAC;AACF,CAAC;AAzDD,sDAyDC"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import { PostType } from "../enums";
|
2
|
+
export declare function getPostIcon(postType: PostType, custom?: boolean): "file-lines" | "microphone" | "circle-play" | "newspaper" | "headphones" | "book-open" | "/assets/icons/content-type-article.svg" | "/assets/icons/content-type-book.svg" | "/assets/icons/content-type-audio.svg" | "/assets/icons/content-type-video.svg" | "/assets/icons/content-type-news.svg" | "/assets/icons/content-type-event.svg";
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getPostIcon = void 0;
|
4
|
+
const enums_1 = require("../enums");
|
5
|
+
function getPostIcon(postType, custom) {
|
6
|
+
switch (postType) {
|
7
|
+
case enums_1.PostType.Article:
|
8
|
+
return custom ? '/assets/icons/content-type-article.svg' : 'file-lines';
|
9
|
+
case enums_1.PostType.Book:
|
10
|
+
return custom ? '/assets/icons/content-type-book.svg' : 'book-open';
|
11
|
+
case enums_1.PostType.Audio:
|
12
|
+
return custom ? '/assets/icons/content-type-audio.svg' : 'headphones';
|
13
|
+
case enums_1.PostType.Video:
|
14
|
+
return custom ? '/assets/icons/content-type-video.svg' : 'circle-play';
|
15
|
+
case enums_1.PostType.News:
|
16
|
+
return custom ? '/assets/icons/content-type-news.svg' : 'newspaper';
|
17
|
+
case enums_1.PostType.Event:
|
18
|
+
return custom ? '/assets/icons/content-type-event.svg' : 'microphone';
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.getPostIcon = getPostIcon;
|
22
|
+
//# sourceMappingURL=post.helper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"post.helper.js","sourceRoot":"","sources":["../../src/helpers/post.helper.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AAEpC,SAAgB,WAAW,CAAC,QAAkB,EAAE,MAAgB;IAC/D,QAAQ,QAAQ,EAAE,CAAC;QAClB,KAAK,gBAAQ,CAAC,OAAO;YACpB,OAAO,MAAM,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAA,YAAY,CAAC;QACxE,KAAK,gBAAQ,CAAC,IAAI;YACjB,OAAO,MAAM,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,WAAW,CAAC;QACrE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,YAAY,CAAC;QACvE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,aAAa,CAAC;QACxE,KAAK,gBAAQ,CAAC,IAAI;YACjB,OAAO,MAAM,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,WAAW,CAAC;QACrE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,YAAY,CAAC;IACxE,CAAC;AACF,CAAC;AAfD,kCAeC"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./dtos"), exports);
|
18
18
|
__exportStar(require("./enums"), exports);
|
19
|
+
__exportStar(require("./helpers"), exports);
|
19
20
|
__exportStar(require("./models"), exports);
|
20
21
|
__exportStar(require("./security"), exports);
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B"}
|