@instockng/api-client 1.0.30 → 1.0.31

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.
@@ -55,7 +55,13 @@ export type AdminStateWithZones = AdminStatesResponse extends Array<infer Item>
55
55
  export type State = Omit<AdminStateWithZones, 'deliveryZones'>;
56
56
  export type AdminState = State;
57
57
  export type PublicProductsResponse = QueryData<ReturnType<typeof useGetProducts>>;
58
- export type PublicProduct = PublicProductsResponse extends Array<infer Item> ? Item : never;
58
+ export type PublicProduct = (PublicProductsResponse extends Array<infer Item> ? Item : never) & {
59
+ media?: {
60
+ type: 'image' | 'video';
61
+ url: string;
62
+ posterUrl?: string;
63
+ }[];
64
+ };
59
65
  export type Product = PublicProduct;
60
66
  export type PublicDeliveryZonesResponse = QueryData<ReturnType<typeof useGetDeliveryZones>>;
61
67
  export type PublicDeliveryZoneState = PublicDeliveryZonesResponse extends Array<infer Item> ? Item : never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instockng/api-client",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "React Query hooks for OMS API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",