@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.
- package/dist/backend-types.d.ts +1 -1
- package/dist/fetchers/carts.d.ts +3663 -758
- package/dist/fetchers/orders.d.ts +1095 -227
- package/dist/fetchers/products.d.ts +613 -41
- package/dist/hooks/admin/abandoned-carts.d.ts +707 -125
- package/dist/hooks/admin/customers.d.ts +291 -0
- package/dist/hooks/admin/index.d.ts +8 -7
- package/dist/hooks/admin/index.js +8 -7
- package/dist/hooks/admin/media.d.ts +44 -0
- package/dist/hooks/admin/media.js +86 -0
- package/dist/hooks/admin/orders.d.ts +2531 -785
- package/dist/hooks/admin/products.d.ts +607 -35
- package/dist/hooks/admin/stats.d.ts +291 -0
- package/dist/hooks/admin/warehouses.d.ts +291 -0
- package/dist/hooks/public/carts.d.ts +3760 -855
- package/dist/hooks/public/orders.d.ts +1114 -246
- package/dist/hooks/public/products.d.ts +619 -47
- package/dist/rpc-client.d.ts +15482 -6425
- package/dist/rpc-client.js +1 -0
- package/dist/utils/query-keys.d.ts +4 -0
- package/dist/utils/query-keys.js +4 -0
- package/package.json +8 -7
package/dist/rpc-client.js
CHANGED
|
@@ -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
|
};
|
package/dist/utils/query-keys.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instockng/api-client",
|
|
3
|
-
"version": "1.0.
|
|
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
|
}
|