erpnext-queue-client 2.5.0 → 2.5.1

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 (31) hide show
  1. package/dist/erpnext/doctypeResourceRequest.d.ts +12 -1
  2. package/dist/erpnext/doctypeResourceRequest.js +3 -3
  3. package/dist/erpnext/doctypes/address.d.ts +3 -233
  4. package/dist/erpnext/doctypes/address.js +5 -16
  5. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +3 -486
  6. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.js +4 -18
  7. package/dist/erpnext/doctypes/contact.d.ts +3 -358
  8. package/dist/erpnext/doctypes/contact.js +6 -17
  9. package/dist/erpnext/doctypes/deliveryNote.d.ts +1 -1575
  10. package/dist/erpnext/doctypes/deliveryNote.js +2 -19
  11. package/dist/erpnext/doctypes/item.d.ts +1 -1019
  12. package/dist/erpnext/doctypes/item.js +3 -16
  13. package/dist/erpnext/doctypes/paymentEntry.d.ts +1 -728
  14. package/dist/erpnext/doctypes/paymentEntry.js +4 -21
  15. package/dist/erpnext/doctypes/productBundle.d.ts +1 -143
  16. package/dist/erpnext/doctypes/productBundle.js +2 -13
  17. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +1 -1395
  18. package/dist/erpnext/doctypes/purchaseInvoice.js +4 -19
  19. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +1 -1204
  20. package/dist/erpnext/doctypes/purchaseReceipt.js +4 -19
  21. package/dist/erpnext/doctypes/salesInvoice.d.ts +1 -2517
  22. package/dist/erpnext/doctypes/salesInvoice.js +4 -21
  23. package/dist/erpnext/doctypes/servicecase.d.ts +24 -425
  24. package/dist/erpnext/doctypes/servicecase.js +14 -15
  25. package/dist/erpnext/doctypes/shipment.d.ts +1 -758
  26. package/dist/erpnext/doctypes/shipment.js +3 -20
  27. package/dist/erpnext/item.getList.alias-parsing.test.d.ts +1 -0
  28. package/dist/erpnext/item.getList.alias-parsing.test.js +66 -0
  29. package/dist/index.test.js +3 -2
  30. package/dist/utils/zodUtils.js +14 -6
  31. package/package.json +1 -1
@@ -1,766 +1,9 @@
1
- import z from "zod";
2
1
  import { TemporalClient } from "../../client";
3
2
  import { ERPNextDoctypeSubmittableResourceRequest } from "../doctypeSubmittableResourceRequest";
4
3
  import { ERPNextMethodRequest } from "../methodRequest";
5
4
  import { Shipment, ShipmentAddShippingLabelAndSubmitBodyType } from "../model/Shipment";
