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.
Files changed (76) hide show
  1. package/dist/client.js +41 -16
  2. package/dist/erpnext/decryptFromErpNext.server.d.ts +1 -1
  3. package/dist/erpnext/doctypeResourceRequest.d.ts +38 -0
  4. package/dist/erpnext/doctypeResourceRequest.js +59 -0
  5. package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +8 -0
  6. package/dist/erpnext/doctypeSubmittableResourceRequest.js +39 -0
  7. package/dist/erpnext/doctypes/address.d.ts +263 -0
  8. package/dist/erpnext/doctypes/address.js +46 -0
  9. package/dist/erpnext/doctypes/contact.d.ts +383 -0
  10. package/dist/erpnext/doctypes/contact.js +46 -0
  11. package/dist/erpnext/doctypes/deliveryNote.d.ts +985 -0
  12. package/dist/erpnext/doctypes/deliveryNote.js +38 -0
  13. package/dist/erpnext/doctypes/item.d.ts +572 -0
  14. package/dist/erpnext/doctypes/item.js +95 -0
  15. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +743 -0
  16. package/dist/erpnext/doctypes/purchaseReceipt.js +50 -0
  17. package/dist/erpnext/doctypes/shipment.d.ts +752 -0
  18. package/dist/erpnext/doctypes/shipment.js +51 -0
  19. package/dist/erpnext/erpnextRequestWrapper.js +15 -13
  20. package/dist/erpnext/fileRequests.d.ts +10 -0
  21. package/dist/erpnext/fileRequests.js +42 -0
  22. package/dist/erpnext/methodRequest.d.ts +15 -0
  23. package/dist/erpnext/methodRequest.js +32 -0
  24. package/dist/erpnext/model/Address.d.ts +200 -198
  25. package/dist/erpnext/model/Address.js +3 -2
  26. package/dist/erpnext/model/Contact.d.ts +343 -344
  27. package/dist/erpnext/model/Contact.js +2 -2
  28. package/dist/erpnext/model/Country.d.ts +83 -31
  29. package/dist/erpnext/model/Country.js +2 -6
  30. package/dist/erpnext/model/Customer.d.ts +64 -65
  31. package/dist/erpnext/model/Customer.js +2 -2
  32. package/dist/erpnext/model/DeliveryNote.d.ts +1048 -1048
  33. package/dist/erpnext/model/DispatchRun.d.ts +399 -399
  34. package/dist/erpnext/model/DispatcherPreset.d.ts +94 -94
  35. package/dist/erpnext/model/ERPNextRequest.d.ts +47 -30
  36. package/dist/erpnext/model/ERPNextResponse.d.ts +4 -4
  37. package/dist/erpnext/model/File.d.ts +88 -88
  38. package/dist/erpnext/model/Fulfiller.d.ts +97 -97
  39. package/dist/erpnext/model/FulfillerSettings.d.ts +66 -66
  40. package/dist/erpnext/model/FulfillmentStation.d.ts +2 -2
  41. package/dist/erpnext/model/Item.d.ts +819 -819
  42. package/dist/erpnext/model/Item.js +2 -2
  43. package/dist/erpnext/model/PaymentEntry.d.ts +197 -0
  44. package/dist/erpnext/model/PaymentEntry.js +63 -0
  45. package/dist/erpnext/model/ProjectedQuantityReport.d.ts +178 -178
  46. package/dist/erpnext/model/PurchaseOrder.d.ts +528 -528
  47. package/dist/erpnext/model/Receipt.d.ts +448 -448
  48. package/dist/erpnext/model/Receipt.js +2 -2
  49. package/dist/erpnext/model/ReceiptDraft.d.ts +392 -392
  50. package/dist/erpnext/model/Shipment.d.ts +709 -709
  51. package/dist/erpnext/model/ShippingProvider.d.ts +198 -198
  52. package/dist/erpnext/model/StockEntry.d.ts +248 -0
  53. package/dist/erpnext/model/StockEntry.js +76 -0
  54. package/dist/erpnext/model/StockReconciliation.d.ts +187 -0
  55. package/dist/erpnext/model/StockReconciliation.js +44 -0
  56. package/dist/erpnext/model/Supplier.d.ts +105 -0
  57. package/dist/erpnext/model/Supplier.js +39 -0
  58. package/dist/erpnext/model/Waitlist.d.ts +32 -0
  59. package/dist/erpnext/model/Waitlist.js +19 -0
  60. package/dist/erpnext/model/WarehouseCategory.d.ts +6 -6
  61. package/dist/erpnext/resourceRequest.d.ts +39 -10
  62. package/dist/erpnext/resourceRequest.js +115 -14
  63. package/dist/index.d.ts +39 -4
  64. package/dist/index.js +43 -8
  65. package/dist/utils/fernet.server.d.ts +11 -11
  66. package/dist/utils/fernet.server.js +0 -1
  67. package/dist/utils/request.js +2 -2
  68. package/dist/utils/zodUtils.d.ts +2 -1
  69. package/dist/utils/zodUtils.js +14 -1
  70. package/package.json +4 -1
  71. package/dist/erpnext/doctypes/country.d.ts +0 -9
  72. package/dist/erpnext/doctypes/country.js +0 -28
  73. package/dist/erpnext/erpnextRequests.d.ts +0 -1
  74. package/dist/erpnext/erpnextRequests.js +0 -15
  75. package/dist/erpnext.d.ts +0 -20
  76. 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?: string;
