@intelact/bright 0.7.4 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/dtos/admin.dto.d.ts +0 -9
- package/lib/dtos/admin.dto.js +1 -13
- package/lib/dtos/admin.dto.js.map +1 -1
- package/lib/dtos/author.dto.d.ts +2 -2
- package/lib/dtos/author.dto.js +7 -7
- package/lib/dtos/author.dto.js.map +1 -1
- package/lib/dtos/boost.dto.d.ts +2 -2
- package/lib/dtos/boost.dto.js +8 -9
- package/lib/dtos/boost.dto.js.map +1 -1
- package/lib/dtos/brand.dto.d.ts +17 -3
- package/lib/dtos/brand.dto.js +54 -9
- package/lib/dtos/brand.dto.js.map +1 -1
- package/lib/dtos/browse.dto.d.ts +3 -0
- package/lib/dtos/browse.dto.js +10 -1
- package/lib/dtos/browse.dto.js.map +1 -1
- package/lib/dtos/bulk.dto.d.ts +3 -0
- package/lib/dtos/bulk.dto.js +22 -0
- package/lib/dtos/bulk.dto.js.map +1 -0
- package/lib/dtos/category.dto.d.ts +1 -4
- package/lib/dtos/category.dto.js +5 -13
- package/lib/dtos/category.dto.js.map +1 -1
- package/lib/dtos/feedback.dto.d.ts +2 -2
- package/lib/dtos/feedback.dto.js +7 -9
- package/lib/dtos/feedback.dto.js.map +1 -1
- package/lib/dtos/index.d.ts +2 -1
- package/lib/dtos/index.js +2 -1
- package/lib/dtos/index.js.map +1 -1
- package/lib/dtos/notification.js.map +1 -1
- package/lib/dtos/post.dto.d.ts +7 -10
- package/lib/dtos/post.dto.js +22 -30
- package/lib/dtos/post.dto.js.map +1 -1
- package/lib/dtos/promotion.dto.d.ts +4 -7
- package/lib/dtos/promotion.dto.js +18 -27
- package/lib/dtos/promotion.dto.js.map +1 -1
- package/lib/dtos/publisher.dto.d.ts +2 -13
- package/lib/dtos/publisher.dto.js +4 -38
- package/lib/dtos/publisher.dto.js.map +1 -1
- package/lib/dtos/question.dto.d.ts +4 -7
- package/lib/dtos/question.dto.js +22 -31
- package/lib/dtos/question.dto.js.map +1 -1
- package/lib/dtos/survey.dto.d.ts +5 -20
- package/lib/dtos/survey.dto.js +19 -62
- package/lib/dtos/survey.dto.js.map +1 -1
- package/lib/dtos/topic.dto.d.ts +1 -4
- package/lib/dtos/topic.dto.js +6 -14
- package/lib/dtos/topic.dto.js.map +1 -1
- package/lib/dtos/user.dto.d.ts +25 -0
- package/lib/dtos/user.dto.js +91 -0
- package/lib/dtos/user.dto.js.map +1 -0
- package/lib/models/index.d.ts +0 -1
- package/lib/models/index.js +0 -1
- package/lib/models/index.js.map +1 -1
- package/lib/models/user.d.ts +9 -4
- package/lib/models/user.js +6 -21
- package/lib/models/user.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/lib/dtos/admin.dto.d.ts
CHANGED
@@ -1,14 +1,5 @@
|
|
1
1
|
import { AccountStatusType } from '../enums';
|
2
2
|
import { Role } from '../security';
|
3
|
-
export declare class Admin {
|
4
|
-
name: string;
|
5
|
-
image: string;
|
6
|
-
phone: string;
|
7
|
-
email: string;
|
8
|
-
roles: Role[];
|
9
|
-
status: AccountStatusType;
|
10
|
-
constructor(props?: Partial<Admin>);
|
11
|
-
}
|
12
3
|
export declare class AdminProfileSecurityDto {
|
13
4
|
email: string;
|
14
5
|
password: string;
|
package/lib/dtos/admin.dto.js
CHANGED
@@ -9,22 +9,10 @@ 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.UpdateAdminRolesDto = exports.UpdateAdminStatusDto = exports.AdminProfilePhoneDto = exports.AdminProfileNameDto = exports.AdminProfileSecurityDto =
|
12
|
+
exports.UpdateAdminRolesDto = exports.UpdateAdminStatusDto = exports.AdminProfilePhoneDto = exports.AdminProfileNameDto = exports.AdminProfileSecurityDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const enums_1 = require("../enums");
|
15
15
|
const security_1 = require("../security");
|
16
|
-
class Admin {
|
17
|
-
name;
|
18
|
-
image;
|
19
|
-
phone;
|
20
|
-
email;
|
21
|
-
roles;
|
22
|
-
status;
|
23
|
-
constructor(props) {
|
24
|
-
Object.assign(this, props);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
exports.Admin = Admin;
|
28
16
|
class AdminProfileSecurityDto {
|
29
17
|
email;
|
30
18
|
password;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.dto.js","sourceRoot":"","sources":["../../src/dtos/admin.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyF;AACzF,oCAA6C;AAC7C,0CAAmC;AAEnC,MAAa,
|
1
|
+
{"version":3,"file":"admin.dto.js","sourceRoot":"","sources":["../../src/dtos/admin.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyF;AACzF,oCAA6C;AAC7C,0CAAmC;AAEnC,MAAa,uBAAuB;IAGnC,KAAK,CAAS;IAKd,QAAQ,CAAS;CACjB;AATD,0DASC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;sDACI;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;yDACE;AAGlB,MAAa,mBAAmB;IAI/B,IAAI,CAAS;CACb;AALD,kDAKC;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;iDACF;AAGd,MAAa,oBAAoB;IAIhC,KAAK,CAAS;CACd;AALD,oDAKC;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;mDACD;AAGf,MAAa,oBAAoB;IAI7B,MAAM,CAAoB;CAC7B;AALD,oDAKC;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,yBAAiB,CAAC;;oDACA;AAG9B,MAAa,mBAAmB;IAG/B,KAAK,CAAS;CACd;AAJD,kDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,eAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDAC5B"}
|
package/lib/dtos/author.dto.d.ts
CHANGED
@@ -6,9 +6,9 @@ export declare class AuthorParamsDto {
|
|
6
6
|
export declare class CreateAuthorDto {
|
7
7
|
name: string;
|
8
8
|
}
|
9
|
-
export declare class
|
9
|
+
export declare class AuthorNameDto {
|
10
10
|
name: string;
|
11
11
|
}
|
12
|
-
export declare class
|
12
|
+
export declare class AuthorBiographyDto {
|
13
13
|
biography: string;
|
14
14
|
}
|
package/lib/dtos/author.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.
|
12
|
+
exports.AuthorBiographyDto = exports.AuthorNameDto = exports.CreateAuthorDto = exports.AuthorParamsDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const enums_1 = require("../enums");
|
15
15
|
class AuthorParamsDto {
|
@@ -36,22 +36,22 @@ __decorate([
|
|
36
36
|
(0, class_validator_1.IsString)(),
|
37
37
|
__metadata("design:type", String)
|
38
38
|
], CreateAuthorDto.prototype, "name", void 0);
|
39
|
-
class
|
39
|
+
class AuthorNameDto {
|
40
40
|
name;
|
41
41
|
}
|
42
|
-
exports.
|
42
|
+
exports.AuthorNameDto = AuthorNameDto;
|
43
43
|
__decorate([
|
44
44
|
(0, class_validator_1.IsNotEmpty)(),
|
45
45
|
(0, class_validator_1.IsString)(),
|
46
46
|
__metadata("design:type", String)
|
47
|
-
],
|
48
|
-
class
|
47
|
+
], AuthorNameDto.prototype, "name", void 0);
|
48
|
+
class AuthorBiographyDto {
|
49
49
|
biography;
|
50
50
|
}
|
51
|
-
exports.
|
51
|
+
exports.AuthorBiographyDto = AuthorBiographyDto;
|
52
52
|
__decorate([
|
53
53
|
(0, class_validator_1.IsOptional)(),
|
54
54
|
(0, class_validator_1.IsString)(),
|
55
55
|
__metadata("design:type", String)
|
56
|
-
],
|
56
|
+
], AuthorBiographyDto.prototype, "biography", void 0);
|
57
57
|
//# sourceMappingURL=author.dto.js.map
|
@@ -1 +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;AATD,0CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,sBAAc,CAAC;;6CACF;AAGtB,MAAa,eAAe;IAI3B,IAAI,CAAS;CACb;AALD,0CAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAGd,MAAa,
|
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;AATD,0CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,sBAAc,CAAC;;6CACF;AAGtB,MAAa,eAAe;IAI3B,IAAI,CAAS;CACb;AALD,0CAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAGd,MAAa,aAAa;IAGzB,IAAI,CAAS;CACb;AAJD,sCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAGd,MAAa,kBAAkB;IAI9B,SAAS,CAAS;CAClB;AALD,gDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO"}
|
package/lib/dtos/boost.dto.d.ts
CHANGED
@@ -3,10 +3,10 @@ export declare class CreateBoostDto {
|
|
3
3
|
startDate: Date;
|
4
4
|
endDate: Date;
|
5
5
|
}
|
6
|
-
export declare class
|
6
|
+
export declare class BoostTitleDto {
|
7
7
|
title: string;
|
8
8
|
}
|
9
|
-
export declare class
|
9
|
+
export declare class BoostPeriodDto {
|
10
10
|
startDate: Date;
|
11
11
|
endDate: Date;
|
12
12
|
}
|
package/lib/dtos/boost.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.
|
12
|
+
exports.BoostPeriodDto = exports.BoostTitleDto = exports.CreateBoostDto = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const class_validator_1 = require("class-validator");
|
15
15
|
class CreateBoostDto {
|
@@ -35,31 +35,30 @@ __decorate([
|
|
35
35
|
(0, class_validator_1.IsDate)(),
|
36
36
|
__metadata("design:type", Date)
|
37
37
|
], CreateBoostDto.prototype, "endDate", void 0);
|
38
|
-
class
|
38
|
+
class BoostTitleDto {
|
39
39
|
title;
|
40
40
|
}
|
41
|
-
exports.
|
41
|
+
exports.BoostTitleDto = BoostTitleDto;
|
42
42
|
__decorate([
|
43
43
|
(0, class_validator_1.IsNotEmpty)(),
|
44
44
|
(0, class_validator_1.IsString)(),
|
45
|
-
(0, class_validator_1.MaxLength)(255),
|
46
45
|
__metadata("design:type", String)
|
47
|
-
],
|
48
|
-
class
|
46
|
+
], BoostTitleDto.prototype, "title", void 0);
|
47
|
+
class BoostPeriodDto {
|
49
48
|
startDate;
|
50
49
|
endDate;
|
51
50
|
}
|
52
|
-
exports.
|
51
|
+
exports.BoostPeriodDto = BoostPeriodDto;
|
53
52
|
__decorate([
|
54
53
|
(0, class_validator_1.IsNotEmpty)(),
|
55
54
|
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
56
55
|
(0, class_validator_1.IsDate)(),
|
57
56
|
__metadata("design:type", Date)
|
58
|
-
],
|
57
|
+
], BoostPeriodDto.prototype, "startDate", void 0);
|
59
58
|
__decorate([
|
60
59
|
(0, class_validator_1.IsNotEmpty)(),
|
61
60
|
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
62
61
|
(0, class_validator_1.IsDate)(),
|
63
62
|
__metadata("design:type", Date)
|
64
|
-
],
|
63
|
+
], BoostPeriodDto.prototype, "endDate", void 0);
|
65
64
|
//# sourceMappingURL=boost.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boost.dto.js","sourceRoot":"","sources":["../../src/dtos/boost.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,
|
1
|
+
{"version":3,"file":"boost.dto.js","sourceRoot":"","sources":["../../src/dtos/boost.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAA+D;AAE/D,MAAa,cAAc;IAI1B,KAAK,CAAS;IAKd,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,wCAeC;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;AAGf,MAAa,aAAa;IAGzB,KAAK,CAAS;CACd;AAJD,sCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAGf,MAAa,cAAc;IAK1B,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAXD,wCAWC;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;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"}
|
package/lib/dtos/brand.dto.d.ts
CHANGED
@@ -1,5 +1,19 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare class BrandNameDto {
|
2
|
+
name: string;
|
3
|
+
}
|
4
|
+
export declare class BrandSloganDto {
|
5
|
+
slogan: string;
|
6
|
+
}
|
7
|
+
export declare class BrandUrlDto {
|
8
|
+
url: string;
|
9
|
+
}
|
10
|
+
export declare class BrandEmailDto {
|
3
11
|
email: string;
|
4
|
-
|
12
|
+
}
|
13
|
+
export declare class BrandDescriptionDto {
|
14
|
+
description: string;
|
15
|
+
}
|
16
|
+
export declare class BrandSettingDto {
|
17
|
+
name: string;
|
18
|
+
value: any;
|
5
19
|
}
|
package/lib/dtos/brand.dto.js
CHANGED
@@ -9,21 +9,66 @@ 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.BrandSettingDto = exports.BrandDescriptionDto = exports.BrandEmailDto = exports.BrandUrlDto = exports.BrandSloganDto = exports.BrandNameDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class BrandNameDto {
|
15
|
+
name;
|
16
|
+
}
|
17
|
+
exports.BrandNameDto = BrandNameDto;
|
18
|
+
__decorate([
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
20
|
+
(0, class_validator_1.IsString)(),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], BrandNameDto.prototype, "name", void 0);
|
23
|
+
class BrandSloganDto {
|
24
|
+
slogan;
|
25
|
+
}
|
26
|
+
exports.BrandSloganDto = BrandSloganDto;
|
27
|
+
__decorate([
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
29
|
+
(0, class_validator_1.IsString)(),
|
30
|
+
__metadata("design:type", String)
|
31
|
+
], BrandSloganDto.prototype, "slogan", void 0);
|
32
|
+
class BrandUrlDto {
|
33
|
+
url;
|
34
|
+
}
|
35
|
+
exports.BrandUrlDto = BrandUrlDto;
|
36
|
+
__decorate([
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
38
|
+
(0, class_validator_1.IsString)(),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], BrandUrlDto.prototype, "url", void 0);
|
41
|
+
class BrandEmailDto {
|
15
42
|
email;
|
16
|
-
permissions;
|
17
43
|
}
|
18
|
-
exports.
|
44
|
+
exports.BrandEmailDto = BrandEmailDto;
|
45
|
+
__decorate([
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
47
|
+
(0, class_validator_1.IsString)(),
|
48
|
+
__metadata("design:type", String)
|
49
|
+
], BrandEmailDto.prototype, "email", void 0);
|
50
|
+
class BrandDescriptionDto {
|
51
|
+
description;
|
52
|
+
}
|
53
|
+
exports.BrandDescriptionDto = BrandDescriptionDto;
|
54
|
+
__decorate([
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
56
|
+
(0, class_validator_1.IsString)(),
|
57
|
+
__metadata("design:type", String)
|
58
|
+
], BrandDescriptionDto.prototype, "description", void 0);
|
59
|
+
class BrandSettingDto {
|
60
|
+
name;
|
61
|
+
value;
|
62
|
+
}
|
63
|
+
exports.BrandSettingDto = BrandSettingDto;
|
19
64
|
__decorate([
|
20
65
|
(0, class_validator_1.IsNotEmpty)(),
|
21
|
-
(0, class_validator_1.
|
66
|
+
(0, class_validator_1.IsString)(),
|
22
67
|
__metadata("design:type", String)
|
23
|
-
],
|
68
|
+
], BrandSettingDto.prototype, "name", void 0);
|
24
69
|
__decorate([
|
25
70
|
(0, class_validator_1.IsNotEmpty)(),
|
26
|
-
(0, class_validator_1.
|
27
|
-
__metadata("design:type",
|
28
|
-
],
|
71
|
+
(0, class_validator_1.IsString)(),
|
72
|
+
__metadata("design:type", Object)
|
73
|
+
], BrandSettingDto.prototype, "value", void 0);
|
29
74
|
//# sourceMappingURL=brand.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../../src/dtos/brand.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../../src/dtos/brand.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,YAAY;IAGxB,IAAI,CAAS;CACb;AAJD,oCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACE;AAGd,MAAa,cAAc;IAG1B,MAAM,CAAS;CACf;AAJD,wCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACI;AAGhB,MAAa,WAAW;IAGvB,GAAG,CAAS;CACZ;AAJD,kCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACC;AAGb,MAAa,aAAa;IAGzB,KAAK,CAAS;CACd;AAJD,sCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAGf,MAAa,mBAAmB;IAG/B,WAAW,CAAS;CACpB;AAJD,kDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAGrB,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,KAAK,CAAM;CACX;AATD,0CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACA"}
|
package/lib/dtos/browse.dto.d.ts
CHANGED
package/lib/dtos/browse.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.BrowseParamsDto = void 0;
|
12
|
+
exports.BrowseBookmarksDto = exports.BrowseParamsDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const enums_1 = require("../enums");
|
15
15
|
class BrowseParamsDto {
|
@@ -45,4 +45,13 @@ __decorate([
|
|
45
45
|
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
46
46
|
__metadata("design:type", String)
|
47
47
|
], BrowseParamsDto.prototype, "sort", void 0);
|
48
|
+
class BrowseBookmarksDto {
|
49
|
+
types;
|
50
|
+
}
|
51
|
+
exports.BrowseBookmarksDto = BrowseBookmarksDto;
|
52
|
+
__decorate([
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
54
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType, { each: true }),
|
55
|
+
__metadata("design:type", Array)
|
56
|
+
], BrowseBookmarksDto.prototype, "types", void 0);
|
48
57
|
//# sourceMappingURL=browse.dto.js.map
|
@@ -1 +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;AArBD,0CAqBC;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,CAAC;;6CACF"}
|
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;AArBD,0CAqBC;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,CAAC;;6CACF;AAGhB,MAAa,kBAAkB;IAI9B,KAAK,CAAa;CAClB;AALD,gDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iDACf"}
|
@@ -0,0 +1,22 @@
|
|
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.SortDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class SortDto {
|
15
|
+
ids;
|
16
|
+
}
|
17
|
+
exports.SortDto = SortDto;
|
18
|
+
__decorate([
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
20
|
+
__metadata("design:type", Array)
|
21
|
+
], SortDto.prototype, "ids", void 0);
|
22
|
+
//# sourceMappingURL=bulk.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"bulk.dto.js","sourceRoot":"","sources":["../../src/dtos/bulk.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAE7C,MAAa,OAAO;IAGnB,GAAG,CAAW;CACd;AAJD,0BAIC;AADA;IADC,IAAA,4BAAU,GAAE;;oCACC"}
|
package/lib/dtos/category.dto.js
CHANGED
@@ -9,29 +9,21 @@ 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.CategoryDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class CategoryDto {
|
15
15
|
title;
|
16
16
|
description;
|
17
17
|
}
|
18
|
-
exports.
|
18
|
+
exports.CategoryDto = CategoryDto;
|
19
19
|
__decorate([
|
20
20
|
(0, class_validator_1.IsNotEmpty)(),
|
21
21
|
(0, class_validator_1.IsString)(),
|
22
22
|
__metadata("design:type", String)
|
23
|
-
],
|
23
|
+
], CategoryDto.prototype, "title", void 0);
|
24
24
|
__decorate([
|
25
25
|
(0, class_validator_1.IsOptional)(),
|
26
26
|
(0, class_validator_1.IsString)(),
|
27
27
|
__metadata("design:type", String)
|
28
|
-
],
|
29
|
-
class SortCategoriesDto {
|
30
|
-
ids;
|
31
|
-
}
|
32
|
-
exports.SortCategoriesDto = SortCategoriesDto;
|
33
|
-
__decorate([
|
34
|
-
(0, class_validator_1.IsNotEmpty)(),
|
35
|
-
__metadata("design:type", Array)
|
36
|
-
], SortCategoriesDto.prototype, "ids", void 0);
|
28
|
+
], CategoryDto.prototype, "description", void 0);
|
37
29
|
//# sourceMappingURL=category.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"category.dto.js","sourceRoot":"","sources":["../../src/dtos/category.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,
|
1
|
+
{"version":3,"file":"category.dto.js","sourceRoot":"","sources":["../../src/dtos/category.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,WAAW;IAIvB,KAAK,CAAS;IAId,WAAW,CAAS;CACpB;AATD,kCASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS"}
|
@@ -3,9 +3,9 @@ export declare class CreateFeedbackDto {
|
|
3
3
|
name: string;
|
4
4
|
postType: PostType;
|
5
5
|
}
|
6
|
-
export declare class
|
6
|
+
export declare class FeedbackNameDto {
|
7
7
|
name: string;
|
8
8
|
}
|
9
|
-
export declare class
|
9
|
+
export declare class FeedbackDescriptionDto {
|
10
10
|
description: string;
|
11
11
|
}
|
package/lib/dtos/feedback.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.
|
12
|
+
exports.FeedbackDescriptionDto = exports.FeedbackNameDto = exports.CreateFeedbackDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const enums_1 = require("../enums");
|
15
15
|
class CreateFeedbackDto {
|
@@ -20,7 +20,6 @@ exports.CreateFeedbackDto = CreateFeedbackDto;
|
|
20
20
|
__decorate([
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
22
22
|
(0, class_validator_1.IsString)(),
|
23
|
-
(0, class_validator_1.MaxLength)(255),
|
24
23
|
__metadata("design:type", String)
|
25
24
|
], CreateFeedbackDto.prototype, "name", void 0);
|
26
25
|
__decorate([
|
@@ -29,23 +28,22 @@ __decorate([
|
|
29
28
|
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
30
29
|
__metadata("design:type", String)
|
31
30
|
], CreateFeedbackDto.prototype, "postType", void 0);
|
32
|
-
class
|
31
|
+
class FeedbackNameDto {
|
33
32
|
name;
|
34
33
|
}
|
35
|
-
exports.
|
34
|
+
exports.FeedbackNameDto = FeedbackNameDto;
|
36
35
|
__decorate([
|
37
36
|
(0, class_validator_1.IsOptional)(),
|
38
37
|
(0, class_validator_1.IsString)(),
|
39
|
-
(0, class_validator_1.MaxLength)(255),
|
40
38
|
__metadata("design:type", String)
|
41
|
-
],
|
42
|
-
class
|
39
|
+
], FeedbackNameDto.prototype, "name", void 0);
|
40
|
+
class FeedbackDescriptionDto {
|
43
41
|
description;
|
44
42
|
}
|
45
|
-
exports.
|
43
|
+
exports.FeedbackDescriptionDto = FeedbackDescriptionDto;
|
46
44
|
__decorate([
|
47
45
|
(0, class_validator_1.IsOptional)(),
|
48
46
|
(0, class_validator_1.IsString)(),
|
49
47
|
__metadata("design:type", String)
|
50
|
-
],
|
48
|
+
], FeedbackDescriptionDto.prototype, "description", void 0);
|
51
49
|
//# sourceMappingURL=feedback.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"feedback.dto.js","sourceRoot":"","sources":["../../src/dtos/feedback.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"feedback.dto.js","sourceRoot":"","sources":["../../src/dtos/feedback.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,oCAAoC;AAEpC,MAAa,iBAAiB;IAI7B,IAAI,CAAS;IAKb,QAAQ,CAAW;CACnB;AAVD,8CAUC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACE;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;IAChB,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;mDACE;AAGpB,MAAa,eAAe;IAI3B,IAAI,CAAS;CACb;AALD,0CAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAGd,MAAa,sBAAsB;IAGlC,WAAW,CAAS;CACpB;AAJD,wDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACS"}
|
package/lib/dtos/index.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
export * from './admin.dto';
|
2
1
|
export * from './asset.dto';
|
3
2
|
export * from './auth.dto';
|
4
3
|
export * from './author.dto';
|
5
4
|
export * from './boost.dto';
|
6
5
|
export * from './brand.dto';
|
7
6
|
export * from './browse.dto';
|
7
|
+
export * from './bulk.dto';
|
8
8
|
export * from './category.dto';
|
9
9
|
export * from './contact.dto';
|
10
10
|
export * from './feedback.dto';
|
@@ -15,3 +15,4 @@ export * from './publisher.dto';
|
|
15
15
|
export * from './question.dto';
|
16
16
|
export * from './survey.dto';
|
17
17
|
export * from './topic.dto';
|
18
|
+
export * from './user.dto';
|
package/lib/dtos/index.js
CHANGED
@@ -14,13 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./admin.dto"), exports);
|
18
17
|
__exportStar(require("./asset.dto"), exports);
|
19
18
|
__exportStar(require("./auth.dto"), exports);
|
20
19
|
__exportStar(require("./author.dto"), exports);
|
21
20
|
__exportStar(require("./boost.dto"), exports);
|
22
21
|
__exportStar(require("./brand.dto"), exports);
|
23
22
|
__exportStar(require("./browse.dto"), exports);
|
23
|
+
__exportStar(require("./bulk.dto"), exports);
|
24
24
|
__exportStar(require("./category.dto"), exports);
|
25
25
|
__exportStar(require("./contact.dto"), exports);
|
26
26
|
__exportStar(require("./feedback.dto"), exports);
|
@@ -31,4 +31,5 @@ __exportStar(require("./publisher.dto"), exports);
|
|
31
31
|
__exportStar(require("./question.dto"), exports);
|
32
32
|
__exportStar(require("./survey.dto"), exports);
|
33
33
|
__exportStar(require("./topic.dto"), exports);
|
34
|
+
__exportStar(require("./user.dto"), exports);
|
34
35
|
//# sourceMappingURL=index.js.map
|
package/lib/dtos/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/dtos/notification.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,oBAAoB;
|
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
CHANGED
@@ -12,27 +12,24 @@ export declare class CreatePostDto {
|
|
12
12
|
title: string;
|
13
13
|
type: PostType;
|
14
14
|
}
|
15
|
-
export declare class
|
15
|
+
export declare class PostTitleDto {
|
16
16
|
title: string;
|
17
17
|
}
|
18
|
-
export declare class
|
18
|
+
export declare class PostAuthorDto {
|
19
19
|
author: number;
|
20
20
|
}
|
21
|
-
export declare class
|
21
|
+
export declare class PostDescriptionDto {
|
22
22
|
description: string;
|
23
23
|
}
|
24
|
-
export declare class
|
24
|
+
export declare class PostWeightDto {
|
25
25
|
weight: number;
|
26
26
|
}
|
27
|
-
export declare class
|
27
|
+
export declare class PostTopicDto {
|
28
28
|
topics: number[];
|
29
29
|
}
|
30
|
-
export declare class
|
30
|
+
export declare class PostContentDto {
|
31
31
|
content: string;
|
32
32
|
}
|
33
|
-
export declare class
|
33
|
+
export declare class PostInfoDto {
|
34
34
|
info: Partial<IPostAdditionals>;
|
35
35
|
}
|
36
|
-
export declare class SortPostGalleryDto {
|
37
|
-
ids: number[];
|
38
|
-
}
|