@chopkola/common 1.0.175 → 1.0.176

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.
@@ -98,6 +98,61 @@ export type VendorAggregateForWeb = VendorAggregate & {
98
98
  reviews?: number;
99
99
  rating?: number;
100
100
  };
101
+ export interface CategoryLite {
102
+ id: UUID;
103
+ name: string;
104
+ slug: string;
105
+ }
106
+ export interface ProductAggregateLite {
107
+ id: UUID;
108
+ vendor_id: UUID;
109
+ name: string;
110
+ slug: string;
111
+ sku: string | null;
112
+ description: string | null;
113
+ brand: string | null;
114
+ images: string[] | null;
115
+ tags: string[] | null;
116
+ attributes: Record<string, unknown> | null;
117
+ is_approved: boolean;
118
+ created_at: Date;
119
+ category: CategoryLite | null;
120
+ }
121
+ export interface ProductVariantAggregateLite {
122
+ id: UUID;
123
+ product_id: UUID;
124
+ name_suffix: string | null;
125
+ sku: string | null;
126
+ options: Record<string, unknown> | null;
127
+ images: string[] | null;
128
+ is_default: boolean;
129
+ }
130
+ export interface VendorLite {
131
+ id: UUID;
132
+ business_name: string;
133
+ slug: string;
134
+ logo_url: string | null;
135
+ }
136
+ export interface InventoryItemAggregate {
137
+ id: UUID;
138
+ vendor_id: UUID;
139
+ product_id: UUID | null;
140
+ product_variant_id: UUID | null;
141
+ sku: string | null;
142
+ price: number;
143
+ discount_price: number | null;
144
+ currency: string;
145
+ quantity_available: number;
146
+ low_stock_threshold: number | null;
147
+ stock_status: string;
148
+ is_visible: boolean;
149
+ is_featured: boolean;
150
+ created_at: Date;
151
+ updated_at: Date;
152
+ product: ProductAggregateLite | null;
153
+ product_variant: ProductVariantAggregateLite | null;
154
+ vendor: VendorLite;
155
+ }
101
156
  export type CreateVendorInput = Omit<Vendor, "id" | "rating" | "review_count" | "business_status" | "approved_by" | "approved_on" | "created_at" | "updated_at"> & {
102
157
  address_payload: AddressPayloadType;
103
158
  registration_cert: File;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.175",
3
+ "version": "1.0.176",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",