@alba-cars/common-modules 1.3.6 → 1.3.8
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.
|
@@ -306,6 +306,11 @@ __decorate([
|
|
|
306
306
|
(0, class_validator_1.IsString)(),
|
|
307
307
|
__metadata("design:type", String)
|
|
308
308
|
], SellCarRequestResponseDTO.prototype, "city", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
(0, class_validator_1.IsString)(),
|
|
311
|
+
(0, class_validator_1.IsOptional)(),
|
|
312
|
+
__metadata("design:type", String)
|
|
313
|
+
], SellCarRequestResponseDTO.prototype, "marketPrice", void 0);
|
|
309
314
|
__decorate([
|
|
310
315
|
(0, class_validator_1.IsEnum)(RequestType),
|
|
311
316
|
__metadata("design:type", String)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseFilter, PaginationOptions, NumberRange } from "../../../../global";
|
|
2
|
-
import { VehicleMake, VehicleModel, Vehicle, VehicleBodyType, VehicleFeature, VehicleFeatureCategory, VehicleMetaData } from "../../../models";
|
|
2
|
+
import { VehicleMake, VehicleModel, Vehicle, VehicleBodyType, VehicleFeature, VehicleFeatureCategory, VehicleMetaData, VehicleFinance } from "../../../models";
|
|
3
3
|
import { VehicleCategory } from "../../../models/VehicleCategory";
|
|
4
4
|
export type VehicleMakeSelectFields = keyof VehicleMake;
|
|
5
5
|
export type VehicleModelSelectFields = keyof VehicleModel;
|
|
@@ -220,7 +220,13 @@ export declare class VehicleUniqueFilter {
|
|
|
220
220
|
static fromPlain(plain: Record<string, unknown>): VehicleUniqueFilter;
|
|
221
221
|
static toPlain(entity: any): Record<string, unknown>;
|
|
222
222
|
}
|
|
223
|
-
export type VehicleSort =
|
|
223
|
+
export type VehicleSort = {
|
|
224
|
+
[K in keyof Pick<Vehicle, "referenceNumber" | "mileage" | "year" | "createdAt" | "updatedAt" | "engineCapacity" | "doors" | "seats" | "keys" | "transmission" | "driveType" | "price" | "status">]?: "asc" | "desc";
|
|
225
|
+
} & {
|
|
226
|
+
finance?: {
|
|
227
|
+
[K in keyof VehicleFinance]?: "asc" | "desc";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
224
230
|
export declare class VehicleOptions extends PaginationOptions {
|
|
225
231
|
sort?: VehicleSort;
|
|
226
232
|
select?: (VehicleSelectFields | `make.${VehicleMakeSelectFields}` | `model.${VehicleModelSelectFields}` | `bodyType.${VehicleBodyTypeSelectFields}` | `features.${VehicleFeatureSelectFields}` | `metaData.${VehicleMetaDataSelectFields}`)[];
|
|
@@ -230,7 +236,7 @@ export declare class VehicleOptions extends PaginationOptions {
|
|
|
230
236
|
withFeatures?: boolean;
|
|
231
237
|
withMetaData?: boolean;
|
|
232
238
|
withFinance?: boolean;
|
|
233
|
-
validate(): string[];
|
|
239
|
+
validate?(): string[];
|
|
234
240
|
static fromPlain(plain: Record<string, unknown>): VehicleOptions;
|
|
235
241
|
static toPlain(entity: any): Record<string, unknown>;
|
|
236
242
|
}
|
package/package.json
CHANGED