@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.
@@ -1,5 +1,5 @@
1
1
  export type IAdLocation = {
2
2
  ad_id?: number;
3
- admin_boundry_id: number;
3
+ admin_boundary_id: number;
4
4
  };
5
5
  export type IAdLocations = IAdLocation[];
@@ -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
- AdLocations?: IAdLocations;
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;
@@ -1 +1,19 @@
1
- export {};
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
+ };
@@ -21,3 +21,4 @@ export type MotorType = {
21
21
  price_type_id?: number;
22
22
  seats_count: number | null;
23
23
  };
24
+ export declare const emptyMotor: MotorType;
@@ -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
+ };
@@ -34,3 +34,4 @@ export type PropertyFeatures = {
34
34
  properties_id: number;
35
35
  feature_id: number;
36
36
  };
37
+ export declare const emptyProperty: PropertyType;
@@ -1 +1,11 @@
1
- export {};
1
+ export const emptyProperty = {
2
+ id: 0,
3
+ offer_type_id: 0,
4
+ price_type_id: 0,
5
+ size_m2: 0,
6
+ bedrooms: 0,
7
+ created_at: "",
8
+ updated_at: "",
9
+ property_facilities: [],
10
+ feature_ids: [],
11
+ };
@@ -6,3 +6,4 @@ export type ServiceType = {
6
6
  work_type_id: number | null;
7
7
  locations: ServiceLocationType[];
8
8
  };
9
+ export declare const emptyService: ServiceType;
@@ -1 +1,6 @@
1
- export {};
1
+ export const emptyService = {
2
+ unit_id: null,
3
+ access_type_id: null,
4
+ work_type_id: null,
5
+ locations: [],
6
+ };
@@ -5,3 +5,4 @@ export type UsedProductType = {
5
5
  isDeliveryAvailable: undefined;
6
6
  product_type_id: undefined;
7
7
  };
8
+ export declare const emptyUsedProduct: UsedProductType;
@@ -1,2 +1,5 @@
1
1
  // import { IMedia } from "../MediaType";
2
- export {};
2
+ export const emptyUsedProduct = {
3
+ isDeliveryAvailable: undefined,
4
+ product_type_id: undefined,
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.74",
3
+ "version": "1.0.75",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",