@alba-cars/common-modules 1.4.3 → 1.4.4
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.
|
@@ -17,6 +17,11 @@ interface VehicleEndpoints extends BaseEndpoint {
|
|
|
17
17
|
interface BlogEndpoints extends BaseEndpoint {
|
|
18
18
|
getOneBySlug: EndpointFunction;
|
|
19
19
|
}
|
|
20
|
+
type MetaEndpoints = BaseEndpoint & {
|
|
21
|
+
aiGenerateTitle: EndpointFunction;
|
|
22
|
+
aiGenerateDescription: EndpointFunction;
|
|
23
|
+
aiGenerateKeyword: EndpointFunction;
|
|
24
|
+
};
|
|
20
25
|
type APIEndpointType = {
|
|
21
26
|
vehicle: VehicleEndpoints;
|
|
22
27
|
blogs: BlogEndpoints;
|
|
@@ -25,7 +30,7 @@ type APIEndpointType = {
|
|
|
25
30
|
TestDrive: BaseEndpoint;
|
|
26
31
|
vehicleMake: BaseEndpoint;
|
|
27
32
|
vehicleModel: BaseEndpoint;
|
|
28
|
-
vehicleMeta:
|
|
33
|
+
vehicleMeta: MetaEndpoints;
|
|
29
34
|
vehicleInspection: BaseEndpoint;
|
|
30
35
|
vehicleOrder: BaseEndpoint;
|
|
31
36
|
vehicleFeatures: BaseEndpoint;
|
|
@@ -63,6 +63,9 @@ exports.API_ENDPOINTS = {
|
|
|
63
63
|
getOne: (id) => `/vehicle-meta-data/${id}`,
|
|
64
64
|
deleteOne: (id) => `/vehicle-meta-data/${id}`,
|
|
65
65
|
updateOne: (id) => `/vehicle-meta-data/${id}`,
|
|
66
|
+
aiGenerateTitle: (id) => `/vehicle-meta-data/generate/title/${id}`,
|
|
67
|
+
aiGenerateDescription: (id) => `/vehicle-meta-data/generate/description/${id}`,
|
|
68
|
+
aiGenerateKeyword: (id) => `/vehicle-meta-data/generate/keywords/${id}`,
|
|
66
69
|
},
|
|
67
70
|
TestDrive: {
|
|
68
71
|
getAll: `/test-drive-requests`,
|
|
@@ -4,6 +4,7 @@ export declare class RegisterDTO {
|
|
|
4
4
|
password: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
phone?: string;
|
|
7
|
+
savedFavoriteVehicles?: string[];
|
|
7
8
|
static fromPlain(entity: any): RegisterDTO;
|
|
8
9
|
toPlain(): Record<string, unknown>;
|
|
9
10
|
validate(): string[];
|
|
@@ -11,6 +12,7 @@ export declare class RegisterDTO {
|
|
|
11
12
|
export declare class LoginDTO {
|
|
12
13
|
email: string;
|
|
13
14
|
password: string;
|
|
15
|
+
savedFavoriteVehicles?: string[];
|
|
14
16
|
static fromPlain(entity: any): LoginDTO;
|
|
15
17
|
toPlain(): Record<string, unknown>;
|
|
16
18
|
validate(): string[];
|
|
@@ -41,6 +41,12 @@ __decorate([
|
|
|
41
41
|
(0, class_validator_1.IsString)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], RegisterDTO.prototype, "phone", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
47
|
+
(0, class_validator_1.IsUUID)("4", { each: true }),
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], RegisterDTO.prototype, "savedFavoriteVehicles", void 0);
|
|
44
50
|
exports.RegisterDTO = RegisterDTO;
|
|
45
51
|
class LoginDTO {
|
|
46
52
|
static fromPlain(entity) {
|
|
@@ -62,6 +68,12 @@ __decorate([
|
|
|
62
68
|
(0, class_validator_1.IsString)(),
|
|
63
69
|
__metadata("design:type", String)
|
|
64
70
|
], LoginDTO.prototype, "password", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
74
|
+
(0, class_validator_1.IsUUID)("4", { each: true }),
|
|
75
|
+
__metadata("design:type", Array)
|
|
76
|
+
], LoginDTO.prototype, "savedFavoriteVehicles", void 0);
|
|
65
77
|
exports.LoginDTO = LoginDTO;
|
|
66
78
|
class AuthResponseDTO {
|
|
67
79
|
}
|
package/package.json
CHANGED