@chopkola/common 1.0.164 → 1.0.166
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/build/types/user.d.ts +1 -1
- package/build/types/vendor.d.ts +4 -1
- package/package.json +1 -1
package/build/types/user.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface CustomerUser extends User {
|
|
|
56
56
|
}
|
|
57
57
|
export type UserAggregate = AdministratorUser | VendorUser | CustomerUser;
|
|
58
58
|
export type PublicUser = Omit<UserAggregate, "token_version" | "deleted_at">;
|
|
59
|
-
export type CreateUserInput = Omit<User, "id" | "
|
|
59
|
+
export type CreateUserInput = Omit<User, "id" | "token_version" | "last_login_at" | "last_login_ip" | "password_changed_at" | "last_consented_at" | "deleted_at" | "created_at" | "updated_at"> & {
|
|
60
60
|
password: string;
|
|
61
61
|
role_id?: string;
|
|
62
62
|
};
|
package/build/types/vendor.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddressI } from "./address";
|
|
2
2
|
import { PromotionTypeEnum, VendorBusinessTypeEnum, VendorStatusEnum } from "./enum/collection";
|
|
3
|
+
import { AddressPayloadType } from "./global";
|
|
3
4
|
export type CuisineType = "African" | "Asian" | "Continental" | "Mediterranean" | "American";
|
|
4
5
|
export type AmbienceType = "Casual" | "Fine Dining" | "Family Friendly" | "Romantic" | "Outdoor" | "Rooftop";
|
|
5
6
|
export type StoreType = "Supermarket" | "Organic Store" | "Wholesale" | "Convenience Store" | "Mini Mart";
|
|
@@ -89,7 +90,9 @@ export interface GroceryVendorAggregate extends Vendor {
|
|
|
89
90
|
grocery_info: GroceryInfo;
|
|
90
91
|
}
|
|
91
92
|
export type VendorAggregate = RestaurantVendorAggregate | GroceryVendorAggregate;
|
|
92
|
-
export type CreateVendorInput = Omit<Vendor, "id" | "rating" | "review_count" | "business_status" | "approved_by" | "approved_on" | "created_at" | "updated_at"
|
|
93
|
+
export type CreateVendorInput = Omit<Vendor, "id" | "rating" | "review_count" | "business_status" | "approved_by" | "approved_on" | "created_at" | "updated_at"> & {
|
|
94
|
+
address_payload: AddressPayloadType;
|
|
95
|
+
};
|
|
93
96
|
export type UpdateVendorInput = Partial<Omit<Vendor, "id" | "owner_id" | "business_type" | "rating" | "review_count" | "created_at" | "updated_at">>;
|
|
94
97
|
export type CreateRestaurantInfoInput = Omit<RestaurantInfo, "id" | "created_at" | "updated_at">;
|
|
95
98
|
export type UpdateRestaurantInfoInput = Partial<Omit<RestaurantInfo, "id" | "vendor_id" | "created_at" | "updated_at">>;
|