6
- export declare class ERPNextShipment {
7
- protected temporalClient: TemporalClient;
8
- protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof Shipment>;
5
+ export declare class ERPNextShipment extends ERPNextDoctypeSubmittableResourceRequest<typeof Shipment> {
9
6
  protected methodRequest: ERPNextMethodRequest;
10
- getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "incoterm" | "shipment_id" | "delivery_address_name" | "delivery_address" | "delivery_customer" | "delivery_to_type" | "description_of_content" | "pallets" | "pickup_address_name" | "pickup_address" | "pickup_company" | "pickup_contact_email" | "pickup_contact_person" | "pickup_contact" | "pickup_date" | "pickup_from_type" | "pickup_from" | "pickup_to" | "pickup_type" | "shipment_amount" | "shipment_type" | "tracking_status" | "value_of_goods" | "custom_delivery_country") | ("amended_from" | "_user_tags" | "shipping_provider" | "awb_number" | "carrier_service" | "carrier" | "delivery_company" | "delivery_contact_email" | "delivery_contact_name" | "delivery_contact" | "delivery_supplier" | "delivery_to" | "parcel_template" | "pickup_contact_name" | "pickup_customer" | "pickup_supplier" | "pickup" | "service_provider" | "shipping_label" | "custom_return_label" | "custom_return_shipping_provider" | "tracking_status_info" | "tracking_url" | "custom_is_export" | "custom_export_status"), TSelectedFields extends readonly ["*"] | readonly TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
11
- fields?: TSelectedFields;
12
- filters?: (string | string[])[][];
13
- skip?: number;
14
- limit?: number;
15
- priority?: number;
16
- asDict?: TAsDict;
17
- params?: Record<string, string>;
18
- }) => Promise<(TAsDict extends false ? string[][] : TSelectedFields extends undefined ? {
19
- name: string;
20
- }[] : TSelectedFields extends readonly ["*"] ? {
21
- status: string;
22
- docstatus: number;
23
- name: string;
24
- owner: string;
25
- creation: string;
26
- modified: string;
27
- modified_by: string;
28
- idx: number;
29
- incoterm: string;
30
- shipment_id: string;
31
- delivery_address_name: string;
32
- delivery_address: string;
33
- delivery_customer: string;
34
- delivery_to_type: string;
35
- description_of_content: string;
36
- pallets: string;
37
- pickup_address_name: string;
38
- pickup_address: string;
39
- pickup_company: string;
40
- pickup_contact_email: string;
41
- pickup_contact_person: string;
42
- pickup_contact: string;
43
- pickup_date: string;
44
- pickup_from_type: string;
45
- pickup_from: string;
46
- pickup_to: string;
47
- pickup_type: string;
48
- shipment_amount: number;
49
- shipment_type: string;
50
- tracking_status: string;
51
- value_of_goods: number;
52
- custom_delivery_country: string;
53
- amended_from?: string | null | undefined;
54
- _user_tags?: string | null | undefined;
55
- shipping_provider?: string | null | undefined;
56
- awb_number?: string | null | undefined;
57
- carrier_service?: string | null | undefined;
58
- carrier?: string | null | undefined;
59
- delivery_company?: string | null | undefined;
60
- delivery_contact_email?: string | null | undefined;
61
- delivery_contact_name?: string | null | undefined;
62
- delivery_contact?: string | null | undefined;
63
- delivery_supplier?: string | null | undefined;
64
- delivery_to?: string | null | undefined;
65
- parcel_template?: string | null | undefined;
66
- pickup_contact_name?: string | null | undefined;
67
- pickup_customer?: string | null | undefined;
68
- pickup_supplier?: string | null | undefined;
69
- pickup?: string | null | undefined;
70
- service_provider?: string | null | undefined;
71
- shipping_label?: string | null | undefined;
72
- custom_return_label?: string | null | undefined;
73
- custom_return_shipping_provider?: string | null | undefined;
74
- tracking_status_info?: string | null | undefined;
75
- tracking_url?: string | null | undefined;
76
- custom_is_export?: number | null | undefined;
77
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
78
- }[] : TSelectedFields extends readonly TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "incoterm" | "shipment_id" | "delivery_address_name" | "delivery_address" | "delivery_customer" | "delivery_to_type" | "description_of_content" | "pallets" | "pickup_address_name" | "pickup_address" | "pickup_company" | "pickup_contact_email" | "pickup_contact_person" | "pickup_contact" | "pickup_date" | "pickup_from_type" | "pickup_from" | "pickup_to" | "pickup_type" | "shipment_amount" | "shipment_type" | "tracking_status" | "value_of_goods" | "custom_delivery_country") | ("amended_from" | "_user_tags" | "shipping_provider" | "awb_number" | "carrier_service" | "carrier" | "delivery_company" | "delivery_contact_email" | "delivery_contact_name" | "delivery_contact" | "delivery_supplier" | "delivery_to" | "parcel_template" | "pickup_contact_name" | "pickup_customer" | "pickup_supplier" | "pickup" | "service_provider" | "shipping_label" | "custom_return_label" | "custom_return_shipping_provider" | "tracking_status_info" | "tracking_url" | "custom_is_export" | "custom_export_status") ? {
79
- status: string;
80
- docstatus: number;
81
- name: string;
82
- owner: string;
83
- creation: string;
84
- modified: string;
85
- modified_by: string;
86
- idx: number;
87
- incoterm: string;
88
- shipment_id: string;
89
- delivery_address_name: string;
90
- delivery_address: string;
91
- delivery_customer: string;
92
- delivery_to_type: string;
93
- description_of_content: string;
94
- pallets: string;
95
- pickup_address_name: string;
96
- pickup_address: string;
97
- pickup_company: string;
98
- pickup_contact_email: string;
99
- pickup_contact_person: string;
100
- pickup_contact: string;
101
- pickup_date: string;
102
- pickup_from_type: string;
103
- pickup_from: string;
104
- pickup_to: string;
105
- pickup_type: string;
106
- shipment_amount: number;
107
- shipment_type: string;
108
- tracking_status: string;
109
- value_of_goods: number;
110
- custom_delivery_country: string;
111
- amended_from?: string | null | undefined;
112
- _user_tags?: string | null | undefined;
113
- shipping_provider?: string | null | undefined;
114
- awb_number?: string | null | undefined;
115
- carrier_service?: string | null | undefined;
116
- carrier?: string | null | undefined;
117
- delivery_company?: string | null | undefined;
118
- delivery_contact_email?: string | null | undefined;
119
- delivery_contact_name?: string | null | undefined;
120
- delivery_contact?: string | null | undefined;
121
- delivery_supplier?: string | null | undefined;
122
- delivery_to?: string | null | undefined;
123
- parcel_template?: string | null | undefined;
124
- pickup_contact_name?: string | null | undefined;
125
- pickup_customer?: string | null | undefined;
126
- pickup_supplier?: string | null | undefined;
127
- pickup?: string | null | undefined;
128
- service_provider?: string | null | undefined;
129
- shipping_label?: string | null | undefined;
130
- custom_return_label?: string | null | undefined;
131
- custom_return_shipping_provider?: string | null | undefined;
132
- tracking_status_info?: string | null | undefined;
133
- tracking_url?: string | null | undefined;
134
- custom_is_export?: number | null | undefined;
135
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
136
- }[(("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "incoterm" | "shipment_id" | "delivery_address_name" | "delivery_address" | "delivery_customer" | "delivery_to_type" | "description_of_content" | "pallets" | "pickup_address_name" | "pickup_address" | "pickup_company" | "pickup_contact_email" | "pickup_contact_person" | "pickup_contact" | "pickup_date" | "pickup_from_type" | "pickup_from" | "pickup_to" | "pickup_type" | "shipment_amount" | "shipment_type" | "tracking_status" | "value_of_goods" | "custom_delivery_country") | ("amended_from" | "_user_tags" | "shipping_provider" | "awb_number" | "carrier_service" | "carrier" | "delivery_company" | "delivery_contact_email" | "delivery_contact_name" | "delivery_contact" | "delivery_supplier" | "delivery_to" | "parcel_template" | "pickup_contact_name" | "pickup_customer" | "pickup_supplier" | "pickup" | "service_provider" | "shipping_label" | "custom_return_label" | "custom_return_shipping_provider" | "tracking_status_info" | "tracking_url" | "custom_is_export" | "custom_export_status")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
137
- getById: ({ resourceId, priority, }: {
138
- resourceId: string;
139
- priority?: number;
140
- }) => Promise<{
141
- status: string;
142
- docstatus: number;
143
- name: string;
144
- owner: string;
145
- creation: string;
146
- modified: string;
147
- modified_by: string;
148
- idx: number;
149
- doctype: string;
150
- incoterm: string;
151
- shipment_id: string;
152
- delivery_address_name: string;
153
- delivery_address: string;
154
- delivery_customer: string;
155
- delivery_to_type: string;
156
- description_of_content: string;
157
- pallets: string;
158
- pickup_address_name: string;
159
- pickup_address: string;
160
- pickup_company: string;
161
- pickup_contact_email: string;
162
- pickup_contact_person: string;
163
- pickup_contact: string;
164
- pickup_date: string;
165
- pickup_from_type: string;
166
- pickup_from: string;
167
- pickup_to: string;
168
- pickup_type: string;
169
- shipment_amount: number;
170
- shipment_delivery_note: {
171
- docstatus: number;
172
- name: string;
173
- owner: string;
174
- creation: string;
175
- modified: string;
176
- modified_by: string;
177
- idx: number;
178
- doctype: string;
179
- parent: string;
180
- parenttype: string;
181
- parentfield: string;
182
- delivery_note: string;
183
- grand_total: number;
184
- _user_tags?: string | null | undefined;
185
- __unsaved?: number | null | undefined;
186
- }[];
187
- shipment_parcel: {
188
- length: number;
189
- docstatus: number;
190
- name: string;
191
- owner: string;
192
- creation: string;
193
- modified: string;
194
- modified_by: string;
195
- idx: number;
196
- doctype: string;
197
- parent: string;
198
- parenttype: string;
199
- parentfield: string;
200
- count: number;
201
- width: number;
202
- height: number;
203
- weight: number;
204
- _user_tags?: string | null | undefined;
205
- }[];
206
- shipment_type: string;
207
- tracking_status: string;
208
- value_of_goods: number;
209
- custom_delivery_country: string;
210
- amended_from?: string | null | undefined;
211
- _user_tags?: string | null | undefined;
212
- shipping_provider?: string | null | undefined;
213
- awb_number?: string | null | undefined;
214
- carrier_service?: string | null | undefined;
215
- carrier?: string | null | undefined;
216
- delivery_company?: string | null | undefined;
217
- delivery_contact_email?: string | null | undefined;
218
- delivery_contact_name?: string | null | undefined;
219
- delivery_contact?: string | null | undefined;
220
- delivery_supplier?: string | null | undefined;
221
- delivery_to?: string | null | undefined;
222
- parcel_template?: string | null | undefined;
223
- pickup_contact_name?: string | null | undefined;
224
- pickup_customer?: string | null | undefined;
225
- pickup_supplier?: string | null | undefined;
226
- pickup?: string | null | undefined;
227
- service_provider?: string | null | undefined;
228
- shipping_label?: string | null | undefined;
229
- custom_return_label?: string | null | undefined;
230
- custom_return_shipping_provider?: string | null | undefined;
231
- tracking_status_info?: string | null | undefined;
232
- tracking_url?: string | null | undefined;
233
- custom_is_export?: number | null | undefined;
234
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
235
- } | undefined>;
236
- updateById: <TInput extends TInputModel extends undefined ? Partial<{
237
- status: string;
238
- incoterm: string;
239
- shipment_id: string;
240
- delivery_address_name: string;
241
- delivery_address: string;
242
- delivery_customer: string;
243
- delivery_to_type: string;
244
- description_of_content: string;
245
- pallets: string;
246
- pickup_address_name: string;
247
- pickup_address: string;
248
- pickup_company: string;
249
- pickup_contact_email: string;
250
- pickup_contact_person: string;
251
- pickup_contact: string;
252
- pickup_date: string;
253
- pickup_from_type: string;
254
- pickup_from: string;
255
- pickup_to: string;
256
- pickup_type: string;
257
- shipment_amount: number;
258
- shipment_delivery_note: {
259
- delivery_note: string;
260
- __unsaved?: number | null | undefined;
261
- grand_total?: number | undefined;
262
- }[];
263
- shipment_parcel: {
264
- length: number;
265
- count: number;
266
- width: number;
267
- height: number;
268
- weight: number;
269
- }[];
270
- shipment_type: string;
271
- tracking_status: string;
272
- value_of_goods: number;
273
- docstatus?: number | undefined;
274
- amended_from?: string | null | undefined;
275
- shipping_provider?: string | null | undefined;
276
- awb_number?: string | null | undefined;
277
- carrier_service?: string | null | undefined;
278
- carrier?: string | null | undefined;
279
- delivery_company?: string | null | undefined;
280
- delivery_contact_email?: string | null | undefined;
281
- delivery_contact_name?: string | null | undefined;
282
- delivery_contact?: string | null | undefined;
283
- delivery_supplier?: string | null | undefined;
284
- delivery_to?: string | null | undefined;
285
- parcel_template?: string | null | undefined;
286
- pickup_contact_name?: string | null | undefined;
287
- pickup_customer?: string | null | undefined;
288
- pickup_supplier?: string | null | undefined;
289
- pickup?: string | null | undefined;
290
- service_provider?: string | null | undefined;
291
- shipping_label?: string | null | undefined;
292
- custom_return_label?: string | null | undefined;
293
- custom_return_shipping_provider?: string | null | undefined;
294
- tracking_status_info?: string | null | undefined;
295
- tracking_url?: string | null | undefined;
296
- custom_delivery_country?: string | undefined;
297
- custom_is_export?: number | null | undefined;
298
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
299
- }> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
300
- resourceId: string;
301
- inputValidationModel?: TInputModel;
302
- priority?: number;
303
- body: TInput;
304
- }) => Promise<{
305
- status: string;
306
- docstatus: number;
307
- name: string;
308
- owner: string;
309
- creation: string;
310
- modified: string;
311
- modified_by: string;
312
- idx: number;
313
- doctype: string;
314
- incoterm: string;
315
- shipment_id: string;
316
- delivery_address_name: string;
317
- delivery_address: string;
318
- delivery_customer: string;
319
- delivery_to_type: string;
320
- description_of_content: string;
321
- pallets: string;
322
- pickup_address_name: string;
323
- pickup_address: string;
324
- pickup_company: string;
325
- pickup_contact_email: string;
326
- pickup_contact_person: string;
327
- pickup_contact: string;
328
- pickup_date: string;
329
- pickup_from_type: string;
330
- pickup_from: string;
331
- pickup_to: string;
332
- pickup_type: string;
333
- shipment_amount: number;
334
- shipment_delivery_note: {
335
- docstatus: number;
336
- name: string;
337
- owner: string;
338
- creation: string;
339
- modified: string;
340
- modified_by: string;
341
- idx: number;
342
- doctype: string;
343
- parent: string;
344
- parenttype: string;
345
- parentfield: string;
346
- delivery_note: string;
347
- grand_total: number;
348
- _user_tags?: string | null | undefined;
349
- __unsaved?: number | null | undefined;
350
- }[];
351
- shipment_parcel: {
352
- length: number;
353
- docstatus: number;
354
- name: string;
355
- owner: string;
356
- creation: string;
357
- modified: string;
358
- modified_by: string;
359
- idx: number;
360
- doctype: string;
361
- parent: string;
362
- parenttype: string;
363
- parentfield: string;
364
- count: number;
365
- width: number;
366
- height: number;
367
- weight: number;
368
- _user_tags?: string | null | undefined;
369
- }[];
370
- shipment_type: string;
371
- tracking_status: string;
372
- value_of_goods: number;
373
- custom_delivery_country: string;
374
- amended_from?: string | null | undefined;
375
- _user_tags?: string | null | undefined;
376
- shipping_provider?: string | null | undefined;
377
- awb_number?: string | null | undefined;
378
- carrier_service?: string | null | undefined;
379
- carrier?: string | null | undefined;
380
- delivery_company?: string | null | undefined;
381
- delivery_contact_email?: string | null | undefined;
382
- delivery_contact_name?: string | null | undefined;
383
- delivery_contact?: string | null | undefined;
384
- delivery_supplier?: string | null | undefined;
385
- delivery_to?: string | null | undefined;
386
- parcel_template?: string | null | undefined;
387
- pickup_contact_name?: string | null | undefined;
388
- pickup_customer?: string | null | undefined;
389
- pickup_supplier?: string | null | undefined;
390
- pickup?: string | null | undefined;
391
- service_provider?: string | null | undefined;
392
- shipping_label?: string | null | undefined;
393
- custom_return_label?: string | null | undefined;
394
- custom_return_shipping_provider?: string | null | undefined;
395
- tracking_status_info?: string | null | undefined;
396
- tracking_url?: string | null | undefined;
397
- custom_is_export?: number | null | undefined;
398
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
399
- }>;
400
- deleteById: ({ resourceId, priority, }: {
401
- resourceId: string;
402
- priority?: number;
403
- }) => Promise<z.TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
404
- create: <TInput extends TInputModel extends undefined ? {
405
- status: string;
406
- incoterm: string;
407
- shipment_id: string;
408
- delivery_address_name: string;
409
- delivery_address: string;
410
- delivery_customer: string;
411
- delivery_to_type: string;
412
- description_of_content: string;
413
- pallets: string;
414
- pickup_address_name: string;
415
- pickup_address: string;
416
- pickup_company: string;
417
- pickup_contact_email: string;
418
- pickup_contact_person: string;
419
- pickup_contact: string;
420
- pickup_date: string;
421
- pickup_from_type: string;
422
- pickup_from: string;
423
- pickup_to: string;
424
- pickup_type: string;
425
- shipment_amount: number;
426
- shipment_delivery_note: {
427
- delivery_note: string;
428
- __unsaved?: number | null | undefined;
429
- grand_total?: number | undefined;
430
- }[];
431
- shipment_parcel: {
432
- length: number;
433
- count: number;
434
- width: number;
435
- height: number;
436
- weight: number;
437
- }[];
438
- shipment_type: string;
439
- tracking_status: string;
440
- value_of_goods: number;
441
- docstatus?: number | undefined;
442
- amended_from?: string | null | undefined;
443
- shipping_provider?: string | null | undefined;
444
- awb_number?: string | null | undefined;
445
- carrier_service?: string | null | undefined;
446
- carrier?: string | null | undefined;
447
- delivery_company?: string | null | undefined;
448
- delivery_contact_email?: string | null | undefined;
449
- delivery_contact_name?: string | null | undefined;
450
- delivery_contact?: string | null | undefined;
451
- delivery_supplier?: string | null | undefined;
452
- delivery_to?: string | null | undefined;
453
- parcel_template?: string | null | undefined;
454
- pickup_contact_name?: string | null | undefined;
455
- pickup_customer?: string | null | undefined;
456
- pickup_supplier?: string | null | undefined;
457
- pickup?: string | null | undefined;
458
- service_provider?: string | null | undefined;
459
- shipping_label?: string | null | undefined;
460
- custom_return_label?: string | null | undefined;
461
- custom_return_shipping_provider?: string | null | undefined;
462
- tracking_status_info?: string | null | undefined;
463
- tracking_url?: string | null | undefined;
464
- custom_delivery_country?: string | undefined;
465
- custom_is_export?: number | null | undefined;
466
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
467
- } : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
468
- inputValidationModel?: TInputModel;
469
- body: TInput;
470
- params?: Record<string, string>;
471
- priority?: number;
472
- }) => Promise<{
473
- status: string;
474
- docstatus: number;
475
- name: string;
476
- owner: string;
477
- creation: string;
478
- modified: string;
479
- modified_by: string;
480
- idx: number;
481
- doctype: string;
482
- incoterm: string;
483
- shipment_id: string;
484
- delivery_address_name: string;
485
- delivery_address: string;
486
- delivery_customer: string;
487
- delivery_to_type: string;
488
- description_of_content: string;
489
- pallets: string;
490
- pickup_address_name: string;
491
- pickup_address: string;
492
- pickup_company: string;
493
- pickup_contact_email: string;
494
- pickup_contact_person: string;
495
- pickup_contact: string;
496
- pickup_date: string;
497
- pickup_from_type: string;
498
- pickup_from: string;
499
- pickup_to: string;
500
- pickup_type: string;
501
- shipment_amount: number;
502
- shipment_delivery_note: {
503
- docstatus: number;
504
- name: string;
505
- owner: string;
506
- creation: string;
507
- modified: string;
508
- modified_by: string;
509
- idx: number;
510
- doctype: string;
511
- parent: string;
512
- parenttype: string;
513
- parentfield: string;
514
- delivery_note: string;
515
- grand_total: number;
516
- _user_tags?: string | null | undefined;
517
- __unsaved?: number | null | undefined;
518
- }[];
519
- shipment_parcel: {
520
- length: number;
521
- docstatus: number;
522
- name: string;
523
- owner: string;
524
- creation: string;
525
- modified: string;
526
- modified_by: string;
527
- idx: number;
528
- doctype: string;
529
- parent: string;
530
- parenttype: string;
531
- parentfield: string;
532
- count: number;
533
- width: number;
534
- height: number;
535
- weight: number;
536
- _user_tags?: string | null | undefined;
537
- }[];
538
- shipment_type: string;
539
- tracking_status: string;
540
- value_of_goods: number;
541
- custom_delivery_country: string;
542
- amended_from?: string | null | undefined;
543
- _user_tags?: string | null | undefined;
544
- shipping_provider?: string | null | undefined;
545
- awb_number?: string | null | undefined;
546
- carrier_service?: string | null | undefined;
547
- carrier?: string | null | undefined;
548
- delivery_company?: string | null | undefined;
549
- delivery_contact_email?: string | null | undefined;
550
- delivery_contact_name?: string | null | undefined;
551
- delivery_contact?: string | null | undefined;
552
- delivery_supplier?: string | null | undefined;
553
- delivery_to?: string | null | undefined;
554
- parcel_template?: string | null | undefined;
555
- pickup_contact_name?: string | null | undefined;
556
- pickup_customer?: string | null | undefined;
557
- pickup_supplier?: string | null | undefined;
558
- pickup?: string | null | undefined;
559
- service_provider?: string | null | undefined;
560
- shipping_label?: string | null | undefined;
561
- custom_return_label?: string | null | undefined;
562
- custom_return_shipping_provider?: string | null | undefined;
563
- tracking_status_info?: string | null | undefined;
564
- tracking_url?: string | null | undefined;
565
- custom_is_export?: number | null | undefined;
566
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
567
- }>;
568
- cancel: ({ resourceId, }: {
569
- resourceId: string;
570
- }) => Promise<{
571
- status: string;
572
- docstatus: number;
573
- name: string;
574
- owner: string;
575
- creation: string;
576
- modified: string;
577
- modified_by: string;
578
- idx: number;
579
- doctype: string;
580
- incoterm: string;
581
- shipment_id: string;
582
- delivery_address_name: string;
583
- delivery_address: string;
584
- delivery_customer: string;
585
- delivery_to_type: string;
586
- description_of_content: string;
587
- pallets: string;
588
- pickup_address_name: string;
589
- pickup_address: string;
590
- pickup_company: string;
591
- pickup_contact_email: string;
592
- pickup_contact_person: string;
593
- pickup_contact: string;
594
- pickup_date: string;
595
- pickup_from_type: string;
596
- pickup_from: string;
597
- pickup_to: string;
598
- pickup_type: string;
599
- shipment_amount: number;
600
- shipment_delivery_note: {
601
- docstatus: number;
602
- name: string;
603
- owner: string;
604
- creation: string;
605
- modified: string;
606
- modified_by: string;
607
- idx: number;
608
- doctype: string;
609
- parent: string;
610
- parenttype: string;
611
- parentfield: string;
612
- delivery_note: string;
613
- grand_total: number;
614
- _user_tags?: string | null | undefined;
615
- __unsaved?: number | null | undefined;
616
- }[];
617
- shipment_parcel: {
618
- length: number;
619
- docstatus: number;
620
- name: string;
621
- owner: string;
622
- creation: string;
623
- modified: string;
624
- modified_by: string;
625
- idx: number;
626
- doctype: string;
627
- parent: string;
628
- parenttype: string;
629
- parentfield: string;
630
- count: number;
631
- width: number;
632
- height: number;
633
- weight: number;
634
- _user_tags?: string | null | undefined;
635
- }[];
636
- shipment_type: string;
637
- tracking_status: string;
638
- value_of_goods: number;
639
- custom_delivery_country: string;
640
- amended_from?: string | null | undefined;
641
- _user_tags?: string | null | undefined;
642
- shipping_provider?: string | null | undefined;
643
- awb_number?: string | null | undefined;
644
- carrier_service?: string | null | undefined;
645
- carrier?: string | null | undefined;
646
- delivery_company?: string | null | undefined;
647
- delivery_contact_email?: string | null | undefined;
648
- delivery_contact_name?: string | null | undefined;
649
- delivery_contact?: string | null | undefined;
650
- delivery_supplier?: string | null | undefined;
651
- delivery_to?: string | null | undefined;
652
- parcel_template?: string | null | undefined;
653
- pickup_contact_name?: string | null | undefined;
654
- pickup_customer?: string | null | undefined;
655
- pickup_supplier?: string | null | undefined;
656
- pickup?: string | null | undefined;
657
- service_provider?: string | null | undefined;
658
- shipping_label?: string | null | undefined;
659
- custom_return_label?: string | null | undefined;
660
- custom_return_shipping_provider?: string | null | undefined;
661
- tracking_status_info?: string | null | undefined;
662
- tracking_url?: string | null | undefined;
663
- custom_is_export?: number | null | undefined;
664
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
665
- }>;
666
- submit: ({ resourceId, }: {
667
- resourceId: string;
668
- }) => Promise<{
669
- status: string;
670
- docstatus: number;
671
- name: string;
672
- owner: string;
673
- creation: string;
674
- modified: string;
675
- modified_by: string;
676
- idx: number;
677
- doctype: string;
678
- incoterm: string;
679
- shipment_id: string;
680
- delivery_address_name: string;
681
- delivery_address: string;
682
- delivery_customer: string;
683
- delivery_to_type: string;
684
- description_of_content: string;
685
- pallets: string;
686
- pickup_address_name: string;
687
- pickup_address: string;
688
- pickup_company: string;
689
- pickup_contact_email: string;
690
- pickup_contact_person: string;
691
- pickup_contact: string;
692
- pickup_date: string;
693
- pickup_from_type: string;
694
- pickup_from: string;
695
- pickup_to: string;
696
- pickup_type: string;
697
- shipment_amount: number;
698
- shipment_delivery_note: {
699
- docstatus: number;
700
- name: string;
701
- owner: string;
702
- creation: string;
703
- modified: string;
704
- modified_by: string;
705
- idx: number;
706
- doctype: string;
707
- parent: string;
708
- parenttype: string;
709
- parentfield: string;
710
- delivery_note: string;
711
- grand_total: number;
712
- _user_tags?: string | null | undefined;
713
- __unsaved?: number | null | undefined;
714
- }[];
715
- shipment_parcel: {
716
- length: number;
717
- docstatus: number;
718
- name: string;
719
- owner: string;
720
- creation: string;
721
- modified: string;
722
- modified_by: string;
723
- idx: number;
724
- doctype: string;
725
- parent: string;
726
- parenttype: string;
727
- parentfield: string;
728
- count: number;
729
- width: number;
730
- height: number;
731
- weight: number;
732
- _user_tags?: string | null | undefined;
733
- }[];
734
- shipment_type: string;
735
- tracking_status: string;
736
- value_of_goods: number;
737
- custom_delivery_country: string;
738
- amended_from?: string | null | undefined;
739
- _user_tags?: string | null | undefined;
740
- shipping_provider?: string | null | undefined;
741
- awb_number?: string | null | undefined;
742
- carrier_service?: string | null | undefined;
743
- carrier?: string | null | undefined;
744
- delivery_company?: string | null | undefined;
745
- delivery_contact_email?: string | null | undefined;
746
- delivery_contact_name?: string | null | undefined;
747
- delivery_contact?: string | null | undefined;
748
- delivery_supplier?: string | null | undefined;
749
- delivery_to?: string | null | undefined;
750
- parcel_template?: string | null | undefined;
751
- pickup_contact_name?: string | null | undefined;
752
- pickup_customer?: string | null | undefined;
753
- pickup_supplier?: string | null | undefined;
754
- pickup?: string | null | undefined;
755
- service_provider?: string | null | undefined;
756
- shipping_label?: string | null | undefined;
757
- custom_return_label?: string | null | undefined;
758
- custom_return_shipping_provider?: string | null | undefined;
759
- tracking_status_info?: string | null | undefined;
760
- tracking_url?: string | null | undefined;
761
- custom_is_export?: number | null | undefined;
762
- custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
763
- }>;
764
7
  constructor(temporalClient: TemporalClient);
765
8
  createShipmentDraft(deliveryNoteName: string): Promise<{
766
9
  status: string;