erpnext-queue-client 2.3.6 → 2.4.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 (51) hide show
  1. package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
  2. package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +6 -159
  3. package/dist/erpnext/doctypeSubmittableResourceRequest.js +2 -2
  4. package/dist/erpnext/doctypes/address.d.ts +75 -3
  5. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +64 -54
  6. package/dist/erpnext/doctypes/contact.d.ts +219 -3
  7. package/dist/erpnext/doctypes/deliveryNote.d.ts +205 -200
  8. package/dist/erpnext/doctypes/item.d.ts +17 -2
  9. package/dist/erpnext/doctypes/paymentEntry.d.ts +112 -4
  10. package/dist/erpnext/doctypes/productBundle.d.ts +4 -2
  11. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +140 -4
  12. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +10 -4
  13. package/dist/erpnext/doctypes/salesInvoice.d.ts +398 -4
  14. package/dist/erpnext/doctypes/servicecase.d.ts +38 -2
  15. package/dist/erpnext/doctypes/shipment.d.ts +98 -91
  16. package/dist/erpnext/doctypes/shipment.js +2 -1
  17. package/dist/erpnext/erpnextRequestWrapper.d.ts +4 -2
  18. package/dist/erpnext/erpnextRequestWrapper.js +1 -1
  19. package/dist/erpnext/fileRequests.d.ts +2 -2
  20. package/dist/erpnext/fileRequests.js +2 -1
  21. package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +61 -23
  22. package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +20 -11
  23. package/dist/erpnext/model/Contact.d.ts +29 -0
  24. package/dist/erpnext/model/Contact.js +5 -5
  25. package/dist/erpnext/model/DeliveryNote.d.ts +300 -100
  26. package/dist/erpnext/model/DeliveryNote.js +101 -100
  27. package/dist/erpnext/model/DispatchRun.d.ts +3 -0
  28. package/dist/erpnext/model/DispatchRun.js +1 -0
  29. package/dist/erpnext/model/DocTypeHelpers.d.ts +12 -7
  30. package/dist/erpnext/model/DocTypeHelpers.js +43 -19
  31. package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +3 -0
  32. package/dist/erpnext/model/ERPNextDocTypeMeta.js +3 -2
  33. package/dist/erpnext/model/File.d.ts +50 -0
  34. package/dist/erpnext/model/File.js +3 -1
  35. package/dist/erpnext/model/FulfillerSettings.d.ts +52 -24
  36. package/dist/erpnext/model/FulfillerSettings.js +19 -7
  37. package/dist/erpnext/model/Item.d.ts +43 -0
  38. package/dist/erpnext/model/Item.js +2 -1
  39. package/dist/erpnext/model/PurchaseInvoice.d.ts +75 -1
  40. package/dist/erpnext/model/PurchaseOrder.d.ts +52 -63
  41. package/dist/erpnext/model/PurchaseOrder.js +20 -38
  42. package/dist/erpnext/model/SalesInvoice.d.ts +196 -3
  43. package/dist/erpnext/model/Servicecase.d.ts +8 -0
  44. package/dist/erpnext/model/Shipment.d.ts +119 -162
  45. package/dist/erpnext/model/Shipment.js +17 -47
  46. package/dist/erpnext/model/ShippingProvider.d.ts +55 -65
  47. package/dist/erpnext/model/ShippingProvider.js +6 -10
  48. package/dist/erpnext/resourceRequest.d.ts +1 -1
  49. package/dist/utils/zodContextOptionals.js +7 -3
  50. package/dist/utils/zodUtils.js +3 -2
  51. package/package.json +1 -1
@@ -750,6 +750,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
750
750
  modified_by: string;
751
751
  idx: number;
752
752
  doctype: string;
753
+ parent: string;
753
754
  parenttype: string;
754
755
  parentfield: string;
755
756
  _user_tags?: string | null | undefined;
@@ -763,6 +764,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
763
764
  modified_by: string;
764
765
  idx: number;
765
766
  doctype: string;
767
+ parent: string;
766
768
  parenttype: string;
767
769
  parentfield: string;
768
770
  title_de: string | null;
@@ -823,6 +825,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
823
825
  modified_by: string;
824
826
  idx: number;
