@deallony/shared 1.0.74 → 1.0.75
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/types/AdLocationType.d.ts +1 -1
- package/dist/types/AdType.d.ts +2 -1
- package/dist/types/AdType.js +19 -1
- package/dist/types/MotorType.d.ts +1 -0
- package/dist/types/MotorType.js +14 -1
- package/dist/types/PropertyType.d.ts +1 -0
- package/dist/types/PropertyType.js +11 -1
- package/dist/types/ServiceType.d.ts +1 -0
- package/dist/types/ServiceType.js +6 -1
- package/dist/types/UsedProductType.d.ts +1 -0
- package/dist/types/UsedProductType.js +4 -1
- package/package.json +1 -1
package/dist/types/AdType.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export type SaveAdDto = Partial<Omit<IAd, "created_at" | "updated_at" | "views"
|
|
|
47
47
|
latitude?: number;
|
|
48
48
|
longitude?: number;
|
|
49
49
|
baseAdminBoundaryId?: number;
|
|
50
|
-
|
|
50
|
+
adLocations?: IAdLocations;
|
|
51
51
|
};
|
|
52
52
|
export type GetAdsFilterDto = {
|
|
53
53
|
ids?: number[];
|
|
@@ -92,3 +92,4 @@ export type GetAdsFilterDto = {
|
|
|
92
92
|
sort_by?: 'price' | 'created_at' | 'views';
|
|
93
93
|
sort_order?: 'ASC' | 'DESC';
|
|
94
94
|
};
|
|
95
|
+
export declare const emptyValues: IAd;
|
package/dist/types/AdType.js
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { emptyMotor } from "./MotorType";
|
|
2
|
+
import { emptyUsedProduct } from "./UsedProductType";
|
|
3
|
+
import { emptyProperty } from "./PropertyType";
|
|
4
|
+
import { emptyService } from "./ServiceType";
|
|
5
|
+
export const emptyValues = {
|
|
6
|
+
title: "",
|
|
7
|
+
description: "",
|
|
8
|
+
negotiable: false,
|
|
9
|
+
latitude: 0,
|
|
10
|
+
longitude: 0,
|
|
11
|
+
baseAdminBoundaryId: 0,
|
|
12
|
+
contact_methods: null,
|
|
13
|
+
selected_phone: null,
|
|
14
|
+
media: [],
|
|
15
|
+
property: emptyProperty,
|
|
16
|
+
motor: emptyMotor,
|
|
17
|
+
service: emptyService,
|
|
18
|
+
product: emptyUsedProduct,
|
|
19
|
+
};
|
package/dist/types/MotorType.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export const emptyMotor = {
|
|
2
|
+
id: 0,
|
|
3
|
+
body_type_id: 0,
|
|
4
|
+
regional_spec_id: 0,
|
|
5
|
+
transmission_id: 0,
|
|
6
|
+
fuel_type_id: 0,
|
|
7
|
+
interior_color_id: null,
|
|
8
|
+
mileage: 0,
|
|
9
|
+
offer_type_id: 0,
|
|
10
|
+
year: null,
|
|
11
|
+
created_at: "",
|
|
12
|
+
updated_at: "",
|
|
13
|
+
seats_count: null,
|
|
14
|
+
};
|