@instockng/api-client 1.0.33 → 1.0.34
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/dist/rpc-types.d.ts +11 -1
- package/package.json +1 -1
package/dist/rpc-types.d.ts
CHANGED
|
@@ -1614,12 +1614,22 @@ declare const dummyClient: {
|
|
|
1614
1614
|
}>;
|
|
1615
1615
|
};
|
|
1616
1616
|
export type PublicProductsResponse = InferResponseType<typeof dummyClient[':brandSlug']['$get']>;
|
|
1617
|
-
|
|
1617
|
+
type BaseProduct = Extract<PublicProductsResponse, Array<any>>[number];
|
|
1618
|
+
type VariantAvailability = {
|
|
1619
|
+
available: boolean;
|
|
1620
|
+
trackInventory: boolean;
|
|
1621
|
+
totalInventory: number | null;
|
|
1622
|
+
};
|
|
1623
|
+
export type PublicProduct = Omit<BaseProduct, 'variants'> & {
|
|
1618
1624
|
media?: {
|
|
1619
1625
|
type: 'image' | 'video';
|
|
1620
1626
|
url: string;
|
|
1621
1627
|
posterUrl?: string;
|
|
1622
1628
|
}[];
|
|
1629
|
+
quantityDiscounts?: Record<string, number> | null;
|
|
1630
|
+
variants: (BaseProduct['variants'][number] & {
|
|
1631
|
+
availability?: VariantAvailability;
|
|
1632
|
+
})[];
|
|
1623
1633
|
};
|
|
1624
1634
|
export type Product = PublicProduct;
|
|
1625
1635
|
export type PublicDeliveryZonesResponse = QueryData<ReturnType<typeof useGetDeliveryZones>>;
|