@chopkola/common 1.0.169 → 1.0.172

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.
@@ -90,6 +90,13 @@ export interface GroceryVendorAggregate extends Vendor {
90
90
  grocery_info: GroceryInfo;
91
91
  }
92
92
  export type VendorAggregate = RestaurantVendorAggregate | GroceryVendorAggregate;
93
+ export type VendorAggregateForWeb = VendorAggregate & {
94
+ distance?: number;
95
+ time?: string;
96
+ deliveryFee?: number;
97
+ reviews?: number;
98
+ rating?: number;
99
+ };
93
100
  export type CreateVendorInput = Omit<Vendor, "id" | "rating" | "review_count" | "business_status" | "approved_by" | "approved_on" | "created_at" | "updated_at"> & {
94
101
  address_payload: AddressPayloadType;
95
102
  registration_cert: File;
@@ -100,3 +107,8 @@ export type CreateRestaurantInfoInput = Omit<RestaurantInfo, "id" | "created_at"
100
107
  export type UpdateRestaurantInfoInput = Partial<Omit<RestaurantInfo, "id" | "vendor_id" | "created_at" | "updated_at">>;
101
108
  export type CreateGroceryInfoInput = Omit<GroceryInfo, "id" | "created_at" | "updated_at">;
102
109
  export type UpdateGroceryInfoInput = Partial<Omit<GroceryInfo, "id" | "vendor_id" | "created_at" | "updated_at">>;
110
+ export type WebApplicationRestaurantsResourceData = {
111
+ restaurants: VendorAggregateForWeb[];
112
+ cuisines: CuisineType[];
113
+ ambience: AmbienceType[];
114
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.169",
3
+ "version": "1.0.172",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",
@@ -26,6 +26,7 @@
26
26
  "multer": "^2.0.2"
27
27
  },
28
28
  "devDependencies": {
29
- "del-cli": "^7.0.0"
29
+ "del-cli": "^7.0.0",
30
+ "typescript": "^5.9.3"
30
31
  }
31
32
  }