erpnext-queue-client 1.0.6 → 1.1.0
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/client.js +41 -16
- package/dist/erpnext/decryptFromErpNext.server.d.ts +1 -1
- package/dist/erpnext/doctypeResourceRequest.d.ts +38 -0
- package/dist/erpnext/doctypeResourceRequest.js +59 -0
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +8 -0
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +39 -0
- package/dist/erpnext/doctypes/address.d.ts +263 -0
- package/dist/erpnext/doctypes/address.js +46 -0
- package/dist/erpnext/doctypes/contact.d.ts +383 -0
- package/dist/erpnext/doctypes/contact.js +46 -0
- package/dist/erpnext/doctypes/deliveryNote.d.ts +985 -0
- package/dist/erpnext/doctypes/deliveryNote.js +38 -0
- package/dist/erpnext/doctypes/item.d.ts +572 -0
- package/dist/erpnext/doctypes/item.js +95 -0
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +743 -0
- package/dist/erpnext/doctypes/purchaseReceipt.js +50 -0
- package/dist/erpnext/doctypes/shipment.d.ts +752 -0
- package/dist/erpnext/doctypes/shipment.js +51 -0
- package/dist/erpnext/erpnextRequestWrapper.js +15 -13
- package/dist/erpnext/fileRequests.d.ts +10 -0
- package/dist/erpnext/fileRequests.js +42 -0
- package/dist/erpnext/methodRequest.d.ts +15 -0
- package/dist/erpnext/methodRequest.js +32 -0
- package/dist/erpnext/model/Address.d.ts +200 -198
- package/dist/erpnext/model/Address.js +3 -2
- package/dist/erpnext/model/Contact.d.ts +343 -344
- package/dist/erpnext/model/Contact.js +2 -2
- package/dist/erpnext/model/Country.d.ts +83 -31
- package/dist/erpnext/model/Country.js +2 -6
- package/dist/erpnext/model/Customer.d.ts +64 -65
- package/dist/erpnext/model/Customer.js +2 -2
- package/dist/erpnext/model/DeliveryNote.d.ts +1048 -1048
- package/dist/erpnext/model/DispatchRun.d.ts +399 -399
- package/dist/erpnext/model/DispatcherPreset.d.ts +94 -94
- package/dist/erpnext/model/ERPNextRequest.d.ts +47 -30
- package/dist/erpnext/model/ERPNextResponse.d.ts +4 -4
- package/dist/erpnext/model/File.d.ts +88 -88
- package/dist/erpnext/model/Fulfiller.d.ts +97 -97
- package/dist/erpnext/model/FulfillerSettings.d.ts +66 -66
- package/dist/erpnext/model/FulfillmentStation.d.ts +2 -2
- package/dist/erpnext/model/Item.d.ts +819 -819
- package/dist/erpnext/model/Item.js +2 -2
- package/dist/erpnext/model/PaymentEntry.d.ts +197 -0
- package/dist/erpnext/model/PaymentEntry.js +63 -0
- package/dist/erpnext/model/ProjectedQuantityReport.d.ts +178 -178
- package/dist/erpnext/model/PurchaseOrder.d.ts +528 -528
- package/dist/erpnext/model/Receipt.d.ts +448 -448
- package/dist/erpnext/model/Receipt.js +2 -2
- package/dist/erpnext/model/ReceiptDraft.d.ts +392 -392
- package/dist/erpnext/model/Shipment.d.ts +709 -709
- package/dist/erpnext/model/ShippingProvider.d.ts +198 -198
- package/dist/erpnext/model/StockEntry.d.ts +248 -0
- package/dist/erpnext/model/StockEntry.js +76 -0
- package/dist/erpnext/model/StockReconciliation.d.ts +187 -0
- package/dist/erpnext/model/StockReconciliation.js +44 -0
- package/dist/erpnext/model/Supplier.d.ts +105 -0
- package/dist/erpnext/model/Supplier.js +39 -0
- package/dist/erpnext/model/Waitlist.d.ts +32 -0
- package/dist/erpnext/model/Waitlist.js +19 -0
- package/dist/erpnext/model/WarehouseCategory.d.ts +6 -6
- package/dist/erpnext/resourceRequest.d.ts +39 -10
- package/dist/erpnext/resourceRequest.js +115 -14
- package/dist/index.d.ts +39 -4
- package/dist/index.js +43 -8
- package/dist/utils/fernet.server.d.ts +11 -11
- package/dist/utils/fernet.server.js +0 -1
- package/dist/utils/request.js +2 -2
- package/dist/utils/zodUtils.d.ts +2 -1
- package/dist/utils/zodUtils.js +14 -1
- package/package.json +4 -1
- package/dist/erpnext/doctypes/country.d.ts +0 -9
- package/dist/erpnext/doctypes/country.js +0 -28
- package/dist/erpnext/erpnextRequests.d.ts +0 -1
- package/dist/erpnext/erpnextRequests.js +0 -15
- package/dist/erpnext.d.ts +0 -20
- package/dist/erpnext.js +0 -45
|
@@ -13,31 +13,31 @@ declare const DispatcherPresetFulfillerPriority: z.ZodObject<{
|
|
|
13
13
|
fulfiller: z.ZodString;
|
|
14
14
|
doctype: z.ZodString;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
name
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
fulfiller
|
|
16
|
+
name: string;
|
|
17
|
+
owner: string;
|
|
18
|
+
creation: Date;
|
|
19
|
+
modified: Date;
|
|
20
|
+
modified_by: string;
|
|
21
|
+
parent: string;
|
|
22
|
+
parentfield: string;
|
|
23
|
+
parenttype: string;
|
|
24
|
+
idx: number;
|
|
25
|
+
docstatus: number;
|
|
26
|
+
doctype: string;
|
|
27
|
+
fulfiller: string;
|
|
28
28
|
}, {
|
|
29
|
-
name
|
|
29
|
+
name: string;
|
|
30
|
+
owner: string;
|
|
31
|
+
modified_by: string;
|
|
32
|
+
parent: string;
|
|
33
|
+
parentfield: string;
|
|
34
|
+
parenttype: string;
|
|
35
|
+
idx: number;
|
|
36
|
+
docstatus: number;
|
|
37
|
+
doctype: string;
|
|
38
|
+
fulfiller: string;
|
|
30
39
|
creation?: unknown;
|
|
31
40
|
modified?: unknown;
|
|
32
|
-
modified_by?: string;
|
|
33
|
-
idx?: number;
|
|
34
|
-
docstatus?: number;
|
|
35
|
-
doctype?: string;
|
|
36
|
-
owner?: string;
|
|
37
|
-
parent?: string;
|
|
38
|
-
parentfield?: string;
|
|
39
|
-
parenttype?: string;
|
|
40
|
-
fulfiller?: string;
|
|
41
41
|
}>;
|
|
42
42
|
export type DispatcherPresetFulfillerPriorityType = z.infer<typeof DispatcherPresetFulfillerPriority>;
|
|
43
43
|
export declare const ERPNextDispatcherPreset: z.ZodObject<{
|
|
@@ -67,86 +67,86 @@ export declare const ERPNextDispatcherPreset: z.ZodObject<{
|
|
|
67
67
|
fulfiller: z.ZodString;
|
|
68
68
|
doctype: z.ZodString;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
name
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
fulfiller
|
|
70
|
+
name: string;
|
|
71
|
+
owner: string;
|
|
72
|
+
creation: Date;
|
|
73
|
+
modified: Date;
|
|
74
|
+
modified_by: string;
|
|
75
|
+
parent: string;
|
|
76
|
+
parentfield: string;
|
|
77
|
+
parenttype: string;
|
|
78
|
+
idx: number;
|
|
79
|
+
docstatus: number;
|
|
80
|
+
doctype: string;
|
|
81
|
+
fulfiller: string;
|
|
82
82
|
}, {
|
|
83
|
-
name
|
|
83
|
+
name: string;
|
|
84
|
+
owner: string;
|
|
85
|
+
modified_by: string;
|
|
86
|
+
parent: string;
|
|
87
|
+
parentfield: string;
|
|
88
|
+
parenttype: string;
|
|
89
|
+
idx: number;
|
|
90
|
+
docstatus: number;
|
|
91
|
+
doctype: string;
|
|
92
|
+
fulfiller: string;
|
|
84
93
|
creation?: unknown;
|
|
85
94
|
modified?: unknown;
|
|
86
|
-
modified_by?: string;
|
|
87
|
-
idx?: number;
|
|
88
|
-
docstatus?: number;
|
|
89
|
-
doctype?: string;
|
|
90
|
-
owner?: string;
|
|
91
|
-
parent?: string;
|
|
92
|
-
parentfield?: string;
|
|
93
|
-
parenttype?: string;
|
|
94
|
-
fulfiller?: string;
|
|
95
95
|
}>, "many">;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
name
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
title
|
|
106
|
-
fulfiller
|
|
107
|
-
is_active
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
creation
|
|
112
|
-
modified
|
|
113
|
-
modified_by
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
fulfiller?: string;
|
|
97
|
+
name: string;
|
|
98
|
+
owner: string;
|
|
99
|
+
creation: Date;
|
|
100
|
+
modified: Date;
|
|
101
|
+
modified_by: string;
|
|
102
|
+
idx: number;
|
|
103
|
+
docstatus: number;
|
|
104
|
+
doctype: string;
|
|
105
|
+
title: string;
|
|
106
|
+
fulfiller: string;
|
|
107
|
+
is_active: boolean;
|
|
108
|
+
fulfiller_priority: {
|
|
109
|
+
name: string;
|
|
110
|
+
owner: string;
|
|
111
|
+
creation: Date;
|
|
112
|
+
modified: Date;
|
|
113
|
+
modified_by: string;
|
|
114
|
+
parent: string;
|
|
115
|
+
parentfield: string;
|
|
116
|
+
parenttype: string;
|
|
117
|
+
idx: number;
|
|
118
|
+
docstatus: number;
|
|
119
|
+
doctype: string;
|
|
120
|
+
fulfiller: string;
|
|
122
121
|
}[];
|
|
122
|
+
is_simulation_mode?: number | null | undefined;
|
|
123
123
|
}, {
|
|
124
|
-
name
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
124
|
+
name: string;
|
|
125
|
+
owner: string;
|
|
126
|
+
modified_by: string;
|
|
127
|
+
idx: number;
|
|
128
|
+
docstatus: number;
|
|
129
|
+
doctype: string;
|
|
130
|
+
title: string;
|
|
131
|
+
fulfiller: string;
|
|
132
|
+
is_active: number;
|
|
133
|
+
fulfiller_priority: {
|
|
134
|
+
name: string;
|
|
135
|
+
owner: string;
|
|
136
|
+
modified_by: string;
|
|
137
|
+
parent: string;
|
|
138
|
+
parentfield: string;
|
|
139
|
+
parenttype: string;
|
|
140
|
+
idx: number;
|
|
141
|
+
docstatus: number;
|
|
142
|
+
doctype: string;
|
|
143
|
+
fulfiller: string;
|
|
138
144
|
creation?: unknown;
|
|
139
145
|
modified?: unknown;
|
|
140
|
-
modified_by?: string;
|
|
141
|
-
idx?: number;
|
|
142
|
-
docstatus?: number;
|
|
143
|
-
doctype?: string;
|
|
144
|
-
owner?: string;
|
|
145
|
-
parent?: string;
|
|
146
|
-
parentfield?: string;
|
|
147
|
-
parenttype?: string;
|
|
148
|
-
fulfiller?: string;
|
|
149
146
|
}[];
|
|
147
|
+
creation?: unknown;
|
|
148
|
+
modified?: unknown;
|
|
149
|
+
is_simulation_mode?: number | null | undefined;
|
|
150
150
|
}>;
|
|
151
151
|
export type DispatcherPresetType = z.infer<typeof ERPNextDispatcherPreset>;
|
|
152
152
|
export declare const ShipstormRunOptions: z.ZodObject<{
|
|
@@ -159,23 +159,23 @@ export declare const ShipstormRunOptions: z.ZodObject<{
|
|
|
159
159
|
strategy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"multiOrder">, z.ZodLiteral<"singleOrder">]>>;
|
|
160
160
|
orderNumber: z.ZodOptional<z.ZodString>;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
strategy?: "multiOrder" | "singleOrder";
|
|
169
|
-
orderNumber?: string;
|
|
162
|
+
dispatcherPresetId: string;
|
|
163
|
+
isAutoBundling: boolean;
|
|
164
|
+
limit?: number | undefined;
|
|
165
|
+
warehouseCategories?: string[] | undefined;
|
|
166
|
+
fulfillmentStation?: string | undefined;
|
|
167
|
+
skus?: string[] | undefined;
|
|
168
|
+
strategy?: "multiOrder" | "singleOrder" | undefined;
|
|
169
|
+
orderNumber?: string | undefined;
|
|
170
170
|
}, {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
strategy?: "multiOrder" | "singleOrder";
|
|
178
|
-
orderNumber?: string;
|
|
171
|
+
dispatcherPresetId: string;
|
|
172
|
+
isAutoBundling: boolean;
|
|
173
|
+
limit?: number | undefined;
|
|
174
|
+
warehouseCategories?: string[] | undefined;
|
|
175
|
+
fulfillmentStation?: string | undefined;
|
|
176
|
+
skus?: string[] | undefined;
|
|
177
|
+
strategy?: "multiOrder" | "singleOrder" | undefined;
|
|
178
|
+
orderNumber?: string | undefined;
|
|
179
179
|
}>;
|
|
180
180
|
export type ShipstormRunOptionsType = z.infer<typeof ShipstormRunOptions>;
|
|
181
181
|
export declare const Trigger: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"UI">, z.ZodLiteral<"API">]>, z.ZodLiteral<"API-TEST">]>, z.ZodLiteral<"REAL-DATA-TEST">]>, z.ZodLiteral<"SCHEDULE">]>;
|
|
@@ -207,31 +207,31 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
207
207
|
fulfiller: z.ZodString;
|
|
208
208
|
doctype: z.ZodString;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
name
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
fulfiller
|
|
210
|
+
name: string;
|
|
211
|
+
owner: string;
|
|
212
|
+
creation: Date;
|
|
213
|
+
modified: Date;
|
|
214
|
+
modified_by: string;
|
|
215
|
+
parent: string;
|
|
216
|
+
parentfield: string;
|
|
217
|
+
parenttype: string;
|
|
218
|
+
idx: number;
|
|
219
|
+
docstatus: number;
|
|
220
|
+
doctype: string;
|
|
221
|
+
fulfiller: string;
|
|
222
222
|
}, {
|
|
223
|
-
name
|
|
223
|
+
name: string;
|
|
224
|
+
owner: string;
|
|
225
|
+
modified_by: string;
|
|
226
|
+
parent: string;
|
|
227
|
+
parentfield: string;
|
|
228
|
+
parenttype: string;
|
|
229
|
+
idx: number;
|
|
230
|
+
docstatus: number;
|
|
231
|
+
doctype: string;
|
|
232
|
+
fulfiller: string;
|
|
224
233
|
creation?: unknown;
|
|
225
234
|
modified?: unknown;
|
|
226
|
-
modified_by?: string;
|
|
227
|
-
idx?: number;
|
|
228
|
-
docstatus?: number;
|
|
229
|
-
doctype?: string;
|
|
230
|
-
owner?: string;
|
|
231
|
-
parent?: string;
|
|
232
|
-
parentfield?: string;
|
|
233
|
-
parenttype?: string;
|
|
234
|
-
fulfiller?: string;
|
|
235
235
|
}>, "many">;
|
|
236
236
|
}, "is_active">, {
|
|
237
237
|
dispatch_run_id: z.ZodString;
|
|
@@ -246,79 +246,79 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
246
246
|
order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
247
247
|
status: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>;
|
|
248
248
|
}>, "strip", z.ZodTypeAny, {
|
|
249
|
-
status
|
|
250
|
-
name
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
parentfield?: string;
|
|
274
|
-
parenttype?: string;
|
|
275
|
-
fulfiller?: string;
|
|
249
|
+
status: "Processing" | "Failed" | "Completed";
|
|
250
|
+
name: string;
|
|
251
|
+
owner: string;
|
|
252
|
+
creation: Date;
|
|
253
|
+
modified: Date;
|
|
254
|
+
modified_by: string;
|
|
255
|
+
idx: number;
|
|
256
|
+
docstatus: number;
|
|
257
|
+
doctype: string;
|
|
258
|
+
title: string;
|
|
259
|
+
fulfiller: string;
|
|
260
|
+
fulfiller_priority: {
|
|
261
|
+
name: string;
|
|
262
|
+
owner: string;
|
|
263
|
+
creation: Date;
|
|
264
|
+
modified: Date;
|
|
265
|
+
modified_by: string;
|
|
266
|
+
parent: string;
|
|
267
|
+
parentfield: string;
|
|
268
|
+
parenttype: string;
|
|
269
|
+
idx: number;
|
|
270
|
+
docstatus: number;
|
|
271
|
+
doctype: string;
|
|
272
|
+
fulfiller: string;
|
|
276
273
|
}[];
|
|
277
|
-
dispatch_run_id
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
274
|
+
dispatch_run_id: string;
|
|
275
|
+
is_auto_bundling: number;
|
|
276
|
+
dispatcher_preset: string;
|
|
277
|
+
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
278
|
+
limit?: number | undefined;
|
|
279
|
+
items?: string[] | undefined;
|
|
280
|
+
is_simulation_mode?: number | null | undefined;
|
|
281
|
+
warehouse_categories?: string[] | null | undefined;
|
|
282
|
+
fulfillment_station?: string | null | undefined;
|
|
283
|
+
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
284
|
+
order_number?: string | null | undefined;
|
|
285
285
|
}, {
|
|
286
|
-
status
|
|
287
|
-
name
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
286
|
+
status: "Processing" | "Failed" | "Completed";
|
|
287
|
+
name: string;
|
|
288
|
+
owner: string;
|
|
289
|
+
modified_by: string;
|
|
290
|
+
idx: number;
|
|
291
|
+
docstatus: number;
|
|
292
|
+
doctype: string;
|
|
293
|
+
title: string;
|
|
294
|
+
fulfiller: string;
|
|
295
|
+
fulfiller_priority: {
|
|
296
|
+
name: string;
|
|
297
|
+
owner: string;
|
|
298
|
+
modified_by: string;
|
|
299
|
+
parent: string;
|
|
300
|
+
parentfield: string;
|
|
301
|
+
parenttype: string;
|
|
302
|
+
idx: number;
|
|
303
|
+
docstatus: number;
|
|
304
|
+
doctype: string;
|
|
305
|
+
fulfiller: string;
|
|
302
306
|
creation?: unknown;
|
|
303
307
|
modified?: unknown;
|
|
304
|
-
modified_by?: string;
|
|
305
|
-
idx?: number;
|
|
306
|
-
docstatus?: number;
|
|
307
|
-
doctype?: string;
|
|
308
|
-
owner?: string;
|
|
309
|
-
parent?: string;
|
|
310
|
-
parentfield?: string;
|
|
311
|
-
parenttype?: string;
|
|
312
|
-
fulfiller?: string;
|
|
313
308
|
}[];
|
|
314
|
-
dispatch_run_id
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
309
|
+
dispatch_run_id: string;
|
|
310
|
+
is_auto_bundling: number;
|
|
311
|
+
dispatcher_preset: string;
|
|
312
|
+
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
313
|
+
limit?: number | undefined;
|
|
314
|
+
creation?: unknown;
|
|
315
|
+
modified?: unknown;
|
|
316
|
+
items?: string[] | undefined;
|
|
317
|
+
is_simulation_mode?: number | null | undefined;
|
|
318
|
+
warehouse_categories?: string[] | null | undefined;
|
|
319
|
+
fulfillment_station?: string | null | undefined;
|
|
320
|
+
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
321
|
+
order_number?: string | null | undefined;
|
|
322
322
|
}>;
|
|
323
323
|
export type ERPNextShipstormRunType = z.infer<typeof ERPNextShipstormRun>;
|
|
324
324
|
export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<Omit<{
|
|
@@ -348,31 +348,31 @@ export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.o
|
|
|
348
348
|
fulfiller: z.ZodString;
|
|
349
349
|
doctype: z.ZodString;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
name
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
fulfiller
|
|
351
|
+
name: string;
|
|
352
|
+
owner: string;
|
|
353
|
+
creation: Date;
|
|
354
|
+
modified: Date;
|
|
355
|
+
modified_by: string;
|
|
356
|
+
parent: string;
|
|
357
|
+
parentfield: string;
|
|
358
|
+
parenttype: string;
|
|
359
|
+
idx: number;
|
|
360
|
+
docstatus: number;
|
|
361
|
+
doctype: string;
|
|
362
|
+
fulfiller: string;
|
|
363
363
|
}, {
|
|
364
|
-
name
|
|
364
|
+
name: string;
|
|
365
|
+
owner: string;
|
|
366
|
+
modified_by: string;
|
|
367
|
+
parent: string;
|
|
368
|
+
parentfield: string;
|
|
369
|
+
parenttype: string;
|
|
370
|
+
idx: number;
|
|
371
|
+
docstatus: number;
|
|
372
|
+
doctype: string;
|
|
373
|
+
fulfiller: string;
|
|
365
374
|
creation?: unknown;
|
|
366
375
|
modified?: unknown;
|
|
367
|
-
modified_by?: string;
|
|
368
|
-
idx?: number;
|
|
369
|
-
docstatus?: number;
|
|
370
|
-
doctype?: string;
|
|
371
|
-
owner?: string;
|
|
372
|
-
parent?: string;
|
|
373
|
-
parentfield?: string;
|
|
374
|
-
parenttype?: string;
|
|
375
|
-
fulfiller?: string;
|
|
376
376
|
}>, "many">;
|
|
377
377
|
}, "is_active">, {
|
|
378
378
|
dispatch_run_id: z.ZodString;
|
|
@@ -386,50 +386,50 @@ export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.o
|
|
|
386
386
|
trigger: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"UI">, z.ZodLiteral<"API">]>, z.ZodLiteral<"API-TEST">]>, z.ZodLiteral<"REAL-DATA-TEST">]>, z.ZodLiteral<"SCHEDULE">]>;
|
|
387
387
|
order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
388
388
|
status: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>;
|
|
389
|
-
}>, "name" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype"
|
|
389
|
+
}>, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype">, {
|
|
390
390
|
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
391
391
|
fulfiller: z.ZodString;
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
393
|
-
fulfiller
|
|
393
|
+
fulfiller: string;
|
|
394
394
|
}, {
|
|
395
|
-
fulfiller
|
|
395
|
+
fulfiller: string;
|
|
396
396
|
}>, "many">;
|
|
397
397
|
}>, "strip", z.ZodTypeAny, {
|
|
398
|
-
status
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
is_simulation_mode?: number;
|
|
404
|
-
fulfiller_priority?: {
|
|
405
|
-
fulfiller?: string;
|
|
398
|
+
status: "Processing" | "Failed" | "Completed";
|
|
399
|
+
title: string;
|
|
400
|
+
fulfiller: string;
|
|
401
|
+
fulfiller_priority: {
|
|
402
|
+
fulfiller: string;
|
|
406
403
|
}[];
|
|
407
|
-
dispatch_run_id
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
404
|
+
dispatch_run_id: string;
|
|
405
|
+
is_auto_bundling: number;
|
|
406
|
+
dispatcher_preset: string;
|
|
407
|
+
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
408
|
+
limit?: number | undefined;
|
|
409
|
+
items?: string[] | undefined;
|
|
410
|
+
is_simulation_mode?: number | null | undefined;
|
|
411
|
+
warehouse_categories?: string[] | null | undefined;
|
|
412
|
+
fulfillment_station?: string | null | undefined;
|
|
413
|
+
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
414
|
+
order_number?: string | null | undefined;
|
|
415
415
|
}, {
|
|
416
|
-
status
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
is_simulation_mode?: number;
|
|
422
|
-
fulfiller_priority?: {
|
|
423
|
-
fulfiller?: string;
|
|
416
|
+
status: "Processing" | "Failed" | "Completed";
|
|
417
|
+
title: string;
|
|
418
|
+
fulfiller: string;
|
|
419
|
+
fulfiller_priority: {
|
|
420
|
+
fulfiller: string;
|
|
424
421
|
}[];
|
|
425
|
-
dispatch_run_id
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
422
|
+
dispatch_run_id: string;
|
|
423
|
+
is_auto_bundling: number;
|
|
424
|
+
dispatcher_preset: string;
|
|
425
|
+
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
426
|
+
limit?: number | undefined;
|
|
427
|
+
items?: string[] | undefined;
|
|
428
|
+
is_simulation_mode?: number | null | undefined;
|
|
429
|
+
warehouse_categories?: string[] | null | undefined;
|
|
430
|
+
fulfillment_station?: string | null | undefined;
|
|
431
|
+
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
432
|
+
order_number?: string | null | undefined;
|
|
433
433
|
}>;
|
|
434
434
|
export type ShipstormRunType = z.infer<typeof ShipstormRun>;
|
|
435
435
|
export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<Omit<{
|
|
@@ -459,31 +459,31 @@ export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extend
|
|
|
459
459
|
fulfiller: z.ZodString;
|
|
460
460
|
doctype: z.ZodString;
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
name
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
fulfiller
|
|
462
|
+
name: string;
|
|
463
|
+
owner: string;
|
|
464
|
+
creation: Date;
|
|
465
|
+
modified: Date;
|
|
466
|
+
modified_by: string;
|
|
467
|
+
parent: string;
|
|
468
|
+
parentfield: string;
|
|
469
|
+
parenttype: string;
|
|
470
|
+
idx: number;
|
|
471
|
+
docstatus: number;
|
|
472
|
+
doctype: string;
|
|
473
|
+
fulfiller: string;
|
|
474
474
|
}, {
|
|
475
|
-
name
|
|
475
|
+
name: string;
|
|
476
|
+
owner: string;
|
|
477
|
+
modified_by: string;
|
|
478
|
+
parent: string;
|
|
479
|
+
parentfield: string;
|
|
480
|
+
parenttype: string;
|
|
481
|
+
idx: number;
|
|
482
|
+
docstatus: number;
|
|
483
|
+
doctype: string;
|
|
484
|
+
fulfiller: string;
|
|
476
485
|
creation?: unknown;
|
|
477
486
|
modified?: unknown;
|
|
478
|
-
modified_by?: string;
|
|
479
|
-
idx?: number;
|
|
480
|
-
docstatus?: number;
|
|
481
|
-
doctype?: string;
|
|
482
|
-
owner?: string;
|
|
483
|
-
parent?: string;
|
|
484
|
-
parentfield?: string;
|
|
485
|
-
parenttype?: string;
|
|
486
|
-
fulfiller?: string;
|
|
487
487
|
}>, "many">;
|
|
488
488
|
}, "is_active">, {
|
|
489
489
|
dispatch_run_id: z.ZodString;
|
|
@@ -501,43 +501,43 @@ export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extend
|
|
|
501
501
|
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
502
502
|
fulfiller: z.ZodString;
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
fulfiller
|
|
504
|
+
fulfiller: string;
|
|
505
505
|
}, {
|
|
506
|
-
fulfiller
|
|
506
|
+
fulfiller: string;
|
|
507
507
|
}>, "many">;
|
|
508
508
|
}>, "strip", z.ZodTypeAny, {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
fulfiller_priority?: {
|
|
514
|
-
fulfiller?: string;
|
|
509
|
+
title: string;
|
|
510
|
+
fulfiller: string;
|
|
511
|
+
fulfiller_priority: {
|
|
512
|
+
fulfiller: string;
|
|
515
513
|
}[];
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
514
|
+
is_auto_bundling: number;
|
|
515
|
+
dispatcher_preset: string;
|
|
516
|
+
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
517
|
+
limit?: number | undefined;
|
|
518
|
+
items?: string[] | undefined;
|
|
519
|
+
warehouse_categories?: string[] | null | undefined;
|
|
520
|
+
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
521
521
|
}, {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
fulfiller_priority?: {
|
|
527
|
-
fulfiller?: string;
|
|
522
|
+
title: string;
|
|
523
|
+
fulfiller: string;
|
|
524
|
+
fulfiller_priority: {
|
|
525
|
+
fulfiller: string;
|
|
528
526
|
}[];
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
527
|
+
is_auto_bundling: number;
|
|
528
|
+
dispatcher_preset: string;
|
|
529
|
+
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
530
|
+
limit?: number | undefined;
|
|
531
|
+
items?: string[] | undefined;
|
|
532
|
+
warehouse_categories?: string[] | null | undefined;
|
|
533
|
+
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
534
534
|
}>;
|
|
535
535
|
export declare const DispatchRunPostFilteredResponse: z.ZodObject<{
|
|
536
536
|
name: z.ZodString;
|
|
537
537
|
}, "strip", z.ZodTypeAny, {
|
|
538
|
-
name
|
|
538
|
+
name: string;
|
|
539
539
|
}, {
|
|
540
|
-
name
|
|
540
|
+
name: string;
|
|
541
541
|
}>;
|
|
542
542
|
export declare const DispatchRun: z.ZodObject<{
|
|
543
543
|
name: z.ZodString;
|
|
@@ -569,101 +569,101 @@ export declare const DispatchRun: z.ZodObject<{
|
|
|
569
569
|
fulfiller: z.ZodString;
|
|
570
570
|
doctype: z.ZodString;
|
|
571
571
|
}, "strip", z.ZodTypeAny, {
|
|
572
|
-
name
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
fulfiller
|
|
572
|
+
name: string;
|
|
573
|
+
owner: string;
|
|
574
|
+
creation: Date;
|
|
575
|
+
modified: Date;
|
|
576
|
+
modified_by: string;
|
|
577
|
+
parent: string;
|
|
578
|
+
parentfield: string;
|
|
579
|
+
parenttype: string;
|
|
580
|
+
idx: number;
|
|
581
|
+
docstatus: number;
|
|
582
|
+
doctype: string;
|
|
583
|
+
fulfiller: string;
|
|
584
584
|
}, {
|
|
585
|
-
name
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
fulfiller
|
|
585
|
+
name: string;
|
|
586
|
+
owner: string;
|
|
587
|
+
creation: string;
|
|
588
|
+
modified: string;
|
|
589
|
+
modified_by: string;
|
|
590
|
+
parent: string;
|
|
591
|
+
parentfield: string;
|
|
592
|
+
parenttype: string;
|
|
593
|
+
idx: number;
|
|
594
|
+
docstatus: number;
|
|
595
|
+
doctype: string;
|
|
596
|
+
fulfiller: string;
|
|
597
597
|
}>, "many">;
|
|
598
598
|
is_auto_bundling: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
599
599
|
dispatcher_preset: z.ZodString;
|
|
600
600
|
is_simulation_mode: z.ZodNumber;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
name
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
parenttype?: string;
|
|
627
|
-
fulfiller?: string;
|
|
602
|
+
name: string;
|
|
603
|
+
owner: string;
|
|
604
|
+
creation: Date;
|
|
605
|
+
modified: Date;
|
|
606
|
+
modified_by: string;
|
|
607
|
+
idx: number;
|
|
608
|
+
docstatus: number;
|
|
609
|
+
doctype: string;
|
|
610
|
+
title: string;
|
|
611
|
+
fulfiller: string;
|
|
612
|
+
is_simulation_mode: number;
|
|
613
|
+
fulfiller_priority: {
|
|
614
|
+
name: string;
|
|
615
|
+
owner: string;
|
|
616
|
+
creation: Date;
|
|
617
|
+
modified: Date;
|
|
618
|
+
modified_by: string;
|
|
619
|
+
parent: string;
|
|
620
|
+
parentfield: string;
|
|
621
|
+
parenttype: string;
|
|
622
|
+
idx: number;
|
|
623
|
+
docstatus: number;
|
|
624
|
+
doctype: string;
|
|
625
|
+
fulfiller: string;
|
|
628
626
|
}[];
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
627
|
+
is_auto_bundling: boolean;
|
|
628
|
+
dispatcher_preset: string;
|
|
629
|
+
picking_strategy: string;
|
|
630
|
+
trigger: string;
|
|
631
|
+
limit?: number | null | undefined;
|
|
632
|
+
items?: string[] | null | undefined;
|
|
633
|
+
warehouse_categories?: string[] | null | undefined;
|
|
634
634
|
}, {
|
|
635
|
-
name
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
parenttype?: string;
|
|
660
|
-
fulfiller?: string;
|
|
635
|
+
name: string;
|
|
636
|
+
owner: string;
|
|
637
|
+
creation: string;
|
|
638
|
+
modified: string;
|
|
639
|
+
modified_by: string;
|
|
640
|
+
idx: number;
|
|
641
|
+
docstatus: number;
|
|
642
|
+
doctype: string;
|
|
643
|
+
title: string;
|
|
644
|
+
fulfiller: string;
|
|
645
|
+
is_simulation_mode: number;
|
|
646
|
+
fulfiller_priority: {
|
|
647
|
+
name: string;
|
|
648
|
+
owner: string;
|
|
649
|
+
creation: string;
|
|
650
|
+
modified: string;
|
|
651
|
+
modified_by: string;
|
|
652
|
+
parent: string;
|
|
653
|
+
parentfield: string;
|
|
654
|
+
parenttype: string;
|
|
655
|
+
idx: number;
|
|
656
|
+
docstatus: number;
|
|
657
|
+
doctype: string;
|
|
658
|
+
fulfiller: string;
|
|
661
659
|
}[];
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
660
|
+
is_auto_bundling: number;
|
|
661
|
+
dispatcher_preset: string;
|
|
662
|
+
picking_strategy: string;
|
|
663
|
+
trigger: string;
|
|
664
|
+
limit?: number | null | undefined;
|
|
665
|
+
items?: string[] | null | undefined;
|
|
666
|
+
warehouse_categories?: string[] | null | undefined;
|
|
667
667
|
}>;
|
|
668
668
|
export declare const DispatchRunMatchesByOrderNumber: z.ZodArray<z.ZodObject<{
|
|
669
669
|
name: z.ZodString;
|
|
@@ -672,17 +672,17 @@ export declare const DispatchRunMatchesByOrderNumber: z.ZodArray<z.ZodObject<{
|
|
|
672
672
|
customer_name: z.ZodString;
|
|
673
673
|
status: z.ZodEnum<["Processing", "Completed", "Failed"]>;
|
|
674
674
|
}, "strip", z.ZodTypeAny, {
|
|
675
|
-
status
|
|
676
|
-
name
|
|
677
|
-
customer_name
|
|
678
|
-
picking_strategy
|
|
679
|
-
order_number
|
|
675
|
+
status: "Processing" | "Failed" | "Completed";
|
|
676
|
+
name: string;
|
|
677
|
+
customer_name: string;
|
|
678
|
+
picking_strategy: string;
|
|
679
|
+
order_number: string;
|
|
680
680
|
}, {
|
|
681
|
-
status
|
|
682
|
-
name
|
|
683
|
-
customer_name
|
|
684
|
-
picking_strategy
|
|
685
|
-
order_number
|
|
681
|
+
status: "Processing" | "Failed" | "Completed";
|
|
682
|
+
name: string;
|
|
683
|
+
customer_name: string;
|
|
684
|
+
picking_strategy: string;
|
|
685
|
+
order_number: string;
|
|
686
686
|
}>, "many">;
|
|
687
687
|
export type DispatchRunType = z.infer<typeof DispatchRun>;
|
|
688
688
|
export {};
|