@intelact/bright 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/dtos/asset.dto.d.ts +14 -0
- package/lib/dtos/asset.dto.js +70 -0
- package/lib/dtos/asset.dto.js.map +1 -0
- package/lib/dtos/auth.dto.d.ts +27 -0
- package/lib/dtos/auth.dto.js +127 -0
- package/lib/dtos/auth.dto.js.map +1 -0
- package/lib/dtos/author.dto.d.ts +14 -0
- package/lib/dtos/author.dto.js +57 -0
- package/lib/dtos/author.dto.js.map +1 -0
- package/lib/dtos/boost.dto.d.ts +12 -0
- package/lib/dtos/boost.dto.js +65 -0
- package/lib/dtos/boost.dto.js.map +1 -0
- package/lib/dtos/brand.dto.d.ts +9 -0
- package/lib/dtos/brand.dto.js +39 -0
- package/lib/dtos/brand.dto.js.map +1 -0
- package/lib/dtos/browse.dto.d.ts +8 -0
- package/lib/dtos/browse.dto.js +48 -0
- package/lib/dtos/browse.dto.js.map +1 -0
- package/lib/dtos/category.dto.d.ts +7 -0
- package/lib/dtos/category.dto.js +37 -0
- package/lib/dtos/category.dto.js.map +1 -0
- package/lib/dtos/contact.dto.d.ts +5 -0
- package/lib/dtos/contact.dto.js +35 -0
- package/lib/dtos/contact.dto.js.map +1 -0
- package/lib/dtos/feedback.dto.d.ts +11 -0
- package/lib/dtos/feedback.dto.js +51 -0
- package/lib/dtos/feedback.dto.js.map +1 -0
- package/lib/dtos/index.d.ts +15 -0
- package/lib/dtos/index.js +28 -0
- package/lib/dtos/index.js.map +1 -0
- package/lib/dtos/post.dto.d.ts +38 -0
- package/lib/dtos/post.dto.js +139 -0
- package/lib/dtos/post.dto.js.map +1 -0
- package/lib/dtos/promotion.dto.d.ts +21 -0
- package/lib/dtos/promotion.dto.js +95 -0
- package/lib/dtos/promotion.dto.js.map +1 -0
- package/lib/dtos/publisher.dto.d.ts +19 -0
- package/lib/dtos/publisher.dto.js +73 -0
- package/lib/dtos/publisher.dto.js.map +1 -0
- package/lib/dtos/question.dto.d.ts +30 -0
- package/lib/dtos/question.dto.js +132 -0
- package/lib/dtos/question.dto.js.map +1 -0
- package/lib/dtos/survey.dto.d.ts +40 -0
- package/lib/dtos/survey.dto.js +153 -0
- package/lib/dtos/survey.dto.js.map +1 -0
- package/lib/dtos/topic.dto.d.ts +8 -0
- package/lib/dtos/topic.dto.js +43 -0
- package/lib/dtos/topic.dto.js.map +1 -0
- package/lib/enums/account.enum.js +2 -2
- package/lib/enums/account.enum.js.map +1 -1
- package/lib/enums/asset.enum.js +2 -2
- package/lib/enums/asset.enum.js.map +1 -1
- package/lib/enums/color.enum.js +3 -3
- package/lib/enums/color.enum.js.map +1 -1
- package/lib/enums/index.d.ts +12 -12
- package/lib/enums/index.js +22 -34
- package/lib/enums/index.js.map +1 -1
- package/lib/enums/module.enum.js +2 -2
- package/lib/enums/module.enum.js.map +1 -1
- package/lib/enums/notification.enum.js +2 -2
- package/lib/enums/notification.enum.js.map +1 -1
- package/lib/enums/post.enum.js +1 -1
- package/lib/enums/post.enum.js.map +1 -1
- package/lib/enums/setting.enum.js +1 -1
- package/lib/enums/setting.enum.js.map +1 -1
- package/lib/enums/social.enum.js +2 -2
- package/lib/enums/social.enum.js.map +1 -1
- package/lib/enums/sort.enum.d.ts +5 -0
- package/lib/enums/sort.enum.js +8 -2
- package/lib/enums/sort.enum.js.map +1 -1
- package/lib/enums/status.enum.js +1 -1
- package/lib/enums/status.enum.js.map +1 -1
- package/lib/enums/tracks.enum.js +3 -3
- package/lib/enums/tracks.enum.js.map +1 -1
- package/lib/enums/verification.enum.js +1 -1
- package/lib/enums/verification.enum.js.map +1 -1
- package/lib/index.js +1 -5
- package/lib/index.js.map +1 -1
- package/lib/models/index.d.ts +21 -21
- package/lib/models/index.js +31 -43
- package/lib/models/index.js.map +1 -1
- package/lib/security/index.d.ts +3 -3
- package/lib/security/index.js +13 -7
- package/lib/security/index.js.map +1 -1
- package/lib/security/permissions.js +1 -1
- package/lib/security/permissions.js.map +1 -1
- package/lib/security/role.js +1 -1
- package/lib/security/role.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -2
@@ -0,0 +1,14 @@
|
|
1
|
+
import { AssetType } from '../enums';
|
2
|
+
export declare class AssetParamsDto {
|
3
|
+
type: AssetType;
|
4
|
+
term: string;
|
5
|
+
}
|
6
|
+
export declare class CreateAssetDto {
|
7
|
+
title: string;
|
8
|
+
assetType: AssetType;
|
9
|
+
tags: string;
|
10
|
+
}
|
11
|
+
export declare class UpdateAssetDto {
|
12
|
+
title: string;
|
13
|
+
tags: string;
|
14
|
+
}
|
@@ -0,0 +1,70 @@
|
|
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.UpdateAssetDto = exports.CreateAssetDto = exports.AssetParamsDto = void 0;
|
13
|
+
const enums_1 = require("../enums");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
class AssetParamsDto {
|
16
|
+
type;
|
17
|
+
term;
|
18
|
+
}
|
19
|
+
__decorate([
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
21
|
+
(0, class_validator_1.IsEnum)(enums_1.AssetType),
|
22
|
+
__metadata("design:type", String)
|
23
|
+
], AssetParamsDto.prototype, "type", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
26
|
+
(0, class_validator_1.IsString)(),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], AssetParamsDto.prototype, "term", void 0);
|
29
|
+
exports.AssetParamsDto = AssetParamsDto;
|
30
|
+
class CreateAssetDto {
|
31
|
+
title;
|
32
|
+
assetType;
|
33
|
+
tags;
|
34
|
+
}
|
35
|
+
__decorate([
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
37
|
+
(0, class_validator_1.IsString)(),
|
38
|
+
(0, class_validator_1.MaxLength)(255),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], CreateAssetDto.prototype, "title", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
43
|
+
(0, class_validator_1.IsEnum)(enums_1.AssetType),
|
44
|
+
__metadata("design:type", String)
|
45
|
+
], CreateAssetDto.prototype, "assetType", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
48
|
+
(0, class_validator_1.IsString)(),
|
49
|
+
(0, class_validator_1.MaxLength)(255),
|
50
|
+
__metadata("design:type", String)
|
51
|
+
], CreateAssetDto.prototype, "tags", void 0);
|
52
|
+
exports.CreateAssetDto = CreateAssetDto;
|
53
|
+
class UpdateAssetDto {
|
54
|
+
title;
|
55
|
+
tags;
|
56
|
+
}
|
57
|
+
__decorate([
|
58
|
+
(0, class_validator_1.IsNotEmpty)(),
|
59
|
+
(0, class_validator_1.IsString)(),
|
60
|
+
(0, class_validator_1.MaxLength)(255),
|
61
|
+
__metadata("design:type", String)
|
62
|
+
], UpdateAssetDto.prototype, "title", void 0);
|
63
|
+
__decorate([
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
65
|
+
(0, class_validator_1.IsString)(),
|
66
|
+
(0, class_validator_1.MaxLength)(255),
|
67
|
+
__metadata("design:type", String)
|
68
|
+
], UpdateAssetDto.prototype, "tags", void 0);
|
69
|
+
exports.UpdateAssetDto = UpdateAssetDto;
|
70
|
+
//# sourceMappingURL=asset.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"asset.dto.js","sourceRoot":"","sources":["../../src/dtos/asset.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAqC;AACrC,qDAAsF;AAEtF,MAAa,cAAc;IAI1B,IAAI,CAAY;IAIhB,IAAI,CAAS;CACb;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iBAAS,CAAC;;4CACF;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE;AARd,wCASC;AAED,MAAa,cAAc;IAK1B,KAAK,CAAS;IAId,SAAS,CAAY;IAKrB,IAAI,CAAS;CACb;AAVA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;6CACD;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iBAAS,CAAC;;iDACG;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;4CACF;AAdd,wCAeC;AAED,MAAa,cAAc;IAK1B,KAAK,CAAS;IAKd,IAAI,CAAS;CACb;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;6CACD;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;4CACF;AAVd,wCAWC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { SocialLoginType } from '../enums';
|
2
|
+
import { IUserAgent } from '../models';
|
3
|
+
export declare class SocialUserDto {
|
4
|
+
uid: string;
|
5
|
+
name: string;
|
6
|
+
email: string;
|
7
|
+
phone: string;
|
8
|
+
image: string;
|
9
|
+
provider: SocialLoginType;
|
10
|
+
device: Partial<IUserAgent>;
|
11
|
+
}
|
12
|
+
export declare class SigninDto {
|
13
|
+
email: string;
|
14
|
+
password: string;
|
15
|
+
device: Partial<IUserAgent>;
|
16
|
+
}
|
17
|
+
export declare class SignupDto {
|
18
|
+
token: string;
|
19
|
+
name: string;
|
20
|
+
password: string;
|
21
|
+
image: string;
|
22
|
+
phone: string;
|
23
|
+
}
|
24
|
+
export declare class PasswordUserDto {
|
25
|
+
name: string;
|
26
|
+
email: string;
|
27
|
+
}
|
@@ -0,0 +1,127 @@
|
|
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.PasswordUserDto = exports.SignupDto = exports.SigninDto = exports.SocialUserDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
class SocialUserDto {
|
16
|
+
uid;
|
17
|
+
name;
|
18
|
+
email;
|
19
|
+
phone;
|
20
|
+
image;
|
21
|
+
provider;
|
22
|
+
device;
|
23
|
+
}
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
26
|
+
(0, class_validator_1.IsString)(),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], SocialUserDto.prototype, "uid", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
31
|
+
(0, class_validator_1.IsString)(),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], SocialUserDto.prototype, "name", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
36
|
+
(0, class_validator_1.IsEmail)(),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], SocialUserDto.prototype, "email", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
41
|
+
(0, class_validator_1.IsString)(),
|
42
|
+
__metadata("design:type", String)
|
43
|
+
], SocialUserDto.prototype, "phone", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
46
|
+
(0, class_validator_1.IsString)(),
|
47
|
+
__metadata("design:type", String)
|
48
|
+
], SocialUserDto.prototype, "image", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
51
|
+
(0, class_validator_1.IsEnum)(enums_1.SocialLoginType),
|
52
|
+
__metadata("design:type", String)
|
53
|
+
], SocialUserDto.prototype, "provider", void 0);
|
54
|
+
__decorate([
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
56
|
+
__metadata("design:type", Object)
|
57
|
+
], SocialUserDto.prototype, "device", void 0);
|
58
|
+
exports.SocialUserDto = SocialUserDto;
|
59
|
+
class SigninDto {
|
60
|
+
email;
|
61
|
+
password;
|
62
|
+
device;
|
63
|
+
}
|
64
|
+
__decorate([
|
65
|
+
(0, class_validator_1.IsNotEmpty)(),
|
66
|
+
(0, class_validator_1.IsEmail)(),
|
67
|
+
__metadata("design:type", String)
|
68
|
+
], SigninDto.prototype, "email", void 0);
|
69
|
+
__decorate([
|
70
|
+
(0, class_validator_1.IsNotEmpty)(),
|
71
|
+
(0, class_validator_1.IsString)(),
|
72
|
+
__metadata("design:type", String)
|
73
|
+
], SigninDto.prototype, "password", void 0);
|
74
|
+
__decorate([
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
76
|
+
__metadata("design:type", Object)
|
77
|
+
], SigninDto.prototype, "device", void 0);
|
78
|
+
exports.SigninDto = SigninDto;
|
79
|
+
class SignupDto {
|
80
|
+
token;
|
81
|
+
name;
|
82
|
+
password;
|
83
|
+
image;
|
84
|
+
phone;
|
85
|
+
}
|
86
|
+
__decorate([
|
87
|
+
(0, class_validator_1.IsNotEmpty)(),
|
88
|
+
(0, class_validator_1.IsString)(),
|
89
|
+
__metadata("design:type", String)
|
90
|
+
], SignupDto.prototype, "token", void 0);
|
91
|
+
__decorate([
|
92
|
+
(0, class_validator_1.IsNotEmpty)(),
|
93
|
+
(0, class_validator_1.IsString)(),
|
94
|
+
__metadata("design:type", String)
|
95
|
+
], SignupDto.prototype, "name", void 0);
|
96
|
+
__decorate([
|
97
|
+
(0, class_validator_1.IsNotEmpty)(),
|
98
|
+
(0, class_validator_1.IsString)(),
|
99
|
+
__metadata("design:type", String)
|
100
|
+
], SignupDto.prototype, "password", void 0);
|
101
|
+
__decorate([
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
103
|
+
(0, class_validator_1.IsString)(),
|
104
|
+
__metadata("design:type", String)
|
105
|
+
], SignupDto.prototype, "image", void 0);
|
106
|
+
__decorate([
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
108
|
+
(0, class_validator_1.IsString)(),
|
109
|
+
__metadata("design:type", String)
|
110
|
+
], SignupDto.prototype, "phone", void 0);
|
111
|
+
exports.SignupDto = SignupDto;
|
112
|
+
class PasswordUserDto {
|
113
|
+
name;
|
114
|
+
email;
|
115
|
+
}
|
116
|
+
__decorate([
|
117
|
+
(0, class_validator_1.IsNotEmpty)(),
|
118
|
+
(0, class_validator_1.IsString)(),
|
119
|
+
__metadata("design:type", String)
|
120
|
+
], PasswordUserDto.prototype, "name", void 0);
|
121
|
+
__decorate([
|
122
|
+
(0, class_validator_1.IsNotEmpty)(),
|
123
|
+
(0, class_validator_1.IsEmail)(),
|
124
|
+
__metadata("design:type", String)
|
125
|
+
], PasswordUserDto.prototype, "email", void 0);
|
126
|
+
exports.PasswordUserDto = PasswordUserDto;
|
127
|
+
//# sourceMappingURL=auth.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"auth.dto.js","sourceRoot":"","sources":["../../src/dtos/auth.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoF;AACpF,oCAA2C;AAG3C,MAAa,aAAa;IAIzB,GAAG,CAAS;IAIZ,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,KAAK,CAAS;IAId,KAAK,CAAS;IAId,QAAQ,CAAkB;IAG1B,MAAM,CAAsB;CAC5B;AAxBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACC;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;4CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,uBAAe,CAAC;;+CACE;AAG1B;IADC,IAAA,4BAAU,GAAE;;6CACe;AA3B7B,sCA4BC;AAED,MAAa,SAAS;IAIrB,KAAK,CAAS;IAId,QAAQ,CAAS;IAGjB,MAAM,CAAsB;CAC5B;AARA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACM;AAGjB;IADC,IAAA,4BAAU,GAAE;;yCACe;AAX7B,8BAYC;AAED,MAAa,SAAS;IAGrB,KAAK,CAAS;IAId,IAAI,CAAS;IAIb,QAAQ,CAAS;IAIjB,KAAK,CAAS;IAId,KAAK,CAAS;CACd;AAjBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uCACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACG;AAnBf,8BAoBC;AAGD,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,KAAK,CAAS;CACd;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;8CACI;AARf,0CASC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { AuthorSortType } from '../enums';
|
2
|
+
export declare class AuthorParamsDto {
|
3
|
+
term: string;
|
4
|
+
sort: AuthorSortType;
|
5
|
+
}
|
6
|
+
export declare class CreateAuthorDto {
|
7
|
+
name: string;
|
8
|
+
}
|
9
|
+
export declare class UpdateAuthorNameDto {
|
10
|
+
name: string;
|
11
|
+
}
|
12
|
+
export declare class UpdateAuthorBiographyDto {
|
13
|
+
biography: string;
|
14
|
+
}
|
@@ -0,0 +1,57 @@
|
|
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.UpdateAuthorBiographyDto = exports.UpdateAuthorNameDto = exports.CreateAuthorDto = exports.AuthorParamsDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
class AuthorParamsDto {
|
16
|
+
term;
|
17
|
+
sort;
|
18
|
+
}
|
19
|
+
__decorate([
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
21
|
+
(0, class_validator_1.IsString)(),
|
22
|
+
__metadata("design:type", String)
|
23
|
+
], AuthorParamsDto.prototype, "term", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
26
|
+
(0, class_validator_1.IsEnum)(enums_1.AuthorSortType),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], AuthorParamsDto.prototype, "sort", void 0);
|
29
|
+
exports.AuthorParamsDto = AuthorParamsDto;
|
30
|
+
class CreateAuthorDto {
|
31
|
+
name;
|
32
|
+
}
|
33
|
+
__decorate([
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
35
|
+
(0, class_validator_1.IsString)(),
|
36
|
+
__metadata("design:type", String)
|
37
|
+
], CreateAuthorDto.prototype, "name", void 0);
|
38
|
+
exports.CreateAuthorDto = CreateAuthorDto;
|
39
|
+
class UpdateAuthorNameDto {
|
40
|
+
name;
|
41
|
+
}
|
42
|
+
__decorate([
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
44
|
+
(0, class_validator_1.IsString)(),
|
45
|
+
__metadata("design:type", String)
|
46
|
+
], UpdateAuthorNameDto.prototype, "name", void 0);
|
47
|
+
exports.UpdateAuthorNameDto = UpdateAuthorNameDto;
|
48
|
+
class UpdateAuthorBiographyDto {
|
49
|
+
biography;
|
50
|
+
}
|
51
|
+
__decorate([
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
53
|
+
(0, class_validator_1.IsString)(),
|
54
|
+
__metadata("design:type", String)
|
55
|
+
], UpdateAuthorBiographyDto.prototype, "biography", void 0);
|
56
|
+
exports.UpdateAuthorBiographyDto = UpdateAuthorBiographyDto;
|
57
|
+
//# sourceMappingURL=author.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"author.dto.js","sourceRoot":"","sources":["../../src/dtos/author.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,oCAA0C;AAE1C,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,IAAI,CAAiB;CACrB;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,sBAAc,CAAC;;6CACF;AARtB,0CASC;AAED,MAAa,eAAe;IAI3B,IAAI,CAAS;CACb;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAJd,0CAKC;AAED,MAAa,mBAAmB;IAG/B,IAAI,CAAS;CACb;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACE;AAHd,kDAIC;AAED,MAAa,wBAAwB;IAIpC,SAAS,CAAS;CAClB;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACO;AAJnB,4DAKC"}
|
@@ -0,0 +1,65 @@
|
|
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.UpdateBoostPeriodDto = exports.UpdateBoostTitleDto = exports.CreateBoostDto = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
class CreateBoostDto {
|
16
|
+
title;
|
17
|
+
startDate;
|
18
|
+
endDate;
|
19
|
+
}
|
20
|
+
__decorate([
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
22
|
+
(0, class_validator_1.IsString)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], CreateBoostDto.prototype, "title", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
27
|
+
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
28
|
+
(0, class_validator_1.IsDate)(),
|
29
|
+
__metadata("design:type", Date)
|
30
|
+
], CreateBoostDto.prototype, "startDate", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
33
|
+
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
34
|
+
(0, class_validator_1.IsDate)(),
|
35
|
+
__metadata("design:type", Date)
|
36
|
+
], CreateBoostDto.prototype, "endDate", void 0);
|
37
|
+
exports.CreateBoostDto = CreateBoostDto;
|
38
|
+
class UpdateBoostTitleDto {
|
39
|
+
title;
|
40
|
+
}
|
41
|
+
__decorate([
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
43
|
+
(0, class_validator_1.IsString)(),
|
44
|
+
(0, class_validator_1.MaxLength)(255),
|
45
|
+
__metadata("design:type", String)
|
46
|
+
], UpdateBoostTitleDto.prototype, "title", void 0);
|
47
|
+
exports.UpdateBoostTitleDto = UpdateBoostTitleDto;
|
48
|
+
class UpdateBoostPeriodDto {
|
49
|
+
startDate;
|
50
|
+
endDate;
|
51
|
+
}
|
52
|
+
__decorate([
|
53
|
+
(0, class_validator_1.IsNotEmpty)(),
|
54
|
+
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
55
|
+
(0, class_validator_1.IsDate)(),
|
56
|
+
__metadata("design:type", Date)
|
57
|
+
], UpdateBoostPeriodDto.prototype, "startDate", void 0);
|
58
|
+
__decorate([
|
59
|
+
(0, class_validator_1.IsNotEmpty)(),
|
60
|
+
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
61
|
+
(0, class_validator_1.IsDate)(),
|
62
|
+
__metadata("design:type", Date)
|
63
|
+
], UpdateBoostPeriodDto.prototype, "endDate", void 0);
|
64
|
+
exports.UpdateBoostPeriodDto = UpdateBoostPeriodDto;
|
65
|
+
//# sourceMappingURL=boost.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"boost.dto.js","sourceRoot":"","sources":["../../src/dtos/boost.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAA0E;AAE1E,MAAa,cAAc;IAI1B,KAAK,CAAS;IAKd,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACtD,IAAA,wBAAM,GAAE;8BACE,IAAI;iDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACtD,IAAA,wBAAM,GAAE;8BACA,IAAI;+CAAC;AAdf,wCAeC;AAED,MAAa,mBAAmB;IAI/B,KAAK,CAAS;CACd;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;kDACD;AAJf,kDAKC;AAED,MAAa,oBAAoB;IAIhC,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACtD,IAAA,wBAAM,GAAE;8BACE,IAAI;uDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACtD,IAAA,wBAAM,GAAE;8BACA,IAAI;qDAAC;AATf,oDAUC"}
|
@@ -0,0 +1,39 @@
|
|
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.ChangeUserStatusDto = exports.InviteBrandUserDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
class InviteBrandUserDto {
|
16
|
+
email;
|
17
|
+
permissions;
|
18
|
+
}
|
19
|
+
__decorate([
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
21
|
+
(0, class_validator_1.IsEmail)(),
|
22
|
+
__metadata("design:type", String)
|
23
|
+
], InviteBrandUserDto.prototype, "email", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
26
|
+
(0, class_validator_1.IsEnum)({ each: true }),
|
27
|
+
__metadata("design:type", Array)
|
28
|
+
], InviteBrandUserDto.prototype, "permissions", void 0);
|
29
|
+
exports.InviteBrandUserDto = InviteBrandUserDto;
|
30
|
+
class ChangeUserStatusDto {
|
31
|
+
status;
|
32
|
+
}
|
33
|
+
__decorate([
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
35
|
+
(0, class_validator_1.IsEnum)(enums_1.AccountStatusType),
|
36
|
+
__metadata("design:type", String)
|
37
|
+
], ChangeUserStatusDto.prototype, "status", void 0);
|
38
|
+
exports.ChangeUserStatusDto = ChangeUserStatusDto;
|
39
|
+
//# sourceMappingURL=brand.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../../src/dtos/brand.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAC9D,oCAA6C;AAG7C,MAAa,kBAAkB;IAI3B,KAAK,CAAS;IAId,WAAW,CAAe;CAC7B;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACG;AAR9B,gDASC;AAED,MAAa,mBAAmB;IAI5B,MAAM,CAAoB;CAC7B;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,yBAAiB,CAAC;;mDACA;AAJ9B,kDAKC"}
|
@@ -0,0 +1,48 @@
|
|
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.BrowseParamsDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
class BrowseParamsDto {
|
16
|
+
term;
|
17
|
+
topics;
|
18
|
+
authors;
|
19
|
+
types;
|
20
|
+
sort;
|
21
|
+
}
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
24
|
+
(0, class_validator_1.IsString)(),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], BrowseParamsDto.prototype, "term", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
29
|
+
(0, class_validator_1.IsArray)(),
|
30
|
+
__metadata("design:type", Array)
|
31
|
+
], BrowseParamsDto.prototype, "topics", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
34
|
+
(0, class_validator_1.IsArray)(),
|
35
|
+
__metadata("design:type", Array)
|
36
|
+
], BrowseParamsDto.prototype, "authors", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
39
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
40
|
+
__metadata("design:type", Array)
|
41
|
+
], BrowseParamsDto.prototype, "types", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
44
|
+
(0, class_validator_1.IsEnum)(enums_1.SortType, { each: true }),
|
45
|
+
__metadata("design:type", String)
|
46
|
+
], BrowseParamsDto.prototype, "sort", void 0);
|
47
|
+
exports.BrowseParamsDto = BrowseParamsDto;
|
48
|
+
//# sourceMappingURL=browse.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"browse.dto.js","sourceRoot":"","sources":["../../src/dtos/browse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AACxE,oCAA8C;AAE9C,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,MAAM,CAAW;IAIjB,OAAO,CAAW;IAIlB,KAAK,CAAa;IAIlB,IAAI,CAAW;CACf;AAjBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CACO;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;gDACQ;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;8CACC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CAClB;AApBhB,0CAqBC"}
|
@@ -0,0 +1,37 @@
|
|
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.SortCategoriesDto = exports.SubmitCategoryDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class SubmitCategoryDto {
|
15
|
+
title;
|
16
|
+
description;
|
17
|
+
}
|
18
|
+
__decorate([
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
20
|
+
(0, class_validator_1.IsString)(),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], SubmitCategoryDto.prototype, "title", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
25
|
+
(0, class_validator_1.IsString)(),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], SubmitCategoryDto.prototype, "description", void 0);
|
28
|
+
exports.SubmitCategoryDto = SubmitCategoryDto;
|
29
|
+
class SortCategoriesDto {
|
30
|
+
ids;
|
31
|
+
}
|
32
|
+
__decorate([
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
34
|
+
__metadata("design:type", Array)
|
35
|
+
], SortCategoriesDto.prototype, "ids", void 0);
|
36
|
+
exports.SortCategoriesDto = SortCategoriesDto;
|
37
|
+
//# sourceMappingURL=category.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"category.dto.js","sourceRoot":"","sources":["../../src/dtos/category.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,iBAAiB;IAG7B,KAAK,CAAS;IAId,WAAW,CAAS;CACpB;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACS;AAPrB,8CAQC;AAED,MAAa,iBAAiB;IAE7B,GAAG,CAAW;CACd;AADA;IADC,IAAA,4BAAU,GAAE;;8CACC;AAFf,8CAGC"}
|
@@ -0,0 +1,35 @@
|
|
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.ContactEmailDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class ContactEmailDto {
|
15
|
+
name;
|
16
|
+
email;
|
17
|
+
message;
|
18
|
+
}
|
19
|
+
__decorate([
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
21
|
+
(0, class_validator_1.IsString)(),
|
22
|
+
__metadata("design:type", String)
|
23
|
+
], ContactEmailDto.prototype, "name", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
26
|
+
(0, class_validator_1.IsString)(),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], ContactEmailDto.prototype, "email", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
31
|
+
(0, class_validator_1.IsString)(),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], ContactEmailDto.prototype, "message", void 0);
|
34
|
+
exports.ContactEmailDto = ContactEmailDto;
|
35
|
+
//# sourceMappingURL=contact.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"contact.dto.js","sourceRoot":"","sources":["../../src/dtos/contact.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,OAAO,CAAS;CAChB;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACK;AAZjB,0CAaC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { PostType } from '../enums';
|
2
|
+
export declare class CreateFeedbackDto {
|
3
|
+
name: string;
|
4
|
+
postType: PostType;
|
5
|
+
}
|
6
|
+
export declare class UpdateFeedbackNameDto {
|
7
|
+
name: string;
|
8
|
+
}
|
9
|
+
export declare class UpdateFeedbackDescriptionDto {
|
10
|
+
description: string;
|
11
|
+
}
|