@aurispec/core-backend 1.0.4 → 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.
Files changed (100) hide show
  1. package/dist/database/migrations/1772984882048-modified_reviews_table.d.ts +7 -0
  2. package/dist/database/migrations/1772984882048-modified_reviews_table.d.ts.map +1 -0
  3. package/dist/database/migrations/1772984882048-modified_reviews_table.js +61 -0
  4. package/dist/models/BusinessModel.d.ts +2 -0
  5. package/dist/models/BusinessModel.d.ts.map +1 -1
  6. package/dist/models/BusinessModel.js +9 -0
  7. package/dist/models/ReviewModel.d.ts +5 -0
  8. package/dist/models/ReviewModel.d.ts.map +1 -1
  9. package/dist/models/ReviewModel.js +19 -0
  10. package/dist/models/UserModel.d.ts +2 -0
  11. package/dist/models/UserModel.d.ts.map +1 -1
  12. package/dist/models/UserModel.js +9 -0
  13. package/package.json +1 -1
  14. package/dist/app.js +0 -59
  15. package/dist/common/configs/express.js +0 -29
  16. package/dist/common/configs/websocket.js +0 -17
  17. package/dist/common/constants/chat.d.ts +0 -18
  18. package/dist/common/constants/chat.d.ts.map +0 -1
  19. package/dist/common/constants/chat.js +0 -20
  20. package/dist/common/constants/messages/admin.messages.d.ts +0 -33
  21. package/dist/common/constants/messages/admin.messages.d.ts.map +0 -1
  22. package/dist/common/constants/messages/admin.messages.js +0 -35
  23. package/dist/common/constants/messages/user.messages.d.ts +0 -33
  24. package/dist/common/constants/messages/user.messages.d.ts.map +0 -1
  25. package/dist/common/constants/messages/user.messages.js +0 -35
  26. package/dist/common/dtos/AdminDto.d.ts +0 -5
  27. package/dist/common/dtos/AdminDto.d.ts.map +0 -1
  28. package/dist/common/dtos/AdminDto.js +0 -30
  29. package/dist/common/dtos/ArticleDto.d.ts +0 -11
  30. package/dist/common/dtos/ArticleDto.d.ts.map +0 -1
  31. package/dist/common/dtos/ArticleDto.js +0 -61
  32. package/dist/common/dtos/BusinessDto.d.ts +0 -12
  33. package/dist/common/dtos/BusinessDto.d.ts.map +0 -1
  34. package/dist/common/dtos/BusinessDto.js +0 -59
  35. package/dist/common/dtos/ChatDto.d.ts +0 -17
  36. package/dist/common/dtos/ChatDto.d.ts.map +0 -1
  37. package/dist/common/dtos/ChatDto.js +0 -89
  38. package/dist/common/dtos/CommonDto.d.ts +0 -13
  39. package/dist/common/dtos/CommonDto.d.ts.map +0 -1
  40. package/dist/common/dtos/CommonDto.js +0 -59
  41. package/dist/common/dtos/CommunityDto.d.ts +0 -10
  42. package/dist/common/dtos/CommunityDto.d.ts.map +0 -1
  43. package/dist/common/dtos/CommunityDto.js +0 -72
  44. package/dist/common/dtos/EventDto.d.ts +0 -24
  45. package/dist/common/dtos/EventDto.d.ts.map +0 -1
  46. package/dist/common/dtos/EventDto.js +0 -72
  47. package/dist/common/dtos/IPaginator.d.ts +0 -15
  48. package/dist/common/dtos/IPaginator.d.ts.map +0 -1
  49. package/dist/common/dtos/IPaginator.js +0 -40
  50. package/dist/common/dtos/Plan.dto.d.ts +0 -10
  51. package/dist/common/dtos/Plan.dto.d.ts.map +0 -1
  52. package/dist/common/dtos/Plan.dto.js +0 -66
  53. package/dist/common/dtos/PostDto.d.ts +0 -13
  54. package/dist/common/dtos/PostDto.d.ts.map +0 -1
  55. package/dist/common/dtos/PostDto.js +0 -75
  56. package/dist/common/dtos/ProductDto.d.ts +0 -13
  57. package/dist/common/dtos/ProductDto.d.ts.map +0 -1
  58. package/dist/common/dtos/ProductDto.js +0 -66
  59. package/dist/common/dtos/ServiceDto.d.ts +0 -19
  60. package/dist/common/dtos/ServiceDto.d.ts.map +0 -1
  61. package/dist/common/dtos/ServiceDto.js +0 -93
  62. package/dist/common/dtos/UserDto.d.ts +0 -70
  63. package/dist/common/dtos/UserDto.d.ts.map +0 -1
  64. package/dist/common/dtos/UserDto.js +0 -313
  65. package/dist/common/types/IPagination.d.ts +0 -15
  66. package/dist/common/types/IPagination.d.ts.map +0 -1
  67. package/dist/common/types/IPagination.js +0 -2
  68. package/dist/common/utils/axios.js +0 -26
  69. package/dist/common/utils/socket.js +0 -16
  70. package/dist/database/seeds/CommunityDataSeeder.js +0 -48
  71. package/dist/database/seeds/EventDataSeeder.js +0 -54
  72. package/dist/database/seeds/FeatureSeeder.js +0 -131
  73. package/dist/database/seeds/MarketplaceDataSeeder.js +0 -95
  74. package/dist/database/seeds/PlanSeeder.js +0 -78
  75. package/dist/database/seeds/UserProfileDataSeeder.js +0 -215
  76. package/dist/database/seeds/index.js +0 -39
  77. package/dist/services/StripeService.js +0 -288
  78. package/dist/services/mobile/ArticleCommentService.js +0 -479
  79. package/dist/services/mobile/ArticleService.js +0 -507
  80. package/dist/services/mobile/AuthService.js +0 -362
  81. package/dist/services/mobile/BusinessService.js +0 -267
  82. package/dist/services/mobile/BusinessServiceService.js +0 -383
  83. package/dist/services/mobile/CardService.js +0 -249
  84. package/dist/services/mobile/ChatService.js +0 -324
  85. package/dist/services/mobile/CommunityMemberService.js +0 -193
  86. package/dist/services/mobile/CommunityService.js +0 -561
  87. package/dist/services/mobile/CompleteProfileService.js +0 -308
  88. package/dist/services/mobile/ConnectionService.js +0 -338
  89. package/dist/services/mobile/EventAttendanceService.js +0 -343
  90. package/dist/services/mobile/EventService.js +0 -540
  91. package/dist/services/mobile/NotificationService.js +0 -89
  92. package/dist/services/mobile/PasswordResetService.js +0 -168
  93. package/dist/services/mobile/PlanService.js +0 -85
  94. package/dist/services/mobile/PostCommentService.js +0 -611
  95. package/dist/services/mobile/PostService.js +0 -640
  96. package/dist/services/mobile/ProductService.js +0 -360
  97. package/dist/services/mobile/RedisService.js +0 -16
  98. package/dist/services/mobile/TransactionService.js +0 -51
  99. package/dist/services/mobile/UploadService.js +0 -110
  100. package/dist/services/mobile/UserService.js +0 -128
