@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.
@@ -86,6 +86,7 @@ export declare class SellCarRequestResponseDTO {
86
86
  phone: string;
87
87
  email?: string;
88
88
  city: string;
89
+ marketPrice?: string;
89
90
  requestType: RequestType;
90
91
  make?: {
91
92
  id: string;
@@ -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 = Record<keyof Pick<Vehicle, "referenceNumber" | "mileage" | "year" | "createdAt" | "updatedAt" | "engineCapacity" | "doors" | "seats" | "keys" | "transmission" | "driveType" | "price" | "status">, "asc" | "desc">;
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
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.6",
6
+ "version": "1.3.8",
7
7
  "description": "A package containing DTOs, validation classes and common modules and interfaces for Alba Cars",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",