@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.
@@ -1614,12 +1614,22 @@ declare const dummyClient: {
1614
1614
  }>;
1615
1615
  };
1616
1616
  export type PublicProductsResponse = InferResponseType<typeof dummyClient[':brandSlug']['$get']>;
1617
- export type PublicProduct = (Extract<PublicProductsResponse, Array<any>>[number]) & {
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>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instockng/api-client",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "React Query hooks for OMS API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",