@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
package/lib/dtos/general.dto.js
DELETED
@@ -1,94 +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.UrlDto = exports.PeriodDto = exports.SortDto = exports.PhoneDto = exports.EmailDto = exports.ContentDto = exports.NameDto = exports.TitleDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
15
|
-
class TitleDto {
|
16
|
-
title;
|
17
|
-
}
|
18
|
-
exports.TitleDto = TitleDto;
|
19
|
-
__decorate([
|
20
|
-
(0, class_validator_1.IsNotEmpty)(),
|
21
|
-
(0, class_validator_1.IsString)(),
|
22
|
-
__metadata("design:type", String)
|
23
|
-
], TitleDto.prototype, "title", void 0);
|
24
|
-
class NameDto {
|
25
|
-
name;
|
26
|
-
}
|
27
|
-
exports.NameDto = NameDto;
|
28
|
-
__decorate([
|
29
|
-
(0, class_validator_1.IsNotEmpty)(),
|
30
|
-
(0, class_validator_1.IsString)(),
|
31
|
-
__metadata("design:type", String)
|
32
|
-
], NameDto.prototype, "name", void 0);
|
33
|
-
class ContentDto {
|
34
|
-
content;
|
35
|
-
}
|
36
|
-
exports.ContentDto = ContentDto;
|
37
|
-
__decorate([
|
38
|
-
(0, class_validator_1.IsNotEmpty)(),
|
39
|
-
(0, class_validator_1.IsString)(),
|
40
|
-
__metadata("design:type", String)
|
41
|
-
], ContentDto.prototype, "content", void 0);
|
42
|
-
class EmailDto {
|
43
|
-
email;
|
44
|
-
}
|
45
|
-
exports.EmailDto = EmailDto;
|
46
|
-
__decorate([
|
47
|
-
(0, class_validator_1.IsNotEmpty)(),
|
48
|
-
(0, class_validator_1.IsEmail)(),
|
49
|
-
__metadata("design:type", String)
|
50
|
-
], EmailDto.prototype, "email", void 0);
|
51
|
-
class PhoneDto {
|
52
|
-
email;
|
53
|
-
}
|
54
|
-
exports.PhoneDto = PhoneDto;
|
55
|
-
__decorate([
|
56
|
-
(0, class_validator_1.IsNotEmpty)(),
|
57
|
-
(0, class_validator_1.IsPhoneNumber)(),
|
58
|
-
__metadata("design:type", String)
|
59
|
-
], PhoneDto.prototype, "email", void 0);
|
60
|
-
class SortDto {
|
61
|
-
ids;
|
62
|
-
}
|
63
|
-
exports.SortDto = SortDto;
|
64
|
-
__decorate([
|
65
|
-
(0, class_validator_1.IsNotEmpty)(),
|
66
|
-
__metadata("design:type", Array)
|
67
|
-
], SortDto.prototype, "ids", void 0);
|
68
|
-
class PeriodDto {
|
69
|
-
startDate;
|
70
|
-
endDate;
|
71
|
-
}
|
72
|
-
exports.PeriodDto = PeriodDto;
|
73
|
-
__decorate([
|
74
|
-
(0, class_validator_1.IsNotEmpty)(),
|
75
|
-
(0, class_validator_1.IsDate)(),
|
76
|
-
(0, class_transformer_1.Type)(() => Date),
|
77
|
-
__metadata("design:type", Date)
|
78
|
-
], PeriodDto.prototype, "startDate", void 0);
|
79
|
-
__decorate([
|
80
|
-
(0, class_validator_1.IsNotEmpty)(),
|
81
|
-
(0, class_validator_1.IsDate)(),
|
82
|
-
(0, class_transformer_1.Type)(() => Date),
|
83
|
-
__metadata("design:type", Date)
|
84
|
-
], PeriodDto.prototype, "endDate", void 0);
|
85
|
-
class UrlDto {
|
86
|
-
url;
|
87
|
-
}
|
88
|
-
exports.UrlDto = UrlDto;
|
89
|
-
__decorate([
|
90
|
-
(0, class_validator_1.IsNotEmpty)(),
|
91
|
-
(0, class_validator_1.IsUrl)(),
|
92
|
-
__metadata("design:type", String)
|
93
|
-
], UrlDto.prototype, "url", void 0);
|
94
|
-
//# sourceMappingURL=general.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"general.dto.js","sourceRoot":"","sources":["../../src/dtos/general.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkH;AAClH,yDAAoD;AAGpD,MAAa,QAAQ;IAGpB,KAAK,CAAS;CACd;AAJD,4BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uCACG;AAGf,MAAa,OAAO;IAGnB,IAAI,CAAS;CACb;AAJD,0BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qCACE;AAGd,MAAa,UAAU;IAGtB,OAAO,CAAS;CAChB;AAJD,gCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACK;AAGjB,MAAa,QAAQ;IAGpB,KAAK,CAAS;CACd;AAJD,4BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;uCACI;AAGf,MAAa,QAAQ;IAGpB,KAAK,CAAS;CACd;AAJD,4BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAa,GAAE;;uCACF;AAGf,MAAa,OAAO;IAEnB,GAAG,CAAW;CACd;AAHD,0BAGC;AADA;IADC,IAAA,4BAAU,GAAE;;oCACC;AAGf,MAAa,SAAS;IAKrB,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAXD,8BAWC;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;0CAAC;AAGf,MAAa,MAAM;IAGlB,GAAG,CAAS;CACZ;AAJD,wBAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mCACI"}
|
package/lib/dtos/index.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
export * from './auth.dto';
|
2
|
-
export * from './boost.dto';
|
3
|
-
export * from './brand.dto';
|
4
|
-
export * from './browse.dto';
|
5
|
-
export * from './contact.dto';
|
6
|
-
export * from './feedback.dto';
|
7
|
-
export * from './general.dto';
|
8
|
-
export * from './search.dto';
|
9
|
-
export * from './notification.dto';
|
10
|
-
export * from './post.dto';
|
11
|
-
export * from './promotion.dto';
|
12
|
-
export * from './publisher.dto';
|
13
|
-
export * from './question.dto';
|
14
|
-
export * from './survey.dto';
|
15
|
-
export * from './user.dto';
|
package/lib/dtos/index.js
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./auth.dto"), exports);
|
18
|
-
__exportStar(require("./boost.dto"), exports);
|
19
|
-
__exportStar(require("./brand.dto"), exports);
|
20
|
-
__exportStar(require("./browse.dto"), exports);
|
21
|
-
__exportStar(require("./contact.dto"), exports);
|
22
|
-
__exportStar(require("./feedback.dto"), exports);
|
23
|
-
__exportStar(require("./general.dto"), exports);
|
24
|
-
__exportStar(require("./search.dto"), exports);
|
25
|
-
__exportStar(require("./notification.dto"), exports);
|
26
|
-
__exportStar(require("./post.dto"), exports);
|
27
|
-
__exportStar(require("./promotion.dto"), exports);
|
28
|
-
__exportStar(require("./publisher.dto"), exports);
|
29
|
-
__exportStar(require("./question.dto"), exports);
|
30
|
-
__exportStar(require("./survey.dto"), exports);
|
31
|
-
__exportStar(require("./user.dto"), exports);
|
32
|
-
//# sourceMappingURL=index.js.map
|
package/lib/dtos/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B;AAC9B,iDAA+B;AAC/B,gDAA8B;AAC9B,+CAA6B;AAC7B,qDAAmC;AACnC,6CAA2B;AAC3B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,6CAA2B"}
|
@@ -1,29 +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.NotificationTokenDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
class NotificationTokenDto {
|
15
|
-
token;
|
16
|
-
deviceType;
|
17
|
-
}
|
18
|
-
exports.NotificationTokenDto = NotificationTokenDto;
|
19
|
-
__decorate([
|
20
|
-
(0, class_validator_1.IsOptional)(),
|
21
|
-
(0, class_validator_1.IsString)(),
|
22
|
-
__metadata("design:type", String)
|
23
|
-
], NotificationTokenDto.prototype, "token", void 0);
|
24
|
-
__decorate([
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
26
|
-
(0, class_validator_1.IsString)(),
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], NotificationTokenDto.prototype, "deviceType", void 0);
|
29
|
-
//# sourceMappingURL=notification.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"notification.dto.js","sourceRoot":"","sources":["../../src/dtos/notification.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,oBAAoB;IAIhC,KAAK,CAAQ;IAIb,UAAU,CAAQ;CAClB;AATD,oDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO"}
|
package/lib/dtos/notification.js
DELETED
@@ -1,29 +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.NotificationTokenDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
class NotificationTokenDto {
|
15
|
-
token;
|
16
|
-
deviceType;
|
17
|
-
}
|
18
|
-
exports.NotificationTokenDto = NotificationTokenDto;
|
19
|
-
__decorate([
|
20
|
-
(0, class_validator_1.IsOptional)(),
|
21
|
-
(0, class_validator_1.IsString)(),
|
22
|
-
__metadata("design:type", String)
|
23
|
-
], NotificationTokenDto.prototype, "token", void 0);
|
24
|
-
__decorate([
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
26
|
-
(0, class_validator_1.IsString)(),
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], NotificationTokenDto.prototype, "deviceType", void 0);
|
29
|
-
//# sourceMappingURL=notification.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/dtos/notification.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,oBAAoB;IAIhC,KAAK,CAAQ;IAIb,UAAU,CAAQ;CAClB;AATD,oDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO"}
|
package/lib/dtos/post.dto.d.ts
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
import { PostType, SortType, StatusType } from '../enums';
|
2
|
-
export declare class PostParamsDto {
|
3
|
-
type: PostType;
|
4
|
-
status: StatusType;
|
5
|
-
term: string;
|
6
|
-
sort: SortType;
|
7
|
-
topics: string[];
|
8
|
-
authors: string[];
|
9
|
-
}
|
10
|
-
export declare class PostAdminParamsDto {
|
11
|
-
types: PostType[];
|
12
|
-
statuses: StatusType[];
|
13
|
-
term: string;
|
14
|
-
sort: SortType;
|
15
|
-
topics: number[];
|
16
|
-
authors: number[];
|
17
|
-
publishers: number[];
|
18
|
-
}
|
19
|
-
export declare class CreatePostDto {
|
20
|
-
title: string;
|
21
|
-
type: PostType;
|
22
|
-
}
|
23
|
-
export declare class PostAuthorDto {
|
24
|
-
author: number;
|
25
|
-
}
|
package/lib/dtos/post.dto.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.PostAuthorDto = exports.CreatePostDto = exports.PostAdminParamsDto = exports.PostParamsDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const enums_1 = require("../enums");
|
15
|
-
class PostParamsDto {
|
16
|
-
type;
|
17
|
-
status;
|
18
|
-
term;
|
19
|
-
sort;
|
20
|
-
topics;
|
21
|
-
authors;
|
22
|
-
}
|
23
|
-
exports.PostParamsDto = PostParamsDto;
|
24
|
-
__decorate([
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
26
|
-
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], PostParamsDto.prototype, "type", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
31
|
-
(0, class_validator_1.IsEnum)(enums_1.StatusType),
|
32
|
-
__metadata("design:type", String)
|
33
|
-
], PostParamsDto.prototype, "status", void 0);
|
34
|
-
__decorate([
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
36
|
-
(0, class_validator_1.IsString)(),
|
37
|
-
__metadata("design:type", String)
|
38
|
-
], PostParamsDto.prototype, "term", void 0);
|
39
|
-
__decorate([
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
41
|
-
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
42
|
-
__metadata("design:type", String)
|
43
|
-
], PostParamsDto.prototype, "sort", void 0);
|
44
|
-
__decorate([
|
45
|
-
(0, class_validator_1.IsOptional)(),
|
46
|
-
__metadata("design:type", Array)
|
47
|
-
], PostParamsDto.prototype, "topics", void 0);
|
48
|
-
__decorate([
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
50
|
-
__metadata("design:type", Array)
|
51
|
-
], PostParamsDto.prototype, "authors", void 0);
|
52
|
-
class PostAdminParamsDto {
|
53
|
-
types;
|
54
|
-
statuses;
|
55
|
-
term;
|
56
|
-
sort;
|
57
|
-
topics;
|
58
|
-
authors;
|
59
|
-
publishers;
|
60
|
-
}
|
61
|
-
exports.PostAdminParamsDto = PostAdminParamsDto;
|
62
|
-
__decorate([
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
64
|
-
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
65
|
-
__metadata("design:type", Array)
|
66
|
-
], PostAdminParamsDto.prototype, "types", void 0);
|
67
|
-
__decorate([
|
68
|
-
(0, class_validator_1.IsOptional)(),
|
69
|
-
(0, class_validator_1.IsEnum)(enums_1.StatusType),
|
70
|
-
__metadata("design:type", Array)
|
71
|
-
], PostAdminParamsDto.prototype, "statuses", void 0);
|
72
|
-
__decorate([
|
73
|
-
(0, class_validator_1.IsOptional)(),
|
74
|
-
(0, class_validator_1.IsString)(),
|
75
|
-
__metadata("design:type", String)
|
76
|
-
], PostAdminParamsDto.prototype, "term", void 0);
|
77
|
-
__decorate([
|
78
|
-
(0, class_validator_1.IsOptional)(),
|
79
|
-
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
80
|
-
__metadata("design:type", String)
|
81
|
-
], PostAdminParamsDto.prototype, "sort", void 0);
|
82
|
-
__decorate([
|
83
|
-
(0, class_validator_1.IsOptional)(),
|
84
|
-
__metadata("design:type", Array)
|
85
|
-
], PostAdminParamsDto.prototype, "topics", void 0);
|
86
|
-
__decorate([
|
87
|
-
(0, class_validator_1.IsOptional)(),
|
88
|
-
__metadata("design:type", Array)
|
89
|
-
], PostAdminParamsDto.prototype, "authors", void 0);
|
90
|
-
__decorate([
|
91
|
-
(0, class_validator_1.IsOptional)(),
|
92
|
-
__metadata("design:type", Array)
|
93
|
-
], PostAdminParamsDto.prototype, "publishers", void 0);
|
94
|
-
class CreatePostDto {
|
95
|
-
title;
|
96
|
-
type;
|
97
|
-
}
|
98
|
-
exports.CreatePostDto = CreatePostDto;
|
99
|
-
__decorate([
|
100
|
-
(0, class_validator_1.IsNotEmpty)(),
|
101
|
-
(0, class_validator_1.IsString)(),
|
102
|
-
__metadata("design:type", String)
|
103
|
-
], CreatePostDto.prototype, "title", void 0);
|
104
|
-
__decorate([
|
105
|
-
(0, class_validator_1.IsNotEmpty)(),
|
106
|
-
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
107
|
-
__metadata("design:type", String)
|
108
|
-
], CreatePostDto.prototype, "type", void 0);
|
109
|
-
class PostAuthorDto {
|
110
|
-
author;
|
111
|
-
}
|
112
|
-
exports.PostAuthorDto = PostAuthorDto;
|
113
|
-
__decorate([
|
114
|
-
(0, class_validator_1.IsOptional)(),
|
115
|
-
(0, class_validator_1.IsNumber)(),
|
116
|
-
__metadata("design:type", Number)
|
117
|
-
], PostAuthorDto.prototype, "author", void 0);
|
118
|
-
//# sourceMappingURL=post.dto.js.map
|
package/lib/dtos/post.dto.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"post.dto.js","sourceRoot":"","sources":["../../src/dtos/post.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AAC7F,oCAA0D;AAG1D,MAAa,aAAa;IAIzB,IAAI,CAAW;IAIf,MAAM,CAAa;IAInB,IAAI,CAAS;IAIb,IAAI,CAAW;IAGf,MAAM,CAAW;IAGjB,OAAO,CAAW;CAClB;AAvBD,sCAuBC;AAnBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;6CACA;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAGf;IADC,IAAA,4BAAU,GAAE;;6CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;8CACK;AAGnB,MAAa,kBAAkB;IAI9B,KAAK,CAAa;IAIlB,QAAQ,CAAe;IAIvB,IAAI,CAAS;IAIb,IAAI,CAAW;IAGf,MAAM,CAAW;IAGjB,OAAO,CAAW;IAGlB,UAAU,CAAW;CACrB;AA1BD,gDA0BC;AAtBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;iDACC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;oDACI;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;gDACF;AAGf;IADC,IAAA,4BAAU,GAAE;;kDACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;mDACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;sDACQ;AAGtB,MAAa,aAAa;IAGzB,KAAK,CAAS;IAId,IAAI,CAAW;CACf;AARD,sCAQC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAGhB,MAAa,aAAa;IAGzB,MAAM,CAAS;CACf;AAJD,sCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACI"}
|
@@ -1,38 +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.CreatePromotionDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
15
|
-
class CreatePromotionDto {
|
16
|
-
title;
|
17
|
-
startDate;
|
18
|
-
endDate;
|
19
|
-
}
|
20
|
-
exports.CreatePromotionDto = CreatePromotionDto;
|
21
|
-
__decorate([
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
23
|
-
(0, class_validator_1.IsString)(),
|
24
|
-
__metadata("design:type", String)
|
25
|
-
], CreatePromotionDto.prototype, "title", void 0);
|
26
|
-
__decorate([
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
28
|
-
(0, class_validator_1.IsDate)(),
|
29
|
-
(0, class_transformer_1.Type)(() => Date),
|
30
|
-
__metadata("design:type", Date)
|
31
|
-
], CreatePromotionDto.prototype, "startDate", void 0);
|
32
|
-
__decorate([
|
33
|
-
(0, class_validator_1.IsNotEmpty)(),
|
34
|
-
(0, class_validator_1.IsDate)(),
|
35
|
-
(0, class_transformer_1.Type)(() => Date),
|
36
|
-
__metadata("design:type", Date)
|
37
|
-
], CreatePromotionDto.prototype, "endDate", void 0);
|
38
|
-
//# sourceMappingURL=promotion.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"promotion.dto.js","sourceRoot":"","sources":["../../src/dtos/promotion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAyC;AAEzC,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAKd,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,gDAeC;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;qDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;mDAAC"}
|
@@ -1,39 +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.PublisherPostTypesDto = exports.InvitePublisherDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const enums_1 = require("../enums");
|
15
|
-
class InvitePublisherDto {
|
16
|
-
email;
|
17
|
-
postTypes;
|
18
|
-
}
|
19
|
-
exports.InvitePublisherDto = InvitePublisherDto;
|
20
|
-
__decorate([
|
21
|
-
(0, class_validator_1.IsNotEmpty)(),
|
22
|
-
(0, class_validator_1.IsEmail)(),
|
23
|
-
__metadata("design:type", String)
|
24
|
-
], InvitePublisherDto.prototype, "email", void 0);
|
25
|
-
__decorate([
|
26
|
-
(0, class_validator_1.IsNotEmpty)(),
|
27
|
-
(0, class_validator_1.IsEnum)(enums_1.PostType, { each: true }),
|
28
|
-
__metadata("design:type", Array)
|
29
|
-
], InvitePublisherDto.prototype, "postTypes", void 0);
|
30
|
-
class PublisherPostTypesDto {
|
31
|
-
postTypes;
|
32
|
-
}
|
33
|
-
exports.PublisherPostTypesDto = PublisherPostTypesDto;
|
34
|
-
__decorate([
|
35
|
-
(0, class_validator_1.IsNotEmpty)(),
|
36
|
-
(0, class_validator_1.IsEnum)(enums_1.PostType, { each: true }),
|
37
|
-
__metadata("design:type", Array)
|
38
|
-
], PublisherPostTypesDto.prototype, "postTypes", void 0);
|
39
|
-
//# sourceMappingURL=publisher.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"publisher.dto.js","sourceRoot":"","sources":["../../src/dtos/publisher.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AACpE,oCAAuD;AAGvD,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,SAAS,CAAa;CACtB;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACX;AAGvB,MAAa,qBAAqB;IAIjC,SAAS,CAAa;CACtB;AALD,sDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wDACX"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
export declare class AskQuestionDto {
|
2
|
-
slug: string;
|
3
|
-
topics: string[];
|
4
|
-
categories: string[];
|
5
|
-
title: string;
|
6
|
-
question: string;
|
7
|
-
name: string;
|
8
|
-
email: string;
|
9
|
-
phone: string;
|
10
|
-
private: boolean;
|
11
|
-
}
|
12
|
-
export declare class QuestionCommentDto {
|
13
|
-
content: string;
|
14
|
-
authorId: number;
|
15
|
-
}
|
package/lib/dtos/question.dto.js
DELETED
@@ -1,86 +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.QuestionCommentDto = exports.AskQuestionDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
15
|
-
class AskQuestionDto {
|
16
|
-
slug;
|
17
|
-
topics;
|
18
|
-
categories;
|
19
|
-
title;
|
20
|
-
question;
|
21
|
-
name;
|
22
|
-
email;
|
23
|
-
phone;
|
24
|
-
private;
|
25
|
-
}
|
26
|
-
exports.AskQuestionDto = AskQuestionDto;
|
27
|
-
__decorate([
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
29
|
-
(0, class_validator_1.IsString)(),
|
30
|
-
__metadata("design:type", String)
|
31
|
-
], AskQuestionDto.prototype, "slug", void 0);
|
32
|
-
__decorate([
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
34
|
-
__metadata("design:type", Array)
|
35
|
-
], AskQuestionDto.prototype, "topics", void 0);
|
36
|
-
__decorate([
|
37
|
-
(0, class_validator_1.IsOptional)(),
|
38
|
-
__metadata("design:type", Array)
|
39
|
-
], AskQuestionDto.prototype, "categories", void 0);
|
40
|
-
__decorate([
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
42
|
-
(0, class_validator_1.IsString)(),
|
43
|
-
__metadata("design:type", String)
|
44
|
-
], AskQuestionDto.prototype, "title", void 0);
|
45
|
-
__decorate([
|
46
|
-
(0, class_validator_1.IsNotEmpty)(),
|
47
|
-
(0, class_validator_1.IsString)(),
|
48
|
-
__metadata("design:type", String)
|
49
|
-
], AskQuestionDto.prototype, "question", void 0);
|
50
|
-
__decorate([
|
51
|
-
(0, class_validator_1.IsOptional)(),
|
52
|
-
(0, class_validator_1.IsString)(),
|
53
|
-
__metadata("design:type", String)
|
54
|
-
], AskQuestionDto.prototype, "name", void 0);
|
55
|
-
__decorate([
|
56
|
-
(0, class_validator_1.IsOptional)(),
|
57
|
-
(0, class_validator_1.IsString)(),
|
58
|
-
__metadata("design:type", String)
|
59
|
-
], AskQuestionDto.prototype, "email", void 0);
|
60
|
-
__decorate([
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
62
|
-
(0, class_validator_1.IsString)(),
|
63
|
-
__metadata("design:type", String)
|
64
|
-
], AskQuestionDto.prototype, "phone", void 0);
|
65
|
-
__decorate([
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
67
|
-
(0, class_validator_1.IsBoolean)(),
|
68
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
69
|
-
__metadata("design:type", Boolean)
|
70
|
-
], AskQuestionDto.prototype, "private", void 0);
|
71
|
-
class QuestionCommentDto {
|
72
|
-
content;
|
73
|
-
authorId;
|
74
|
-
}
|
75
|
-
exports.QuestionCommentDto = QuestionCommentDto;
|
76
|
-
__decorate([
|
77
|
-
(0, class_validator_1.IsNotEmpty)(),
|
78
|
-
(0, class_validator_1.IsString)(),
|
79
|
-
__metadata("design:type", String)
|
80
|
-
], QuestionCommentDto.prototype, "content", void 0);
|
81
|
-
__decorate([
|
82
|
-
(0, class_validator_1.IsNotEmpty)(),
|
83
|
-
(0, class_validator_1.IsNumber)(),
|
84
|
-
__metadata("design:type", Number)
|
85
|
-
], QuestionCommentDto.prototype, "authorId", void 0);
|
86
|
-
//# sourceMappingURL=question.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"question.dto.js","sourceRoot":"","sources":["../../src/dtos/question.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwF;AACxF,yDAAyC;AAEzC,MAAa,cAAc;IAI1B,IAAI,CAAS;IAMb,MAAM,CAAW;IAGjB,UAAU,CAAW;IAIrB,KAAK,CAAS;IAId,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,KAAK,CAAS;IAKd,OAAO,CAAU;CACjB;AAvCD,wCAuCC;AAnCA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE;AAMb;IADC,IAAA,4BAAU,GAAE;;8CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;kDACQ;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;+CACH;AAGlB,MAAa,kBAAkB;IAI9B,OAAO,CAAS;IAIhB,QAAQ,CAAS;CACjB;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACM"}
|
package/lib/dtos/search.dto.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
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
|
-
}
|