@alba-cars/common-modules 1.9.5 → 1.9.6
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.
|
@@ -37,6 +37,10 @@ type TicketEndpoints = BaseEndpoint & {
|
|
|
37
37
|
getUserTickets: EndpointFunction;
|
|
38
38
|
getAgentTickets: EndpointFunction;
|
|
39
39
|
};
|
|
40
|
+
type DealDriveEndpoints = BaseEndpoint & {
|
|
41
|
+
getAllMakes: EndpointFunction;
|
|
42
|
+
getAllModels: EndpointFunction;
|
|
43
|
+
};
|
|
40
44
|
type APIEndpointType = {
|
|
41
45
|
vehicle: VehicleEndpoints;
|
|
42
46
|
blogs: BlogEndpoints;
|
|
@@ -64,6 +68,7 @@ type APIEndpointType = {
|
|
|
64
68
|
tickets: TicketEndpoints;
|
|
65
69
|
user: UserEndpoints;
|
|
66
70
|
faq: BaseEndpoint;
|
|
71
|
+
dealDrive: DealDriveEndpoints;
|
|
67
72
|
};
|
|
68
73
|
export declare const API_ENDPOINTS: APIEndpointType;
|
|
69
74
|
export declare const UTIL_ENDPOINTS: {
|
|
@@ -202,7 +202,16 @@ exports.API_ENDPOINTS = {
|
|
|
202
202
|
getOne: (id) => `/faqs/${id}`,
|
|
203
203
|
deleteOne: (id) => `/faqs/${id}`,
|
|
204
204
|
updateOne: (id) => `/faqs/${id}`,
|
|
205
|
-
}
|
|
205
|
+
},
|
|
206
|
+
dealDrive: {
|
|
207
|
+
getAll: `/deal-drive`,
|
|
208
|
+
create: `/deal-drive`,
|
|
209
|
+
getOne: (id) => `/deal-drive/${id}`,
|
|
210
|
+
deleteOne: (id) => `/deal-drive/${id}`,
|
|
211
|
+
updateOne: (id) => `/deal-drive/${id}`,
|
|
212
|
+
getAllMakes: (id) => `/deal-drive/brands`,
|
|
213
|
+
getAllModels: (id) => `/deal-drive/models`,
|
|
214
|
+
},
|
|
206
215
|
};
|
|
207
216
|
const utilRoutePrefix = "/utils";
|
|
208
217
|
exports.UTIL_ENDPOINTS = {
|
|
@@ -40,6 +40,15 @@ export declare class GoogleReviewResponseDTO {
|
|
|
40
40
|
}
|
|
41
41
|
export declare class ReviewGetDTO {
|
|
42
42
|
id: string;
|
|
43
|
+
placeId?: string;
|
|
44
|
+
platform?: ReviewPlatform;
|
|
45
|
+
comment?: string;
|
|
46
|
+
username?: string;
|
|
47
|
+
showPublic?: boolean;
|
|
48
|
+
minRating?: number;
|
|
49
|
+
maxRating?: number;
|
|
50
|
+
skip?: number;
|
|
51
|
+
take?: number;
|
|
43
52
|
filters?: ReviewFilter;
|
|
44
53
|
options?: ReviewOptions;
|
|
45
54
|
validate(): string[];
|
|
@@ -181,6 +181,68 @@ __decorate([
|
|
|
181
181
|
(0, class_validator_1.IsOptional)(),
|
|
182
182
|
__metadata("design:type", String)
|
|
183
183
|
], ReviewGetDTO.prototype, "id", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, class_validator_1.IsString)(),
|
|
186
|
+
(0, class_validator_1.IsOptional)(),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], ReviewGetDTO.prototype, "placeId", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, class_validator_1.IsEnum)(enums_1.ReviewPlatform),
|
|
191
|
+
(0, class_validator_1.IsOptional)(),
|
|
192
|
+
__metadata("design:type", String)
|
|
193
|
+
], ReviewGetDTO.prototype, "platform", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, class_validator_1.IsString)(),
|
|
196
|
+
(0, class_validator_1.IsOptional)(),
|
|
197
|
+
__metadata("design:type", String)
|
|
198
|
+
], ReviewGetDTO.prototype, "comment", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, class_validator_1.IsString)(),
|
|
201
|
+
(0, class_validator_1.IsOptional)(),
|
|
202
|
+
__metadata("design:type", String)
|
|
203
|
+
], ReviewGetDTO.prototype, "username", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, class_validator_1.IsBoolean)(),
|
|
206
|
+
(0, class_validator_1.IsOptional)(),
|
|
207
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
208
|
+
if (value === 'true')
|
|
209
|
+
return true;
|
|
210
|
+
if (value === 'false')
|
|
211
|
+
return false;
|
|
212
|
+
return value;
|
|
213
|
+
}),
|
|
214
|
+
__metadata("design:type", Boolean)
|
|
215
|
+
], ReviewGetDTO.prototype, "showPublic", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, class_validator_1.IsNumber)(),
|
|
218
|
+
(0, class_validator_1.IsOptional)(),
|
|
219
|
+
(0, class_validator_1.Min)(1),
|
|
220
|
+
(0, class_validator_1.Max)(5),
|
|
221
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? Number(value) : undefined),
|
|
222
|
+
__metadata("design:type", Number)
|
|
223
|
+
], ReviewGetDTO.prototype, "minRating", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, class_validator_1.IsNumber)(),
|
|
226
|
+
(0, class_validator_1.IsOptional)(),
|
|
227
|
+
(0, class_validator_1.Min)(1),
|
|
228
|
+
(0, class_validator_1.Max)(5),
|
|
229
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? Number(value) : undefined),
|
|
230
|
+
__metadata("design:type", Number)
|
|
231
|
+
], ReviewGetDTO.prototype, "maxRating", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, class_validator_1.IsNumber)(),
|
|
234
|
+
(0, class_validator_1.IsOptional)(),
|
|
235
|
+
(0, class_validator_1.Min)(0),
|
|
236
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? Number(value) : undefined),
|
|
237
|
+
__metadata("design:type", Number)
|
|
238
|
+
], ReviewGetDTO.prototype, "skip", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, class_validator_1.IsNumber)(),
|
|
241
|
+
(0, class_validator_1.IsOptional)(),
|
|
242
|
+
(0, class_validator_1.Min)(1),
|
|
243
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? Number(value) : undefined),
|
|
244
|
+
__metadata("design:type", Number)
|
|
245
|
+
], ReviewGetDTO.prototype, "take", void 0);
|
|
184
246
|
exports.ReviewGetDTO = ReviewGetDTO;
|
|
185
247
|
class ReviewFilter {
|
|
186
248
|
}
|
package/package.json
CHANGED