825
827
  doctype: string;
828
+ parent: string;
826
829
  parenttype: string;
827
830
  parentfield: string;
828
831
  docstatus?: number | undefined;
@@ -836,6 +839,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
836
839
  modified_by: string;
837
840
  idx: number;
838
841
  doctype: string;
842
+ parent: string;
839
843
  parenttype: string;
840
844
  parentfield: string;
841
845
  title_de: string | null;
@@ -1026,6 +1030,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1026
1030
  modified_by: string;
1027
1031
  idx: number;
1028
1032
  doctype: string;
1033
+ parent: string;
1029
1034
  parenttype: string;
1030
1035
  parentfield: string;
1031
1036
  _user_tags?: string | null | undefined;
@@ -1039,6 +1044,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1039
1044
  modified_by: string;
1040
1045
  idx: number;
1041
1046
  doctype: string;
1047
+ parent: string;
1042
1048
  parenttype: string;
1043
1049
  parentfield: string;
1044
1050
  title_de: string | null;
@@ -1099,6 +1105,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1099
1105
  modified_by: string;
1100
1106
  idx: number;
1101
1107
  doctype: string;
1108
+ parent: string;
1102
1109
  parenttype: string;
1103
1110
  parentfield: string;
1104
1111
  docstatus?: number | undefined;
@@ -1112,6 +1119,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1112
1119
  modified_by: string;
1113
1120
  idx: number;
1114
1121
  doctype: string;
1122
+ parent: string;
1115
1123
  parenttype: string;
1116
1124
  parentfield: string;
1117
1125
  title_de: string | null;
@@ -1,124 +1,6 @@
1
1
  import { z } from "zod";
