@alba-cars/common-modules 1.10.31 → 1.10.33
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.
- package/dist/features/models/Vehicle.d.ts +1 -0
- package/dist/features/sales-team/data/dto/SalesAgentDTO.d.ts +2 -1
- package/dist/features/sales-team/data/dto/SalesAgentDTO.js +2 -1
- package/dist/features/vehicle/data/dto/VehicleDTO.d.ts +2 -0
- package/dist/features/vehicle/data/dto/VehicleDTO.js +10 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import { User } from "./User";
|
|
|
12
12
|
import { Deposit } from "./Deposit";
|
|
13
13
|
import { VehicleInspectionDTO, VehicleWarrantyYearType } from "../vehicle";
|
|
14
14
|
export declare class Vehicle extends BaseModel {
|
|
15
|
+
title?: string;
|
|
15
16
|
referenceNumber?: string;
|
|
16
17
|
slug: string;
|
|
17
18
|
make: VehicleMake;
|
|
@@ -5,7 +5,8 @@ export declare enum Designation {
|
|
|
5
5
|
CO_FOUNDER = "co-founder",
|
|
6
6
|
CHIEF_SALES_OFFICER = "chief sales officer",
|
|
7
7
|
CHIEF_PURCHASING_OFFICER = "Chief Purchasing Officer",
|
|
8
|
-
|
|
8
|
+
PURCHASE_MANAGER = "Purchase Manager",
|
|
9
|
+
PURCHASER = "Purchaser",
|
|
9
10
|
FINANCE_MANAGER = "Finance Manager",
|
|
10
11
|
HEAD_OF_ACCOUNTS = "Head of Accounts",
|
|
11
12
|
CHIEF_MARKETING_OFFICER = "Chief Marketing Officer",
|
|
@@ -20,7 +20,8 @@ var Designation;
|
|
|
20
20
|
Designation["CO_FOUNDER"] = "co-founder";
|
|
21
21
|
Designation["CHIEF_SALES_OFFICER"] = "chief sales officer";
|
|
22
22
|
Designation["CHIEF_PURCHASING_OFFICER"] = "Chief Purchasing Officer";
|
|
23
|
-
Designation["
|
|
23
|
+
Designation["PURCHASE_MANAGER"] = "Purchase Manager";
|
|
24
|
+
Designation["PURCHASER"] = "Purchaser";
|
|
24
25
|
Designation["FINANCE_MANAGER"] = "Finance Manager";
|
|
25
26
|
Designation["HEAD_OF_ACCOUNTS"] = "Head of Accounts";
|
|
26
27
|
Designation["CHIEF_MARKETING_OFFICER"] = "Chief Marketing Officer";
|
|
@@ -34,6 +34,7 @@ export declare class VehicleMetaDataDTO {
|
|
|
34
34
|
static toPlain(entity: any): Record<string, unknown>;
|
|
35
35
|
}
|
|
36
36
|
export declare class VehicleCreateDTO extends BaseCreateDTO {
|
|
37
|
+
title: string;
|
|
37
38
|
make: DynamicMakeDTO;
|
|
38
39
|
model: DynamicModelDTO;
|
|
39
40
|
bodyType: DynamicVehicleBodyTypeDTO;
|
|
@@ -85,6 +86,7 @@ export declare class VehicleFeaturesUpdateDTO {
|
|
|
85
86
|
static toPlain(entity: any): Record<string, unknown>;
|
|
86
87
|
}
|
|
87
88
|
export declare class VehicleUpdateDTO extends BaseUpdateDTO {
|
|
89
|
+
title: string;
|
|
88
90
|
make: DynamicMakeDTO;
|
|
89
91
|
model: DynamicModelDTO;
|
|
90
92
|
bodyType: DynamicVehicleBodyTypeDTO;
|
|
@@ -124,6 +124,11 @@ class VehicleCreateDTO extends BaseDTO_1.BaseCreateDTO {
|
|
|
124
124
|
return (0, class_transformer_1.instanceToPlain)(entity);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, class_validator_1.IsOptional)(),
|
|
129
|
+
(0, class_validator_1.IsString)(),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], VehicleCreateDTO.prototype, "title", void 0);
|
|
127
132
|
__decorate([
|
|
128
133
|
(0, class_validator_1.IsNotEmpty)(),
|
|
129
134
|
(0, class_validator_1.ValidateNested)(),
|
|
@@ -374,6 +379,11 @@ class VehicleUpdateDTO extends BaseDTO_1.BaseUpdateDTO {
|
|
|
374
379
|
return (0, class_transformer_1.instanceToPlain)(entity);
|
|
375
380
|
}
|
|
376
381
|
}
|
|
382
|
+
__decorate([
|
|
383
|
+
(0, class_validator_1.IsOptional)(),
|
|
384
|
+
(0, class_validator_1.IsString)(),
|
|
385
|
+
__metadata("design:type", String)
|
|
386
|
+
], VehicleUpdateDTO.prototype, "title", void 0);
|
|
377
387
|
__decorate([
|
|
378
388
|
(0, class_validator_1.IsOptional)(),
|
|
379
389
|
(0, class_validator_1.ValidateNested)(),
|
package/package.json
CHANGED