erpnext-queue-client 1.11.0 → 1.12.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/erpnext/doctypes/item.d.ts +0 -24
- package/dist/erpnext/model/DispatchRun.d.ts +38 -479
- package/dist/erpnext/model/DispatchRun.js +17 -110
- package/dist/erpnext/model/DispatcherPreset.d.ts +3 -3
- package/dist/erpnext/model/DispatcherPreset.js +5 -5
- package/dist/erpnext/model/FulfillerSettings.d.ts +2 -2
- package/dist/erpnext/model/Item.d.ts +0 -80
- package/dist/erpnext/model/Item.js +1 -5
- package/dist/utils/request.js +1 -1
- package/package.json +1 -1
|
@@ -147,8 +147,6 @@ export declare class ERPNextItem {
|
|
|
147
147
|
parenttype: string;
|
|
148
148
|
idx: number;
|
|
149
149
|
docstatus: number;
|
|
150
|
-
barcode: string;
|
|
151
|
-
barcode_type: string;
|
|
152
150
|
supplier: string;
|
|
153
151
|
}[];
|
|
154
152
|
customer_items: any[];
|
|
@@ -164,8 +162,6 @@ export declare class ERPNextItem {
|
|
|
164
162
|
parenttype: string;
|
|
165
163
|
idx: number;
|
|
166
164
|
docstatus: number;
|
|
167
|
-
barcode: string;
|
|
168
|
-
barcode_type: string;
|
|
169
165
|
certification: string;
|
|
170
166
|
}[];
|
|
171
167
|
image?: string | null | undefined;
|
|
@@ -322,8 +318,6 @@ export declare class ERPNextItem {
|
|
|
322
318
|
parenttype: string;
|
|
323
319
|
idx: number;
|
|
324
320
|
docstatus: number;
|
|
325
|
-
barcode: string;
|
|
326
|
-
barcode_type: string;
|
|
327
321
|
supplier: string;
|
|
328
322
|
}[];
|
|
329
323
|
customer_items: any[];
|
|
@@ -339,8 +333,6 @@ export declare class ERPNextItem {
|
|
|
339
333
|
parenttype: string;
|
|
340
334
|
idx: number;
|
|
341
335
|
docstatus: number;
|
|
342
|
-
barcode: string;
|
|
343
|
-
barcode_type: string;
|
|
344
336
|
certification: string;
|
|
345
337
|
}[];
|
|
346
338
|
image?: string | null | undefined;
|
|
@@ -494,8 +486,6 @@ export declare class ERPNextItem {
|
|
|
494
486
|
parenttype: string;
|
|
495
487
|
idx: number;
|
|
496
488
|
docstatus: number;
|
|
497
|
-
barcode: string;
|
|
498
|
-
barcode_type: string;
|
|
499
489
|
supplier: string;
|
|
500
490
|
}[];
|
|
501
491
|
customer_items: any[];
|
|
@@ -511,8 +501,6 @@ export declare class ERPNextItem {
|
|
|
511
501
|
parenttype: string;
|
|
512
502
|
idx: number;
|
|
513
503
|
docstatus: number;
|
|
514
|
-
barcode: string;
|
|
515
|
-
barcode_type: string;
|
|
516
504
|
certification: string;
|
|
517
505
|
}[];
|
|
518
506
|
image?: string | null | undefined;
|
|
@@ -670,8 +658,6 @@ export declare class ERPNextItem {
|
|
|
670
658
|
parenttype: string;
|
|
671
659
|
idx: number;
|
|
672
660
|
docstatus: number;
|
|
673
|
-
barcode: string;
|
|
674
|
-
barcode_type: string;
|
|
675
661
|
supplier: string;
|
|
676
662
|
}[];
|
|
677
663
|
customer_items: any[];
|
|
@@ -687,8 +673,6 @@ export declare class ERPNextItem {
|
|
|
687
673
|
parenttype: string;
|
|
688
674
|
idx: number;
|
|
689
675
|
docstatus: number;
|
|
690
|
-
barcode: string;
|
|
691
|
-
barcode_type: string;
|
|
692
676
|
certification: string;
|
|
693
677
|
}[];
|
|
694
678
|
image?: string | null | undefined;
|
|
@@ -846,8 +830,6 @@ export declare class ERPNextItem {
|
|
|
846
830
|
parenttype: string;
|
|
847
831
|
idx: number;
|
|
848
832
|
docstatus: number;
|
|
849
|
-
barcode: string;
|
|
850
|
-
barcode_type: string;
|
|
851
833
|
supplier: string;
|
|
852
834
|
}[];
|
|
853
835
|
customer_items: any[];
|
|
@@ -863,8 +845,6 @@ export declare class ERPNextItem {
|
|
|
863
845
|
parenttype: string;
|
|
864
846
|
idx: number;
|
|
865
847
|
docstatus: number;
|
|
866
|
-
barcode: string;
|
|
867
|
-
barcode_type: string;
|
|
868
848
|
certification: string;
|
|
869
849
|
}[];
|
|
870
850
|
image?: string | null | undefined;
|
|
@@ -1022,8 +1002,6 @@ export declare class ERPNextItem {
|
|
|
1022
1002
|
parenttype: string;
|
|
1023
1003
|
idx: number;
|
|
1024
1004
|
docstatus: number;
|
|
1025
|
-
barcode: string;
|
|
1026
|
-
barcode_type: string;
|
|
1027
1005
|
supplier: string;
|
|
1028
1006
|
}[];
|
|
1029
1007
|
customer_items: any[];
|
|
@@ -1039,8 +1017,6 @@ export declare class ERPNextItem {
|
|
|
1039
1017
|
parenttype: string;
|
|
1040
1018
|
idx: number;
|
|
1041
1019
|
docstatus: number;
|
|
1042
|
-
barcode: string;
|
|
1043
|
-
barcode_type: string;
|
|
1044
1020
|
certification: string;
|
|
1045
1021
|
}[];
|
|
1046
1022
|
image?: string | null | undefined;
|
|
@@ -1,186 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
declare const DispatcherPresetFulfillerPriority: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
owner: z.ZodString;
|
|
5
|
-
creation: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
6
|
-
modified: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
7
|
-
modified_by: z.ZodString;
|
|
8
|
-
parent: z.ZodString;
|
|
9
|
-
parentfield: z.ZodString;
|
|
10
|
-
parenttype: z.ZodString;
|
|
11
|
-
idx: z.ZodNumber;
|
|
12
|
-
docstatus: z.ZodNumber;
|
|
13
|
-
fulfiller: z.ZodString;
|
|
14
|
-
doctype: z.ZodString;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
name: string;
|
|
17
|
-
doctype: string;
|
|
18
|
-
owner: string;
|
|
19
|
-
creation: Date;
|
|
20
|
-
modified: Date;
|
|
21
|
-
modified_by: string;
|
|
22
|
-
parent: string;
|
|
23
|
-
parentfield: string;
|
|
24
|
-
parenttype: string;
|
|
25
|
-
idx: number;
|
|
26
|
-
docstatus: number;
|
|
27
|
-
fulfiller: string;
|
|
28
|
-
}, {
|
|
29
|
-
name: string;
|
|
30
|
-
doctype: string;
|
|
31
|
-
owner: string;
|
|
32
|
-
modified_by: string;
|
|
33
|
-
parent: string;
|
|
34
|
-
parentfield: string;
|
|
35
|
-
parenttype: string;
|
|
36
|
-
idx: number;
|
|
37
|
-
docstatus: number;
|
|
38
|
-
fulfiller: string;
|
|
39
|
-
creation?: unknown;
|
|
40
|
-
modified?: unknown;
|
|
41
|
-
}>;
|
|
42
|
-
export type DispatcherPresetFulfillerPriorityType = z.infer<typeof DispatcherPresetFulfillerPriority>;
|
|
43
|
-
export declare const ERPNextDispatcherPreset: z.ZodObject<{
|
|
44
|
-
name: z.ZodString;
|
|
45
|
-
owner: z.ZodString;
|
|
46
|
-
creation: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
47
|
-
modified: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
48
|
-
modified_by: z.ZodString;
|
|
49
|
-
idx: z.ZodNumber;
|
|
50
|
-
docstatus: z.ZodNumber;
|
|
51
|
-
is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
52
|
-
title: z.ZodString;
|
|
53
|
-
fulfiller: z.ZodString;
|
|
54
|
-
doctype: z.ZodString;
|
|
55
|
-
is_simulation_mode: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
56
|
-
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
57
|
-
name: z.ZodString;
|
|
58
|
-
owner: z.ZodString;
|
|
59
|
-
creation: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
60
|
-
modified: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
61
|
-
modified_by: z.ZodString;
|
|
62
|
-
parent: z.ZodString;
|
|
63
|
-
parentfield: z.ZodString;
|
|
64
|
-
parenttype: z.ZodString;
|
|
65
|
-
idx: z.ZodNumber;
|
|
66
|
-
docstatus: z.ZodNumber;
|
|
67
|
-
fulfiller: z.ZodString;
|
|
68
|
-
doctype: z.ZodString;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
name: string;
|
|
71
|
-
doctype: string;
|
|
72
|
-
owner: string;
|
|
73
|
-
creation: Date;
|
|
74
|
-
modified: Date;
|
|
75
|
-
modified_by: string;
|
|
76
|
-
parent: string;
|
|
77
|
-
parentfield: string;
|
|
78
|
-
parenttype: string;
|
|
79
|
-
idx: number;
|
|
80
|
-
docstatus: number;
|
|
81
|
-
fulfiller: string;
|
|
82
|
-
}, {
|
|
83
|
-
name: string;
|
|
84
|
-
doctype: string;
|
|
85
|
-
owner: string;
|
|
86
|
-
modified_by: string;
|
|
87
|
-
parent: string;
|
|
88
|
-
parentfield: string;
|
|
89
|
-
parenttype: string;
|
|
90
|
-
idx: number;
|
|
91
|
-
docstatus: number;
|
|
92
|
-
fulfiller: string;
|
|
93
|
-
creation?: unknown;
|
|
94
|
-
modified?: unknown;
|
|
95
|
-
}>, "many">;
|
|
96
|
-
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
name: string;
|
|
98
|
-
doctype: string;
|
|
99
|
-
owner: string;
|
|
100
|
-
creation: Date;
|
|
101
|
-
modified: Date;
|
|
102
|
-
modified_by: string;
|
|
103
|
-
idx: number;
|
|
104
|
-
docstatus: number;
|
|
105
|
-
title: string;
|
|
106
|
-
fulfiller: string;
|
|
107
|
-
is_active: boolean;
|
|
108
|
-
fulfiller_priority: {
|
|
109
|
-
name: string;
|
|
110
|
-
doctype: string;
|
|
111
|
-
owner: string;
|
|
112
|
-
creation: Date;
|
|
113
|
-
modified: Date;
|
|
114
|
-
modified_by: string;
|
|
115
|
-
parent: string;
|
|
116
|
-
parentfield: string;
|
|
117
|
-
parenttype: string;
|
|
118
|
-
idx: number;
|
|
119
|
-
docstatus: number;
|
|
120
|
-
fulfiller: string;
|
|
121
|
-
}[];
|
|
122
|
-
is_simulation_mode?: number | null | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
name: string;
|
|
125
|
-
doctype: string;
|
|
126
|
-
owner: string;
|
|
127
|
-
modified_by: string;
|
|
128
|
-
idx: number;
|
|
129
|
-
docstatus: number;
|
|
130
|
-
title: string;
|
|
131
|
-
fulfiller: string;
|
|
132
|
-
is_active: number;
|
|
133
|
-
fulfiller_priority: {
|
|
134
|
-
name: string;
|
|
135
|
-
doctype: string;
|
|
136
|
-
owner: string;
|
|
137
|
-
modified_by: string;
|
|
138
|
-
parent: string;
|
|
139
|
-
parentfield: string;
|
|
140
|
-
parenttype: string;
|
|
141
|
-
idx: number;
|
|
142
|
-
docstatus: number;
|
|
143
|
-
fulfiller: string;
|
|
144
|
-
creation?: unknown;
|
|
145
|
-
modified?: unknown;
|
|
146
|
-
}[];
|
|
147
|
-
creation?: unknown;
|
|
148
|
-
modified?: unknown;
|
|
149
|
-
is_simulation_mode?: number | null | undefined;
|
|
150
|
-
}>;
|
|
151
|
-
export type DispatcherPresetType = z.infer<typeof ERPNextDispatcherPreset>;
|
|
152
|
-
export declare const ShipstormRunOptions: z.ZodObject<{
|
|
153
|
-
dispatcherPresetId: z.ZodString;
|
|
154
|
-
warehouseCategories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
155
|
-
fulfillmentStation: z.ZodOptional<z.ZodString>;
|
|
156
|
-
skus: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
157
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
158
|
-
isAutoBundling: z.ZodBoolean;
|
|
159
|
-
strategy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"multiOrder">, z.ZodLiteral<"singleOrder">]>>;
|
|
160
|
-
orderNumber: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
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
|
-
}, {
|
|
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
|
-
}>;
|
|
180
|
-
export type ShipstormRunOptionsType = z.infer<typeof ShipstormRunOptions>;
|
|
181
2
|
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">]>;
|
|
182
3
|
export type TriggerType = z.infer<typeof Trigger>;
|
|
183
|
-
export declare const
|
|
4
|
+
export declare const DispatchRun: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
184
5
|
name: z.ZodString;
|
|
185
6
|
owner: z.ZodString;
|
|
186
7
|
creation: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -243,14 +64,27 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
243
64
|
warehouse_category: string;
|
|
244
65
|
}>, "many">>>;
|
|
245
66
|
fulfillment_station: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
246
|
-
items: z.ZodOptional<z.ZodArray<z.
|
|
67
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
68
|
+
item: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
item: string;
|
|
71
|
+
}, {
|
|
72
|
+
item: string;
|
|
73
|
+
}>, "many">>;
|
|
247
74
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
248
75
|
is_auto_bundling: z.ZodNumber;
|
|
249
76
|
dispatcher_preset: z.ZodString;
|
|
250
77
|
picking_strategy: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Single Order">, z.ZodLiteral<"Multi Order">]>>>;
|
|
78
|
+
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
79
|
+
fulfiller: z.ZodString;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
fulfiller: string;
|
|
82
|
+
}, {
|
|
83
|
+
fulfiller: string;
|
|
84
|
+
}>, "many">;
|
|
251
85
|
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">]>;
|
|
252
86
|
order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
253
|
-
status: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]
|
|
87
|
+
status: z.ZodDefault<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>>;
|
|
254
88
|
}>, "strip", z.ZodTypeAny, {
|
|
255
89
|
status: "Processing" | "Failed" | "Completed";
|
|
256
90
|
name: string;
|
|
@@ -264,17 +98,6 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
264
98
|
title: string;
|
|
265
99
|
fulfiller: string;
|
|
266
100
|
fulfiller_priority: {
|
|
267
|
-
name: string;
|
|
268
|
-
doctype: string;
|
|
269
|
-
owner: string;
|
|
270
|
-
creation: Date;
|
|
271
|
-
modified: Date;
|
|
272
|
-
modified_by: string;
|
|
273
|
-
parent: string;
|
|
274
|
-
parentfield: string;
|
|
275
|
-
parenttype: string;
|
|
276
|
-
idx: number;
|
|
277
|
-
docstatus: number;
|
|
278
101
|
fulfiller: string;
|
|
279
102
|
}[];
|
|
280
103
|
dispatch_run_id: string;
|
|
@@ -282,7 +105,9 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
282
105
|
dispatcher_preset: string;
|
|
283
106
|
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
284
107
|
limit?: number | undefined;
|
|
285
|
-
items?:
|
|
108
|
+
items?: {
|
|
109
|
+
item: string;
|
|
110
|
+
}[] | undefined;
|
|
286
111
|
is_simulation_mode?: number | null | undefined;
|
|
287
112
|
warehouse_categories?: {
|
|
288
113
|
warehouse_category: string;
|
|
@@ -291,7 +116,6 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
291
116
|
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
292
117
|
order_number?: string | null | undefined;
|
|
293
118
|
}, {
|
|
294
|
-
status: "Processing" | "Failed" | "Completed";
|
|
295
119
|
name: string;
|
|
296
120
|
doctype: string;
|
|
297
121
|
owner: string;
|
|
@@ -301,27 +125,19 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
301
125
|
title: string;
|
|
302
126
|
fulfiller: string;
|
|
303
127
|
fulfiller_priority: {
|
|
304
|
-
name: string;
|
|
305
|
-
doctype: string;
|
|
306
|
-
owner: string;
|
|
307
|
-
modified_by: string;
|
|
308
|
-
parent: string;
|
|
309
|
-
parentfield: string;
|
|
310
|
-
parenttype: string;
|
|
311
|
-
idx: number;
|
|
312
|
-
docstatus: number;
|
|
313
128
|
fulfiller: string;
|
|
314
|
-
creation?: unknown;
|
|
315
|
-
modified?: unknown;
|
|
316
129
|
}[];
|
|
317
130
|
dispatch_run_id: string;
|
|
318
131
|
is_auto_bundling: number;
|
|
319
132
|
dispatcher_preset: string;
|
|
320
133
|
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
134
|
+
status?: "Processing" | "Failed" | "Completed" | undefined;
|
|
321
135
|
limit?: number | undefined;
|
|
322
136
|
creation?: unknown;
|
|
323
137
|
modified?: unknown;
|
|
324
|
-
items?:
|
|
138
|
+
items?: {
|
|
139
|
+
item: string;
|
|
140
|
+
}[] | undefined;
|
|
325
141
|
is_simulation_mode?: number | null | undefined;
|
|
326
142
|
warehouse_categories?: {
|
|
327
143
|
warehouse_category: string;
|
|
@@ -330,8 +146,8 @@ export declare const ERPNextShipstormRun: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
330
146
|
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
331
147
|
order_number?: string | null | undefined;
|
|
332
148
|
}>;
|
|
333
|
-
export type
|
|
334
|
-
export declare const
|
|
149
|
+
export type DispatchRunType = z.infer<typeof DispatchRun>;
|
|
150
|
+
export declare const DispatchRunPostBody: z.ZodObject<Pick<z.objectUtil.extendShape<Omit<{
|
|
335
151
|
name: z.ZodString;
|
|
336
152
|
owner: z.ZodString;
|
|
337
153
|
creation: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -394,136 +210,17 @@ export declare const ShipstormRun: z.ZodObject<z.objectUtil.extendShape<Omit<z.o
|
|
|
394
210
|
warehouse_category: string;
|
|
395
211
|
}>, "many">>>;
|
|
396
212
|
fulfillment_station: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
397
|
-
items: z.ZodOptional<z.ZodArray<z.
|
|
398
|
-
|
|
399
|
-
is_auto_bundling: z.ZodNumber;
|
|
400
|
-
dispatcher_preset: z.ZodString;
|
|
401
|
-
picking_strategy: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Single Order">, z.ZodLiteral<"Multi Order">]>>>;
|
|
402
|
-
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">]>;
|
|
403
|
-
order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
404
|
-
status: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>;
|
|
405
|
-
}>, "name" | "doctype" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus">, {
|
|
406
|
-
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
407
|
-
fulfiller: z.ZodString;
|
|
408
|
-
}, "strip", z.ZodTypeAny, {
|
|
409
|
-
fulfiller: string;
|
|
410
|
-
}, {
|
|
411
|
-
fulfiller: string;
|
|
412
|
-
}>, "many">;
|
|
413
|
-
}>, "strip", z.ZodTypeAny, {
|
|
414
|
-
status: "Processing" | "Failed" | "Completed";
|
|
415
|
-
title: string;
|
|
416
|
-
fulfiller: string;
|
|
417
|
-
fulfiller_priority: {
|
|
418
|
-
fulfiller: string;
|
|
419
|
-
}[];
|
|
420
|
-
dispatch_run_id: string;
|
|
421
|
-
is_auto_bundling: number;
|
|
422
|
-
dispatcher_preset: string;
|
|
423
|
-
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
424
|
-
limit?: number | undefined;
|
|
425
|
-
items?: string[] | undefined;
|
|
426
|
-
is_simulation_mode?: number | null | undefined;
|
|
427
|
-
warehouse_categories?: {
|
|
428
|
-
warehouse_category: string;
|
|
429
|
-
}[] | null | undefined;
|
|
430
|
-
fulfillment_station?: string | null | undefined;
|
|
431
|
-
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
432
|
-
order_number?: string | null | undefined;
|
|
433
|
-
}, {
|
|
434
|
-
status: "Processing" | "Failed" | "Completed";
|
|
435
|
-
title: string;
|
|
436
|
-
fulfiller: string;
|
|
437
|
-
fulfiller_priority: {
|
|
438
|
-
fulfiller: string;
|
|
439
|
-
}[];
|
|
440
|
-
dispatch_run_id: string;
|
|
441
|
-
is_auto_bundling: number;
|
|
442
|
-
dispatcher_preset: string;
|
|
443
|
-
trigger: "UI" | "API" | "API-TEST" | "REAL-DATA-TEST" | "SCHEDULE";
|
|
444
|
-
limit?: number | undefined;
|
|
445
|
-
items?: string[] | undefined;
|
|
446
|
-
is_simulation_mode?: number | null | undefined;
|
|
447
|
-
warehouse_categories?: {
|
|
448
|
-
warehouse_category: string;
|
|
449
|
-
}[] | null | undefined;
|
|
450
|
-
fulfillment_station?: string | null | undefined;
|
|
451
|
-
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
452
|
-
order_number?: string | null | undefined;
|
|
453
|
-
}>;
|
|
454
|
-
export type ShipstormRunType = z.infer<typeof ShipstormRun>;
|
|
455
|
-
export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<Omit<{
|
|
456
|
-
name: z.ZodString;
|
|
457
|
-
owner: z.ZodString;
|
|
458
|
-
creation: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
459
|
-
modified: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
460
|
-
modified_by: z.ZodString;
|
|
461
|
-
idx: z.ZodNumber;
|
|
462
|
-
docstatus: z.ZodNumber;
|
|
463
|
-
is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
464
|
-
title: z.ZodString;
|
|
465
|
-
fulfiller: z.ZodString;
|
|
466
|
-
doctype: z.ZodString;
|
|
467
|
-
is_simulation_mode: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
468
|
-
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
469
|
-
name: z.ZodString;
|
|
470
|
-
owner: z.ZodString;
|
|
471
|
-
creation: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
472
|
-
modified: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
473
|
-
modified_by: z.ZodString;
|
|
474
|
-
parent: z.ZodString;
|
|
475
|
-
parentfield: z.ZodString;
|
|
476
|
-
parenttype: z.ZodString;
|
|
477
|
-
idx: z.ZodNumber;
|
|
478
|
-
docstatus: z.ZodNumber;
|
|
479
|
-
fulfiller: z.ZodString;
|
|
480
|
-
doctype: z.ZodString;
|
|
481
|
-
}, "strip", z.ZodTypeAny, {
|
|
482
|
-
name: string;
|
|
483
|
-
doctype: string;
|
|
484
|
-
owner: string;
|
|
485
|
-
creation: Date;
|
|
486
|
-
modified: Date;
|
|
487
|
-
modified_by: string;
|
|
488
|
-
parent: string;
|
|
489
|
-
parentfield: string;
|
|
490
|
-
parenttype: string;
|
|
491
|
-
idx: number;
|
|
492
|
-
docstatus: number;
|
|
493
|
-
fulfiller: string;
|
|
494
|
-
}, {
|
|
495
|
-
name: string;
|
|
496
|
-
doctype: string;
|
|
497
|
-
owner: string;
|
|
498
|
-
modified_by: string;
|
|
499
|
-
parent: string;
|
|
500
|
-
parentfield: string;
|
|
501
|
-
parenttype: string;
|
|
502
|
-
idx: number;
|
|
503
|
-
docstatus: number;
|
|
504
|
-
fulfiller: string;
|
|
505
|
-
creation?: unknown;
|
|
506
|
-
modified?: unknown;
|
|
507
|
-
}>, "many">;
|
|
508
|
-
}, "is_active">, {
|
|
509
|
-
dispatch_run_id: z.ZodString;
|
|
510
|
-
warehouse_categories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
511
|
-
warehouse_category: z.ZodString;
|
|
213
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
214
|
+
item: z.ZodString;
|
|
512
215
|
}, "strip", z.ZodTypeAny, {
|
|
513
|
-
|
|
216
|
+
item: string;
|
|
514
217
|
}, {
|
|
515
|
-
|
|
516
|
-
}>, "many"
|
|
517
|
-
fulfillment_station: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
518
|
-
items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
218
|
+
item: string;
|
|
219
|
+
}>, "many">>;
|
|
519
220
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
520
221
|
is_auto_bundling: z.ZodNumber;
|
|
521
222
|
dispatcher_preset: z.ZodString;
|
|
522
223
|
picking_strategy: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Single Order">, z.ZodLiteral<"Multi Order">]>>>;
|
|
523
|
-
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">]>;
|
|
524
|
-
order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
525
|
-
status: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>;
|
|
526
|
-
}>, "limit" | "items" | "title" | "fulfiller" | "is_auto_bundling" | "dispatcher_preset" | "picking_strategy" | "trigger">, {
|
|
527
224
|
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
528
225
|
fulfiller: z.ZodString;
|
|
529
226
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -531,21 +228,10 @@ export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extend
|
|
|
531
228
|
}, {
|
|
532
229
|
fulfiller: string;
|
|
533
230
|
}>, "many">;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
}, {
|
|
539
|
-
item: string;
|
|
540
|
-
}>, "many">>>;
|
|
541
|
-
warehouse_categories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
542
|
-
warehouse_category: z.ZodString;
|
|
543
|
-
}, "strip", z.ZodTypeAny, {
|
|
544
|
-
warehouse_category: string;
|
|
545
|
-
}, {
|
|
546
|
-
warehouse_category: string;
|
|
547
|
-
}>, "many">>>;
|
|
548
|
-
}>, "strip", z.ZodTypeAny, {
|
|
231
|
+
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">]>;
|
|
232
|
+
order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
233
|
+
status: z.ZodDefault<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>>;
|
|
234
|
+
}>, "limit" | "items" | "title" | "fulfiller" | "fulfiller_priority" | "warehouse_categories" | "is_auto_bundling" | "dispatcher_preset" | "picking_strategy" | "trigger">, "strip", z.ZodTypeAny, {
|
|
549
235
|
title: string;
|
|
550
236
|
fulfiller: string;
|
|
551
237
|
fulfiller_priority: {
|
|
@@ -557,7 +243,7 @@ export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extend
|
|
|
557
243
|
limit?: number | undefined;
|
|
558
244
|
items?: {
|
|
559
245
|
item: string;
|
|
560
|
-
}[] |
|
|
246
|
+
}[] | undefined;
|
|
561
247
|
warehouse_categories?: {
|
|
562
248
|
warehouse_category: string;
|
|
563
249
|
}[] | null | undefined;
|
|
@@ -574,13 +260,13 @@ export declare const ERPNextDispatchRunPostBody: z.ZodObject<z.objectUtil.extend
|
|
|
574
260
|
limit?: number | undefined;
|
|
575
261
|
items?: {
|
|
576
262
|
item: string;
|
|
577
|
-
}[] |
|
|
263
|
+
}[] | undefined;
|
|
578
264
|
warehouse_categories?: {
|
|
579
265
|
warehouse_category: string;
|
|
580
266
|
}[] | null | undefined;
|
|
581
267
|
picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
|
|
582
268
|
}>;
|
|
583
|
-
export type
|
|
269
|
+
export type DispatchRunPostBodyType = z.infer<typeof DispatchRunPostBody>;
|
|
584
270
|
export declare const DispatchRunPostFilteredResponse: z.ZodObject<{
|
|
585
271
|
name: z.ZodString;
|
|
586
272
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -588,132 +274,6 @@ export declare const DispatchRunPostFilteredResponse: z.ZodObject<{
|
|
|
588
274
|
}, {
|
|
589
275
|
name: string;
|
|
590
276
|
}>;
|
|
591
|
-
export declare const DispatchRun: z.ZodObject<{
|
|
592
|
-
name: z.ZodString;
|
|
593
|
-
owner: z.ZodString;
|
|
594
|
-
creation: z.ZodEffects<z.ZodString, Date, string>;
|
|
595
|
-
modified: z.ZodEffects<z.ZodString, Date, string>;
|
|
596
|
-
modified_by: z.ZodString;
|
|
597
|
-
idx: z.ZodNumber;
|
|
598
|
-
docstatus: z.ZodNumber;
|
|
599
|
-
title: z.ZodString;
|
|
600
|
-
fulfiller: z.ZodString;
|
|
601
|
-
picking_strategy: z.ZodString;
|
|
602
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
603
|
-
items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
604
|
-
warehouse_categories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
605
|
-
trigger: z.ZodString;
|
|
606
|
-
doctype: z.ZodString;
|
|
607
|
-
fulfiller_priority: z.ZodArray<z.ZodObject<{
|
|
608
|
-
name: z.ZodString;
|
|
609
|
-
owner: z.ZodString;
|
|
610
|
-
creation: z.ZodEffects<z.ZodString, Date, string>;
|
|
611
|
-
modified: z.ZodEffects<z.ZodString, Date, string>;
|
|
612
|
-
modified_by: z.ZodString;
|
|
613
|
-
parent: z.ZodString;
|
|
614
|
-
parentfield: z.ZodString;
|
|
615
|
-
parenttype: z.ZodString;
|
|
616
|
-
idx: z.ZodNumber;
|
|
617
|
-
docstatus: z.ZodNumber;
|
|
618
|
-
fulfiller: z.ZodString;
|
|
619
|
-
doctype: z.ZodString;
|
|
620
|
-
}, "strip", z.ZodTypeAny, {
|
|
621
|
-
name: string;
|
|
622
|
-
doctype: string;
|
|
623
|
-
owner: string;
|
|
624
|
-
creation: Date;
|
|
625
|
-
modified: Date;
|
|
626
|
-
modified_by: string;
|
|
627
|
-
parent: string;
|
|
628
|
-
parentfield: string;
|
|
629
|
-
parenttype: string;
|
|
630
|
-
idx: number;
|
|
631
|
-
docstatus: number;
|
|
632
|
-
fulfiller: string;
|
|
633
|
-
}, {
|
|
634
|
-
name: string;
|
|
635
|
-
doctype: string;
|
|
636
|
-
owner: string;
|
|
637
|
-
creation: string;
|
|
638
|
-
modified: string;
|
|
639
|
-
modified_by: string;
|
|
640
|
-
parent: string;
|
|
641
|
-
parentfield: string;
|
|
642
|
-
parenttype: string;
|
|
643
|
-
idx: number;
|
|
644
|
-
docstatus: number;
|
|
645
|
-
fulfiller: string;
|
|
646
|
-
}>, "many">;
|
|
647
|
-
is_auto_bundling: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
648
|
-
dispatcher_preset: z.ZodString;
|
|
649
|
-
is_simulation_mode: z.ZodNumber;
|
|
650
|
-
}, "strip", z.ZodTypeAny, {
|
|
651
|
-
name: string;
|
|
652
|
-
doctype: string;
|
|
653
|
-
owner: string;
|
|
654
|
-
creation: Date;
|
|
655
|
-
modified: Date;
|
|
656
|
-
modified_by: string;
|
|
657
|
-
idx: number;
|
|
658
|
-
docstatus: number;
|
|
659
|
-
title: string;
|
|
660
|
-
fulfiller: string;
|
|
661
|
-
is_simulation_mode: number;
|
|
662
|
-
fulfiller_priority: {
|
|
663
|
-
name: string;
|
|
664
|
-
doctype: string;
|
|
665
|
-
owner: string;
|
|
666
|
-
creation: Date;
|
|
667
|
-
modified: Date;
|
|
668
|
-
modified_by: string;
|
|
669
|
-
parent: string;
|
|
670
|
-
parentfield: string;
|
|
671
|
-
parenttype: string;
|
|
672
|
-
idx: number;
|
|
673
|
-
docstatus: number;
|
|
674
|
-
fulfiller: string;
|
|
675
|
-
}[];
|
|
676
|
-
is_auto_bundling: boolean;
|
|
677
|
-
dispatcher_preset: string;
|
|
678
|
-
picking_strategy: string;
|
|
679
|
-
trigger: string;
|
|
680
|
-
limit?: number | null | undefined;
|
|
681
|
-
items?: string[] | null | undefined;
|
|
682
|
-
warehouse_categories?: string[] | null | undefined;
|
|
683
|
-
}, {
|
|
684
|
-
name: string;
|
|
685
|
-
doctype: string;
|
|
686
|
-
owner: string;
|
|
687
|
-
creation: string;
|
|
688
|
-
modified: string;
|
|
689
|
-
modified_by: string;
|
|
690
|
-
idx: number;
|
|
691
|
-
docstatus: number;
|
|
692
|
-
title: string;
|
|
693
|
-
fulfiller: string;
|
|
694
|
-
is_simulation_mode: number;
|
|
695
|
-
fulfiller_priority: {
|
|
696
|
-
name: string;
|
|
697
|
-
doctype: string;
|
|
698
|
-
owner: string;
|
|
699
|
-
creation: string;
|
|
700
|
-
modified: string;
|
|
701
|
-
modified_by: string;
|
|
702
|
-
parent: string;
|
|
703
|
-
parentfield: string;
|
|
704
|
-
parenttype: string;
|
|
705
|
-
idx: number;
|
|
706
|
-
docstatus: number;
|
|
707
|
-
fulfiller: string;
|
|
708
|
-
}[];
|
|
709
|
-
is_auto_bundling: number;
|
|
710
|
-
dispatcher_preset: string;
|
|
711
|
-
picking_strategy: string;
|
|
712
|
-
trigger: string;
|
|
713
|
-
limit?: number | null | undefined;
|
|
714
|
-
items?: string[] | null | undefined;
|
|
715
|
-
warehouse_categories?: string[] | null | undefined;
|
|
716
|
-
}>;
|
|
717
277
|
export declare const DispatchRunMatchesByOrderNumber: z.ZodArray<z.ZodObject<{
|
|
718
278
|
name: z.ZodString;
|
|
719
279
|
picking_strategy: z.ZodString;
|
|
@@ -733,5 +293,4 @@ export declare const DispatchRunMatchesByOrderNumber: z.ZodArray<z.ZodObject<{
|
|
|
733
293
|
picking_strategy: string;
|
|
734
294
|
order_number: string;
|
|
735
295
|
}>, "many">;
|
|
736
|
-
export type
|
|
737
|
-
export {};
|
|
296
|
+
export type DispatchRunMatchesByOrderNumberType = z.infer<typeof DispatchRunMatchesByOrderNumber>;
|
|
@@ -1,55 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DispatchRunMatchesByOrderNumber = exports.
|
|
3
|
+
exports.DispatchRunMatchesByOrderNumber = exports.DispatchRunPostFilteredResponse = exports.DispatchRunPostBody = exports.DispatchRun = exports.Trigger = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
6
|
-
// A shipstormRun has ERPNextDispatcherPreset data AND the shipstorm run options
|
|
7
|
-
// Dispatch Run Response from ERPNext
|
|
8
|
-
const DispatcherPresetFulfillerPriority = zod_1.z.object({
|
|
9
|
-
name: zod_1.z.string(),
|
|
10
|
-
owner: zod_1.z.string(),
|
|
11
|
-
creation: DateSchema_1.dateSchema,
|
|
12
|
-
modified: DateSchema_1.dateSchema,
|
|
13
|
-
modified_by: zod_1.z.string(),
|
|
14
|
-
parent: zod_1.z.string(),
|
|
15
|
-
parentfield: zod_1.z.string(),
|
|
16
|
-
parenttype: zod_1.z.string(),
|
|
17
|
-
idx: zod_1.z.number().int(),
|
|
18
|
-
docstatus: zod_1.z.number().int(),
|
|
19
|
-
fulfiller: zod_1.z.string(),
|
|
20
|
-
doctype: zod_1.z.string(),
|
|
21
|
-
});
|
|
22
|
-
// Dispatcher Preset Response from ERPNext
|
|
23
|
-
exports.ERPNextDispatcherPreset = zod_1.z
|
|
24
|
-
.object({
|
|
25
|
-
name: zod_1.z.string(),
|
|
26
|
-
owner: zod_1.z.string(),
|
|
27
|
-
creation: DateSchema_1.dateSchema,
|
|
28
|
-
modified: DateSchema_1.dateSchema,
|
|
29
|
-
modified_by: zod_1.z.string(),
|
|
30
|
-
idx: zod_1.z.number().int(),
|
|
31
|
-
docstatus: zod_1.z.number().int(),
|
|
32
|
-
is_active: zod_1.z.number().transform(Boolean),
|
|
33
|
-
title: zod_1.z.string(),
|
|
34
|
-
fulfiller: zod_1.z.string(),
|
|
35
|
-
doctype: zod_1.z.string(),
|
|
36
|
-
is_simulation_mode: zod_1.z.number().optional().nullable(),
|
|
37
|
-
fulfiller_priority: zod_1.z.array(DispatcherPresetFulfillerPriority),
|
|
38
|
-
})
|
|
39
|
-
.describe("ERPNextDispatcherPreset");
|
|
40
|
-
// Options needed to create a shipstorm run
|
|
41
|
-
exports.ShipstormRunOptions = zod_1.z
|
|
42
|
-
.object({
|
|
43
|
-
dispatcherPresetId: zod_1.z.string(),
|
|
44
|
-
warehouseCategories: zod_1.z.array(zod_1.z.string()).min(0).optional(),
|
|
45
|
-
fulfillmentStation: zod_1.z.string().optional(),
|
|
46
|
-
skus: zod_1.z.array(zod_1.z.string()).min(0).optional(),
|
|
47
|
-
limit: zod_1.z.number().min(1).optional(),
|
|
48
|
-
isAutoBundling: zod_1.z.boolean(),
|
|
49
|
-
strategy: zod_1.z.literal("multiOrder").or(zod_1.z.literal("singleOrder")).optional(),
|
|
50
|
-
orderNumber: zod_1.z.string().optional(),
|
|
51
|
-
})
|
|
52
|
-
.describe("ShipstormRunOptions");
|
|
5
|
+
const DispatcherPreset_1 = require("./DispatcherPreset");
|
|
53
6
|
exports.Trigger = zod_1.z
|
|
54
7
|
.literal("UI")
|
|
55
8
|
.or(zod_1.z.literal("API"))
|
|
@@ -57,7 +10,7 @@ exports.Trigger = zod_1.z
|
|
|
57
10
|
.or(zod_1.z.literal("REAL-DATA-TEST"))
|
|
58
11
|
.or(zod_1.z.literal("SCHEDULE"));
|
|
59
12
|
// A shipstormRun has ERPNextDispatcherPreset data AND the shipstorm run options
|
|
60
|
-
exports.
|
|
13
|
+
exports.DispatchRun = DispatcherPreset_1.DispatcherPreset.omit({
|
|
61
14
|
is_active: true,
|
|
62
15
|
})
|
|
63
16
|
.merge(zod_1.z.object({
|
|
@@ -68,7 +21,10 @@ exports.ERPNextShipstormRun = exports.ERPNextDispatcherPreset.omit({
|
|
|
68
21
|
.optional()
|
|
69
22
|
.nullable(),
|
|
70
23
|
fulfillment_station: zod_1.z.string().optional().nullable(),
|
|
71
|
-
items: zod_1.z
|
|
24
|
+
items: zod_1.z
|
|
25
|
+
.array(zod_1.z.object({ item: zod_1.z.string() }))
|
|
26
|
+
.min(0)
|
|
27
|
+
.optional(),
|
|
72
28
|
limit: zod_1.z.number().optional(),
|
|
73
29
|
is_auto_bundling: zod_1.z.number(),
|
|
74
30
|
dispatcher_preset: zod_1.z.string(),
|
|
@@ -77,29 +33,19 @@ exports.ERPNextShipstormRun = exports.ERPNextDispatcherPreset.omit({
|
|
|
77
33
|
.or(zod_1.z.literal("Multi Order"))
|
|
78
34
|
.optional()
|
|
79
35
|
.nullable(),
|
|
36
|
+
fulfiller_priority: zod_1.z.array(zod_1.z.object({
|
|
37
|
+
fulfiller: zod_1.z.string(),
|
|
38
|
+
})),
|
|
80
39
|
trigger: exports.Trigger,
|
|
81
40
|
order_number: zod_1.z.string().optional().nullable(),
|
|
82
41
|
status: zod_1.z
|
|
83
42
|
.literal("Processing")
|
|
84
43
|
.or(zod_1.z.literal("Failed"))
|
|
85
|
-
.or(zod_1.z.literal("Completed"))
|
|
44
|
+
.or(zod_1.z.literal("Completed"))
|
|
45
|
+
.default("Processing"),
|
|
86
46
|
}))
|
|
87
|
-
.describe("
|
|
88
|
-
exports.
|
|
89
|
-
name: true,
|
|
90
|
-
creation: true,
|
|
91
|
-
docstatus: true,
|
|
92
|
-
doctype: true,
|
|
93
|
-
idx: true,
|
|
94
|
-
modified: true,
|
|
95
|
-
modified_by: true,
|
|
96
|
-
owner: true,
|
|
97
|
-
}).extend({
|
|
98
|
-
fulfiller_priority: zod_1.z.array(zod_1.z.object({
|
|
99
|
-
fulfiller: zod_1.z.string(),
|
|
100
|
-
})),
|
|
101
|
-
});
|
|
102
|
-
exports.ERPNextDispatchRunPostBody = exports.ERPNextShipstormRun.pick({
|
|
47
|
+
.describe("DispatchRun");
|
|
48
|
+
exports.DispatchRunPostBody = exports.DispatchRun.pick({
|
|
103
49
|
fulfiller: true,
|
|
104
50
|
trigger: true,
|
|
105
51
|
picking_strategy: true,
|
|
@@ -108,25 +54,9 @@ exports.ERPNextDispatchRunPostBody = exports.ERPNextShipstormRun.pick({
|
|
|
108
54
|
limit: true,
|
|
109
55
|
title: true,
|
|
110
56
|
dispatcher_preset: true,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
fulfiller: zod_1.z.string(),
|
|
115
|
-
})),
|
|
116
|
-
items: zod_1.z
|
|
117
|
-
.array(zod_1.z.object({
|
|
118
|
-
item: zod_1.z.string(),
|
|
119
|
-
}))
|
|
120
|
-
.optional()
|
|
121
|
-
.nullable(),
|
|
122
|
-
warehouse_categories: zod_1.z
|
|
123
|
-
.array(zod_1.z.object({
|
|
124
|
-
warehouse_category: zod_1.z.string(),
|
|
125
|
-
}))
|
|
126
|
-
.optional()
|
|
127
|
-
.nullable(),
|
|
128
|
-
}))
|
|
129
|
-
.describe("ERPNextDispatchRunPostBody");
|
|
57
|
+
fulfiller_priority: true,
|
|
58
|
+
warehouse_categories: true,
|
|
59
|
+
}).describe("DispatchRunPostBody");
|
|
130
60
|
exports.DispatchRunPostFilteredResponse = zod_1.z
|
|
131
61
|
.object({
|
|
132
62
|
name: zod_1.z.string(),
|
|
@@ -148,29 +78,6 @@ const FulfillerPriority = zod_1.z
|
|
|
148
78
|
doctype: zod_1.z.string(),
|
|
149
79
|
})
|
|
150
80
|
.describe("WarehousePriority");
|
|
151
|
-
exports.DispatchRun = zod_1.z
|
|
152
|
-
.object({
|
|
153
|
-
name: zod_1.z.string(),
|
|
154
|
-
owner: zod_1.z.string(),
|
|
155
|
-
creation: zod_1.z.string().transform((i) => new Date(i)),
|
|
156
|
-
modified: zod_1.z.string().transform((i) => new Date(i)),
|
|
157
|
-
modified_by: zod_1.z.string(),
|
|
158
|
-
idx: zod_1.z.number(),
|
|
159
|
-
docstatus: zod_1.z.number(),
|
|
160
|
-
title: zod_1.z.string(),
|
|
161
|
-
fulfiller: zod_1.z.string(),
|
|
162
|
-
picking_strategy: zod_1.z.string(),
|
|
163
|
-
limit: zod_1.z.number().optional().nullable(),
|
|
164
|
-
items: zod_1.z.array(zod_1.z.string()).min(0).optional().nullable(),
|
|
165
|
-
warehouse_categories: zod_1.z.array(zod_1.z.string()).min(0).optional().nullable(),
|
|
166
|
-
trigger: zod_1.z.string(),
|
|
167
|
-
doctype: zod_1.z.string(),
|
|
168
|
-
fulfiller_priority: zod_1.z.array(FulfillerPriority),
|
|
169
|
-
is_auto_bundling: zod_1.z.number().transform(Boolean),
|
|
170
|
-
dispatcher_preset: zod_1.z.string(),
|
|
171
|
-
is_simulation_mode: zod_1.z.number(),
|
|
172
|
-
})
|
|
173
|
-
.describe("DispatchRun");
|
|
174
81
|
exports.DispatchRunMatchesByOrderNumber = zod_1.z
|
|
175
82
|
.array(zod_1.z.object({
|
|
176
83
|
name: zod_1.z.string(),
|
|
@@ -40,7 +40,7 @@ declare const DispatcherPresetFulfillerPriority: z.ZodObject<{
|
|
|
40
40
|
modified?: unknown;
|
|
41
41
|
}>;
|
|
42
42
|
export type DispatcherPresetFulfillerPriorityType = z.infer<typeof DispatcherPresetFulfillerPriority>;
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const DispatcherPreset: z.ZodObject<{
|
|
44
44
|
name: z.ZodString;
|
|
45
45
|
owner: z.ZodString;
|
|
46
46
|
creation: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -148,8 +148,8 @@ export declare const ERPNextDispatcherPreset: z.ZodObject<{
|
|
|
148
148
|
modified?: unknown;
|
|
149
149
|
is_simulation_mode?: number | null | undefined;
|
|
150
150
|
}>;
|
|
151
|
-
export type DispatcherPresetType = z.infer<typeof
|
|
152
|
-
export declare const
|
|
151
|
+
export type DispatcherPresetType = z.infer<typeof DispatcherPreset>;
|
|
152
|
+
export declare const DispatcherPresetList: z.ZodArray<z.ZodObject<{
|
|
153
153
|
name: z.ZodString;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
155
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DispatcherPresetList = exports.DispatcherPreset = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const DateSchema_1 = require("./DateSchema");
|
|
6
6
|
const DispatcherPresetFulfillerPriority = zod_1.z.object({
|
|
@@ -18,7 +18,7 @@ const DispatcherPresetFulfillerPriority = zod_1.z.object({
|
|
|
18
18
|
doctype: zod_1.z.string(),
|
|
19
19
|
});
|
|
20
20
|
// Dispatcher Preset Response from ERPNext
|
|
21
|
-
exports.
|
|
21
|
+
exports.DispatcherPreset = zod_1.z
|
|
22
22
|
.object({
|
|
23
23
|
name: zod_1.z.string(),
|
|
24
24
|
owner: zod_1.z.string(),
|
|
@@ -34,10 +34,10 @@ exports.ERPNextDispatcherPreset = zod_1.z
|
|
|
34
34
|
is_simulation_mode: zod_1.z.number().optional().nullable(),
|
|
35
35
|
fulfiller_priority: zod_1.z.array(DispatcherPresetFulfillerPriority),
|
|
36
36
|
})
|
|
37
|
-
.describe("
|
|
37
|
+
.describe("DispatcherPreset");
|
|
38
38
|
// Dispatcher Preset Response from ERPNext
|
|
39
|
-
exports.
|
|
39
|
+
exports.DispatcherPresetList = zod_1.z
|
|
40
40
|
.array(zod_1.z.object({
|
|
41
41
|
name: zod_1.z.string(),
|
|
42
42
|
}))
|
|
43
|
-
.describe("
|
|
43
|
+
.describe("DispatcherPresetList");
|
|
@@ -88,9 +88,9 @@ export declare const FulfillerShippingSettingsWithSkus: z.ZodArray<z.ZodObject<z
|
|
|
88
88
|
shipping_provider: string;
|
|
89
89
|
fulfiller: string;
|
|
90
90
|
is_active: boolean;
|
|
91
|
-
skus: string[];
|
|
92
91
|
is_ship_individually: boolean;
|
|
93
92
|
bundle_size: number;
|
|
93
|
+
skus: string[];
|
|
94
94
|
can_be_bundled_with?: string | null | undefined;
|
|
95
95
|
bundle_type?: "Inside box" | "Outside box" | null | undefined;
|
|
96
96
|
max_bundle_with_amount?: number | null | undefined;
|
|
@@ -100,9 +100,9 @@ export declare const FulfillerShippingSettingsWithSkus: z.ZodArray<z.ZodObject<z
|
|
|
100
100
|
shipping_provider: string;
|
|
101
101
|
fulfiller: string;
|
|
102
102
|
is_active: number;
|
|
103
|
-
skus: string[];
|
|
104
103
|
is_ship_individually: number;
|
|
105
104
|
bundle_size: number;
|
|
105
|
+
skus: string[];
|
|
106
106
|
can_be_bundled_with?: string | null | undefined;
|
|
107
107
|
bundle_type?: "Inside box" | "Outside box" | null | undefined;
|
|
108
108
|
max_bundle_with_amount?: number | null | undefined;
|
|
@@ -224,8 +224,6 @@ export declare const Item: z.ZodObject<{
|
|
|
224
224
|
parenttype: z.ZodString;
|
|
225
225
|
idx: z.ZodNumber;
|
|
226
226
|
docstatus: z.ZodNumber;
|
|
227
|
-
barcode: z.ZodString;
|
|
228
|
-
barcode_type: z.ZodString;
|
|
229
227
|
doctype: z.ZodString;
|
|
230
228
|
supplier: z.ZodString;
|
|
231
229
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -240,8 +238,6 @@ export declare const Item: z.ZodObject<{
|
|
|
240
238
|
parenttype: string;
|
|
241
239
|
idx: number;
|
|
242
240
|
docstatus: number;
|
|
243
|
-
barcode: string;
|
|
244
|
-
barcode_type: string;
|
|
245
241
|
supplier: string;
|
|
246
242
|
}, {
|
|
247
243
|
name: string;
|
|
@@ -255,8 +251,6 @@ export declare const Item: z.ZodObject<{
|
|
|
255
251
|
parenttype: string;
|
|
256
252
|
idx: number;
|
|
257
253
|
docstatus: number;
|
|
258
|
-
barcode: string;
|
|
259
|
-
barcode_type: string;
|
|
260
254
|
supplier: string;
|
|
261
255
|
}>, "many">;
|
|
262
256
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -279,8 +273,6 @@ export declare const Item: z.ZodObject<{
|
|
|
279
273
|
parenttype: z.ZodString;
|
|
280
274
|
idx: z.ZodNumber;
|
|
281
275
|
docstatus: z.ZodNumber;
|
|
282
|
-
barcode: z.ZodString;
|
|
283
|
-
barcode_type: z.ZodString;
|
|
284
276
|
doctype: z.ZodString;
|
|
285
277
|
certification: z.ZodString;
|
|
286
278
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -295,8 +287,6 @@ export declare const Item: z.ZodObject<{
|
|
|
295
287
|
parenttype: string;
|
|
296
288
|
idx: number;
|
|
297
289
|
docstatus: number;
|
|
298
|
-
barcode: string;
|
|
299
|
-
barcode_type: string;
|
|
300
290
|
certification: string;
|
|
301
291
|
}, {
|
|
302
292
|
name: string;
|
|
@@ -310,8 +300,6 @@ export declare const Item: z.ZodObject<{
|
|
|
310
300
|
parenttype: string;
|
|
311
301
|
idx: number;
|
|
312
302
|
docstatus: number;
|
|
313
|
-
barcode: string;
|
|
314
|
-
barcode_type: string;
|
|
315
303
|
certification: string;
|
|
316
304
|
}>, "many">;
|
|
317
305
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -445,8 +433,6 @@ export declare const Item: z.ZodObject<{
|
|
|
445
433
|
parenttype: string;
|
|
446
434
|
idx: number;
|
|
447
435
|
docstatus: number;
|
|
448
|
-
barcode: string;
|
|
449
|
-
barcode_type: string;
|
|
450
436
|
supplier: string;
|
|
451
437
|
}[];
|
|
452
438
|
customer_items: any[];
|
|
@@ -462,8 +448,6 @@ export declare const Item: z.ZodObject<{
|
|
|
462
448
|
parenttype: string;
|
|
463
449
|
idx: number;
|
|
464
450
|
docstatus: number;
|
|
465
|
-
barcode: string;
|
|
466
|
-
barcode_type: string;
|
|
467
451
|
certification: string;
|
|
468
452
|
}[];
|
|
469
453
|
image?: string | null | undefined;
|
|
@@ -616,8 +600,6 @@ export declare const Item: z.ZodObject<{
|
|
|
616
600
|
parenttype: string;
|
|
617
601
|
idx: number;
|
|
618
602
|
docstatus: number;
|
|
619
|
-
barcode: string;
|
|
620
|
-
barcode_type: string;
|
|
621
603
|
supplier: string;
|
|
622
604
|
}[];
|
|
623
605
|
customer_items: any[];
|
|
@@ -633,8 +615,6 @@ export declare const Item: z.ZodObject<{
|
|
|
633
615
|
parenttype: string;
|
|
634
616
|
idx: number;
|
|
635
617
|
docstatus: number;
|
|
636
|
-
barcode: string;
|
|
637
|
-
barcode_type: string;
|
|
638
618
|
certification: string;
|
|
639
619
|
}[];
|
|
640
620
|
image?: string | null | undefined;
|
|
@@ -883,8 +863,6 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
883
863
|
parenttype: z.ZodString;
|
|
884
864
|
idx: z.ZodNumber;
|
|
885
865
|
docstatus: z.ZodNumber;
|
|
886
|
-
barcode: z.ZodString;
|
|
887
|
-
barcode_type: z.ZodString;
|
|
888
866
|
doctype: z.ZodString;
|
|
889
867
|
supplier: z.ZodString;
|
|
890
868
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -899,8 +877,6 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
899
877
|
parenttype: string;
|
|
900
878
|
idx: number;
|
|
901
879
|
docstatus: number;
|
|
902
|
-
barcode: string;
|
|
903
|
-
barcode_type: string;
|
|
904
880
|
supplier: string;
|
|
905
881
|
}, {
|
|
906
882
|
name: string;
|
|
@@ -914,8 +890,6 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
914
890
|
parenttype: string;
|
|
915
891
|
idx: number;
|
|
916
892
|
docstatus: number;
|
|
917
|
-
barcode: string;
|
|
918
|
-
barcode_type: string;
|
|
919
893
|
supplier: string;
|
|
920
894
|
}>, "many">;
|
|
921
895
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -938,8 +912,6 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
938
912
|
parenttype: z.ZodString;
|
|
939
913
|
idx: z.ZodNumber;
|
|
940
914
|
docstatus: z.ZodNumber;
|
|
941
|
-
barcode: z.ZodString;
|
|
942
|
-
barcode_type: z.ZodString;
|
|
943
915
|
doctype: z.ZodString;
|
|
944
916
|
certification: z.ZodString;
|
|
945
917
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -954,8 +926,6 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
954
926
|
parenttype: string;
|
|
955
927
|
idx: number;
|
|
956
928
|
docstatus: number;
|
|
957
|
-
barcode: string;
|
|
958
|
-
barcode_type: string;
|
|
959
929
|
certification: string;
|
|
960
930
|
}, {
|
|
961
931
|
name: string;
|
|
@@ -969,8 +939,6 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
969
939
|
parenttype: string;
|
|
970
940
|
idx: number;
|
|
971
941
|
docstatus: number;
|
|
972
|
-
barcode: string;
|
|
973
|
-
barcode_type: string;
|
|
974
942
|
certification: string;
|
|
975
943
|
}>, "many">;
|
|
976
944
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_code" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
|
|
@@ -1228,8 +1196,6 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
1228
1196
|
parenttype: z.ZodString;
|
|
1229
1197
|
idx: z.ZodNumber;
|
|
1230
1198
|
docstatus: z.ZodNumber;
|
|
1231
|
-
barcode: z.ZodString;
|
|
1232
|
-
barcode_type: z.ZodString;
|
|
1233
1199
|
doctype: z.ZodString;
|
|
1234
1200
|
supplier: z.ZodString;
|
|
1235
1201
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1244,8 +1210,6 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
1244
1210
|
parenttype: string;
|
|
1245
1211
|
idx: number;
|
|
1246
1212
|
docstatus: number;
|
|
1247
|
-
barcode: string;
|
|
1248
|
-
barcode_type: string;
|
|
1249
1213
|
supplier: string;
|
|
1250
1214
|
}, {
|
|
1251
1215
|
name: string;
|
|
@@ -1259,8 +1223,6 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
1259
1223
|
parenttype: string;
|
|
1260
1224
|
idx: number;
|
|
1261
1225
|
docstatus: number;
|
|
1262
|
-
barcode: string;
|
|
1263
|
-
barcode_type: string;
|
|
1264
1226
|
supplier: string;
|
|
1265
1227
|
}>, "many">;
|
|
1266
1228
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -1283,8 +1245,6 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
1283
1245
|
parenttype: z.ZodString;
|
|
1284
1246
|
idx: z.ZodNumber;
|
|
1285
1247
|
docstatus: z.ZodNumber;
|
|
1286
|
-
barcode: z.ZodString;
|
|
1287
|
-
barcode_type: z.ZodString;
|
|
1288
1248
|
doctype: z.ZodString;
|
|
1289
1249
|
certification: z.ZodString;
|
|
1290
1250
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1299,8 +1259,6 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
1299
1259
|
parenttype: string;
|
|
1300
1260
|
idx: number;
|
|
1301
1261
|
docstatus: number;
|
|
1302
|
-
barcode: string;
|
|
1303
|
-
barcode_type: string;
|
|
1304
1262
|
certification: string;
|
|
1305
1263
|
}, {
|
|
1306
1264
|
name: string;
|
|
@@ -1314,8 +1272,6 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
1314
1272
|
parenttype: string;
|
|
1315
1273
|
idx: number;
|
|
1316
1274
|
docstatus: number;
|
|
1317
|
-
barcode: string;
|
|
1318
|
-
barcode_type: string;
|
|
1319
1275
|
certification: string;
|
|
1320
1276
|
}>, "many">;
|
|
1321
1277
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, {
|
|
@@ -1576,8 +1532,6 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1576
1532
|
parenttype: z.ZodString;
|
|
1577
1533
|
idx: z.ZodNumber;
|
|
1578
1534
|
docstatus: z.ZodNumber;
|
|
1579
|
-
barcode: z.ZodString;
|
|
1580
|
-
barcode_type: z.ZodString;
|
|
1581
1535
|
doctype: z.ZodString;
|
|
1582
1536
|
supplier: z.ZodString;
|
|
1583
1537
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1592,8 +1546,6 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1592
1546
|
parenttype: string;
|
|
1593
1547
|
idx: number;
|
|
1594
1548
|
docstatus: number;
|
|
1595
|
-
barcode: string;
|
|
1596
|
-
barcode_type: string;
|
|
1597
1549
|
supplier: string;
|
|
1598
1550
|
}, {
|
|
1599
1551
|
name: string;
|
|
@@ -1607,8 +1559,6 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1607
1559
|
parenttype: string;
|
|
1608
1560
|
idx: number;
|
|
1609
1561
|
docstatus: number;
|
|
1610
|
-
barcode: string;
|
|
1611
|
-
barcode_type: string;
|
|
1612
1562
|
supplier: string;
|
|
1613
1563
|
}>, "many">;
|
|
1614
1564
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -1631,8 +1581,6 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1631
1581
|
parenttype: z.ZodString;
|
|
1632
1582
|
idx: z.ZodNumber;
|
|
1633
1583
|
docstatus: z.ZodNumber;
|
|
1634
|
-
barcode: z.ZodString;
|
|
1635
|
-
barcode_type: z.ZodString;
|
|
1636
1584
|
doctype: z.ZodString;
|
|
1637
1585
|
certification: z.ZodString;
|
|
1638
1586
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1647,8 +1595,6 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1647
1595
|
parenttype: string;
|
|
1648
1596
|
idx: number;
|
|
1649
1597
|
docstatus: number;
|
|
1650
|
-
barcode: string;
|
|
1651
|
-
barcode_type: string;
|
|
1652
1598
|
certification: string;
|
|
1653
1599
|
}, {
|
|
1654
1600
|
name: string;
|
|
@@ -1662,8 +1608,6 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1662
1608
|
parenttype: string;
|
|
1663
1609
|
idx: number;
|
|
1664
1610
|
docstatus: number;
|
|
1665
|
-
barcode: string;
|
|
1666
|
-
barcode_type: string;
|
|
1667
1611
|
certification: string;
|
|
1668
1612
|
}>, "many">;
|
|
1669
1613
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
|
|
@@ -1903,8 +1847,6 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1903
1847
|
parenttype: z.ZodString;
|
|
1904
1848
|
idx: z.ZodNumber;
|
|
1905
1849
|
docstatus: z.ZodNumber;
|
|
1906
|
-
barcode: z.ZodString;
|
|
1907
|
-
barcode_type: z.ZodString;
|
|
1908
1850
|
doctype: z.ZodString;
|
|
1909
1851
|
supplier: z.ZodString;
|
|
1910
1852
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1919,8 +1861,6 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1919
1861
|
parenttype: string;
|
|
1920
1862
|
idx: number;
|
|
1921
1863
|
docstatus: number;
|
|
1922
|
-
barcode: string;
|
|
1923
|
-
barcode_type: string;
|
|
1924
1864
|
supplier: string;
|
|
1925
1865
|
}, {
|
|
1926
1866
|
name: string;
|
|
@@ -1934,8 +1874,6 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1934
1874
|
parenttype: string;
|
|
1935
1875
|
idx: number;
|
|
1936
1876
|
docstatus: number;
|
|
1937
|
-
barcode: string;
|
|
1938
|
-
barcode_type: string;
|
|
1939
1877
|
supplier: string;
|
|
1940
1878
|
}>, "many">;
|
|
1941
1879
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -1958,8 +1896,6 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1958
1896
|
parenttype: z.ZodString;
|
|
1959
1897
|
idx: z.ZodNumber;
|
|
1960
1898
|
docstatus: z.ZodNumber;
|
|
1961
|
-
barcode: z.ZodString;
|
|
1962
|
-
barcode_type: z.ZodString;
|
|
1963
1899
|
doctype: z.ZodString;
|
|
1964
1900
|
certification: z.ZodString;
|
|
1965
1901
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1974,8 +1910,6 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1974
1910
|
parenttype: string;
|
|
1975
1911
|
idx: number;
|
|
1976
1912
|
docstatus: number;
|
|
1977
|
-
barcode: string;
|
|
1978
|
-
barcode_type: string;
|
|
1979
1913
|
certification: string;
|
|
1980
1914
|
}, {
|
|
1981
1915
|
name: string;
|
|
@@ -1989,8 +1923,6 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1989
1923
|
parenttype: string;
|
|
1990
1924
|
idx: number;
|
|
1991
1925
|
docstatus: number;
|
|
1992
|
-
barcode: string;
|
|
1993
|
-
barcode_type: string;
|
|
1994
1926
|
certification: string;
|
|
1995
1927
|
}>, "many">;
|
|
1996
1928
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code">, "strip", z.ZodTypeAny, {
|
|
@@ -2224,8 +2156,6 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
2224
2156
|
parenttype: z.ZodString;
|
|
2225
2157
|
idx: z.ZodNumber;
|
|
2226
2158
|
docstatus: z.ZodNumber;
|
|
2227
|
-
barcode: z.ZodString;
|
|
2228
|
-
barcode_type: z.ZodString;
|
|
2229
2159
|
doctype: z.ZodString;
|
|
2230
2160
|
supplier: z.ZodString;
|
|
2231
2161
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2240,8 +2170,6 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
2240
2170
|
parenttype: string;
|
|
2241
2171
|
idx: number;
|
|
2242
2172
|
docstatus: number;
|
|
2243
|
-
barcode: string;
|
|
2244
|
-
barcode_type: string;
|
|
2245
2173
|
supplier: string;
|
|
2246
2174
|
}, {
|
|
2247
2175
|
name: string;
|
|
@@ -2255,8 +2183,6 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
2255
2183
|
parenttype: string;
|
|
2256
2184
|
idx: number;
|
|
2257
2185
|
docstatus: number;
|
|
2258
|
-
barcode: string;
|
|
2259
|
-
barcode_type: string;
|
|
2260
2186
|
supplier: string;
|
|
2261
2187
|
}>, "many">;
|
|
2262
2188
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -2279,8 +2205,6 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
2279
2205
|
parenttype: z.ZodString;
|
|
2280
2206
|
idx: z.ZodNumber;
|
|
2281
2207
|
docstatus: z.ZodNumber;
|
|
2282
|
-
barcode: z.ZodString;
|
|
2283
|
-
barcode_type: z.ZodString;
|
|
2284
2208
|
doctype: z.ZodString;
|
|
2285
2209
|
certification: z.ZodString;
|
|
2286
2210
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2295,8 +2219,6 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
2295
2219
|
parenttype: string;
|
|
2296
2220
|
idx: number;
|
|
2297
2221
|
docstatus: number;
|
|
2298
|
-
barcode: string;
|
|
2299
|
-
barcode_type: string;
|
|
2300
2222
|
certification: string;
|
|
2301
2223
|
}, {
|
|
2302
2224
|
name: string;
|
|
@@ -2310,8 +2232,6 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
2310
2232
|
parenttype: string;
|
|
2311
2233
|
idx: number;
|
|
2312
2234
|
docstatus: number;
|
|
2313
|
-
barcode: string;
|
|
2314
|
-
barcode_type: string;
|
|
2315
2235
|
certification: string;
|
|
2316
2236
|
}>, "many">;
|
|
2317
2237
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code" | "item_name" | "weight_per_unit" | "weight_uom">, "strip", z.ZodTypeAny, {
|
|
@@ -65,8 +65,6 @@ const ItemCertification = zod_1.z
|
|
|
65
65
|
parenttype: zod_1.z.string(),
|
|
66
66
|
idx: zod_1.z.number(),
|
|
67
67
|
docstatus: zod_1.z.number(),
|
|
68
|
-
barcode: zod_1.z.string(),
|
|
69
|
-
barcode_type: zod_1.z.string(),
|
|
70
68
|
doctype: zod_1.z.string(),
|
|
71
69
|
certification: zod_1.z.string(),
|
|
72
70
|
})
|
|
@@ -83,12 +81,10 @@ const SupplierItems = zod_1.z
|
|
|
83
81
|
parenttype: zod_1.z.string(),
|
|
84
82
|
idx: zod_1.z.number(),
|
|
85
83
|
docstatus: zod_1.z.number(),
|
|
86
|
-
barcode: zod_1.z.string(),
|
|
87
|
-
barcode_type: zod_1.z.string(),
|
|
88
84
|
doctype: zod_1.z.string(),
|
|
89
85
|
supplier: zod_1.z.string(),
|
|
90
86
|
})
|
|
91
|
-
.describe("
|
|
87
|
+
.describe("Supplier Items");
|
|
92
88
|
exports.Item = zod_1.z
|
|
93
89
|
.object({
|
|
94
90
|
name: zod_1.z.string(),
|
package/dist/utils/request.js
CHANGED
|
@@ -75,7 +75,7 @@ function request(options) {
|
|
|
75
75
|
? { body: stringifiedBody !== null && stringifiedBody !== void 0 ? stringifiedBody : validatedBody }
|
|
76
76
|
: {}));
|
|
77
77
|
// Log requests
|
|
78
|
-
logger_1.lg.info(`${options.method}${url}`);
|
|
78
|
+
logger_1.lg.info(`${options.method}: ${url}`);
|
|
79
79
|
// Wrap fetch
|
|
80
80
|
const response = yield fetch(url, convertedOptions);
|
|
81
81
|
const { status, url: requestUrl, statusText, ok } = response;
|