@lehaotech/walmart-mcp 0.5.4
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/.env.example +25 -0
- package/CHANGELOG.md +247 -0
- package/LICENSE +21 -0
- package/README.md +344 -0
- package/build/api/advertising/ad-client.d.ts +24 -0
- package/build/api/advertising/ad-client.js +174 -0
- package/build/api/advertising/advertising-api.d.ts +50 -0
- package/build/api/advertising/advertising-api.js +89 -0
- package/build/api/client.d.ts +19 -0
- package/build/api/client.js +150 -0
- package/build/api/feeds/feeds-api.d.ts +15 -0
- package/build/api/feeds/feeds-api.js +53 -0
- package/build/api/fulfillment/fulfillment-api.d.ts +37 -0
- package/build/api/fulfillment/fulfillment-api.js +81 -0
- package/build/api/index.d.ts +44 -0
- package/build/api/index.js +56 -0
- package/build/api/inventory/inventory-api.d.ts +27 -0
- package/build/api/inventory/inventory-api.js +49 -0
- package/build/api/items/items-api.d.ts +33 -0
- package/build/api/items/items-api.js +67 -0
- package/build/api/notifications/notifications-api.d.ts +14 -0
- package/build/api/notifications/notifications-api.js +33 -0
- package/build/api/orders/orders-api.d.ts +32 -0
- package/build/api/orders/orders-api.js +47 -0
- package/build/api/pricing/pricing-api.d.ts +32 -0
- package/build/api/pricing/pricing-api.js +60 -0
- package/build/api/reports/reports-api.d.ts +37 -0
- package/build/api/reports/reports-api.js +51 -0
- package/build/api/returns/returns-api.d.ts +26 -0
- package/build/api/returns/returns-api.js +37 -0
- package/build/api/settings/settings-api.d.ts +9 -0
- package/build/api/settings/settings-api.js +21 -0
- package/build/auth/oauth.d.ts +16 -0
- package/build/auth/oauth.js +125 -0
- package/build/config/environment.d.ts +22 -0
- package/build/config/environment.js +50 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +180 -0
- package/build/scripts/client-configs.d.ts +36 -0
- package/build/scripts/client-configs.js +132 -0
- package/build/scripts/diagnose.d.ts +15 -0
- package/build/scripts/diagnose.js +320 -0
- package/build/scripts/setup.d.ts +17 -0
- package/build/scripts/setup.js +276 -0
- package/build/tools/definitions/advertising.d.ts +664 -0
- package/build/tools/definitions/advertising.js +315 -0
- package/build/tools/definitions/discovery.d.ts +24 -0
- package/build/tools/definitions/discovery.js +65 -0
- package/build/tools/definitions/feeds.d.ts +46 -0
- package/build/tools/definitions/feeds.js +42 -0
- package/build/tools/definitions/fulfillment.d.ts +1127 -0
- package/build/tools/definitions/fulfillment.js +272 -0
- package/build/tools/definitions/inventory.d.ts +392 -0
- package/build/tools/definitions/inventory.js +182 -0
- package/build/tools/definitions/items.d.ts +447 -0
- package/build/tools/definitions/items.js +223 -0
- package/build/tools/definitions/notifications.d.ts +84 -0
- package/build/tools/definitions/notifications.js +73 -0
- package/build/tools/definitions/orders.d.ts +2659 -0
- package/build/tools/definitions/orders.js +298 -0
- package/build/tools/definitions/pricing.d.ts +724 -0
- package/build/tools/definitions/pricing.js +254 -0
- package/build/tools/definitions/reports.d.ts +223 -0
- package/build/tools/definitions/reports.js +144 -0
- package/build/tools/definitions/returns.d.ts +441 -0
- package/build/tools/definitions/returns.js +126 -0
- package/build/tools/definitions/settings.d.ts +100 -0
- package/build/tools/definitions/settings.js +52 -0
- package/build/tools/definitions/shared-schemas.d.ts +40 -0
- package/build/tools/definitions/shared-schemas.js +47 -0
- package/build/tools/definitions/token-management.d.ts +16 -0
- package/build/tools/definitions/token-management.js +41 -0
- package/build/tools/index.d.ts +6924 -0
- package/build/tools/index.js +379 -0
- package/build/utils/api-error.d.ts +41 -0
- package/build/utils/api-error.js +97 -0
- package/build/utils/endpoint-catalog.d.ts +22 -0
- package/build/utils/endpoint-catalog.js +89 -0
- package/build/utils/env-file.d.ts +12 -0
- package/build/utils/env-file.js +27 -0
- package/build/utils/known-issues.d.ts +29 -0
- package/build/utils/known-issues.js +122 -0
- package/build/utils/logger.d.ts +15 -0
- package/build/utils/logger.js +56 -0
- package/build/utils/rate-limiter.d.ts +51 -0
- package/build/utils/rate-limiter.js +109 -0
- package/package.json +1 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SkuSchema, ShipNodeSchema, QuantitySchema, ProcessModeSchema } from './shared-schemas.js';
|
|
3
|
+
// ---------- Single-node inventory feed (feedType=inventory) ----------
|
|
4
|
+
// Walmart spec: InventoryHeader + Inventory[] with sku + quantity.
|
|
5
|
+
const SingleNodeInventoryFeedSchema = z
|
|
6
|
+
.object({
|
|
7
|
+
InventoryHeader: z
|
|
8
|
+
.object({
|
|
9
|
+
version: z.string().default('1.4'),
|
|
10
|
+
feedDate: z.string().datetime({ offset: true }).optional(),
|
|
11
|
+
})
|
|
12
|
+
.strict(),
|
|
13
|
+
Inventory: z
|
|
14
|
+
.array(z
|
|
15
|
+
.object({
|
|
16
|
+
sku: SkuSchema,
|
|
17
|
+
quantity: QuantitySchema,
|
|
18
|
+
fulfillmentLagTime: z
|
|
19
|
+
.number()
|
|
20
|
+
.int()
|
|
21
|
+
.min(0)
|
|
22
|
+
.max(28, 'Walmart caps lag time at 28 days')
|
|
23
|
+
.optional(),
|
|
24
|
+
})
|
|
25
|
+
.strict())
|
|
26
|
+
.min(1, 'Need at least 1 inventory entry')
|
|
27
|
+
.max(10_000, 'Walmart caps inventory feeds at ~10000 SKUs'),
|
|
28
|
+
})
|
|
29
|
+
.strict();
|
|
30
|
+
// ---------- Multi-node inventory feed (feedType=MP_INVENTORY) ----------
|
|
31
|
+
// Each SKU can have inventory at multiple ship nodes.
|
|
32
|
+
const ShipNodeInventorySchema = z
|
|
33
|
+
.object({
|
|
34
|
+
shipNode: ShipNodeSchema,
|
|
35
|
+
availToSellQty: QuantitySchema,
|
|
36
|
+
processMode: ProcessModeSchema.optional(),
|
|
37
|
+
})
|
|
38
|
+
.strict();
|
|
39
|
+
const MultiNodeInventoryFeedSchema = z
|
|
40
|
+
.object({
|
|
41
|
+
InventoryFeed: z
|
|
42
|
+
.object({
|
|
43
|
+
InventoryHeader: z
|
|
44
|
+
.object({
|
|
45
|
+
version: z.string().default('1.0'),
|
|
46
|
+
requestId: z.string().optional(),
|
|
47
|
+
})
|
|
48
|
+
.strict(),
|
|
49
|
+
inventory: z
|
|
50
|
+
.array(z
|
|
51
|
+
.object({
|
|
52
|
+
sku: SkuSchema,
|
|
53
|
+
shipNodes: z.array(ShipNodeInventorySchema).min(1, 'At least 1 ship node per SKU'),
|
|
54
|
+
})
|
|
55
|
+
.strict())
|
|
56
|
+
.min(1, 'Need at least 1 SKU')
|
|
57
|
+
.max(10_000, 'Walmart caps multi-node inventory feeds at ~10000 SKUs'),
|
|
58
|
+
})
|
|
59
|
+
.strict(),
|
|
60
|
+
})
|
|
61
|
+
.strict();
|
|
62
|
+
// ---------- Single-SKU multi-node inventory body (used by update_inventory_multi_node) ----------
|
|
63
|
+
const MultiNodeInventoryBodySchema = z
|
|
64
|
+
.object({
|
|
65
|
+
sku: SkuSchema,
|
|
66
|
+
shipNodes: z
|
|
67
|
+
.array(ShipNodeInventorySchema)
|
|
68
|
+
.min(1, 'At least 1 ship node entry required'),
|
|
69
|
+
})
|
|
70
|
+
.strict();
|
|
71
|
+
// ---------- LAGTIME feed ----------
|
|
72
|
+
const LagTimeFeedSchema = z
|
|
73
|
+
.object({
|
|
74
|
+
LagTimeHeader: z
|
|
75
|
+
.object({
|
|
76
|
+
version: z.string().default('1.0'),
|
|
77
|
+
feedDate: z.string().datetime({ offset: true }).optional(),
|
|
78
|
+
})
|
|
79
|
+
.strict(),
|
|
80
|
+
lagTime: z
|
|
81
|
+
.array(z
|
|
82
|
+
.object({
|
|
83
|
+
sku: SkuSchema,
|
|
84
|
+
fulfillmentLagTime: z.number().int().min(0).max(28),
|
|
85
|
+
})
|
|
86
|
+
.strict())
|
|
87
|
+
.min(1)
|
|
88
|
+
.max(10_000),
|
|
89
|
+
})
|
|
90
|
+
.strict();
|
|
91
|
+
export const inventoryTools = [
|
|
92
|
+
{
|
|
93
|
+
name: 'walmart_get_inventory',
|
|
94
|
+
description: 'Get inventory for a single SKU at the default fulfillment center. Returns quantity and fulfillment type.',
|
|
95
|
+
inputSchema: {
|
|
96
|
+
sku: z.string().describe('Seller-defined SKU'),
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'walmart_update_inventory',
|
|
101
|
+
description: 'Update inventory quantity for a single SKU at the default fulfillment center.',
|
|
102
|
+
inputSchema: {
|
|
103
|
+
sku: z.string().describe('Seller-defined SKU'),
|
|
104
|
+
quantity: z.number().int().min(0).describe('Available quantity'),
|
|
105
|
+
shipNode: z.string().optional().describe('Ship node / fulfillment center ID (optional)'),
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'walmart_get_inventory_all_nodes',
|
|
110
|
+
description: 'Get inventory for a SKU across all fulfillment centers (ship nodes).',
|
|
111
|
+
inputSchema: {
|
|
112
|
+
sku: z.string().describe('Seller-defined SKU'),
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'walmart_update_inventory_multi_node',
|
|
117
|
+
description: 'Update inventory for a SKU at specific fulfillment centers (multi-node). Pass shipNodes array, ' +
|
|
118
|
+
'each entry { shipNode, availToSellQty: { unit, amount }, processMode? }. Walmart enforces ' +
|
|
119
|
+
'integer non-negative quantities; bad payloads now caught by zod before the API call.',
|
|
120
|
+
inputSchema: {
|
|
121
|
+
sku: z.string().describe('Seller-defined SKU'),
|
|
122
|
+
inventoryData: MultiNodeInventoryBodySchema,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'walmart_get_all_inventory',
|
|
127
|
+
description: 'Get inventory for all SKUs with pagination. Can filter by ship node.',
|
|
128
|
+
inputSchema: {
|
|
129
|
+
limit: z.number().int().min(1).max(50).optional().describe('Items per page (default 50)'),
|
|
130
|
+
offset: z.string().optional().describe('Pagination offset'),
|
|
131
|
+
shipNode: z.string().optional().describe('Filter by fulfillment center ID'),
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'walmart_submit_inventory_feed',
|
|
136
|
+
description: 'Submit a bulk inventory update feed for a single fulfillment center (feedType=inventory). ' +
|
|
137
|
+
'Payload: { InventoryHeader: { version }, Inventory: [{ sku, quantity: { unit, amount }, ' +
|
|
138
|
+
'fulfillmentLagTime? }] }. Quantities must be integer non-negative; lag time max 28 days. ' +
|
|
139
|
+
'Returns a feedId; poll walmart_get_feed_status until PROCESSED.',
|
|
140
|
+
inputSchema: {
|
|
141
|
+
feedData: SingleNodeInventoryFeedSchema,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'walmart_submit_multi_node_inventory_feed',
|
|
146
|
+
description: 'Submit a bulk multi-node inventory feed (feedType=MP_INVENTORY, JSON only). ' +
|
|
147
|
+
'Payload: { InventoryFeed: { InventoryHeader: { version }, inventory: [{ sku, ' +
|
|
148
|
+
'shipNodes: [{ shipNode, availToSellQty: { unit, amount }, processMode? }] }] } }. ' +
|
|
149
|
+
'Returns a feedId.',
|
|
150
|
+
inputSchema: {
|
|
151
|
+
feedData: MultiNodeInventoryFeedSchema,
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'walmart_get_lag_time',
|
|
156
|
+
description: 'Get the fulfillment lag time for a SKU (time between order placement and shipment).',
|
|
157
|
+
inputSchema: {
|
|
158
|
+
sku: z.string().describe('Seller-defined SKU'),
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'walmart_update_lag_time',
|
|
163
|
+
description: 'Update the fulfillment lag time for a SKU (0-28 days).',
|
|
164
|
+
inputSchema: {
|
|
165
|
+
sku: z.string().describe('Seller-defined SKU'),
|
|
166
|
+
fulfillmentLagTime: z
|
|
167
|
+
.number()
|
|
168
|
+
.int()
|
|
169
|
+
.min(0)
|
|
170
|
+
.max(28)
|
|
171
|
+
.describe('Lag time in days (0-28; Walmart caps at 28)'),
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'walmart_submit_lagtime_feed',
|
|
176
|
+
description: 'Submit a bulk lag time update feed (feedType=LAGTIME). Payload: { LagTimeHeader, ' +
|
|
177
|
+
'lagTime: [{ sku, fulfillmentLagTime: 0-28 }] }. Returns a feedId.',
|
|
178
|
+
inputSchema: {
|
|
179
|
+
feedData: LagTimeFeedSchema,
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
];
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const itemTools: ({
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: {
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
8
|
+
lifecycleStatus: z.ZodOptional<z.ZodEnum<["ACTIVE", "RETIRED"]>>;
|
|
9
|
+
publishedStatus: z.ZodOptional<z.ZodEnum<["PUBLISHED", "UNPUBLISHED", "STAGE"]>>;
|
|
10
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
11
|
+
skus?: undefined;
|
|
12
|
+
status?: undefined;
|
|
13
|
+
productType?: undefined;
|
|
14
|
+
version?: undefined;
|
|
15
|
+
feedData?: undefined;
|
|
16
|
+
requestData?: undefined;
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
inputSchema: {
|
|
22
|
+
sku: z.ZodString;
|
|
23
|
+
limit?: undefined;
|
|
24
|
+
offset?: undefined;
|
|
25
|
+
lifecycleStatus?: undefined;
|
|
26
|
+
publishedStatus?: undefined;
|
|
27
|
+
skus?: undefined;
|
|
28
|
+
status?: undefined;
|
|
29
|
+
productType?: undefined;
|
|
30
|
+
version?: undefined;
|
|
31
|
+
feedData?: undefined;
|
|
32
|
+
requestData?: undefined;
|
|
33
|
+
};
|
|
34
|
+
} | {
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
inputSchema: {
|
|
38
|
+
skus: z.ZodArray<z.ZodObject<{
|
|
39
|
+
sku: z.ZodString;
|
|
40
|
+
}, "strict", z.ZodTypeAny, {
|
|
41
|
+
sku: string;
|
|
42
|
+
}, {
|
|
43
|
+
sku: string;
|
|
44
|
+
}>, "many">;
|
|
45
|
+
limit?: undefined;
|
|
46
|
+
offset?: undefined;
|
|
47
|
+
lifecycleStatus?: undefined;
|
|
48
|
+
publishedStatus?: undefined;
|
|
49
|
+
sku?: undefined;
|
|
50
|
+
status?: undefined;
|
|
51
|
+
productType?: undefined;
|
|
52
|
+
version?: undefined;
|
|
53
|
+
feedData?: undefined;
|
|
54
|
+
requestData?: undefined;
|
|
55
|
+
};
|
|
56
|
+
} | {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
inputSchema: {
|
|
60
|
+
status: z.ZodOptional<z.ZodEnum<["PUBLISHED", "UNPUBLISHED", "STAGE"]>>;
|
|
61
|
+
lifecycleStatus: z.ZodOptional<z.ZodEnum<["ACTIVE", "RETIRED"]>>;
|
|
62
|
+
publishedStatus: z.ZodOptional<z.ZodEnum<["PUBLISHED", "UNPUBLISHED", "STAGE"]>>;
|
|
63
|
+
limit?: undefined;
|
|
64
|
+
offset?: undefined;
|
|
65
|
+
sku?: undefined;
|
|
66
|
+
skus?: undefined;
|
|
67
|
+
productType?: undefined;
|
|
68
|
+
version?: undefined;
|
|
69
|
+
feedData?: undefined;
|
|
70
|
+
requestData?: undefined;
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
inputSchema: {
|
|
76
|
+
limit?: undefined;
|
|
77
|
+
offset?: undefined;
|
|
78
|
+
lifecycleStatus?: undefined;
|
|
79
|
+
publishedStatus?: undefined;
|
|
80
|
+
sku?: undefined;
|
|
81
|
+
skus?: undefined;
|
|
82
|
+
status?: undefined;
|
|
83
|
+
productType?: undefined;
|
|
84
|
+
version?: undefined;
|
|
85
|
+
feedData?: undefined;
|
|
86
|
+
requestData?: undefined;
|
|
87
|
+
};
|
|
88
|
+
} | {
|
|
89
|
+
name: string;
|
|
90
|
+
description: string;
|
|
91
|
+
inputSchema: {
|
|
92
|
+
productType: z.ZodString;
|
|
93
|
+
version: z.ZodOptional<z.ZodString>;
|
|
94
|
+
limit?: undefined;
|
|
95
|
+
offset?: undefined;
|
|
96
|
+
lifecycleStatus?: undefined;
|
|
97
|
+
publishedStatus?: undefined;
|
|
98
|
+
sku?: undefined;
|
|
99
|
+
skus?: undefined;
|
|
100
|
+
status?: undefined;
|
|
101
|
+
feedData?: undefined;
|
|
102
|
+
requestData?: undefined;
|
|
103
|
+
};
|
|
104
|
+
} | {
|
|
105
|
+
name: string;
|
|
106
|
+
description: string;
|
|
107
|
+
inputSchema: {
|
|
108
|
+
feedData: z.ZodObject<{
|
|
109
|
+
MPItemFeedHeader: z.ZodObject<{
|
|
110
|
+
version: z.ZodDefault<z.ZodString>;
|
|
111
|
+
sellingChannel: z.ZodDefault<z.ZodLiteral<"marketplace">>;
|
|
112
|
+
locale: z.ZodDefault<z.ZodString>;
|
|
113
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
115
|
+
version: z.ZodDefault<z.ZodString>;
|
|
116
|
+
sellingChannel: z.ZodDefault<z.ZodLiteral<"marketplace">>;
|
|
117
|
+
locale: z.ZodDefault<z.ZodString>;
|
|
118
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
120
|
+
version: z.ZodDefault<z.ZodString>;
|
|
121
|
+
sellingChannel: z.ZodDefault<z.ZodLiteral<"marketplace">>;
|
|
122
|
+
locale: z.ZodDefault<z.ZodString>;
|
|
123
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
125
|
+
MPItem: z.ZodArray<z.ZodObject<{
|
|
126
|
+
Item: z.ZodObject<{
|
|
127
|
+
sku: z.ZodString;
|
|
128
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
129
|
+
sku: z.ZodString;
|
|
130
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
131
|
+
sku: z.ZodString;
|
|
132
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
133
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
134
|
+
Item: z.ZodObject<{
|
|
135
|
+
sku: z.ZodString;
|
|
136
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
137
|
+
sku: z.ZodString;
|
|
138
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
139
|
+
sku: z.ZodString;
|
|
140
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
141
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
142
|
+
Item: z.ZodObject<{
|
|
143
|
+
sku: z.ZodString;
|
|
144
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
145
|
+
sku: z.ZodString;
|
|
146
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
147
|
+
sku: z.ZodString;
|
|
148
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
149
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
150
|
+
}, "strict", z.ZodTypeAny, {
|
|
151
|
+
MPItemFeedHeader: {
|
|
152
|
+
version: string;
|
|
153
|
+
sellingChannel: "marketplace";
|
|
154
|
+
locale: string;
|
|
155
|
+
requestId?: string | undefined;
|
|
156
|
+
} & {
|
|
157
|
+
[k: string]: unknown;
|
|
158
|
+
};
|
|
159
|
+
MPItem: z.objectOutputType<{
|
|
160
|
+
Item: z.ZodObject<{
|
|
161
|
+
sku: z.ZodString;
|
|
162
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
163
|
+
sku: z.ZodString;
|
|
164
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
165
|
+
sku: z.ZodString;
|
|
166
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
167
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
168
|
+
}, {
|
|
169
|
+
MPItemFeedHeader: {
|
|
170
|
+
version?: string | undefined;
|
|
171
|
+
sellingChannel?: "marketplace" | undefined;
|
|
172
|
+
locale?: string | undefined;
|
|
173
|
+
requestId?: string | undefined;
|
|
174
|
+
} & {
|
|
175
|
+
[k: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
MPItem: z.objectInputType<{
|
|
178
|
+
Item: z.ZodObject<{
|
|
179
|
+
sku: z.ZodString;
|
|
180
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
181
|
+
sku: z.ZodString;
|
|
182
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
183
|
+
sku: z.ZodString;
|
|
184
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
185
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
186
|
+
}>;
|
|
187
|
+
limit?: undefined;
|
|
188
|
+
offset?: undefined;
|
|
189
|
+
lifecycleStatus?: undefined;
|
|
190
|
+
publishedStatus?: undefined;
|
|
191
|
+
sku?: undefined;
|
|
192
|
+
skus?: undefined;
|
|
193
|
+
status?: undefined;
|
|
194
|
+
productType?: undefined;
|
|
195
|
+
version?: undefined;
|
|
196
|
+
requestData?: undefined;
|
|
197
|
+
};
|
|
198
|
+
} | {
|
|
199
|
+
name: string;
|
|
200
|
+
description: string;
|
|
201
|
+
inputSchema: {
|
|
202
|
+
feedData: z.ZodObject<{
|
|
203
|
+
WFSItemFeedHeader: z.ZodObject<{
|
|
204
|
+
version: z.ZodDefault<z.ZodString>;
|
|
205
|
+
feedDate: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
207
|
+
version: z.ZodDefault<z.ZodString>;
|
|
208
|
+
feedDate: z.ZodOptional<z.ZodString>;
|
|
209
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
210
|
+
version: z.ZodDefault<z.ZodString>;
|
|
211
|
+
feedDate: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
213
|
+
WFSItem: z.ZodArray<z.ZodObject<{
|
|
214
|
+
sku: z.ZodString;
|
|
215
|
+
wfsAttributes: z.ZodOptional<z.ZodObject<{
|
|
216
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
218
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
220
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
222
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
223
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
225
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
227
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
229
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
230
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
232
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
236
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
237
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
238
|
+
sku: z.ZodString;
|
|
239
|
+
wfsAttributes: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
242
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
246
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
247
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
249
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
250
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
253
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
254
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
256
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
260
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
261
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
262
|
+
sku: z.ZodString;
|
|
263
|
+
wfsAttributes: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
266
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
270
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
271
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
273
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
275
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
276
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
277
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
278
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
280
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
284
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
285
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
286
|
+
}, "strict", z.ZodTypeAny, {
|
|
287
|
+
WFSItemFeedHeader: {
|
|
288
|
+
version: string;
|
|
289
|
+
feedDate?: string | undefined;
|
|
290
|
+
} & {
|
|
291
|
+
[k: string]: unknown;
|
|
292
|
+
};
|
|
293
|
+
WFSItem: z.objectOutputType<{
|
|
294
|
+
sku: z.ZodString;
|
|
295
|
+
wfsAttributes: z.ZodOptional<z.ZodObject<{
|
|
296
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
298
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
302
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
303
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
305
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
309
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
310
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
312
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
314
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
316
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
317
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
318
|
+
}, {
|
|
319
|
+
WFSItemFeedHeader: {
|
|
320
|
+
version?: string | undefined;
|
|
321
|
+
feedDate?: string | undefined;
|
|
322
|
+
} & {
|
|
323
|
+
[k: string]: unknown;
|
|
324
|
+
};
|
|
325
|
+
WFSItem: z.objectInputType<{
|
|
326
|
+
sku: z.ZodString;
|
|
327
|
+
wfsAttributes: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
330
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
334
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
335
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
337
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
340
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
341
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
342
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
weightUnit: z.ZodOptional<z.ZodEnum<["LB", "OZ", "KG", "G"]>>;
|
|
344
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
346
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
347
|
+
dimensionUnit: z.ZodOptional<z.ZodEnum<["IN", "CM"]>>;
|
|
348
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
349
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
350
|
+
}>;
|
|
351
|
+
limit?: undefined;
|
|
352
|
+
offset?: undefined;
|
|
353
|
+
lifecycleStatus?: undefined;
|
|
354
|
+
publishedStatus?: undefined;
|
|
355
|
+
sku?: undefined;
|
|
356
|
+
skus?: undefined;
|
|
357
|
+
status?: undefined;
|
|
358
|
+
productType?: undefined;
|
|
359
|
+
version?: undefined;
|
|
360
|
+
requestData?: undefined;
|
|
361
|
+
};
|
|
362
|
+
} | {
|
|
363
|
+
name: string;
|
|
364
|
+
description: string;
|
|
365
|
+
inputSchema: {
|
|
366
|
+
feedData: z.ZodObject<{
|
|
367
|
+
OmniWFSFeedHeader: z.ZodObject<{
|
|
368
|
+
version: z.ZodDefault<z.ZodString>;
|
|
369
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
370
|
+
version: z.ZodDefault<z.ZodString>;
|
|
371
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
372
|
+
version: z.ZodDefault<z.ZodString>;
|
|
373
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
374
|
+
OmniWFSItem: z.ZodArray<z.ZodObject<{
|
|
375
|
+
sku: z.ZodString;
|
|
376
|
+
convertToWFS: z.ZodDefault<z.ZodBoolean>;
|
|
377
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
378
|
+
sku: z.ZodString;
|
|
379
|
+
convertToWFS: z.ZodDefault<z.ZodBoolean>;
|
|
380
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
381
|
+
sku: z.ZodString;
|
|
382
|
+
convertToWFS: z.ZodDefault<z.ZodBoolean>;
|
|
383
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
384
|
+
}, "strict", z.ZodTypeAny, {
|
|
385
|
+
OmniWFSFeedHeader: {
|
|
386
|
+
version: string;
|
|
387
|
+
} & {
|
|
388
|
+
[k: string]: unknown;
|
|
389
|
+
};
|
|
390
|
+
OmniWFSItem: z.objectOutputType<{
|
|
391
|
+
sku: z.ZodString;
|
|
392
|
+
convertToWFS: z.ZodDefault<z.ZodBoolean>;
|
|
393
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
394
|
+
}, {
|
|
395
|
+
OmniWFSFeedHeader: {
|
|
396
|
+
version?: string | undefined;
|
|
397
|
+
} & {
|
|
398
|
+
[k: string]: unknown;
|
|
399
|
+
};
|
|
400
|
+
OmniWFSItem: z.objectInputType<{
|
|
401
|
+
sku: z.ZodString;
|
|
402
|
+
convertToWFS: z.ZodDefault<z.ZodBoolean>;
|
|
403
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
404
|
+
}>;
|
|
405
|
+
limit?: undefined;
|
|
406
|
+
offset?: undefined;
|
|
407
|
+
lifecycleStatus?: undefined;
|
|
408
|
+
publishedStatus?: undefined;
|
|
409
|
+
sku?: undefined;
|
|
410
|
+
skus?: undefined;
|
|
411
|
+
status?: undefined;
|
|
412
|
+
productType?: undefined;
|
|
413
|
+
version?: undefined;
|
|
414
|
+
requestData?: undefined;
|
|
415
|
+
};
|
|
416
|
+
} | {
|
|
417
|
+
name: string;
|
|
418
|
+
description: string;
|
|
419
|
+
inputSchema: {
|
|
420
|
+
requestData: z.ZodOptional<z.ZodObject<{
|
|
421
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
422
|
+
gtin: z.ZodOptional<z.ZodString>;
|
|
423
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
425
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
426
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
427
|
+
gtin: z.ZodOptional<z.ZodString>;
|
|
428
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
429
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
430
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
431
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
432
|
+
gtin: z.ZodOptional<z.ZodString>;
|
|
433
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
436
|
+
limit?: undefined;
|
|
437
|
+
offset?: undefined;
|
|
438
|
+
lifecycleStatus?: undefined;
|
|
439
|
+
publishedStatus?: undefined;
|
|
440
|
+
sku?: undefined;
|
|
441
|
+
skus?: undefined;
|
|
442
|
+
status?: undefined;
|
|
443
|
+
productType?: undefined;
|
|
444
|
+
version?: undefined;
|
|
445
|
+
feedData?: undefined;
|
|
446
|
+
};
|
|
447
|
+
})[];
|