@aurispec/core-backend 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/configs/cloudinary.d.ts +1 -1
- package/dist/common/configs/cloudinary.d.ts.map +1 -1
- package/dist/common/configs/cloudinary.js +2 -1
- package/dist/common/utils/index.d.ts +5 -0
- package/dist/common/utils/index.d.ts.map +1 -1
- package/dist/common/utils/index.js +16 -0
- package/dist/database/migrations/1772984882048-modified_reviews_table.d.ts +7 -0
- package/dist/database/migrations/1772984882048-modified_reviews_table.d.ts.map +1 -0
- package/dist/database/migrations/1772984882048-modified_reviews_table.js +61 -0
- package/dist/models/BusinessModel.d.ts +2 -0
- package/dist/models/BusinessModel.d.ts.map +1 -1
- package/dist/models/BusinessModel.js +9 -0
- package/dist/models/ReviewModel.d.ts +5 -0
- package/dist/models/ReviewModel.d.ts.map +1 -1
- package/dist/models/ReviewModel.js +19 -0
- package/dist/models/UserModel.d.ts +2 -0
- package/dist/models/UserModel.d.ts.map +1 -1
- package/dist/models/UserModel.js +9 -0
- package/package.json +1 -1
- package/dist/app.js +0 -59
- package/dist/common/configs/express.js +0 -29
- package/dist/common/configs/websocket.js +0 -17
- package/dist/common/constants/chat.d.ts +0 -18
- package/dist/common/constants/chat.d.ts.map +0 -1
- package/dist/common/constants/chat.js +0 -20
- package/dist/common/constants/messages/admin.messages.d.ts +0 -33
- package/dist/common/constants/messages/admin.messages.d.ts.map +0 -1
- package/dist/common/constants/messages/admin.messages.js +0 -35
- package/dist/common/constants/messages/user.messages.d.ts +0 -33
- package/dist/common/constants/messages/user.messages.d.ts.map +0 -1
- package/dist/common/constants/messages/user.messages.js +0 -35
- package/dist/common/dtos/AdminDto.d.ts +0 -5
- package/dist/common/dtos/AdminDto.d.ts.map +0 -1
- package/dist/common/dtos/AdminDto.js +0 -30
- package/dist/common/dtos/ArticleDto.d.ts +0 -11
- package/dist/common/dtos/ArticleDto.d.ts.map +0 -1
- package/dist/common/dtos/ArticleDto.js +0 -61
- package/dist/common/dtos/BusinessDto.d.ts +0 -12
- package/dist/common/dtos/BusinessDto.d.ts.map +0 -1
- package/dist/common/dtos/BusinessDto.js +0 -59
- package/dist/common/dtos/ChatDto.d.ts +0 -17
- package/dist/common/dtos/ChatDto.d.ts.map +0 -1
- package/dist/common/dtos/ChatDto.js +0 -89
- package/dist/common/dtos/CommonDto.d.ts +0 -13
- package/dist/common/dtos/CommonDto.d.ts.map +0 -1
- package/dist/common/dtos/CommonDto.js +0 -59
- package/dist/common/dtos/CommunityDto.d.ts +0 -10
- package/dist/common/dtos/CommunityDto.d.ts.map +0 -1
- package/dist/common/dtos/CommunityDto.js +0 -72
- package/dist/common/dtos/EventDto.d.ts +0 -24
- package/dist/common/dtos/EventDto.d.ts.map +0 -1
- package/dist/common/dtos/EventDto.js +0 -72
- package/dist/common/dtos/IPaginator.d.ts +0 -15
- package/dist/common/dtos/IPaginator.d.ts.map +0 -1
- package/dist/common/dtos/IPaginator.js +0 -40
- package/dist/common/dtos/Plan.dto.d.ts +0 -10
- package/dist/common/dtos/Plan.dto.d.ts.map +0 -1
- package/dist/common/dtos/Plan.dto.js +0 -66
- package/dist/common/dtos/PostDto.d.ts +0 -13
- package/dist/common/dtos/PostDto.d.ts.map +0 -1
- package/dist/common/dtos/PostDto.js +0 -75
- package/dist/common/dtos/ProductDto.d.ts +0 -13
- package/dist/common/dtos/ProductDto.d.ts.map +0 -1
- package/dist/common/dtos/ProductDto.js +0 -66
- package/dist/common/dtos/ServiceDto.d.ts +0 -19
- package/dist/common/dtos/ServiceDto.d.ts.map +0 -1
- package/dist/common/dtos/ServiceDto.js +0 -93
- package/dist/common/dtos/UserDto.d.ts +0 -70
- package/dist/common/dtos/UserDto.d.ts.map +0 -1
- package/dist/common/dtos/UserDto.js +0 -313
- package/dist/common/types/IPagination.d.ts +0 -15
- package/dist/common/types/IPagination.d.ts.map +0 -1
- package/dist/common/types/IPagination.js +0 -2
- package/dist/common/utils/axios.js +0 -26
- package/dist/common/utils/socket.js +0 -16
- package/dist/database/seeds/CommunityDataSeeder.js +0 -48
- package/dist/database/seeds/EventDataSeeder.js +0 -54
- package/dist/database/seeds/FeatureSeeder.js +0 -131
- package/dist/database/seeds/MarketplaceDataSeeder.js +0 -95
- package/dist/database/seeds/PlanSeeder.js +0 -78
- package/dist/database/seeds/UserProfileDataSeeder.js +0 -215
- package/dist/database/seeds/index.js +0 -39
- package/dist/services/StripeService.js +0 -288
- package/dist/services/mobile/ArticleCommentService.js +0 -479
- package/dist/services/mobile/ArticleService.js +0 -507
- package/dist/services/mobile/AuthService.js +0 -362
- package/dist/services/mobile/BusinessService.js +0 -267
- package/dist/services/mobile/BusinessServiceService.js +0 -383
- package/dist/services/mobile/CardService.js +0 -249
- package/dist/services/mobile/ChatService.js +0 -324
- package/dist/services/mobile/CommunityMemberService.js +0 -193
- package/dist/services/mobile/CommunityService.js +0 -561
- package/dist/services/mobile/CompleteProfileService.js +0 -308
- package/dist/services/mobile/ConnectionService.js +0 -338
- package/dist/services/mobile/EventAttendanceService.js +0 -343
- package/dist/services/mobile/EventService.js +0 -540
- package/dist/services/mobile/NotificationService.js +0 -89
- package/dist/services/mobile/PasswordResetService.js +0 -168
- package/dist/services/mobile/PlanService.js +0 -85
- package/dist/services/mobile/PostCommentService.js +0 -611
- package/dist/services/mobile/PostService.js +0 -640
- package/dist/services/mobile/ProductService.js +0 -360
- package/dist/services/mobile/RedisService.js +0 -16
- package/dist/services/mobile/TransactionService.js +0 -51
- package/dist/services/mobile/UploadService.js +0 -110
- package/dist/services/mobile/UserService.js +0 -128
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/AdminDto.ts"],"names":[],"mappings":"AAIA,qBAAa,uBAAuB;IAGhC,UAAU,EAAG,MAAM,CAAC;IAIpB,SAAS,EAAG,MAAM,CAAC;CACtB"}
|
|
@@ -1,30 +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.UpdateMyAdminProfileDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
// import { UpdateMyProfileDto } from "./User.dto";
|
|
15
|
-
const tsoa_1 = require("tsoa");
|
|
16
|
-
class UpdateMyAdminProfileDto {
|
|
17
|
-
first_name;
|
|
18
|
-
last_name;
|
|
19
|
-
}
|
|
20
|
-
exports.UpdateMyAdminProfileDto = UpdateMyAdminProfileDto;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
(0, tsoa_1.Example)("Boniface"),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], UpdateMyAdminProfileDto.prototype, "first_name", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
(0, tsoa_1.Example)("Ebuka"),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], UpdateMyAdminProfileDto.prototype, "last_name", void 0);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CommunityPostVisibility } from "../enums/CommunityEnum";
|
|
2
|
-
export declare class ArticleBodyDto {
|
|
3
|
-
title?: string;
|
|
4
|
-
visibility?: CommunityPostVisibility;
|
|
5
|
-
is_sensitive?: boolean;
|
|
6
|
-
description: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class ArticleDto extends ArticleBodyDto {
|
|
9
|
-
article_images?: Express.Multer.File[];
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=ArticleDto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/ArticleDto.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,qBAAa,cAAc;IAMzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAOf,UAAU,CAAC,EAAE,uBAAuB,CAAC;IAMrC,YAAY,CAAC,EAAE,OAAO,CAAC;IAIvB,WAAW,EAAG,MAAM,CAAC;CACtB;AAED,qBAAa,UAAW,SAAQ,cAAc;IAI5C,cAAc,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;CACxC"}
|
|
@@ -1,61 +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.ArticleDto = exports.ArticleBodyDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const tsoa_1 = require("tsoa");
|
|
15
|
-
const CommunityEnum_1 = require("../enums/CommunityEnum");
|
|
16
|
-
const class_transformer_1 = require("class-transformer");
|
|
17
|
-
class ArticleBodyDto {
|
|
18
|
-
title;
|
|
19
|
-
visibility;
|
|
20
|
-
is_sensitive;
|
|
21
|
-
description;
|
|
22
|
-
}
|
|
23
|
-
exports.ArticleBodyDto = ArticleBodyDto;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, tsoa_1.Example)("Birthday Party Article"),
|
|
26
|
-
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
(0, class_validator_1.MaxLength)(27, {
|
|
28
|
-
message: "Article title must not be more than 27 characters",
|
|
29
|
-
}),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], ArticleBodyDto.prototype, "title", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, tsoa_1.Example)(CommunityEnum_1.CommunityPostVisibility.PUBLIC),
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.IsEnum)(CommunityEnum_1.CommunityPostVisibility, {
|
|
36
|
-
message: "Invalid post visibility value",
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], ArticleBodyDto.prototype, "visibility", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, tsoa_1.Example)(false),
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0, class_transformer_1.Transform)(({ value }) => value === "true" || value === true),
|
|
44
|
-
(0, class_validator_1.IsBoolean)({ message: "is_sensitive must be a boolean" }),
|
|
45
|
-
__metadata("design:type", Boolean)
|
|
46
|
-
], ArticleBodyDto.prototype, "is_sensitive", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, tsoa_1.Example)("This is the article's description"),
|
|
49
|
-
(0, class_validator_1.IsString)({ message: "Article description is required" }),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], ArticleBodyDto.prototype, "description", void 0);
|
|
52
|
-
class ArticleDto extends ArticleBodyDto {
|
|
53
|
-
article_images;
|
|
54
|
-
}
|
|
55
|
-
exports.ArticleDto = ArticleDto;
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, tsoa_1.Example)(["cover.png"]),
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsArray)({ message: "Article images must be an array" }),
|
|
60
|
-
__metadata("design:type", Array)
|
|
61
|
-
], ArticleDto.prototype, "article_images", void 0);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CoordinatesDto } from "./CommonDto";
|
|
2
|
-
export declare class BusinessDto {
|
|
3
|
-
business_name: string;
|
|
4
|
-
category: string;
|
|
5
|
-
location: CoordinatesDto;
|
|
6
|
-
description: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class CreateBusinessDto extends BusinessDto {
|
|
9
|
-
business_id_image: Express.Multer.File;
|
|
10
|
-
business_id_category: string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=BusinessDto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/BusinessDto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,qBAAa,WAAW;IAGtB,aAAa,EAAG,MAAM,CAAC;IAKvB,QAAQ,EAAG,MAAM,CAAC;IAIlB,QAAQ,EAAG,cAAc,CAAC;IAI1B,WAAW,EAAG,MAAM,CAAC;CACtB;AAED,qBAAa,iBAAkB,SAAQ,WAAW;IAEhD,iBAAiB,EAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAKxC,oBAAoB,EAAG,MAAM,CAAC;CAC/B"}
|
|
@@ -1,59 +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.CreateBusinessDto = exports.BusinessDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const tsoa_1 = require("tsoa");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
const CommonDto_1 = require("./CommonDto");
|
|
17
|
-
class BusinessDto {
|
|
18
|
-
business_name;
|
|
19
|
-
category;
|
|
20
|
-
location;
|
|
21
|
-
description;
|
|
22
|
-
}
|
|
23
|
-
exports.BusinessDto = BusinessDto;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, tsoa_1.Example)("Food Spiro"),
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], BusinessDto.prototype, "business_name", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, tsoa_1.Example)("66f296f4-693c-4c13-9f32-8d82e1df4e9a"),
|
|
31
|
-
(0, class_validator_1.IsString)(),
|
|
32
|
-
(0, class_validator_1.IsUUID)('4', { each: true, message: 'Business category must be a valid UUID' }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], BusinessDto.prototype, "category", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.ValidateNested)(),
|
|
37
|
-
(0, class_transformer_1.Type)(() => CommonDto_1.CoordinatesDto),
|
|
38
|
-
__metadata("design:type", CommonDto_1.CoordinatesDto)
|
|
39
|
-
], BusinessDto.prototype, "location", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, tsoa_1.Example)("This is the business's description"),
|
|
42
|
-
(0, class_validator_1.IsString)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], BusinessDto.prototype, "description", void 0);
|
|
45
|
-
class CreateBusinessDto extends BusinessDto {
|
|
46
|
-
business_id_image;
|
|
47
|
-
business_id_category;
|
|
48
|
-
}
|
|
49
|
-
exports.CreateBusinessDto = CreateBusinessDto;
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, tsoa_1.Example)(["cover.png"]),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], CreateBusinessDto.prototype, "business_id_image", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, tsoa_1.Example)("66f296f4-693c-4c13-9f32-8d82e1df4e9a"),
|
|
56
|
-
(0, class_validator_1.IsString)(),
|
|
57
|
-
(0, class_validator_1.IsUUID)('4', { each: true, message: 'Business ID category must be a valid UUID' }),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], CreateBusinessDto.prototype, "business_id_category", void 0);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare class SendChatMessageDto {
|
|
2
|
-
message_body: string;
|
|
3
|
-
conversation_id: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class UpdateChatMessageDto {
|
|
6
|
-
message_body: string;
|
|
7
|
-
message_id: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class ChangeChatMessageStatusDto {
|
|
10
|
-
message_id: string;
|
|
11
|
-
conversation_id: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class LoadMessagesDto {
|
|
14
|
-
pageNumber?: number;
|
|
15
|
-
conversation_id: string;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=ChatDto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/ChatDto.ts"],"names":[],"mappings":"AAGA,qBAAa,kBAAkB;IAK3B,YAAY,EAAG,MAAM,CAAC;IAMtB,eAAe,EAAG,MAAM,CAAC;CAC5B;AAED,qBAAa,oBAAoB;IAK7B,YAAY,EAAG,MAAM,CAAC;IAMtB,UAAU,EAAG,MAAM,CAAC;CACvB;AAED,qBAAa,0BAA0B;IAKnC,UAAU,EAAG,MAAM,CAAC;IAMpB,eAAe,EAAG,MAAM,CAAC;CAC5B;AAED,qBAAa,eAAe;IAIxB,UAAU,CAAC,EAAE,MAAM,CAAC;IAMpB,eAAe,EAAG,MAAM,CAAC;CAC5B"}
|
|
@@ -1,89 +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.LoadMessagesDto = exports.ChangeChatMessageStatusDto = exports.UpdateChatMessageDto = exports.SendChatMessageDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const tsoa_1 = require("tsoa");
|
|
15
|
-
class SendChatMessageDto {
|
|
16
|
-
message_body;
|
|
17
|
-
conversation_id;
|
|
18
|
-
}
|
|
19
|
-
exports.SendChatMessageDto = SendChatMessageDto;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsString)({
|
|
22
|
-
message: "Message body is required",
|
|
23
|
-
}),
|
|
24
|
-
(0, tsoa_1.Example)("Hello, World!"),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], SendChatMessageDto.prototype, "message_body", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsString)({
|
|
29
|
-
message: "Conversation ID is required",
|
|
30
|
-
}),
|
|
31
|
-
(0, tsoa_1.Example)("b1f0c0a0-830a-4589-bb62-9d1c9ceaeb4e"),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], SendChatMessageDto.prototype, "conversation_id", void 0);
|
|
34
|
-
class UpdateChatMessageDto {
|
|
35
|
-
message_body;
|
|
36
|
-
message_id;
|
|
37
|
-
}
|
|
38
|
-
exports.UpdateChatMessageDto = UpdateChatMessageDto;
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsString)({
|
|
41
|
-
message: "Message body is required",
|
|
42
|
-
}),
|
|
43
|
-
(0, tsoa_1.Example)("Hello, World!"),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], UpdateChatMessageDto.prototype, "message_body", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsString)({
|
|
48
|
-
message: "Conversation ID is required",
|
|
49
|
-
}),
|
|
50
|
-
(0, tsoa_1.Example)("b1f0c0a0-830a-4589-bb62-9d1c9ceaeb4e"),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], UpdateChatMessageDto.prototype, "message_id", void 0);
|
|
53
|
-
class ChangeChatMessageStatusDto {
|
|
54
|
-
message_id;
|
|
55
|
-
conversation_id;
|
|
56
|
-
}
|
|
57
|
-
exports.ChangeChatMessageStatusDto = ChangeChatMessageStatusDto;
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsString)({
|
|
60
|
-
message: "Message ID is required",
|
|
61
|
-
}),
|
|
62
|
-
(0, tsoa_1.Example)("b1f0c0a0-830a-4589-bb62-9d1c9ceaeb4e"),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], ChangeChatMessageStatusDto.prototype, "message_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, class_validator_1.IsString)({
|
|
67
|
-
message: "Conversation ID is required",
|
|
68
|
-
}),
|
|
69
|
-
(0, tsoa_1.Example)("b1f0c0a0-830a-4589-bb62-9d1c9ceaeb4e"),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], ChangeChatMessageStatusDto.prototype, "conversation_id", void 0);
|
|
72
|
-
class LoadMessagesDto {
|
|
73
|
-
pageNumber;
|
|
74
|
-
conversation_id;
|
|
75
|
-
}
|
|
76
|
-
exports.LoadMessagesDto = LoadMessagesDto;
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, class_validator_1.IsNumber)(),
|
|
79
|
-
(0, class_validator_1.IsOptional)(),
|
|
80
|
-
(0, tsoa_1.Example)(1),
|
|
81
|
-
__metadata("design:type", Number)
|
|
82
|
-
], LoadMessagesDto.prototype, "pageNumber", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, class_validator_1.IsString)({
|
|
85
|
-
message: "Conversation ID is required",
|
|
86
|
-
}),
|
|
87
|
-
(0, tsoa_1.Example)("b1f0c0a0-830a-4589-bb62-9d1c9ceaeb4e"),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], LoadMessagesDto.prototype, "conversation_id", void 0);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class CoordinatesDto {
|
|
2
|
-
latitude: number;
|
|
3
|
-
longitude: number;
|
|
4
|
-
address: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class UserCoordinatesDto {
|
|
7
|
-
lat: number;
|
|
8
|
-
long: number;
|
|
9
|
-
}
|
|
10
|
-
export declare class CommentDto {
|
|
11
|
-
content: string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=CommonDto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommonDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/CommonDto.ts"],"names":[],"mappings":"AAGA,qBAAa,cAAc;IAGzB,QAAQ,EAAG,MAAM,CAAC;IAIlB,SAAS,EAAG,MAAM,CAAC;IAInB,OAAO,EAAG,MAAM,CAAC;CAClB;AAED,qBAAa,kBAAkB;IAG7B,GAAG,EAAG,MAAM,CAAC;IAIb,IAAI,EAAG,MAAM,CAAC;CACf;AAED,qBAAa,UAAU;IAGrB,OAAO,EAAG,MAAM,CAAC;CAClB"}
|
|
@@ -1,59 +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.CommentDto = exports.UserCoordinatesDto = exports.CoordinatesDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const tsoa_1 = require("tsoa");
|
|
15
|
-
class CoordinatesDto {
|
|
16
|
-
latitude;
|
|
17
|
-
longitude;
|
|
18
|
-
address;
|
|
19
|
-
}
|
|
20
|
-
exports.CoordinatesDto = CoordinatesDto;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsNumber)({}, { message: "Latitude must be numbers" }),
|
|
23
|
-
(0, tsoa_1.Example)(6.5244),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], CoordinatesDto.prototype, "latitude", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsNumber)({}, { message: "Longitude must be numbers" }),
|
|
28
|
-
(0, tsoa_1.Example)(3.3792),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], CoordinatesDto.prototype, "longitude", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, tsoa_1.Example)("Ikeja City Mall, Alausa, Ikeja, Lagos, Nigeria"),
|
|
33
|
-
(0, class_validator_1.IsString)({ message: "Address is required" }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], CoordinatesDto.prototype, "address", void 0);
|
|
36
|
-
class UserCoordinatesDto {
|
|
37
|
-
lat;
|
|
38
|
-
long;
|
|
39
|
-
}
|
|
40
|
-
exports.UserCoordinatesDto = UserCoordinatesDto;
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsNumber)({}, { message: "Latitude must be numbers" }),
|
|
43
|
-
(0, tsoa_1.Example)(6.5244),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], UserCoordinatesDto.prototype, "lat", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsNumber)({}, { message: "Longitude must be numbers" }),
|
|
48
|
-
(0, tsoa_1.Example)(3.3792),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], UserCoordinatesDto.prototype, "long", void 0);
|
|
51
|
-
class CommentDto {
|
|
52
|
-
content;
|
|
53
|
-
}
|
|
54
|
-
exports.CommentDto = CommentDto;
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, tsoa_1.Example)("This is the comment's body"),
|
|
57
|
-
(0, class_validator_1.IsString)({ message: "Comment body is required" }),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], CommentDto.prototype, "content", void 0);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CommunityVisibility } from "../enums/CommunityEnum";
|
|
2
|
-
export declare class CommunityDto {
|
|
3
|
-
name: string;
|
|
4
|
-
cover_image?: Express.Multer.File;
|
|
5
|
-
topics?: string[];
|
|
6
|
-
profile_image?: Express.Multer.File;
|
|
7
|
-
visibility?: CommunityVisibility;
|
|
8
|
-
description: string;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=CommunityDto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/CommunityDto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D,qBAAa,YAAY;IAGrB,IAAI,EAAG,MAAM,CAAC;IAId,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAgBlC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAIlB,aAAa,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAMpC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAIjC,WAAW,EAAG,MAAM,CAAC;CACxB"}
|
|
@@ -1,72 +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.CommunityDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const tsoa_1 = require("tsoa");
|
|
15
|
-
const CommunityEnum_1 = require("../enums/CommunityEnum");
|
|
16
|
-
const class_transformer_1 = require("class-transformer");
|
|
17
|
-
class CommunityDto {
|
|
18
|
-
name;
|
|
19
|
-
cover_image;
|
|
20
|
-
topics;
|
|
21
|
-
profile_image;
|
|
22
|
-
visibility;
|
|
23
|
-
description;
|
|
24
|
-
}
|
|
25
|
-
exports.CommunityDto = CommunityDto;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, tsoa_1.Example)("Birthday Party Community"),
|
|
28
|
-
(0, class_validator_1.IsString)({ message: "Community name is required" }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], CommunityDto.prototype, "name", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, tsoa_1.Example)("cover.png"),
|
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], CommunityDto.prototype, "cover_image", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_transformer_1.Transform)(({ value }) => {
|
|
38
|
-
if (!value)
|
|
39
|
-
return [];
|
|
40
|
-
if (Array.isArray(value))
|
|
41
|
-
return value;
|
|
42
|
-
try {
|
|
43
|
-
const parsed = JSON.parse(value);
|
|
44
|
-
return Array.isArray(parsed) ? parsed : [parsed];
|
|
45
|
-
}
|
|
46
|
-
catch {
|
|
47
|
-
return value.split(',').map((v) => v.trim());
|
|
48
|
-
}
|
|
49
|
-
}),
|
|
50
|
-
(0, class_validator_1.IsArray)({ message: 'Topic must be an array' }),
|
|
51
|
-
(0, class_validator_1.IsUUID)('4', { each: true, message: 'Each topic must be a valid UUID' }),
|
|
52
|
-
(0, tsoa_1.Example)(["4d087fc3-2594-4cb8-aaa7-37c030531888"]),
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
__metadata("design:type", Array)
|
|
55
|
-
], CommunityDto.prototype, "topics", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, tsoa_1.Example)("profile.png"),
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], CommunityDto.prototype, "profile_image", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, tsoa_1.Example)(CommunityEnum_1.CommunityVisibility.PUBLIC),
|
|
63
|
-
(0, class_validator_1.IsEnum)(CommunityEnum_1.CommunityVisibility, {
|
|
64
|
-
message: "Invalid community visibility value",
|
|
65
|
-
}),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], CommunityDto.prototype, "visibility", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, tsoa_1.Example)("This is the community's description"),
|
|
70
|
-
(0, class_validator_1.IsString)(),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], CommunityDto.prototype, "description", void 0);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { AttendeeRange } from "../enums/IndexEnum";
|
|
2
|
-
import { LoadPagesDto } from "./IPaginator";
|
|
3
|
-
import { CoordinatesDto } from "./CommonDto";
|
|
4
|
-
export declare class EventDto {
|
|
5
|
-
event_name: string;
|
|
6
|
-
cover_image?: Express.Multer.File;
|
|
7
|
-
number_of_attendees: AttendeeRange;
|
|
8
|
-
date_and_time: Date;
|
|
9
|
-
event_type: string;
|
|
10
|
-
location: CoordinatesDto;
|
|
11
|
-
event_venue: string;
|
|
12
|
-
description: string;
|
|
13
|
-
}
|
|
14
|
-
export interface RecommendationOptions extends LoadPagesDto {
|
|
15
|
-
user_id: number;
|
|
16
|
-
lat: number;
|
|
17
|
-
lng: number;
|
|
18
|
-
city: string;
|
|
19
|
-
state: string;
|
|
20
|
-
country: string;
|
|
21
|
-
connections: number[];
|
|
22
|
-
radius?: number;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=EventDto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/EventDto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,qBAAa,QAAQ;IAGnB,UAAU,EAAG,MAAM,CAAC;IAIpB,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAIlC,mBAAmB,EAAG,aAAa,CAAC;IAKpC,aAAa,EAAG,IAAI,CAAC;IAKrB,UAAU,EAAG,MAAM,CAAC;IAIpB,QAAQ,EAAG,cAAc,CAAC;IAI1B,WAAW,EAAG,MAAM,CAAC;IAIrB,WAAW,EAAG,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,72 +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.EventDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const tsoa_1 = require("tsoa");
|
|
15
|
-
const IndexEnum_1 = require("../enums/IndexEnum");
|
|
16
|
-
const class_transformer_1 = require("class-transformer");
|
|
17
|
-
const CommonDto_1 = require("./CommonDto");
|
|
18
|
-
class EventDto {
|
|
19
|
-
event_name;
|
|
20
|
-
cover_image;
|
|
21
|
-
// @IsString()
|
|
22
|
-
number_of_attendees;
|
|
23
|
-
date_and_time;
|
|
24
|
-
event_type;
|
|
25
|
-
location;
|
|
26
|
-
event_venue;
|
|
27
|
-
description;
|
|
28
|
-
}
|
|
29
|
-
exports.EventDto = EventDto;
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, tsoa_1.Example)("Birthday Party"),
|
|
32
|
-
(0, class_validator_1.IsString)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], EventDto.prototype, "event_name", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, tsoa_1.Example)("event_file.png"),
|
|
37
|
-
(0, class_validator_1.IsOptional)(),
|
|
38
|
-
__metadata("design:type", Object)
|
|
39
|
-
], EventDto.prototype, "cover_image", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, tsoa_1.Example)("5 - 10")
|
|
42
|
-
// @IsString()
|
|
43
|
-
,
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], EventDto.prototype, "number_of_attendees", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
48
|
-
(0, tsoa_1.Example)("2025-12-12:01:01:01"),
|
|
49
|
-
(0, class_validator_1.IsDate)(),
|
|
50
|
-
__metadata("design:type", Date)
|
|
51
|
-
], EventDto.prototype, "date_and_time", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, tsoa_1.Example)("66f296f4-693c-4c13-9f32-8d82e1df4e9a"),
|
|
54
|
-
(0, class_validator_1.IsString)(),
|
|
55
|
-
(0, class_validator_1.IsUUID)('4', { each: true, message: 'Event type must be a valid UUID' }),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], EventDto.prototype, "event_type", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.ValidateNested)(),
|
|
60
|
-
(0, class_transformer_1.Type)(() => CommonDto_1.CoordinatesDto),
|
|
61
|
-
__metadata("design:type", CommonDto_1.CoordinatesDto)
|
|
62
|
-
], EventDto.prototype, "location", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, tsoa_1.Example)("Ikeja Event Center"),
|
|
65
|
-
(0, class_validator_1.IsString)(),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], EventDto.prototype, "event_venue", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, tsoa_1.Example)("This is the event's description"),
|
|
70
|
-
(0, class_validator_1.IsString)(),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], EventDto.prototype, "description", void 0);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class PaginationParamDto {
|
|
2
|
-
page_number?: number;
|
|
3
|
-
}
|
|
4
|
-
export declare class LoadPagesDto {
|
|
5
|
-
page_number: number;
|
|
6
|
-
limit: number;
|
|
7
|
-
metadata?: any;
|
|
8
|
-
}
|
|
9
|
-
export interface IPaginator {
|
|
10
|
-
data: any[];
|
|
11
|
-
total: number;
|
|
12
|
-
currentPage: number;
|
|
13
|
-
perPage: number;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=IPaginator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPaginator.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/IPaginator.ts"],"names":[],"mappings":"AAEA,qBAAa,kBAAkB;IAG7B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,YAAY;IAEvB,WAAW,EAAG,MAAM,CAAC;IAGrB,KAAK,EAAG,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAC,GAAG,CAAA;CACd;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,40 +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.LoadPagesDto = exports.PaginationParamDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class PaginationParamDto {
|
|
15
|
-
page_number;
|
|
16
|
-
}
|
|
17
|
-
exports.PaginationParamDto = PaginationParamDto;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsNumber)({}, { message: "Page number is required" }),
|
|
20
|
-
(0, class_validator_1.IsOptional)(),
|
|
21
|
-
__metadata("design:type", Number)
|
|
22
|
-
], PaginationParamDto.prototype, "page_number", void 0);
|
|
23
|
-
class LoadPagesDto {
|
|
24
|
-
page_number;
|
|
25
|
-
limit;
|
|
26
|
-
metadata;
|
|
27
|
-
}
|
|
28
|
-
exports.LoadPagesDto = LoadPagesDto;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsNumber)({}, { message: "Page number is required" }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], LoadPagesDto.prototype, "page_number", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsNumber)({}, { message: "Limit is required" }),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], LoadPagesDto.prototype, "limit", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
|
39
|
-
__metadata("design:type", Object)
|
|
40
|
-
], LoadPagesDto.prototype, "metadata", void 0);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Plan.dto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/Plan.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAKxB,IAAI,EAAG,MAAM,CAAC;IAMd,WAAW,EAAG,MAAM,CAAC;IAOrB,OAAO,EAAG,MAAM,CAAC;IAIjB,MAAM,EAAG,MAAM,CAAC;IAIhB,QAAQ,EAAG,MAAM,CAAC;IAIlB,WAAW,EAAG,OAAO,CAAC;IAItB,IAAI,EAAG,MAAM,CAAC;CACf"}
|