@chopkola/common 1.0.198 → 1.0.199

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.
@@ -26,7 +26,7 @@ export type AdministratorVendorsStats = {
26
26
  };
27
27
  export type AdministratorVendorManagementData = {
28
28
  stats: AdministratorVendorsStats;
29
- business_types?: BusinessTypeFilterTab;
29
+ scopes?: BusinessTypeFilterTab;
30
30
  vendors: Vendor[];
31
31
  };
32
32
  export type AdministratorVendorDetailsManagementData = {
@@ -20,10 +20,10 @@ export interface Vendor {
20
20
  slug: string;
21
21
  sku_prefix: string;
22
22
  description: string | null;
23
- business_type: ScopeEnum;
23
+ scope: ScopeEnum;
24
24
  business_status: VendorStatusEnum;
25
- business_email: string;
26
- business_phone: string;
25
+ contact_email: string;
26
+ contact_phone: string;
27
27
  business_address?: AddressI;
28
28
  location?: string;
29
29
  logo_url: string | null;
@@ -92,11 +92,11 @@ export interface GroceryInfo {
92
92
  updated_at: Date;
93
93
  }
94
94
  export interface RestaurantVendorAggregate extends Vendor {
95
- business_type: ScopeEnum.RESTAURANT;
95
+ scope: ScopeEnum.RESTAURANT;
96
96
  restaurant_info: RestaurantInfo;
97
97
  }
98
98
  export interface GroceryVendorAggregate extends Vendor {
99
- business_type: ScopeEnum.GROCERY;
99
+ scope: ScopeEnum.GROCERY;
100
100
  grocery_info: GroceryInfo;
101
101
  }
102
102
  export type VendorAggregate = RestaurantVendorAggregate | GroceryVendorAggregate;
@@ -113,7 +113,7 @@ export type CreateVendorInput = Omit<Vendor, "id" | "rating" | "review_count" |
113
113
  registration_cert: File;
114
114
  id_proof: File;
115
115
  };
116
- export type UpdateVendorInput = Partial<Omit<Vendor, "id" | "owner_id" | "business_type" | "rating" | "review_count" | "created_at" | "updated_at">>;
116
+ export type UpdateVendorInput = Partial<Omit<Vendor, "id" | "owner_id" | "scope" | "rating" | "review_count" | "created_at" | "updated_at">>;
117
117
  export type CreateRestaurantInfoInput = Omit<RestaurantInfo, "id" | "created_at" | "updated_at">;
118
118
  export type UpdateRestaurantInfoInput = Partial<Omit<RestaurantInfo, "id" | "vendor_id" | "created_at" | "updated_at">>;
119
119
  export type CreateGroceryInfoInput = Omit<GroceryInfo, "id" | "created_at" | "updated_at">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.198",
3
+ "version": "1.0.199",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",