@@ -1,13 +0,0 @@
1
- import { CommunityPostVisibility } from "../enums/CommunityEnum";
2
- export declare class PostBodyDto {
3
- title?: string;
4
- visibility?: CommunityPostVisibility;
5
- is_boosted?: boolean;
6
- is_sensitive?: boolean;
7
- description: string;
8
- }
9
- export declare class PostDto extends PostBodyDto {
10
- community_id?: string;
11
- post_images?: Express.Multer.File[];
12
- }
13
- //# sourceMappingURL=PostDto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PostDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/PostDto.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,qBAAa,WAAW;IAMtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAOf,UAAU,CAAC,EAAE,uBAAuB,CAAC;IAMrC,UAAU,CAAC,EAAE,OAAO,CAAC;IAMrB,YAAY,CAAC,EAAE,OAAO,CAAC;IAIvB,WAAW,EAAG,MAAM,CAAC;CACtB;AAED,qBAAa,OAAQ,SAAQ,WAAW;IAItC,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;CACrC"}
@@ -1,75 +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.PostDto = exports.PostBodyDto = 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 PostBodyDto {
18
- title;
19
- visibility;
20
- is_boosted;
21
- is_sensitive;
22
- description;
23
- }
24
- exports.PostBodyDto = PostBodyDto;
25
- __decorate([
26
- (0, tsoa_1.Example)("Birthday Party Post"),
27
- (0, class_validator_1.IsOptional)(),
28
- (0, class_validator_1.MaxLength)(27, {
29
- message: "Post title must not be more than 27 characters",
30
- }),
31
- __metadata("design:type", String)
32
- ], PostBodyDto.prototype, "title", void 0);
33
- __decorate([
34
- (0, tsoa_1.Example)(CommunityEnum_1.CommunityPostVisibility.PUBLIC),
35
- (0, class_validator_1.IsOptional)(),
36
- (0, class_validator_1.IsEnum)(CommunityEnum_1.CommunityPostVisibility, {
37
- message: "Invalid post visibility value",
38
- }),
39
- __metadata("design:type", String)
40
- ], PostBodyDto.prototype, "visibility", void 0);
41
- __decorate([
42
- (0, tsoa_1.Example)(false),
43
- (0, class_validator_1.IsOptional)(),
44
- (0, class_transformer_1.Transform)(({ value }) => value === "true" || value === true),
45
- (0, class_validator_1.IsBoolean)({ message: "is_boosted must be a boolean" }),
46
- __metadata("design:type", Boolean)
47
- ], PostBodyDto.prototype, "is_boosted", void 0);
48
- __decorate([
49
- (0, tsoa_1.Example)(false),
50
- (0, class_validator_1.IsOptional)(),
51
- (0, class_transformer_1.Transform)(({ value }) => value === "true" || value === true),
52
- (0, class_validator_1.IsBoolean)({ message: "is_sensitive must be a boolean" }),
53
- __metadata("design:type", Boolean)
54
- ], PostBodyDto.prototype, "is_sensitive", void 0);
55
- __decorate([
56
- (0, tsoa_1.Example)("This is the post's description"),
57
- (0, class_validator_1.IsString)({ message: "Post description is required" }),
58
- __metadata("design:type", String)
59
- ], PostBodyDto.prototype, "description", void 0);
60
- class PostDto extends PostBodyDto {
61
- community_id;
62
- post_images;
63
- }
64
- exports.PostDto = PostDto;
65
- __decorate([
66
- (0, tsoa_1.Example)("564a36bb-391a-4953-aad1-2b63165b2fac"),
67
- (0, class_validator_1.IsString)({ message: "Post's community is required" }),
68
- __metadata("design:type", String)
69
- ], PostDto.prototype, "community_id", void 0);
70
- __decorate([
71
- (0, tsoa_1.Example)(["cover.png"]),
72
- (0, class_validator_1.IsOptional)(),
73
- (0, class_validator_1.IsArray)({ message: "Post images must be an array" }),
74
- __metadata("design:type", Array)
75
- ], PostDto.prototype, "post_images", void 0);
@@ -1,13 +0,0 @@
1
- import { CoordinatesDto } from "./CommonDto";
2
- export declare class ProductDto {
3
- product_name: string;
4
- category: string;
5
- business_id?: string;
6
- location: CoordinatesDto;
7
- price: number;
8
- description: string;
9
- }
10
- export declare class CreateProductDto extends ProductDto {
11
- product_images: Express.Multer.File[];
12
- }
13
- //# sourceMappingURL=ProductDto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/ProductDto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,qBAAa,UAAU;IAGrB,YAAY,EAAG,MAAM,CAAC;IAKtB,QAAQ,EAAG,MAAM,CAAC;IAKlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,QAAQ,EAAG,cAAc,CAAC;IAI1B,KAAK,EAAG,MAAM,CAAC;IAIf,WAAW,EAAG,MAAM,CAAC;CACtB;AAED,qBAAa,gBAAiB,SAAQ,UAAU;IAG9C,cAAc,EAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;CACxC"}
@@ -1,66 +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.CreateProductDto = exports.ProductDto = 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 ProductDto {
18
- product_name;
19
- category;
20
- business_id;
21
- location;
22
- price;
23
- description;
24
- }
25
- exports.ProductDto = ProductDto;
26
- __decorate([
27
- (0, tsoa_1.Example)("Birthday Party"),
28
- (0, class_validator_1.IsString)(),
29
- __metadata("design:type", String)
30
- ], ProductDto.prototype, "product_name", void 0);
31
- __decorate([
32
- (0, tsoa_1.Example)("66f296f4-693c-4c13-9f32-8d82e1df4e9a"),
33
- (0, class_validator_1.IsString)(),
34
- (0, class_validator_1.IsUUID)('4', { message: 'Product category must be a valid UUID' }),
35
- __metadata("design:type", String)
36
- ], ProductDto.prototype, "category", void 0);
37
- __decorate([
38
- (0, tsoa_1.Example)("66f296f4-693c-4c13-9f32-8d82e1df4e9a"),
39
- (0, class_validator_1.IsOptional)(),
40
- (0, class_validator_1.IsUUID)('4', { message: 'Product business must be a valid UUID' }),
41
- __metadata("design:type", String)
42
- ], ProductDto.prototype, "business_id", void 0);
43
- __decorate([
44
- (0, class_validator_1.ValidateNested)(),
45
- (0, class_transformer_1.Type)(() => CommonDto_1.CoordinatesDto),
46
- __metadata("design:type", CommonDto_1.CoordinatesDto)
47
- ], ProductDto.prototype, "location", void 0);
48
- __decorate([
49
- (0, tsoa_1.Example)(3000.90),
50
- (0, class_validator_1.IsNumber)(),
51
- __metadata("design:type", Number)
52
- ], ProductDto.prototype, "price", void 0);
53
- __decorate([
54
- (0, tsoa_1.Example)("This is the product's description"),
55
- (0, class_validator_1.IsString)(),
56
- __metadata("design:type", String)
57
- ], ProductDto.prototype, "description", void 0);
58
- class CreateProductDto extends ProductDto {
59
- product_images;
60
- }
61
- exports.CreateProductDto = CreateProductDto;
62
- __decorate([
63
- (0, tsoa_1.Example)(["cover.png"]),
64
- (0, class_validator_1.IsArray)({ message: "Product images must be an array" }),
65
- __metadata("design:type", Array)
66
- ], CreateProductDto.prototype, "product_images", void 0);
@@ -1,19 +0,0 @@
1
- import { CoordinatesDto } from "./CommonDto";
2
- export declare class ServiceProviderProfileDto {
3
- provider_name: string;
4
- category: string;
5
- years_experience: number;
6
- business_id?: string;
7
- location: CoordinatesDto;
8
- description: string;
9
- profile_image: Express.Multer.File;
10
- }
11
- export declare class CompleteServiceDto {
12
- service_provider_profile: ServiceProviderProfileDto;
13
- services?: ServiceDto[];
14
- }
15
- export declare class ServiceDto {
16
- service_name: string;
17
- amount: number;
18
- }
19
- //# sourceMappingURL=ServiceDto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/ServiceDto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,qBAAa,yBAAyB;IAGpC,aAAa,EAAG,MAAM,CAAC;IAKvB,QAAQ,EAAG,MAAM,CAAC;IAIlB,gBAAgB,EAAG,MAAM,CAAC;IAK1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,QAAQ,EAAG,cAAc,CAAC;IAI1B,WAAW,EAAG,MAAM,CAAC;IAGrB,aAAa,EAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;CACrC;AAED,qBAAa,kBAAkB;IAG7B,wBAAwB,EAAG,yBAAyB,CAAC;IAKrD,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;CACzB;AAED,qBAAa,UAAU;IAGrB,YAAY,EAAG,MAAM,CAAC;IAItB,MAAM,EAAG,MAAM,CAAC;CACjB"}
@@ -1,93 +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.ServiceDto = exports.CompleteServiceDto = exports.ServiceProviderProfileDto = 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 ServiceProviderProfileDto {
18
- provider_name;
19
- category;
20
- years_experience;
21
- business_id;
22
- location;
23
- description;
24
- profile_image;
25
- }
26
- exports.ServiceProviderProfileDto = ServiceProviderProfileDto;
27
- __decorate([
28
- (0, tsoa_1.Example)("Florist Farmer"),
29
- (0, class_validator_1.IsString)(),
30
- __metadata("design:type", String)
31
- ], ServiceProviderProfileDto.prototype, "provider_name", void 0);
32
- __decorate([
33
- (0, tsoa_1.Example)("66f296f4-693c-4c13-9f32-8d82e1df4e9a"),
34
- (0, class_validator_1.IsString)(),
35
- (0, class_validator_1.IsUUID)('4', { message: 'Service category must be a valid UUID' }),
36
- __metadata("design:type", String)
37
- ], ServiceProviderProfileDto.prototype, "category", void 0);
38
- __decorate([
39
- (0, tsoa_1.Example)(1995),
40
- (0, class_validator_1.IsNumber)(),
41
- __metadata("design:type", Number)
42
- ], ServiceProviderProfileDto.prototype, "years_experience", void 0);
43
- __decorate([
44
- (0, tsoa_1.Example)("66f296f4-693c-4c13-9f32-8d82e1df4e9a"),
45
- (0, class_validator_1.IsOptional)(),
46
- (0, class_validator_1.IsUUID)('4', { message: 'Service business must be a valid UUID' }),
47
- __metadata("design:type", String)
48
- ], ServiceProviderProfileDto.prototype, "business_id", void 0);
49
- __decorate([
50
- (0, class_validator_1.ValidateNested)(),
51
- (0, class_transformer_1.Type)(() => CommonDto_1.CoordinatesDto),
52
- __metadata("design:type", CommonDto_1.CoordinatesDto)
53
- ], ServiceProviderProfileDto.prototype, "location", void 0);
54
- __decorate([
55
- (0, tsoa_1.Example)("This is the service's description"),
56
- (0, class_validator_1.IsString)(),
57
- __metadata("design:type", String)
58
- ], ServiceProviderProfileDto.prototype, "description", void 0);
59
- __decorate([
60
- (0, tsoa_1.Example)(["cover.png"]),
61
- __metadata("design:type", Object)
62
- ], ServiceProviderProfileDto.prototype, "profile_image", void 0);
63
- class CompleteServiceDto {
64
- service_provider_profile;
65
- services;
66
- }
67
- exports.CompleteServiceDto = CompleteServiceDto;
68
- __decorate([
69
- (0, class_validator_1.ValidateNested)(),
70
- (0, class_transformer_1.Type)(() => ServiceProviderProfileDto),
71
- __metadata("design:type", ServiceProviderProfileDto)
72
- ], CompleteServiceDto.prototype, "service_provider_profile", void 0);
73
- __decorate([
74
- (0, class_validator_1.IsArray)({ message: "Services must be an array" }),
75
- (0, class_validator_1.ValidateNested)({ each: true }),
76
- (0, class_transformer_1.Type)(() => ServiceDto),
77
- __metadata("design:type", Array)
78
- ], CompleteServiceDto.prototype, "services", void 0);
79
- class ServiceDto {
80
- service_name;
81
- amount;
82
- }
83
- exports.ServiceDto = ServiceDto;
84
- __decorate([
85
- (0, tsoa_1.Example)("Babysitter"),
86
- (0, class_validator_1.IsString)(),
87
- __metadata("design:type", String)
88
- ], ServiceDto.prototype, "service_name", void 0);
89
- __decorate([
90
- (0, tsoa_1.Example)(200.90),
91
- (0, class_validator_1.IsNumber)({}, { message: "Service amount must be a number" }),
92
- __metadata("design:type", Number)
93
- ], ServiceDto.prototype, "amount", void 0);
@@ -1,70 +0,0 @@
1
- import { GENDER, AccountType } from '../enums/UserEnums';
2
- import { UserCoordinatesDto } from './CommonDto';
3
- export declare class RegisterUserDto {
4
- email: string;
5
- full_name: string;
6
- phone?: string;
7
- password: string;
8
- confirm_password: string;
9
- terms_and_conditions: boolean;
10
- }
11
- export declare class LoginUserDto {
12
- email: string;
13
- password: string;
14
- }
15
- export declare class EmailVerificationDTO {
16
- verification_token?: string;
17
- hash: string;
18
- ref: string;
19
- }
20
- export declare class OnlyOTPVerificationDTO {
21
- otp: string;
22
- }
23
- export declare class OnlyEmailDTO {
24
- email: string;
25
- }
26
- export declare class SetNewPasswordRequestDTO {
27
- confirm_password: string;
28
- new_password: string;
29
- }
30
- export declare class SetNewPasswordWithOTPRequestDTO extends SetNewPasswordRequestDTO {
31
- otp: string;
32
- }
33
- export declare class ValidatePasswordResetTokenDTO {
34
- password_reset_token: string;
35
- }
36
- export declare class UpdateMyProfileDto {
37
- full_name: string;
38
- phone?: string;
39
- show_full_name: boolean;
40
- show_profile_tags: boolean;
41
- }
42
- export declare class CreateStepOneFormDto {
43
- diagnosis_level: string;
44
- user_relationship: AccountType;
45
- interest: string;
46
- date_of_birth: Date;
47
- }
48
- export declare class CreateStepTwoFormDto {
49
- gender: GENDER;
50
- speech: string;
51
- }
52
- export declare class CreateStepThreeFormDto {
53
- education: string;
54
- challenges_selections: string[];
55
- other_challenges?: string[];
56
- }
57
- export declare class CreateStepFourFormDto {
58
- goals: string[];
59
- }
60
- export declare class CreateStepFiveFormDto {
61
- city: string;
62
- country: string;
63
- state: string;
64
- coordinates: UserCoordinatesDto;
65
- }
66
- export declare class ChangeUserPasswordDto {
67
- new_password: string;
68
- confirm_password: string;
69
- }
70
- //# sourceMappingURL=UserDto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserDto.d.ts","sourceRoot":"","sources":["../../../src/common/dtos/UserDto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAC,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO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