@chopkola/common 1.0.198 → 1.0.200
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
|
-
|
|
29
|
+
scopes?: BusinessTypeFilterTab;
|
|
30
30
|
vendors: Vendor[];
|
|
31
31
|
};
|
|
32
32
|
export type AdministratorVendorDetailsManagementData = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LucideIcon } from "lucide-react";
|
|
2
2
|
import { Category } from "./category";
|
|
3
|
-
import { JsonObject, MoneyString, Nullable, QuantityString, Timestamps, UUID } from "./global";
|
|
3
|
+
import { Currency, JsonObject, MoneyString, Nullable, QuantityString, Timestamps, UUID } from "./global";
|
|
4
4
|
import { ProductTypeEnum, StockMovementReasonEnum, StockStatusEnum, VendorProductsStatisticsIconEnum } from "./enum/collection";
|
|
5
5
|
export interface BackendVendorProductStatistic {
|
|
6
6
|
key: "total_products" | "low_stock" | "out_of_stock" | "top_category";
|
|
@@ -196,6 +196,7 @@ export interface VendorProductsManagementData {
|
|
|
196
196
|
export interface VendorCreateOrEditProductPageData {
|
|
197
197
|
categories: Category[];
|
|
198
198
|
product?: ProductAggregate;
|
|
199
|
+
currency: Currency;
|
|
199
200
|
}
|
|
200
201
|
export interface ProductDetailsData {
|
|
201
202
|
product: ProductAggregate;
|
package/build/types/vendor.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ export interface Vendor {
|
|
|
20
20
|
slug: string;
|
|
21
21
|
sku_prefix: string;
|
|
22
22
|
description: string | null;
|
|
23
|
-
|
|
23
|
+
scope: ScopeEnum;
|
|
24
24
|
business_status: VendorStatusEnum;
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
95
|
+
scope: ScopeEnum.RESTAURANT;
|
|
96
96
|
restaurant_info: RestaurantInfo;
|
|
97
97
|
}
|
|
98
98
|
export interface GroceryVendorAggregate extends Vendor {
|
|
99
|
-
|
|
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" | "
|
|
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">;
|