erpnext-queue-client 1.0.5 → 1.0.6
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.d.ts +6 -16
- package/dist/client.js +14 -39
- package/dist/erpnext/decryptFromErpNext.server.test.js +3 -3
- package/dist/erpnext/doctypes/country.d.ts +9 -0
- package/dist/erpnext/doctypes/country.js +28 -0
- package/dist/erpnext/erpnextRequests.d.ts +1 -1786
- package/dist/erpnext/erpnextRequests.js +13 -337
- package/dist/erpnext/model/Address.d.ts +48 -48
- package/dist/erpnext/model/Contact.d.ts +106 -106
- package/dist/erpnext/model/Country.d.ts +2 -2
- package/dist/erpnext/model/Customer.d.ts +4 -4
- package/dist/erpnext/model/DeliveryNote.d.ts +176 -176
- package/dist/erpnext/model/DispatchRun.d.ts +90 -90
- package/dist/erpnext/model/DispatcherPreset.d.ts +26 -26
- package/dist/erpnext/model/ERPNextQueue.d.ts +8 -7
- package/dist/erpnext/model/ERPNextRequest.d.ts +17 -0
- package/dist/erpnext/model/File.d.ts +4 -4
- package/dist/erpnext/model/Fulfiller.d.ts +11 -11
- package/dist/erpnext/model/FulfillerSettings.d.ts +6 -6
- package/dist/erpnext/model/Item.d.ts +204 -204
- package/dist/erpnext/model/ProjectedQuantityReport.d.ts +14 -14
- package/dist/erpnext/model/PurchaseOrder.d.ts +112 -112
- package/dist/erpnext/model/Receipt.d.ts +104 -104
- package/dist/erpnext/model/ReceiptDraft.d.ts +88 -88
- package/dist/erpnext/model/Shipment.d.ts +157 -157
- package/dist/erpnext/model/ShippingProvider.d.ts +23 -23
- package/dist/erpnext/resourceRequest.d.ts +16 -0
- package/dist/erpnext/resourceRequest.js +34 -0
- package/dist/erpnext.d.ts +20 -0
- package/dist/erpnext.js +45 -0
- package/dist/index.d.ts +17 -1
- package/dist/index.js +21 -12
- package/package.json +1 -1
|
@@ -14,29 +14,29 @@ declare const DispatcherPresetFulfillerPriority: z.ZodObject<{
|
|
|
14
14
|
doctype: z.ZodString;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
name?: string;
|
|
17
|
-
owner?: string;
|
|
18
17
|
creation?: Date;
|
|
19
18
|
modified?: Date;
|
|
20
19
|
modified_by?: string;
|
|
21
|
-
parent?: string;
|
|
22
|
-
parentfield?: string;
|
|
23
|
-
parenttype?: string;
|
|
24
20
|
idx?: number;
|
|
25
21
|
docstatus?: number;
|
|
26
22
|
doctype?: string;
|
|
23
|
+
owner?: string;
|
|
24
|
+
parent?: string;
|
|
25
|
+
parentfield?: string;
|
|
26
|
+
parenttype?: string;
|
|
27
27
|
fulfiller?: string;
|
|
28
28
|
}, {
|
|
29
29
|
name?: string;
|
|
30
|
-
owner?: string;
|
|
31
30
|
creation?: unknown;
|
|
32
31
|
modified?: unknown;
|
|
33
32
|
modified_by?: string;
|
|
34
|
-
parent?: string;
|
|
35
|
-
parentfield?: string;
|
|
36
|
-
parenttype?: string;
|
|
37
33
|
idx?: number;
|
|
38
34
|
docstatus?: number;
|
|
39
35
|
doctype?: string;
|
|
36
|
+
owner?: string;
|
|
37
|
+
parent?: string;
|
|
38
|
+
parentfield?: string;
|
|
39
|
+
parenttype?: string;
|
|
40
40
|
fulfiller?: string;
|
|
41
41
|
}>;
|
|
42
42
|
export type DispatcherPresetFulfillerPriorityType = z.infer<typeof DispatcherPresetFulfillerPriority>;
|
|
@@ -68,83 +68,83 @@ export declare const ERPNextDispatcherPreset: z.ZodObject<{
|
|
|
68
68
|
doctype: z.ZodString;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
name?: string;
|
|
71
|
-
owner?: string;
|
|
72
71
|
creation?: Date;
|
|
73
72
|
modified?: Date;
|
|
74
73
|
modified_by?: string;
|
|
75
|
-
parent?: string;
|
|
76
|
-
parentfield?: string;
|
|
77
|
-
parenttype?: string;
|
|
78
74
|
idx?: number;
|
|
79
75
|
docstatus?: number;
|
|
80
76
|
doctype?: string;
|
|
77
|
+
owner?: string;
|
|
78
|
+
parent?: string;
|
|
79
|
+
parentfield?: string;
|
|
80
|
+
parenttype?: string;
|
|
81
81
|
fulfiller?: string;
|
|
82
82
|
}, {
|
|
83
83
|
name?: string;
|
|
84
|
-
owner?: string;
|
|
85
84
|
creation?: unknown;
|
|
86
85
|
modified?: unknown;
|
|
87
86
|
modified_by?: string;
|
|
88
|
-
parent?: string;
|
|
89
|
-
parentfield?: string;
|
|
90
|
-
parenttype?: string;
|
|
91
87
|
idx?: number;
|
|
92
88
|
docstatus?: number;
|
|
93
89
|
doctype?: string;
|
|
90
|
+
owner?: string;
|
|
91
|
+
parent?: string;
|
|
92
|
+
parentfield?: string;
|
|
93
|
+
parenttype?: string;
|
|
94
94
|
fulfiller?: string;
|
|
95
95
|
}>, "many">;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
name?: string;
|
|
98
|
-
owner?: string;
|
|
99
98
|
creation?: Date;
|
|
100
99
|
modified?: Date;
|
|
101
100
|
modified_by?: string;
|
|
102
101
|
idx?: number;
|
|
103
102
|
docstatus?: number;
|
|
104
103
|
doctype?: string;
|
|
104
|
+
owner?: string;
|
|
105
105
|
title?: string;
|
|
106
106
|
fulfiller?: string;
|
|
107
107
|
is_active?: boolean;
|
|
108
108
|
is_simulation_mode?: number;
|
|
109
109
|
fulfiller_priority?: {
|
|
110
110
|
name?: string;
|
|
111
|
-
owner?: string;
|
|
112
111
|
creation?: Date;
|
|
113
112
|
modified?: Date;
|
|
114
113
|
modified_by?: string;
|
|
115
|
-
parent?: string;
|
|
116
|
-
parentfield?: string;
|
|
117
|
-
parenttype?: string;
|
|
118
114
|
idx?: number;
|
|
119
115
|
docstatus?: number;
|
|
120
116
|
doctype?: string;
|
|
117
|
+
owner?: string;
|
|
118
|
+
parent?: string;
|
|
119
|
+
parentfield?: string;
|
|
120
|
+
parenttype?: string;
|
|
121
121
|
fulfiller?: string;
|
|
122
122
|
}[];
|
|
123
123
|
}, {
|
|
124
124
|
name?: string;
|
|
125
|
-
owner?: string;
|
|
126
125
|
creation?: unknown;
|
|
127
126
|
modified?: unknown;
|
|
128
127
|
modified_by?: string;
|
|
129
128
|
idx?: number;
|
|
130
129
|
docstatus?: number;
|
|
131
130
|
doctype?: string;
|
|
131
|
+
owner?: string;
|
|
132
132
|
title?: string;
|
|
133
133
|
fulfiller?: string;
|
|
134
134
|
is_active?: number;
|
|
135
135
|
is_simulation_mode?: number;
|
|
136
136
|
fulfiller_priority?: {
|
|
137
137
|
name?: string;
|
|
138
|
-
owner?: string;
|
|
139
138
|
creation?: unknown;
|
|
140
139
|
modified?: unknown;
|
|
141
140
|
modified_by?: string;
|
|
142
|
-
parent?: string;
|
|
143
|
-
parentfield?: string;
|
|
144
|
-
parenttype?: string;
|
|
145
141
|
idx?: number;
|
|
146
142
|
docstatus?: number;
|
|
147
143
|
doctype?: string;
|
|
144
|
+
owner?: string;
|
|
145
|
+
parent?: string;
|
|
146
|
+
parentfield?: string;
|
|
147
|
+
parenttype?: string;
|
|
148
148
|
fulfiller?: string;
|
|
149
149
|
}[];
|
|
150
150
|
}>;
|
|
@@ -159,20 +159,20 @@ 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;
|
|
162
163
|
dispatcherPresetId?: string;
|
|
163
164
|
warehouseCategories?: string[];
|
|
164
165
|
fulfillmentStation?: string;
|
|
165
166
|
skus?: string[];
|
|
166
|
-
limit?: number;
|
|
167
167
|
isAutoBundling?: boolean;
|
|
168
168
|
strategy?: "multiOrder" | "singleOrder";
|
|
169
169
|
orderNumber?: string;
|
|
170
170
|
}, {
|
|
171
|
+
limit?: number;
|
|
171
172
|
dispatcherPresetId?: string;
|
|
172
173
|
warehouseCategories?: string[];
|
|
173
174
|
fulfillmentStation?: string;
|
|
174
175
|
skus?: string[];
|
|
175
|
-
limit?: number;
|
|
176
176
|
isAutoBundling?: boolean;
|
|
177
177
|
strategy?: "multiOrder" | "singleOrder";
|
|
178
178
|
orderNumber?: string;
|
|
@@ -208,29 +208,29 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
208
208
|
doctype: z.ZodString;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
210
|
name?: string;
|
|
211
|
-
owner?: string;
|
|
212
211
|
creation?: Date;
|
|
213
212
|
modified?: Date;
|
|
214
213
|
modified_by?: string;
|
|
215
|
-
parent?: string;
|
|
216
|
-
parentfield?: string;
|
|
217
|
-
parenttype?: string;
|
|
218
214
|
idx?: number;
|
|
219
215
|
docstatus?: number;
|
|
220
216
|
doctype?: string;
|
|
217
|
+
owner?: string;
|
|
218
|
+
parent?: string;
|
|
219
|
+
parentfield?: string;
|
|
220
|
+
parenttype?: string;
|
|
221
221
|
fulfiller?: string;
|
|
222
222
|
}, {
|
|
223
223
|
name?: string;
|
|
224
|
-
owner?: string;
|
|
225
224
|
creation?: unknown;
|
|
226
225
|
modified?: unknown;
|
|
227
226
|
modified_by?: string;
|
|
228
|
-
parent?: string;
|
|
229
|
-
parentfield?: string;
|
|
230
|
-
parenttype?: string;
|
|
231
227
|
idx?: number;
|
|
232
228
|
docstatus?: number;
|
|
233
229
|
doctype?: string;
|
|
230
|
+
owner?: string;
|
|
231
|
+
parent?: string;
|
|
232
|
+
parentfield?: string;
|
|
233
|
+
parenttype?: string;
|
|
234
234
|
fulfiller?: string;
|
|
235
235
|
}>, "many">;
|
|
236
236
|
}, "is_active">, {
|
|
@@ -248,32 +248,32 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
248
248
|
}>, "strip", z.ZodTypeAny, {
|
|
249
249
|
status?: "Processing" | "Failed" | "Completed";
|
|
250
250
|
name?: string;
|
|
251
|
-
owner?: string;
|
|
252
251
|
creation?: Date;
|
|
253
252
|
modified?: Date;
|
|
254
253
|
modified_by?: string;
|
|
255
254
|
idx?: number;
|
|
256
255
|
docstatus?: number;
|
|
257
256
|
doctype?: string;
|
|
257
|
+
limit?: number;
|
|
258
|
+
owner?: string;
|
|
258
259
|
items?: string[];
|
|
259
260
|
title?: string;
|
|
260
261
|
fulfiller?: string;
|
|
261
262
|
is_simulation_mode?: number;
|
|
262
263
|
fulfiller_priority?: {
|
|
263
264
|
name?: string;
|
|
264
|
-
owner?: string;
|
|
265
265
|
creation?: Date;
|
|
266
266
|
modified?: Date;
|
|
267
267
|
modified_by?: string;
|
|
268
|
-
parent?: string;
|
|
269
|
-
parentfield?: string;
|
|
270
|
-
parenttype?: string;
|
|
271
268
|
idx?: number;
|
|
272
269
|
docstatus?: number;
|
|
273
270
|
doctype?: string;
|
|
271
|
+
owner?: string;
|
|
272
|
+
parent?: string;
|
|
273
|
+
parentfield?: string;
|
|
274
|
+
parenttype?: string;
|
|
274
275
|
fulfiller?: string;
|
|
275
276
|
}[];
|
|
276
|
-
limit?: number;
|
|
277
277
|
dispatch_run_id?: string;
|
|
278
278
|
warehouse_categories?: string[];
|
|
279
279
|
fulfillment_station?: string;
|
|
@@ -285,32 +285,32 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
285
285
|
}, {
|
|
286
286
|
status?: "Processing" | "Failed" | "Completed";
|
|
287
287
|
name?: string;
|
|
288
|
-
owner?: string;
|
|
289
288
|
creation?: unknown;
|
|
290
289
|
modified?: unknown;
|
|
291
290
|
modified_by?: string;
|
|
292
291
|
idx?: number;
|
|
293
292
|
docstatus?: number;
|
|
294
293
|
doctype?: string;
|
|
294
|
+
limit?: number;
|
|
295
|
+
owner?: string;
|
|
295
296
|
items?: string[];
|
|
296
297
|
title?: string;
|
|
297
298
|
fulfiller?: string;
|
|
298
299
|
is_simulation_mode?: number;
|
|
299
300
|
fulfiller_priority?: {
|
|
300
301
|
name?: string;
|
|
301
|
-
owner?: string;
|
|
302
302
|
creation?: unknown;
|
|
303
303
|
modified?: unknown;
|
|
304
304
|
modified_by?: string;
|
|
305
|
-
parent?: string;
|
|
306
|
-
parentfield?: string;
|
|
307
|
-
parenttype?: string;
|
|
308
305
|
idx?: number;
|
|
309
306
|
docstatus?: number;
|
|
310
307
|
doctype?: string;
|
|
308
|
+
owner?: string;
|
|
309
|
+
parent?: string;
|
|
310
|
+
parentfield?: string;
|
|
311
|
+
parenttype?: string;
|
|
311
312
|
fulfiller?: string;
|
|
312
313
|
}[];
|
|
313
|
-
limit?: number;
|
|
314
314
|
dispatch_run_id?: string;
|
|
315
315
|
warehouse_categories?: string[];
|
|
316
316
|
fulfillment_station?: string;
|
|
@@ -349,29 +349,29 @@ export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.o
|
|
|
349
349
|
doctype: z.ZodString;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
351
|
name?: string;
|
|
352
|
-
owner?: string;
|
|
353
352
|
creation?: Date;
|
|
354
353
|
modified?: Date;
|
|
355
354
|
modified_by?: string;
|
|
356
|
-
parent?: string;
|
|
357
|
-
parentfield?: string;
|
|
358
|
-
parenttype?: string;
|
|
359
355
|
idx?: number;
|
|
360
356
|
docstatus?: number;
|
|
361
357
|
doctype?: string;
|
|
358
|
+
owner?: string;
|
|
359
|
+
parent?: string;
|
|
360
|
+
parentfield?: string;
|
|
361
|
+
parenttype?: string;
|
|
362
362
|
fulfiller?: string;
|
|
363
363
|
}, {
|
|
364
364
|
name?: string;
|
|
365
|
-
owner?: string;
|
|
366
365
|
creation?: unknown;
|
|
367
366
|
modified?: unknown;
|
|
368
367
|
modified_by?: string;
|
|
369
|
-
parent?: string;
|
|
370
|
-
parentfield?: string;
|
|
371
|
-
parenttype?: string;
|
|
372
368
|
idx?: number;
|
|
373
369
|
docstatus?: number;
|
|
374
370
|
doctype?: string;
|
|
371
|
+
owner?: string;
|
|
372
|
+
parent?: string;
|
|
373
|
+
parentfield?: string;
|
|
374
|
+
parenttype?: string;
|
|
375
375
|
fulfiller?: string;
|
|
376
376
|
}>, "many">;
|
|
377
377
|
}, "is_active">, {
|
|
@@ -386,7 +386,7 @@ 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" | "
|
|
389
|
+
}>, "name" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "owner">, {
|
|
390
390
|
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
391
391
|
fulfiller: z.ZodString;
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -396,6 +396,7 @@ export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.o
|
|
|
396
396
|
}>, "many">;
|
|
397
397
|
}>, "strip", z.ZodTypeAny, {
|
|
398
398
|
status?: "Processing" | "Failed" | "Completed";
|
|
399
|
+
limit?: number;
|
|
399
400
|
items?: string[];
|
|
400
401
|
title?: string;
|
|
401
402
|
fulfiller?: string;
|
|
@@ -403,7 +404,6 @@ export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.o
|
|
|
403
404
|
fulfiller_priority?: {
|
|
404
405
|
fulfiller?: string;
|
|
405
406
|
}[];
|
|
406
|
-
limit?: number;
|
|
407
407
|
dispatch_run_id?: string;
|
|
408
408
|
warehouse_categories?: string[];
|
|
409
409
|
fulfillment_station?: string;
|
|
@@ -414,6 +414,7 @@ export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.o
|
|
|
414
414
|
order_number?: string;
|
|
415
415
|
}, {
|
|
416
416
|
status?: "Processing" | "Failed" | "Completed";
|
|
417
|
+
limit?: number;
|
|
417
418
|
items?: string[];
|
|
418
419
|
title?: string;
|
|
419
420
|
fulfiller?: string;
|
|
@@ -421,7 +422,6 @@ export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.o
|
|
|
421
422
|
fulfiller_priority?: {
|
|
422
423
|
fulfiller?: string;
|
|
423
424
|
}[];
|
|
424
|
-
limit?: number;
|
|
425
425
|
dispatch_run_id?: string;
|
|
426
426
|
warehouse_categories?: string[];
|
|
427
427
|
fulfillment_station?: string;
|
|
@@ -460,29 +460,29 @@ export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extend
|
|
|
460
460
|
doctype: z.ZodString;
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
462
|
name?: string;
|
|
463
|
-
owner?: string;
|
|
464
463
|
creation?: Date;
|
|
465
464
|
modified?: Date;
|
|
466
465
|
modified_by?: string;
|
|
467
|
-
parent?: string;
|
|
468
|
-
parentfield?: string;
|
|
469
|
-
parenttype?: string;
|
|
470
466
|
idx?: number;
|
|
471
467
|
docstatus?: number;
|
|
472
468
|
doctype?: string;
|
|
469
|
+
owner?: string;
|
|
470
|
+
parent?: string;
|
|
471
|
+
parentfield?: string;
|
|
472
|
+
parenttype?: string;
|
|
473
473
|
fulfiller?: string;
|
|
474
474
|
}, {
|
|
475
475
|
name?: string;
|
|
476
|
-
owner?: string;
|
|
477
476
|
creation?: unknown;
|
|
478
477
|
modified?: unknown;
|
|
479
478
|
modified_by?: string;
|
|
480
|
-
parent?: string;
|
|
481
|
-
parentfield?: string;
|
|
482
|
-
parenttype?: string;
|
|
483
479
|
idx?: number;
|
|
484
480
|
docstatus?: number;
|
|
485
481
|
doctype?: string;
|
|
482
|
+
owner?: string;
|
|
483
|
+
parent?: string;
|
|
484
|
+
parentfield?: string;
|
|
485
|
+
parenttype?: string;
|
|
486
486
|
fulfiller?: string;
|
|
487
487
|
}>, "many">;
|
|
488
488
|
}, "is_active">, {
|
|
@@ -497,7 +497,7 @@ export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extend
|
|
|
497
497
|
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">]>;
|
|
498
498
|
order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
499
499
|
status: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>;
|
|
500
|
-
}>, "
|
|
500
|
+
}>, "limit" | "items" | "title" | "fulfiller" | "warehouse_categories" | "is_auto_bundling" | "dispatcher_preset" | "picking_strategy" | "trigger">, {
|
|
501
501
|
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
502
502
|
fulfiller: z.ZodString;
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -506,26 +506,26 @@ export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extend
|
|
|
506
506
|
fulfiller?: string;
|
|
507
507
|
}>, "many">;
|
|
508
508
|
}>, "strip", z.ZodTypeAny, {
|
|
509
|
+
limit?: number;
|
|
509
510
|
items?: string[];
|
|
510
511
|
title?: string;
|
|
511
512
|
fulfiller?: string;
|
|
512
513
|
fulfiller_priority?: {
|
|
513
514
|
fulfiller?: string;
|
|
514
515
|
}[];
|
|
515
|
-
limit?: number;
|
|
516
516
|
warehouse_categories?: string[];
|
|
517
517
|
is_auto_bundling?: number;
|
|
518
518
|
dispatcher_preset?: string;
|
|
519
519
|
picking_strategy?: "Single Order" | "Multi Order";
|
|
520
520
|
trigger?: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
521
521
|
}, {
|
|
522
|
+
limit?: number;
|
|
522
523
|
items?: string[];
|
|
523
524
|
title?: string;
|
|
524
525
|
fulfiller?: string;
|
|
525
526
|
fulfiller_priority?: {
|
|
526
527
|
fulfiller?: string;
|
|
527
528
|
}[];
|
|
528
|
-
limit?: number;
|
|
529
529
|
warehouse_categories?: string[];
|
|
530
530
|
is_auto_bundling?: number;
|
|
531
531
|
dispatcher_preset?: string;
|
|
@@ -570,29 +570,29 @@ export declare const DispatchRun: z.ZodObject<{
|
|
|
570
570
|
doctype: z.ZodString;
|
|
571
571
|
}, "strip", z.ZodTypeAny, {
|
|
572
572
|
name?: string;
|
|
573
|
-
owner?: string;
|
|
574
573
|
creation?: Date;
|
|
575
574
|
modified?: Date;
|
|
576
575
|
modified_by?: string;
|
|
577
|
-
parent?: string;
|
|
578
|
-
parentfield?: string;
|
|
579
|
-
parenttype?: string;
|
|
580
576
|
idx?: number;
|
|
581
577
|
docstatus?: number;
|
|
582
578
|
doctype?: string;
|
|
579
|
+
owner?: string;
|
|
580
|
+
parent?: string;
|
|
581
|
+
parentfield?: string;
|
|
582
|
+
parenttype?: string;
|
|
583
583
|
fulfiller?: string;
|
|
584
584
|
}, {
|
|
585
585
|
name?: string;
|
|
586
|
-
owner?: string;
|
|
587
586
|
creation?: string;
|
|
588
587
|
modified?: string;
|
|
589
588
|
modified_by?: string;
|
|
590
|
-
parent?: string;
|
|
591
|
-
parentfield?: string;
|
|
592
|
-
parenttype?: string;
|
|
593
589
|
idx?: number;
|
|
594
590
|
docstatus?: number;
|
|
595
591
|
doctype?: string;
|
|
592
|
+
owner?: string;
|
|
593
|
+
parent?: string;
|
|
594
|
+
parentfield?: string;
|
|
595
|
+
parenttype?: string;
|
|
596
596
|
fulfiller?: string;
|
|
597
597
|
}>, "many">;
|
|
598
598
|
is_auto_bundling: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
@@ -600,32 +600,32 @@ export declare const DispatchRun: z.ZodObject<{
|
|
|
600
600
|
is_simulation_mode: z.ZodNumber;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
602
|
name?: string;
|
|
603
|
-
owner?: string;
|
|
604
603
|
creation?: Date;
|
|
605
604
|
modified?: Date;
|
|
606
605
|
modified_by?: string;
|
|
607
606
|
idx?: number;
|
|
608
607
|
docstatus?: number;
|
|
609
608
|
doctype?: string;
|
|
609
|
+
limit?: number;
|
|
610
|
+
owner?: string;
|
|
610
611
|
items?: string[];
|
|
611
612
|
title?: string;
|
|
612
613
|
fulfiller?: string;
|
|
613
614
|
is_simulation_mode?: number;
|
|
614
615
|
fulfiller_priority?: {
|
|
615
616
|
name?: string;
|
|
616
|
-
owner?: string;
|
|
617
617
|
creation?: Date;
|
|
618
618
|
modified?: Date;
|
|
619
619
|
modified_by?: string;
|
|
620
|
-
parent?: string;
|
|
621
|
-
parentfield?: string;
|
|
622
|
-
parenttype?: string;
|
|
623
620
|
idx?: number;
|
|
624
621
|
docstatus?: number;
|
|
625
622
|
doctype?: string;
|
|
623
|
+
owner?: string;
|
|
624
|
+
parent?: string;
|
|
625
|
+
parentfield?: string;
|
|
626
|
+
parenttype?: string;
|
|
626
627
|
fulfiller?: string;
|
|
627
628
|
}[];
|
|
628
|
-
limit?: number;
|
|
629
629
|
warehouse_categories?: string[];
|
|
630
630
|
is_auto_bundling?: boolean;
|
|
631
631
|
dispatcher_preset?: string;
|
|
@@ -633,32 +633,32 @@ export declare const DispatchRun: z.ZodObject<{
|
|
|
633
633
|
trigger?: string;
|
|
634
634
|
}, {
|
|
635
635
|
name?: string;
|
|
636
|
-
owner?: string;
|
|
637
636
|
creation?: string;
|
|
638
637
|
modified?: string;
|
|
639
638
|
modified_by?: string;
|
|
640
639
|
idx?: number;
|
|
641
640
|
docstatus?: number;
|
|
642
641
|
doctype?: string;
|
|
642
|
+
limit?: number;
|
|
643
|
+
owner?: string;
|
|
643
644
|
items?: string[];
|
|
644
645
|
title?: string;
|
|
645
646
|
fulfiller?: string;
|
|
646
647
|
is_simulation_mode?: number;
|
|
647
648
|
fulfiller_priority?: {
|
|
648
649
|
name?: string;
|
|
649
|
-
owner?: string;
|
|
650
650
|
creation?: string;
|
|
651
651
|
modified?: string;
|
|
652
652
|
modified_by?: string;
|
|
653
|
-
parent?: string;
|
|
654
|
-
parentfield?: string;
|
|
655
|
-
parenttype?: string;
|
|
656
653
|
idx?: number;
|
|
657
654
|
docstatus?: number;
|
|
658
655
|
doctype?: string;
|
|
656
|
+
owner?: string;
|
|
657
|
+
parent?: string;
|
|
658
|
+
parentfield?: string;
|
|
659
|
+
parenttype?: string;
|
|
659
660
|
fulfiller?: string;
|
|
660
661
|
}[];
|
|
661
|
-
limit?: number;
|
|
662
662
|
warehouse_categories?: string[];
|
|
663
663
|
is_auto_bundling?: number;
|
|
664
664
|
dispatcher_preset?: string;
|
|
@@ -14,29 +14,29 @@ declare const DispatcherPresetFulfillerPriority: z.ZodObject<{
|
|
|
14
14
|
doctype: z.ZodString;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
name?: string;
|
|
17
|
-
owner?: string;
|
|
18
17
|
creation?: Date;
|
|
19
18
|
modified?: Date;
|
|
20
19
|
modified_by?: string;
|
|
21
|
-
parent?: string;
|
|
22
|
-
parentfield?: string;
|
|
23
|
-
parenttype?: string;
|
|
24
20
|
idx?: number;
|
|
25
21
|
docstatus?: number;
|
|
26
22
|
doctype?: string;
|
|
23
|
+
owner?: string;
|
|
24
|
+
parent?: string;
|
|
25
|
+
parentfield?: string;
|
|
26
|
+
parenttype?: string;
|
|
27
27
|
fulfiller?: string;
|
|
28
28
|
}, {
|
|
29
29
|
name?: string;
|
|
30
|
-
owner?: string;
|
|
31
30
|
creation?: unknown;
|
|
32
31
|
modified?: unknown;
|
|
33
32
|
modified_by?: string;
|
|
34
|
-
parent?: string;
|
|
35
|
-
parentfield?: string;
|
|
36
|
-
parenttype?: string;
|
|
37
33
|
idx?: number;
|
|
38
34
|
docstatus?: number;
|
|
39
35
|
doctype?: string;
|
|
36
|
+
owner?: string;
|
|
37
|
+
parent?: string;
|
|
38
|
+
parentfield?: string;
|
|
39
|
+
parenttype?: string;
|
|
40
40
|
fulfiller?: string;
|
|
41
41
|
}>;
|
|
42
42
|
export type DispatcherPresetFulfillerPriorityType = z.infer<typeof DispatcherPresetFulfillerPriority>;
|
|
@@ -68,83 +68,83 @@ export declare const ERPNextDispatcherPreset: z.ZodObject<{
|
|
|
68
68
|
doctype: z.ZodString;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
name?: string;
|
|
71
|
-
owner?: string;
|
|
72
71
|
creation?: Date;
|
|
73
72
|
modified?: Date;
|
|
74
73
|
modified_by?: string;
|
|
75
|
-
parent?: string;
|
|
76
|
-
parentfield?: string;
|
|
77
|
-
parenttype?: string;
|
|
78
74
|
idx?: number;
|
|
79
75
|
docstatus?: number;
|
|
80
76
|
doctype?: string;
|
|
77
|
+
owner?: string;
|
|
78
|
+
parent?: string;
|
|
79
|
+
parentfield?: string;
|
|
80
|
+
parenttype?: string;
|
|
81
81
|
fulfiller?: string;
|
|
82
82
|
}, {
|
|
83
83
|
name?: string;
|
|
84
|
-
owner?: string;
|
|
85
84
|
creation?: unknown;
|
|
86
85
|
modified?: unknown;
|
|
87
86
|
modified_by?: string;
|
|
88
|
-
parent?: string;
|
|
89
|
-
parentfield?: string;
|
|
90
|
-
parenttype?: string;
|
|
91
87
|
idx?: number;
|
|
92
88
|
docstatus?: number;
|
|
93
89
|
doctype?: string;
|
|
90
|
+
owner?: string;
|
|
91
|
+
parent?: string;
|
|
92
|
+
parentfield?: string;
|
|
93
|
+
parenttype?: string;
|
|
94
94
|
fulfiller?: string;
|
|
95
95
|
}>, "many">;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
name?: string;
|
|
98
|
-
owner?: string;
|
|
99
98
|
creation?: Date;
|
|
100
99
|
modified?: Date;
|
|
101
100
|
modified_by?: string;
|
|
102
101
|
idx?: number;
|
|
103
102
|
docstatus?: number;
|
|
104
103
|
doctype?: string;
|
|
104
|
+
owner?: string;
|
|
105
105
|
title?: string;
|
|
106
106
|
fulfiller?: string;
|
|
107
107
|
is_active?: boolean;
|
|
108
108
|
is_simulation_mode?: number;
|
|
109
109
|
fulfiller_priority?: {
|
|
110
110
|
name?: string;
|
|
111
|
-
owner?: string;
|
|
112
111
|
creation?: Date;
|
|
113
112
|
modified?: Date;
|
|
114
113
|
modified_by?: string;
|
|
115
|
-
parent?: string;
|
|
116
|
-
parentfield?: string;
|
|
117
|
-
parenttype?: string;
|
|
118
114
|
idx?: number;
|
|
119
115
|
docstatus?: number;
|
|
120
116
|
doctype?: string;
|
|
117
|
+
owner?: string;
|
|
118
|
+
parent?: string;
|
|
119
|
+
parentfield?: string;
|
|
120
|
+
parenttype?: string;
|
|
121
121
|
fulfiller?: string;
|
|
122
122
|
}[];
|
|
123
123
|
}, {
|
|
124
124
|
name?: string;
|
|
125
|
-
owner?: string;
|
|
126
125
|
creation?: unknown;
|
|
127
126
|
modified?: unknown;
|
|
128
127
|
modified_by?: string;
|
|
129
128
|
idx?: number;
|
|
130
129
|
docstatus?: number;
|
|
131
130
|
doctype?: string;
|
|
131
|
+
owner?: string;
|
|
132
132
|
title?: string;
|
|
133
133
|
fulfiller?: string;
|
|
134
134
|
is_active?: number;
|
|
135
135
|
is_simulation_mode?: number;
|
|
136
136
|
fulfiller_priority?: {
|
|
137
137
|
name?: string;
|
|
138
|
-
owner?: string;
|
|
139
138
|
creation?: unknown;
|
|
140
139
|
modified?: unknown;
|
|
141
140
|
modified_by?: string;
|
|
142
|
-
parent?: string;
|
|
143
|
-
parentfield?: string;
|
|
144
|
-
parenttype?: string;
|
|
145
141
|
idx?: number;
|
|
146
142
|
docstatus?: number;
|
|
147
143
|
doctype?: string;
|
|
144
|
+
owner?: string;
|
|
145
|
+
parent?: string;
|
|
146
|
+
parentfield?: string;
|
|
147
|
+
parenttype?: string;
|
|
148
148
|
fulfiller?: string;
|
|
149
149
|
}[];
|
|
150
150
|
}>;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { Client } from "@temporalio/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
export interface
|
|
3
|
+
export interface TemporalClientContructorOptions {
|
|
4
4
|
/**
|
|
5
5
|
* @description You can provide either an existing temporal client or temporalCredentials to initialize a new one.
|
|
6
6
|
*/
|
|
7
7
|
client?: Client;
|
|
8
|
+
temporalHost?: string;
|
|
9
|
+
temporalCert?: string;
|
|
10
|
+
temporalKey?: string;
|
|
11
|
+
temporalNamespace?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ERPNextQueueClientContructorOptions {
|
|
8
14
|
/**
|
|
9
15
|
* @description You can provide either temporalCredentials or an existing temporal client.
|
|
10
16
|
*/
|
|
11
|
-
temporalCredentials
|
|
12
|
-
temporalHost?: string;
|
|
13
|
-
temporalCert?: string;
|
|
14
|
-
temporalKey?: string;
|
|
15
|
-
temporalNamespace?: string;
|
|
16
|
-
};
|
|
17
|
+
temporalCredentials: TemporalClientContructorOptions;
|
|
17
18
|
/**
|
|
18
19
|
* @description Downloading and uploading files requires a direct connection to ERPNext
|
|
19
20
|
* Please provide the credentials to enable features related to file transfers to or from ERPNext
|