2
- export declare const ShipmentDraftFromDeliveryNote: z.ZodObject<{
3
- __islocal: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
4
- __onload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5
- load_after_mapping: z.ZodBoolean;
6
- }, "strip", z.ZodTypeAny, {
7
- load_after_mapping: boolean;
8
- }, {
9
- load_after_mapping: boolean;
10
- }>>>;
11
- __unsaved: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
12
- delivery_address_name: z.ZodString;
13
- delivery_address: z.ZodString;
14
- delivery_contact: z.ZodOptional<z.ZodString>;
15
- delivery_customer: z.ZodString;
16
- delivery_to_type: z.ZodString;
17
- incoterm: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
- pallets: z.ZodString;
19
- pickup_address_name: z.ZodString;
20
- pickup_address: z.ZodString;
21
- pickup_company: z.ZodString;
22
- pickup_contact_email: z.ZodString;
23
- pickup_contact_person: z.ZodString;
24
- pickup_contact: z.ZodString;
25
- pickup_from_type: z.ZodString;
26
- pickup_from: z.ZodString;
27
- pickup_to: z.ZodString;
28
- pickup_type: z.ZodString;
29
- shipment_amount: z.ZodNumber;
30
- shipment_delivery_note: z.ZodArray<z.ZodOptional<z.ZodObject<{
31
- delivery_note: z.ZodString;
32
- grand_total: z.ZodNumber;
33
- __islocal: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
34
- __unsaved: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
35
- }, "strip", z.ZodTypeAny, {
36
- delivery_note: string;
37
- grand_total: number;
38
- __unsaved?: number | null | undefined;
39
- __islocal?: number | null | undefined;
40
- }, {
41
- delivery_note: string;
42
- grand_total: number;
43
- __unsaved?: number | null | undefined;
44
- __islocal?: number | null | undefined;
45
- }>>, "many">;
46
- shipment_parcel: z.ZodArray<z.ZodOptional<z.ZodAny>, "many">;
47
- shipment_type: z.ZodString;
48
- status: z.ZodString;
49
- tracking_status: z.ZodString;
50
- value_of_goods: z.ZodNumber;
51
- }, "strip", z.ZodTypeAny, {
52
- status: string;
53
- delivery_address_name: string;
54
- delivery_address: string;
55
- delivery_customer: string;
56
- delivery_to_type: string;
57
- pallets: string;
58
- pickup_address_name: string;
59
- pickup_address: string;
60
- pickup_company: string;
61
- pickup_contact_email: string;
62
- pickup_contact_person: string;
63
- pickup_contact: string;
64
- pickup_from_type: string;
65
- pickup_from: string;
66
- pickup_to: string;
67
- pickup_type: string;
68
- shipment_amount: number;
69
- shipment_delivery_note: ({
70
- delivery_note: string;
71
- grand_total: number;
72
- __unsaved?: number | null | undefined;
73
- __islocal?: number | null | undefined;
74
- } | undefined)[];
75
- shipment_parcel: any[];
76
- shipment_type: string;
77
- tracking_status: string;
78
- value_of_goods: number;
79
- __onload?: {
80
- load_after_mapping: boolean;
81
- } | null | undefined;
82
- __unsaved?: number | null | undefined;
83
- incoterm?: string | null | undefined;
84
- __islocal?: number | null | undefined;
85
- delivery_contact?: string | undefined;
86
- }, {
87
- status: string;
88
- delivery_address_name: string;
89
- delivery_address: string;
90
- delivery_customer: string;
91
- delivery_to_type: string;
92
- pallets: string;
93
- pickup_address_name: string;
94
- pickup_address: string;
95
- pickup_company: string;
96
- pickup_contact_email: string;
97
- pickup_contact_person: string;
98
- pickup_contact: string;
99
- pickup_from_type: string;
100
- pickup_from: string;
101
- pickup_to: string;
102
- pickup_type: string;
103
- shipment_amount: number;
104
- shipment_delivery_note: ({
105
- delivery_note: string;
106
- grand_total: number;
107
- __unsaved?: number | null | undefined;
108
- __islocal?: number | null | undefined;
109
- } | undefined)[];
110
- shipment_parcel: any[];
111
- shipment_type: string;
112
- tracking_status: string;
113
- value_of_goods: number;
114
- __onload?: {
115
- load_after_mapping: boolean;
116
- } | null | undefined;
117
- __unsaved?: number | null | undefined;
118
- incoterm?: string | null | undefined;
119
- __islocal?: number | null | undefined;
120
- delivery_contact?: string | undefined;
121
- }>;
2
+ export declare const ShipmentExportStatus: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
3
+ export type ShipmentExportStatusType = z.infer<typeof ShipmentExportStatus>;
122
4
  export declare const ShipmentParcel: z.ZodObject<{
123
5
  length: z.ZodNumber;
124
6
  width: z.ZodNumber;
@@ -138,20 +20,10 @@ export declare const ShipmentParcel: z.ZodObject<{
138
20
  height: number;
139
21
  weight: number;
140
22
  }>;
141
- export declare const ShipmentExportStatus: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
142
- export type ShipmentExportStatusType = z.infer<typeof ShipmentExportStatus>;
143
23
  export declare const Shipment: z.ZodObject<{
144
- __onload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
145
- load_after_mapping: z.ZodBoolean;
146
- }, "strip", z.ZodTypeAny, {
147
- load_after_mapping: boolean;
148
- }, {
149
- load_after_mapping: boolean;
150
- }>>>;
151
24
  awb_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
152
25
  carrier_service: z.ZodNullable<z.ZodOptional<z.ZodString>>;
153
26
  carrier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
154
- creation: z.ZodString;
155
27
  delivery_address_name: z.ZodString;
156
28
  delivery_address: z.ZodString;
157
29
  delivery_company: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -185,7 +57,9 @@ export declare const Shipment: z.ZodObject<{
185
57
  shipment_amount: z.ZodNumber;
186
58
  shipment_delivery_note: z.ZodArray<z.ZodObject<{
187
59
  delivery_note: z.ZodString;
188
- grand_total: z.ZodNumber;
60
+ grand_total: z.ZodNumber & {
61
+ __optionalForInput: true;
62
+ };
189
63
  __unsaved: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
190
64
  }, "strip", z.ZodTypeAny, {
191
65
  delivery_note: string;
@@ -226,18 +100,20 @@ export declare const Shipment: z.ZodObject<{
226
100
  tracking_status: z.ZodString;
227
101
  tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
228
102
  value_of_goods: z.ZodNumber;
229
- custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
103
+ custom_delivery_country: z.ZodString & {
104
+ __optionalForInput: true;
105
+ };
230
106
  custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
231
107
  custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
232
108
  }, "strip", z.ZodTypeAny, {
233
109
  status: string;
234
- creation: string;
235
110
  incoterm: string;
236
111
  shipment_id: string;
237
112
  delivery_address_name: string;
238
113
  delivery_address: string;
239
114
  delivery_customer: string;
240
115
  delivery_to_type: string;
116
+ description_of_content: string;
241
117
  pallets: string;
242
118
  pickup_address_name: string;
243
119
  pickup_address: string;
@@ -245,6 +121,7 @@ export declare const Shipment: z.ZodObject<{
245
121
  pickup_contact_email: string;
246
122
  pickup_contact_person: string;
247
123
  pickup_contact: string;
124
+ pickup_date: string;
248
125
  pickup_from_type: string;
249
126
  pickup_from: string;
250
127
  pickup_to: string;
@@ -265,19 +142,15 @@ export declare const Shipment: z.ZodObject<{
265
142
  shipment_type: string;
266
143
  tracking_status: string;
267
144
  value_of_goods: number;
268
- description_of_content: string;
269
- pickup_date: string;
270
- __onload?: {
271
- load_after_mapping: boolean;
272
- } | null | undefined;
145
+ custom_delivery_country: string;
273
146
  shipping_provider?: string | null | undefined;
274
- delivery_contact?: string | null | undefined;
275
147
  awb_number?: string | null | undefined;
276
148
  carrier_service?: string | null | undefined;
277
149
  carrier?: string | null | undefined;
278
150
  delivery_company?: string | null | undefined;
279
151
  delivery_contact_email?: string | null | undefined;
280
152
  delivery_contact_name?: string | null | undefined;
153
+ delivery_contact?: string | null | undefined;
281
154
  delivery_supplier?: string | null | undefined;
282
155
  delivery_to?: string | null | undefined;
283
156
  parcel_template?: string | null | undefined;
@@ -291,18 +164,17 @@ export declare const Shipment: z.ZodObject<{
291
164
  custom_return_shipping_provider?: string | null | undefined;
292
165
  tracking_status_info?: string | null | undefined;
293
166
  tracking_url?: string | null | undefined;
294
- custom_delivery_country?: string | null | undefined;
295
167
  custom_is_export?: number | null | undefined;
296
168
  custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
297
169
  }, {
298
170
  status: string;
299
- creation: string;
300
171
  incoterm: string;
301
172
  shipment_id: string;
302
173
  delivery_address_name: string;
303
174
  delivery_address: string;
304
175
  delivery_customer: string;
305
176
  delivery_to_type: string;
177
+ description_of_content: string;
306
178
  pallets: string;
307
179
  pickup_address_name: string;
308
180
  pickup_address: string;
@@ -310,6 +182,7 @@ export declare const Shipment: z.ZodObject<{
310
182
  pickup_contact_email: string;
311
183
  pickup_contact_person: string;
312
184
  pickup_contact: string;
185
+ pickup_date: string;
313
186
  pickup_from_type: string;
314
187
  pickup_from: string;
315
188
  pickup_to: string;
@@ -330,19 +203,15 @@ export declare const Shipment: z.ZodObject<{
330
203
  shipment_type: string;
331
204
  tracking_status: string;
332
205
  value_of_goods: number;
333
- description_of_content: string;
334
- pickup_date: string;
335
- __onload?: {
336
- load_after_mapping: boolean;
337
- } | null | undefined;
206
+ custom_delivery_country: string;
338
207
  shipping_provider?: string | null | undefined;
339
- delivery_contact?: string | null | undefined;
340
208
  awb_number?: string | null | undefined;
341
209
  carrier_service?: string | null | undefined;
342
210
  carrier?: string | null | undefined;
343
211
  delivery_company?: string | null | undefined;
344
212
  delivery_contact_email?: string | null | undefined;
345
213
  delivery_contact_name?: string | null | undefined;
214
+ delivery_contact?: string | null | undefined;
346
215
  delivery_supplier?: string | null | undefined;
347
216
  delivery_to?: string | null | undefined;
348
217
  parcel_template?: string | null | undefined;
@@ -356,24 +225,14 @@ export declare const Shipment: z.ZodObject<{
356
225
  custom_return_shipping_provider?: string | null | undefined;
357
226
  tracking_status_info?: string | null | undefined;
358
227
  tracking_url?: string | null | undefined;
359
- custom_delivery_country?: string | null | undefined;
360
228
  custom_is_export?: number | null | undefined;
361
229
  custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
362
230
  }>;
363
231
  export type ShipmentType = z.infer<typeof Shipment>;
364
- export type ShipmentDraftFromDeliveryNoteType = z.infer<typeof ShipmentDraftFromDeliveryNote>;
365
232
  export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
366
- __onload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
367
- load_after_mapping: z.ZodBoolean;
368
- }, "strip", z.ZodTypeAny, {
369
- load_after_mapping: boolean;
370
- }, {
371
- load_after_mapping: boolean;
372
- }>>>;
373
233
  awb_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
374
234
  carrier_service: z.ZodNullable<z.ZodOptional<z.ZodString>>;
375
235
  carrier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
376
- creation: z.ZodString;
377
236
  delivery_address_name: z.ZodString;
378
237
  delivery_address: z.ZodString;
379
238
  delivery_company: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -407,15 +266,57 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
407
266
  shipment_amount: z.ZodNumber;
408
267
  shipment_delivery_note: z.ZodArray<z.ZodObject<{
409
268
  delivery_note: z.ZodString;
410
- grand_total: z.ZodNumber;
269
+ grand_total: z.ZodNumber & {
270
+ __optionalForInput: true;
271
+ };
411
272
  __unsaved: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
412
- }, "strip", z.ZodTypeAny, {
273
+ } & {
274
+ name: z.ZodString;
275
+ owner: z.ZodString;
276
+ creation: z.ZodString;
277
+ modified: z.ZodString;
278
+ modified_by: z.ZodString;
279
+ idx: z.ZodNumber;
280
+ docstatus: z.ZodDefault<z.ZodNumber> & {
281
+ __optionalForInput: true;
282
+ };
283
+ doctype: z.ZodString;
284
+ _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
285
+ } & {
286
+ parent: z.ZodString;
287
+ parenttype: z.ZodString;
288
+ parentfield: z.ZodString;
289
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
290
+ docstatus: number;
291
+ name: string;
292
+ owner: string;
293
+ creation: string;
294
+ modified: string;
295
+ modified_by: string;
296
+ idx: number;
297
+ doctype: string;
298
+ parent: string;
299
+ parenttype: string;
300
+ parentfield: string;
413
301
  delivery_note: string;
414
302
  grand_total: number;
303
+ _user_tags?: string | null | undefined;
415
304
  __unsaved?: number | null | undefined;
416
305
  }, {
306
+ name: string;
307
+ owner: string;
308
+ creation: string;
309
+ modified: string;
310
+ modified_by: string;
311
+ idx: number;
312
+ doctype: string;
313
+ parent: string;
314
+ parenttype: string;
315
+ parentfield: string;
417
316
  delivery_note: string;
418
317
  grand_total: number;
318
+ docstatus?: number | undefined;
319
+ _user_tags?: string | null | undefined;
419
320
  __unsaved?: number | null | undefined;
420
321
  }>, "many">;
421
322
  shipment_id: z.ZodString;
@@ -425,18 +326,58 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
425
326
  height: z.ZodNumber;
426
327
  weight: z.ZodNumber;
427
328
  count: z.ZodNumber;
428
- }, "strip", z.ZodTypeAny, {
329
+ } & {
330
+ name: z.ZodString;
331
+ owner: z.ZodString;
332
+ creation: z.ZodString;
333
+ modified: z.ZodString;
334
+ modified_by: z.ZodString;
335
+ idx: z.ZodNumber;
336
+ docstatus: z.ZodDefault<z.ZodNumber> & {
337
+ __optionalForInput: true;
338
+ };
339
+ doctype: z.ZodString;
340
+ _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
341
+ } & {
342
+ parent: z.ZodString;
343
+ parenttype: z.ZodString;
344
+ parentfield: z.ZodString;
345
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
429
346
  length: number;
347
+ docstatus: number;
348
+ name: string;
349
+ owner: string;
350
+ creation: string;
351
+ modified: string;
352
+ modified_by: string;
353
+ idx: number;
354
+ doctype: string;
355
+ parent: string;
356
+ parenttype: string;
357
+ parentfield: string;
430
358
  count: number;
431
359
  width: number;
432
360
  height: number;
433
361
  weight: number;
362
+ _user_tags?: string | null | undefined;
434
363
  }, {
435
364
  length: number;
365
+ name: string;
366
+ owner: string;
367
+ creation: string;
368
+ modified: string;
369
+ modified_by: string;
370
+ idx: number;
371
+ doctype: string;
372
+ parent: string;
373
+ parenttype: string;
374
+ parentfield: string;
436
375
  count: number;
437
376
  width: number;
438
377
  height: number;
439
378
  weight: number;
379
+ docstatus?: number | undefined;
380
+ _user_tags?: string | null | undefined;
440
381
  }>, "many">;
441
382
  shipment_type: z.ZodString;
442
383
  shipping_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -448,15 +389,31 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
448
389
  tracking_status: z.ZodString;
449
390
  tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
450
391
  value_of_goods: z.ZodNumber;
451
- custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
392
+ custom_delivery_country: z.ZodString & {
393
+ __optionalForInput: true;
394
+ };
452
395
  custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
453
396
  custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
454
- }, "shipping_provider" | "shipping_label" | "custom_return_label" | "custom_return_shipping_provider">, "strip", z.ZodTypeAny, {
397
+ } & {
398
+ name: z.ZodString;
399
+ owner: z.ZodString;
400
+ creation: z.ZodString;
401
+ modified: z.ZodString;
402
+ modified_by: z.ZodString;
403
+ idx: z.ZodNumber;
404
+ docstatus: z.ZodDefault<z.ZodNumber> & {
405
+ __optionalForInput: true;
406
+ };
407
+ doctype: z.ZodString;
408
+ _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
409
+ }, "docstatus" | "shipping_provider" | "shipping_label" | "custom_return_label" | "custom_return_shipping_provider">, z.UnknownKeysParam, z.ZodTypeAny, {
410
+ docstatus: number;
455
411
  shipping_provider?: string | null | undefined;
456
412
  shipping_label?: string | null | undefined;
457
413
  custom_return_label?: string | null | undefined;
458
414
  custom_return_shipping_provider?: string | null | undefined;
459
415
  }, {
416
+ docstatus?: number | undefined;
460
417
  shipping_provider?: string | null | undefined;
461
418
  shipping_label?: string | null | undefined;
462
419
  custom_return_label?: string | null | undefined;
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShipmentInfoByOrderNumberMethodResponseData = exports.ShipmentAddShippingLabelAndSubmitBody = exports.Shipment = exports.ShipmentExportStatus = exports.ShipmentParcel = exports.ShipmentDraftFromDeliveryNote = void 0;
3
+ exports.ShipmentInfoByOrderNumberMethodResponseData = exports.ShipmentAddShippingLabelAndSubmitBody = exports.Shipment = exports.ShipmentParcel = exports.ShipmentExportStatus = void 0;
4
4
  const zod_1 = require("zod");
5
+ const zodContextOptionals_1 = require("../../utils/zodContextOptionals");
6
+ const DocTypeHelpers_1 = require("./DocTypeHelpers");
5
7
  const Onload = zod_1.z
6
8
  .object({
7
9
  load_after_mapping: zod_1.z.boolean(),
@@ -15,41 +17,20 @@ const ShipmentDraftDeliveryNote = zod_1.z
15
17
  __unsaved: zod_1.z.number().optional().nullable(),
16
18
  })
17
19
  .describe("Shipment Draft Delivery Note");
18
- exports.ShipmentDraftFromDeliveryNote = zod_1.z
19
- .object({
20
- __islocal: zod_1.z.number().optional().nullable(),
21
- __onload: Onload.optional().nullable(),
22
- __unsaved: zod_1.z.number().optional().nullable(),
23
- delivery_address_name: zod_1.z.string(),
24
- delivery_address: zod_1.z.string(),
25
- delivery_contact: zod_1.z.string().optional(),
26
- delivery_customer: zod_1.z.string(),
27
- delivery_to_type: zod_1.z.string(),
28
- incoterm: zod_1.z.string().optional().nullable(),
29
- pallets: zod_1.z.string(),
30
- pickup_address_name: zod_1.z.string(),
31
- pickup_address: zod_1.z.string(),
32
- pickup_company: zod_1.z.string(),
33
- pickup_contact_email: zod_1.z.string(),
34
- pickup_contact_person: zod_1.z.string(),
35
- pickup_contact: zod_1.z.string(),
36
- pickup_from_type: zod_1.z.string(),
37
- pickup_from: zod_1.z.string(),
38
- pickup_to: zod_1.z.string(),
39
- pickup_type: zod_1.z.string(),
40
- shipment_amount: zod_1.z.number(),
41
- shipment_delivery_note: zod_1.z.array(ShipmentDraftDeliveryNote.optional()),
42
- shipment_parcel: zod_1.z.array(zod_1.z.any().optional()),
43
- shipment_type: zod_1.z.string(),
44
- status: zod_1.z.string(),
45
- tracking_status: zod_1.z.string(),
46
- value_of_goods: zod_1.z.number(),
47
- })
48
- .describe("Shipment Draft From Delivery Note");
20
+ exports.ShipmentExportStatus = zod_1.z
21
+ .enum([
22
+ "Open",
23
+ "Customs Declaration in Progress",
24
+ "Customs Declaration Submitted",
25
+ "Customs Declaration Confirmed",
26
+ ])
27
+ .default("Open")
28
+ .optional()
29
+ .nullable();
49
30
  const ShipmentDeliveryNote = zod_1.z
50
31
  .object({
51
32
  delivery_note: zod_1.z.string(),
52
- grand_total: zod_1.z.number(),
33
+ grand_total: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.number()),
53
34
  __unsaved: zod_1.z.number().optional().nullable(),
54
35
  })
55
36
  .describe("Shipment Delivery Note");
@@ -62,23 +43,11 @@ exports.ShipmentParcel = zod_1.z
62
43
  count: zod_1.z.number(),
63
44
  })
64
45
  .describe("Shipment Parcel");
65
- exports.ShipmentExportStatus = zod_1.z
66
- .enum([
67
- "Open",
68
- "Customs Declaration in Progress",
69
- "Customs Declaration Submitted",
70
- "Customs Declaration Confirmed",
71
- ])
72
- .default("Open")
73
- .optional()
74
- .nullable();
75
46
  exports.Shipment = zod_1.z
76
47
  .object({
77
- __onload: Onload.optional().nullable(),
78
48
  awb_number: zod_1.z.string().optional().nullable(),
79
49
  carrier_service: zod_1.z.string().optional().nullable(),
80
50
  carrier: zod_1.z.string().optional().nullable(),
81
- creation: zod_1.z.string(),
82
51
  delivery_address_name: zod_1.z.string(),
83
52
  delivery_address: zod_1.z.string(),
84
53
  delivery_company: zod_1.z.string().optional().nullable(),
@@ -123,16 +92,17 @@ exports.Shipment = zod_1.z
123
92
  tracking_status: zod_1.z.string(),
124
93
  tracking_url: zod_1.z.string().optional().nullable(),
125
94
  value_of_goods: zod_1.z.number(),
126
- custom_delivery_country: zod_1.z.string().optional().nullable(),
95
+ custom_delivery_country: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.string()),
127
96
  custom_is_export: zod_1.z.number().optional().nullable(),
128
97
  custom_export_status: exports.ShipmentExportStatus,
129
98
  })
130
99
  .describe("Shipment");
131
- exports.ShipmentAddShippingLabelAndSubmitBody = exports.Shipment.pick({
100
+ exports.ShipmentAddShippingLabelAndSubmitBody = (0, DocTypeHelpers_1.DocModel)(exports.Shipment).pick({
132
101
  shipping_label: true,
133
102
  shipping_provider: true,
134
103
  custom_return_label: true,
135
104
  custom_return_shipping_provider: true,
105
+ docstatus: true,
136
106
  });
137
107
  exports.ShipmentInfoByOrderNumberMethodResponseData = zod_1.z
138
108
  .array(zod_1.z.object({