17
- creation?: Date;
18
- modified?: Date;
19
- modified_by?: string;
20
- idx?: number;
21
- docstatus?: number;
22
- doctype?: string;
23
- owner?: string;
24
- parent?: string;
25
- parentfield?: string;
26
- parenttype?: string;
27
- fulfiller?: string;
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?: string;
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?: string;
71
- creation?: Date;
72
- modified?: Date;
73
- modified_by?: string;
74
- idx?: number;
75
- docstatus?: number;
76
- doctype?: string;
77
- owner?: string;
78
- parent?: string;
79
- parentfield?: string;
80
- parenttype?: string;
81
- fulfiller?: string;
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?: string;
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?: string;
98
- creation?: Date;
99
- modified?: Date;
100
- modified_by?: string;
101
- idx?: number;
102
- docstatus?: number;
103
- doctype?: string;
104
- owner?: string;
105
- title?: string;
106
- fulfiller?: string;
107
- is_active?: boolean;
108
- is_simulation_mode?: number;
109
- fulfiller_priority?: {
110
- name?: string;
111
- creation?: Date;
112
- modified?: Date;
113
- modified_by?: string;
114
- idx?: number;
115
- docstatus?: number;
116
- doctype?: string;
117
- owner?: string;
118
- parent?: string;
119
- parentfield?: string;
120
- parenttype?: string;
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?: string;
125
- creation?: unknown;
126
- modified?: unknown;
127
- modified_by?: string;
128
- idx?: number;
129
- docstatus?: number;
130
- doctype?: string;
131
- owner?: string;
132
- title?: string;
133
- fulfiller?: string;
134
- is_active?: number;
135
- is_simulation_mode?: number;
136
- fulfiller_priority?: {
137
- name?: string;
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
- limit?: number;
163
- dispatcherPresetId?: string;
164
- warehouseCategories?: string[];
165
- fulfillmentStation?: string;
166
- skus?: string[];
167
- isAutoBundling?: boolean;
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
- limit?: number;
172
- dispatcherPresetId?: string;
173
- warehouseCategories?: string[];
174
- fulfillmentStation?: string;
175
- skus?: string[];
176
- isAutoBundling?: boolean;
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?: string;
211
- creation?: Date;
212
- modified?: Date;
213
- modified_by?: string;
214
- idx?: number;
215
- docstatus?: number;
216
- doctype?: string;
217
- owner?: string;
218
- parent?: string;
219
- parentfield?: string;
220
- parenttype?: string;
221
- fulfiller?: string;
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?: string;
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?: "Processing" | "Failed" | "Completed";
250
- name?: string;
251
- creation?: Date;
252
- modified?: Date;
253
- modified_by?: string;
254
- idx?: number;
255
- docstatus?: number;
256
- doctype?: string;
257
- limit?: number;
258
- owner?: string;
259
- items?: string[];
260
- title?: string;
261
- fulfiller?: string;
262
- is_simulation_mode?: number;
263
- fulfiller_priority?: {
264
- name?: string;
265
- creation?: Date;
266
- modified?: Date;
267
- modified_by?: string;
268
- idx?: number;
269
- docstatus?: number;
270
- doctype?: string;
271
- owner?: string;
272
- parent?: string;
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?: string;
278
- warehouse_categories?: string[];
279
- fulfillment_station?: string;
280
- is_auto_bundling?: number;
281
- dispatcher_preset?: string;
282
- picking_strategy?: "Single Order" | "Multi Order";
283
- trigger?: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
284
- order_number?: string;
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?: "Processing" | "Failed" | "Completed";
287
- name?: string;
288
- creation?: unknown;
289
- modified?: unknown;
290
- modified_by?: string;
291
- idx?: number;
292
- docstatus?: number;
293
- doctype?: string;
294
- limit?: number;
295
- owner?: string;
296
- items?: string[];
297
- title?: string;
298
- fulfiller?: string;
299
- is_simulation_mode?: number;
300
- fulfiller_priority?: {
301
- name?: string;
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?: string;
315
- warehouse_categories?: string[];
316
- fulfillment_station?: string;
317
- is_auto_bundling?: number;
318
- dispatcher_preset?: string;
319
- picking_strategy?: "Single Order" | "Multi Order";
320
- trigger?: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
321
- order_number?: string;
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?: string;
352
- creation?: Date;
353
- modified?: Date;
354
- modified_by?: string;
355
- idx?: number;
356
- docstatus?: number;
357
- doctype?: string;
358
- owner?: string;
359
- parent?: string;
360
- parentfield?: string;
361
- parenttype?: string;
362
- fulfiller?: string;
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?: string;
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" | "owner">, {
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?: string;
393
+ fulfiller: string;
394
394
  }, {
395
- fulfiller?: string;
395
+ fulfiller: string;
396
396
  }>, "many">;
397
397
  }>, "strip", z.ZodTypeAny, {
398
- status?: "Processing" | "Failed" | "Completed";
399
- limit?: number;
400
- items?: string[];
401
- title?: string;
402
- fulfiller?: string;
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?: string;
408
- warehouse_categories?: string[];
409
- fulfillment_station?: string;
410
- is_auto_bundling?: number;
411
- dispatcher_preset?: string;
412
- picking_strategy?: "Single Order" | "Multi Order";
413
- trigger?: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
414
- order_number?: string;
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?: "Processing" | "Failed" | "Completed";
417
- limit?: number;
418
- items?: string[];
419
- title?: string;
420
- fulfiller?: string;
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?: string;
426
- warehouse_categories?: string[];
427
- fulfillment_station?: string;
428
- is_auto_bundling?: number;
429
- dispatcher_preset?: string;
430
- picking_strategy?: "Single Order" | "Multi Order";
431
- trigger?: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
432
- order_number?: string;
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?: string;
463
- creation?: Date;
464
- modified?: Date;
465
- modified_by?: string;
466
- idx?: number;
467
- docstatus?: number;
468
- doctype?: string;
469
- owner?: string;
470
- parent?: string;
471
- parentfield?: string;
472
- parenttype?: string;
473
- fulfiller?: string;
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?: string;
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?: string;
504
+ fulfiller: string;
505
505
  }, {
506
- fulfiller?: string;
506
+ fulfiller: string;
507
507
  }>, "many">;
508
508
  }>, "strip", z.ZodTypeAny, {
509
- limit?: number;
510
- items?: string[];
511
- title?: string;
512
- fulfiller?: string;
513
- fulfiller_priority?: {
514
- fulfiller?: string;
509
+ title: string;
510
+ fulfiller: string;
511
+ fulfiller_priority: {
512
+ fulfiller: string;
515
513
  }[];
516
- warehouse_categories?: string[];
517
- is_auto_bundling?: number;
518
- dispatcher_preset?: string;
519
- picking_strategy?: "Single Order" | "Multi Order";
520
- trigger?: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
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
- limit?: number;
523
- items?: string[];
524
- title?: string;
525
- fulfiller?: string;
526
- fulfiller_priority?: {
527
- fulfiller?: string;
522
+ title: string;
523
+ fulfiller: string;
524
+ fulfiller_priority: {
525
+ fulfiller: string;
528
526
  }[];
529
- warehouse_categories?: string[];
530
- is_auto_bundling?: number;
531
- dispatcher_preset?: string;
532
- picking_strategy?: "Single Order" | "Multi Order";
533
- trigger?: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
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?: string;
538
+ name: string;
539
539
  }, {
540
- name?: string;
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?: string;
573
- creation?: Date;
574
- modified?: Date;
575
- modified_by?: string;
576
- idx?: number;
577
- docstatus?: number;
578
- doctype?: string;
579
- owner?: string;
580
- parent?: string;
581
- parentfield?: string;
582
- parenttype?: string;
583
- fulfiller?: string;
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?: string;
586
- creation?: string;
587
- modified?: string;
588
- modified_by?: string;
589
- idx?: number;
590
- docstatus?: number;
591
- doctype?: string;
592
- owner?: string;
593
- parent?: string;
594
- parentfield?: string;
595
- parenttype?: string;
596
- fulfiller?: string;
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?: string;
603
- creation?: Date;
604
- modified?: Date;
605
- modified_by?: string;
606
- idx?: number;
607
- docstatus?: number;
608
- doctype?: string;
609
- limit?: number;
610
- owner?: string;
611
- items?: string[];
612
- title?: string;
613
- fulfiller?: string;
614
- is_simulation_mode?: number;
615
- fulfiller_priority?: {
616
- name?: string;
617
- creation?: Date;
618
- modified?: Date;
619
- modified_by?: string;
620
- idx?: number;
621
- docstatus?: number;
622
- doctype?: string;
623
- owner?: string;
624
- parent?: string;
625
- parentfield?: string;
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
- warehouse_categories?: string[];
630
- is_auto_bundling?: boolean;
631
- dispatcher_preset?: string;
632
- picking_strategy?: string;
633
- trigger?: string;
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?: string;
636
- creation?: string;
637
- modified?: string;
638
- modified_by?: string;
639
- idx?: number;
640
- docstatus?: number;
641
- doctype?: string;
642
- limit?: number;
643
- owner?: string;
644
- items?: string[];
645
- title?: string;
646
- fulfiller?: string;
647
- is_simulation_mode?: number;
648
- fulfiller_priority?: {
649
- name?: string;
650
- creation?: string;
651
- modified?: string;
652
- modified_by?: string;
653
- idx?: number;
654
- docstatus?: number;
655
- doctype?: string;
656
- owner?: string;
657
- parent?: string;
658
- parentfield?: string;
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
- warehouse_categories?: string[];
663
- is_auto_bundling?: number;
664
- dispatcher_preset?: string;
665
- picking_strategy?: string;
666
- trigger?: string;
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?: "Processing" | "Failed" | "Completed";
676
- name?: string;
677
- customer_name?: string;
678
- picking_strategy?: string;
679
- order_number?: string;
675
+ status: "Processing" | "Failed" | "Completed";
676
+ name: string;
677
+ customer_name: string;
678
+ picking_strategy: string;
679
+ order_number: string;
680
680
  }, {
681
- status?: "Processing" | "Failed" | "Completed";
682
- name?: string;
683
- customer_name?: string;
684
- picking_strategy?: string;
685
- order_number?: string;
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 {};