@instockng/api-client 1.0.22 → 1.0.24

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.
@@ -59,6 +59,7 @@ export function createAdminRpcClients(baseURL) {
59
59
  discountCodes: hc(`${fullBaseUrl}/discount-codes`),
60
60
  deliveryZones: hc(`${fullBaseUrl}/delivery-zones`),
61
61
  productAddons: hc(`${fullBaseUrl}/product-addons`),
62
+ media: hc(`${fullBaseUrl}/media`),
62
63
  };
63
64
  }
64
65
  /**
@@ -106,5 +106,9 @@ export declare const queryKeys: {
106
106
  detail: (id: string) => readonly ["admin", "delivery-zones", "zones", string];
107
107
  };
108
108
  };
109
+ media: {
110
+ all: readonly ["admin", "media"];
111
+ list: (type?: string) => readonly ["admin", "media", "list", string];
112
+ };
109
113
  };
110
114
  };
@@ -112,5 +112,9 @@ export const queryKeys = {
112
112
  detail: (id) => ['admin', 'delivery-zones', 'zones', id],
113
113
  },
114
114
  },
115
+ media: {
116
+ all: ['admin', 'media'],
117
+ list: (type) => ['admin', 'media', 'list', type],
118
+ },
115
119
  },
116
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instockng/api-client",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "React Query hooks for OMS API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,6 +22,13 @@
22
22
  "dist",
23
23
  "README.md"
24
24
  ],
25
+ "scripts": {
26
+ "type-check": "tsc --noEmit",
27
+ "build": "tsc --project tsconfig.build.json --noEmitOnError false && node scripts/fix-dist.mjs",
28
+ "generate-types": "node scripts/generate-backend-types.mjs",
29
+ "prebuild": "pnpm run generate-types",
30
+ "prepublishOnly": "pnpm run build"
31
+ },
25
32
  "keywords": [
26
33
  "api",
27
34
  "react-query",
@@ -45,11 +52,5 @@
45
52
  "axios": "^1.6.5",
46
53
  "react": "^19.0.0",
47
54
  "typescript": "^5.3.3"
48
- },
49
- "scripts": {
50
- "type-check": "tsc --noEmit",
51
- "build": "tsc --project tsconfig.build.json --noEmitOnError false && node scripts/fix-dist.mjs",
52
- "generate-types": "node scripts/generate-backend-types.mjs",
53
- "prebuild": "pnpm run generate-types"
54
55
  }
55
56
  }