erpnext-queue-client 2.5.24 → 2.6.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.
@@ -7,8 +7,91 @@ export declare class ERPNextConsolidatedCustomsInvoice extends ERPNextDoctypeSub
7
7
  constructor(temporalClient: TemporalClient);
8
8
  /** Create a consolidated customs invoice from the given shipment names. */
9
9
  createFromShipments({ shipments, }: ConsolidatedCustomsInvoiceCreateMethodInputType): Promise<{
10
- name: string;
11
- exchange_rate: number;
10
+ doc: {
11
+ name: string;
12
+ docstatus: number;
13
+ owner: string;
14
+ creation: string;
15
+ modified: string;
16
+ modified_by: string;
17
+ idx: number;
18
+ doctype: string;
19
+ posting_date: string;
20
+ set_posting_time: boolean;
21
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
22
+ currency: string;
23
+ conversion_rate: number;
24
+ total_qty: number;
25
+ total_net_weight: number;
26
+ base_total: number;
27
+ base_net_total: number;
28
+ total: number;
29
+ net_total: number;
30
+ dispatch_address_name: string;
31
+ importer_address: string;
32
+ importer_contact: string;
33
+ exporter_address: string;
34
+ exporter_contact: string;
35
+ items: {
36
+ name: string;
37
+ docstatus: number;
38
+ owner: string;
39
+ creation: string;
40
+ modified: string;
41
+ modified_by: string;
42
+ idx: number;
43
+ doctype: string;
44
+ parent: string;
45
+ parenttype: string;
46
+ parentfield: string;
47
+ item_code: string;
48
+ qty: number;
49
+ rate: number;
50
+ delivered_by_supplier: 0 | 1;
51
+ weight_per_unit: number;
52
+ total_weight: number;
53
+ weight_uom: string;
54
+ description?: string | null | undefined;
55
+ _user_tags?: string | null | undefined;
56
+ item_name?: string | null | undefined;
57
+ item_tax_template?: string | null | undefined;
58
+ amount?: number | null | undefined;
59
+ base_rate?: number | null | undefined;
60
+ base_amount?: number | null | undefined;
61
+ net_rate?: number | null | undefined;
62
+ net_amount?: number | null | undefined;
63
+ base_net_rate?: number | null | undefined;
64
+ base_net_amount?: number | null | undefined;
65
+ shipping_cost?: number | null | undefined;
66
+ base_shipping_cost?: number | null | undefined;
67
+ sales_order?: string | null | undefined;
68
+ so_detail?: string | null | undefined;
69
+ sales_invoice?: string | null | undefined;
70
+ sales_invoice_item?: string | null | undefined;
71
+ customer?: string | null | undefined;
72
+ shipment?: string | null | undefined;
73
+ delivery_note?: string | null | undefined;
74
+ dn_detail?: string | null | undefined;
75
+ customs_tariff_number?: string | null | undefined;
76
+ country_of_origin?: string | null | undefined;
77
+ region_of_origin?: string | null | undefined;
78
+ }[];
79
+ amended_from?: string | null | undefined;
80
+ _user_tags?: string | null | undefined;
81
+ company?: string | null | undefined;
82
+ naming_series?: string | null | undefined;
83
+ posting_time?: string | null | undefined;
84
+ company_tax_id?: string | null | undefined;
85
+ mrn?: string | null | undefined;
86
+ abd?: string | null | undefined;
87
+ dispatch_address?: string | null | undefined;
88
+ importer_address_display?: string | null | undefined;
89
+ importer_contact_phone?: string | null | undefined;
90
+ importer_contact_email?: string | null | undefined;
91
+ exporter_address_display?: string | null | undefined;
92
+ exporter_contact_phone?: string | null | undefined;
93
+ exporter_contact_email?: string | null | undefined;
94
+ };
12
95
  importer_info: {
13
96
  address_line1: string;
14
97
  pincode: string;
@@ -31,6 +31,7 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
31
31
  dn_detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  customs_tariff_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  country_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ region_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
35
  }, "strip", z.ZodTypeAny, {
35
36
  item_code: string;
36
37
  qty: number;
@@ -61,6 +62,7 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
61
62
  dn_detail?: string | null | undefined;
62
63
  customs_tariff_number?: string | null | undefined;
63
64
  country_of_origin?: string | null | undefined;
65
+ region_of_origin?: string | null | undefined;
64
66
  }, {
65
67
  item_code: string;
66
68
  qty: number;
@@ -91,6 +93,7 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
91
93
  dn_detail?: string | null | undefined;
92
94
  customs_tariff_number?: string | null | undefined;
93
95
  country_of_origin?: string | null | undefined;
96
+ region_of_origin?: string | null | undefined;
94
97
  }>;
95
98
  export type ConsolidatedCustomsInvoiceItemType = z.infer<typeof ConsolidatedCustomsInvoiceItem>;
96
99
  export declare const ConsolidatedCustomsInvoiceExportApprovalStatus: z.ZodEnum<["", "Waiting for Approval", "Approved", "Declined"]>;
@@ -172,6 +175,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
172
175
  dn_detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
176
  customs_tariff_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
177
  country_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ region_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
179
  }, "strip", z.ZodTypeAny, {
176
180
  item_code: string;
177
181
  qty: number;
@@ -202,6 +206,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
202
206
  dn_detail?: string | null | undefined;
203
207
  customs_tariff_number?: string | null | undefined;
204
208
  country_of_origin?: string | null | undefined;
209
+ region_of_origin?: string | null | undefined;
205
210
  }, {
206
211
  item_code: string;
207
212
  qty: number;
@@ -232,6 +237,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
232
237
  dn_detail?: string | null | undefined;
233
238
  customs_tariff_number?: string | null | undefined;
234
239
  country_of_origin?: string | null | undefined;
240
+ region_of_origin?: string | null | undefined;
235
241
  }>, "many">;
236
242
  }, "strip", z.ZodTypeAny, {
237
243
  posting_date: string;
@@ -280,6 +286,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
280
286
  dn_detail?: string | null | undefined;
281
287
  customs_tariff_number?: string | null | undefined;
282
288
  country_of_origin?: string | null | undefined;
289
+ region_of_origin?: string | null | undefined;
283
290
  }[];
284
291
  amended_from?: string | null | undefined;
285
292
  company?: string | null | undefined;
@@ -342,6 +349,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
342
349
  dn_detail?: string | null | undefined;
343
350
  customs_tariff_number?: string | null | undefined;
344
351
  country_of_origin?: string | null | undefined;
352
+ region_of_origin?: string | null | undefined;
345
353
  }[];
346
354
  amended_from?: string | null | undefined;
347
355
  company?: string | null | undefined;
@@ -368,8 +376,274 @@ export declare const ConsolidatedCustomsInvoiceCreateMethodInput: z.ZodObject<{
368
376
  }>;
369
377
  export type ConsolidatedCustomsInvoiceCreateMethodInputType = z.infer<typeof ConsolidatedCustomsInvoiceCreateMethodInput>;
370
378
  export declare const ConsolidatedCustomsInvoiceCreateMethodResponseSchema: z.ZodObject<{
371
- name: z.ZodString;
372
- exchange_rate: z.ZodNumber;
379
+ doc: import("./DocTypeHelpers").SubmittableDocModelType<z.ZodObject<{
380
+ posting_date: z.ZodString;
381
+ posting_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
382
+ set_posting_time: z.ZodEffects<z.ZodNumber, boolean, number>;
383
+ naming_series: z.ZodNullable<z.ZodOptional<z.ZodString>>;
384
+ company: z.ZodNullable<z.ZodOptional<z.ZodString>>;
385
+ company_tax_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
386
+ amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
387
+ export_approval_status: z.ZodEnum<["", "Waiting for Approval", "Approved", "Declined"]> & {
388
+ __optionalForInput: true;
389
+ };
390
+ mrn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
391
+ abd: z.ZodNullable<z.ZodOptional<z.ZodString>>;
392
+ currency: z.ZodString;
393
+ conversion_rate: z.ZodNumber;
394
+ total_qty: z.ZodNumber & {
395
+ __optionalForInput: true;
396
+ };
397
+ total_net_weight: z.ZodNumber & {
398
+ __optionalForInput: true;
399
+ };
400
+ base_total: z.ZodNumber & {
401
+ __optionalForInput: true;
402
+ };
403
+ base_net_total: z.ZodNumber & {
404
+ __optionalForInput: true;
405
+ };
406
+ total: z.ZodNumber & {
407
+ __optionalForInput: true;
408
+ };
409
+ net_total: z.ZodNumber & {
410
+ __optionalForInput: true;
411
+ };
412
+ dispatch_address_name: z.ZodString;
413
+ dispatch_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
414
+ importer_address: z.ZodString;
415
+ importer_address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
416
+ importer_contact: z.ZodString;
417
+ importer_contact_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
418
+ importer_contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
419
+ exporter_address: z.ZodString;
420
+ exporter_address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
421
+ exporter_contact: z.ZodString;
422
+ exporter_contact_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
423
+ exporter_contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
424
+ items: z.ZodArray<z.ZodObject<{
425
+ item_code: z.ZodString;
426
+ item_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
428
+ qty: z.ZodNumber;
429
+ item_tax_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
430
+ rate: z.ZodNumber;
431
+ amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
432
+ base_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
433
+ base_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
434
+ net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
435
+ net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
436
+ base_net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
437
+ base_net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
438
+ shipping_cost: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
439
+ base_shipping_cost: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
440
+ delivered_by_supplier: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
441
+ __optionalForInput: true;
442
+ };
443
+ weight_per_unit: z.ZodNumber;
444
+ total_weight: z.ZodNumber;
445
+ weight_uom: z.ZodString;
446
+ sales_order: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
+ so_detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ sales_invoice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
+ sales_invoice_item: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
+ customer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ shipment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ delivery_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
453
+ dn_detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
+ customs_tariff_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
+ country_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
+ region_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ item_code: string;
459
+ qty: number;
460
+ rate: number;
461
+ delivered_by_supplier: 0 | 1;
462
+ weight_per_unit: number;
463
+ total_weight: number;
464
+ weight_uom: string;
465
+ description?: string | null | undefined;
466
+ item_name?: string | null | undefined;
467
+ item_tax_template?: string | null | undefined;
468
+ amount?: number | null | undefined;
469
+ base_rate?: number | null | undefined;
470
+ base_amount?: number | null | undefined;
471
+ net_rate?: number | null | undefined;
472
+ net_amount?: number | null | undefined;
473
+ base_net_rate?: number | null | undefined;
474
+ base_net_amount?: number | null | undefined;
475
+ shipping_cost?: number | null | undefined;
476
+ base_shipping_cost?: number | null | undefined;
477
+ sales_order?: string | null | undefined;
478
+ so_detail?: string | null | undefined;
479
+ sales_invoice?: string | null | undefined;
480
+ sales_invoice_item?: string | null | undefined;
481
+ customer?: string | null | undefined;
482
+ shipment?: string | null | undefined;
483
+ delivery_note?: string | null | undefined;
484
+ dn_detail?: string | null | undefined;
485
+ customs_tariff_number?: string | null | undefined;
486
+ country_of_origin?: string | null | undefined;
487
+ region_of_origin?: string | null | undefined;
488
+ }, {
489
+ item_code: string;
490
+ qty: number;
491
+ rate: number;
492
+ weight_per_unit: number;
493
+ total_weight: number;
494
+ weight_uom: string;
495
+ description?: string | null | undefined;
496
+ item_name?: string | null | undefined;
497
+ item_tax_template?: string | null | undefined;
498
+ amount?: number | null | undefined;
499
+ base_rate?: number | null | undefined;
500
+ base_amount?: number | null | undefined;
501
+ net_rate?: number | null | undefined;
502
+ net_amount?: number | null | undefined;
503
+ base_net_rate?: number | null | undefined;
504
+ base_net_amount?: number | null | undefined;
505
+ shipping_cost?: number | null | undefined;
506
+ base_shipping_cost?: number | null | undefined;
507
+ delivered_by_supplier?: unknown;
508
+ sales_order?: string | null | undefined;
509
+ so_detail?: string | null | undefined;
510
+ sales_invoice?: string | null | undefined;
511
+ sales_invoice_item?: string | null | undefined;
512
+ customer?: string | null | undefined;
513
+ shipment?: string | null | undefined;
514
+ delivery_note?: string | null | undefined;
515
+ dn_detail?: string | null | undefined;
516
+ customs_tariff_number?: string | null | undefined;
517
+ country_of_origin?: string | null | undefined;
518
+ region_of_origin?: string | null | undefined;
519
+ }>, "many">;
520
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
521
+ posting_date: string;
522
+ set_posting_time: boolean;
523
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
524
+ currency: string;
525
+ conversion_rate: number;
526
+ total_qty: number;
527
+ total_net_weight: number;
528
+ base_total: number;
529
+ base_net_total: number;
530
+ total: number;
531
+ net_total: number;
532
+ dispatch_address_name: string;
533
+ importer_address: string;
534
+ importer_contact: string;
535
+ exporter_address: string;
536
+ exporter_contact: string;
537
+ items: {
538
+ item_code: string;
539
+ qty: number;
540
+ rate: number;
541
+ delivered_by_supplier: 0 | 1;
542
+ weight_per_unit: number;
543
+ total_weight: number;
544
+ weight_uom: string;
545
+ description?: string | null | undefined;
546
+ item_name?: string | null | undefined;
547
+ item_tax_template?: string | null | undefined;
548
+ amount?: number | null | undefined;
549
+ base_rate?: number | null | undefined;
550
+ base_amount?: number | null | undefined;
551
+ net_rate?: number | null | undefined;
552
+ net_amount?: number | null | undefined;
553
+ base_net_rate?: number | null | undefined;
554
+ base_net_amount?: number | null | undefined;
555
+ shipping_cost?: number | null | undefined;
556
+ base_shipping_cost?: number | null | undefined;
557
+ sales_order?: string | null | undefined;
558
+ so_detail?: string | null | undefined;
559
+ sales_invoice?: string | null | undefined;
560
+ sales_invoice_item?: string | null | undefined;
561
+ customer?: string | null | undefined;
562
+ shipment?: string | null | undefined;
563
+ delivery_note?: string | null | undefined;
564
+ dn_detail?: string | null | undefined;
565
+ customs_tariff_number?: string | null | undefined;
566
+ country_of_origin?: string | null | undefined;
567
+ region_of_origin?: string | null | undefined;
568
+ }[];
569
+ amended_from?: string | null | undefined;
570
+ company?: string | null | undefined;
571
+ naming_series?: string | null | undefined;
572
+ posting_time?: string | null | undefined;
573
+ company_tax_id?: string | null | undefined;
574
+ mrn?: string | null | undefined;
575
+ abd?: string | null | undefined;
576
+ dispatch_address?: string | null | undefined;
577
+ importer_address_display?: string | null | undefined;
578
+ importer_contact_phone?: string | null | undefined;
579
+ importer_contact_email?: string | null | undefined;
580
+ exporter_address_display?: string | null | undefined;
581
+ exporter_contact_phone?: string | null | undefined;
582
+ exporter_contact_email?: string | null | undefined;
583
+ }, {
584
+ posting_date: string;
585
+ set_posting_time: number;
586
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
587
+ currency: string;
588
+ conversion_rate: number;
589
+ total_qty: number;
590
+ total_net_weight: number;
591
+ base_total: number;
592
+ base_net_total: number;
593
+ total: number;
594
+ net_total: number;
595
+ dispatch_address_name: string;
596
+ importer_address: string;
597
+ importer_contact: string;
598
+ exporter_address: string;
599
+ exporter_contact: string;
600
+ items: {
601
+ item_code: string;
602
+ qty: number;
603
+ rate: number;
604
+ weight_per_unit: number;
605
+ total_weight: number;
606
+ weight_uom: string;
607
+ description?: string | null | undefined;
608
+ item_name?: string | null | undefined;
609
+ item_tax_template?: string | null | undefined;
610
+ amount?: number | null | undefined;
611
+ base_rate?: number | null | undefined;
612
+ base_amount?: number | null | undefined;
613
+ net_rate?: number | null | undefined;
614
+ net_amount?: number | null | undefined;
615
+ base_net_rate?: number | null | undefined;
616
+ base_net_amount?: number | null | undefined;
617
+ shipping_cost?: number | null | undefined;
618
+ base_shipping_cost?: number | null | undefined;
619
+ delivered_by_supplier?: unknown;
620
+ sales_order?: string | null | undefined;
621
+ so_detail?: string | null | undefined;
622
+ sales_invoice?: string | null | undefined;
623
+ sales_invoice_item?: string | null | undefined;
624
+ customer?: string | null | undefined;
625
+ shipment?: string | null | undefined;
626
+ delivery_note?: string | null | undefined;
627
+ dn_detail?: string | null | undefined;
628
+ customs_tariff_number?: string | null | undefined;
629
+ country_of_origin?: string | null | undefined;
630
+ region_of_origin?: string | null | undefined;
631
+ }[];
632
+ amended_from?: string | null | undefined;
633
+ company?: string | null | undefined;
634
+ naming_series?: string | null | undefined;
635
+ posting_time?: string | null | undefined;
636
+ company_tax_id?: string | null | undefined;
637
+ mrn?: string | null | undefined;
638
+ abd?: string | null | undefined;
639
+ dispatch_address?: string | null | undefined;
640
+ importer_address_display?: string | null | undefined;
641
+ importer_contact_phone?: string | null | undefined;
642
+ importer_contact_email?: string | null | undefined;
643
+ exporter_address_display?: string | null | undefined;
644
+ exporter_contact_phone?: string | null | undefined;
645
+ exporter_contact_email?: string | null | undefined;
646
+ }>>;
373
647
  importer_info: z.ZodObject<Pick<{
374
648
  import_reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
375
649
  address_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -436,8 +710,91 @@ export declare const ConsolidatedCustomsInvoiceCreateMethodResponseSchema: z.Zod
436
710
  email_id?: string | null | undefined;
437
711
  }>;
438
712
  }, "strip", z.ZodTypeAny, {
439
- name: string;
440
- exchange_rate: number;
713
+ doc: {
714
+ name: string;
715
+ docstatus: number;
716
+ owner: string;
717
+ creation: string;
718
+ modified: string;
719
+ modified_by: string;
720
+ idx: number;
721
+ doctype: string;
722
+ posting_date: string;
723
+ set_posting_time: boolean;
724
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
725
+ currency: string;
726
+ conversion_rate: number;
727
+ total_qty: number;
728
+ total_net_weight: number;
729
+ base_total: number;
730
+ base_net_total: number;
731
+ total: number;
732
+ net_total: number;
733
+ dispatch_address_name: string;
734
+ importer_address: string;
735
+ importer_contact: string;
736
+ exporter_address: string;
737
+ exporter_contact: string;
738
+ items: {
739
+ name: string;
740
+ docstatus: number;
741
+ owner: string;
742
+ creation: string;
743
+ modified: string;
744
+ modified_by: string;
745
+ idx: number;
746
+ doctype: string;
747
+ parent: string;
748
+ parenttype: string;
749
+ parentfield: string;
750
+ item_code: string;
751
+ qty: number;
752
+ rate: number;
753
+ delivered_by_supplier: 0 | 1;
754
+ weight_per_unit: number;
755
+ total_weight: number;
756
+ weight_uom: string;
757
+ description?: string | null | undefined;
758
+ _user_tags?: string | null | undefined;
759
+ item_name?: string | null | undefined;
760
+ item_tax_template?: string | null | undefined;
761
+ amount?: number | null | undefined;
762
+ base_rate?: number | null | undefined;
763
+ base_amount?: number | null | undefined;
764
+ net_rate?: number | null | undefined;
765
+ net_amount?: number | null | undefined;
766
+ base_net_rate?: number | null | undefined;
767
+ base_net_amount?: number | null | undefined;
768
+ shipping_cost?: number | null | undefined;
769
+ base_shipping_cost?: number | null | undefined;
770
+ sales_order?: string | null | undefined;
771
+ so_detail?: string | null | undefined;
772
+ sales_invoice?: string | null | undefined;
773
+ sales_invoice_item?: string | null | undefined;
774
+ customer?: string | null | undefined;
775
+ shipment?: string | null | undefined;
776
+ delivery_note?: string | null | undefined;
777
+ dn_detail?: string | null | undefined;
778
+ customs_tariff_number?: string | null | undefined;
779
+ country_of_origin?: string | null | undefined;
780
+ region_of_origin?: string | null | undefined;
781
+ }[];
782
+ amended_from?: string | null | undefined;
783
+ _user_tags?: string | null | undefined;
784
+ company?: string | null | undefined;
785
+ naming_series?: string | null | undefined;
786
+ posting_time?: string | null | undefined;
787
+ company_tax_id?: string | null | undefined;
788
+ mrn?: string | null | undefined;
789
+ abd?: string | null | undefined;
790
+ dispatch_address?: string | null | undefined;
791
+ importer_address_display?: string | null | undefined;
792
+ importer_contact_phone?: string | null | undefined;
793
+ importer_contact_email?: string | null | undefined;
794
+ exporter_address_display?: string | null | undefined;
795
+ exporter_contact_phone?: string | null | undefined;
796
+ exporter_contact_email?: string | null | undefined;
797
+ };
441
798
  importer_info: {
442
799
  address_line1: string;
443
800
  pincode: string;
@@ -451,8 +808,91 @@ export declare const ConsolidatedCustomsInvoiceCreateMethodResponseSchema: z.Zod
451
808
  email_id?: string | null | undefined;
452
809
  };
453
810
  }, {
454
- name: string;
455
- exchange_rate: number;
811
+ doc: {
812
+ name: string;
813
+ owner: string;
814
+ creation: string;
815
+ modified: string;
816
+ modified_by: string;
817
+ idx: number;
818
+ doctype: string;
819
+ posting_date: string;
820
+ set_posting_time: number;
821
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
822
+ currency: string;
823
+ conversion_rate: number;
824
+ total_qty: number;
825
+ total_net_weight: number;
826
+ base_total: number;
827
+ base_net_total: number;
828
+ total: number;
829
+ net_total: number;
830
+ dispatch_address_name: string;
831
+ importer_address: string;
832
+ importer_contact: string;
833
+ exporter_address: string;
834
+ exporter_contact: string;
835
+ items: {
836
+ name: string;
837
+ owner: string;
838
+ creation: string;
839
+ modified: string;
840
+ modified_by: string;
841
+ idx: number;
842
+ doctype: string;
843
+ parent: string;
844
+ parenttype: string;
845
+ parentfield: string;
846
+ item_code: string;
847
+ qty: number;
848
+ rate: number;
849
+ weight_per_unit: number;
850
+ total_weight: number;
851
+ weight_uom: string;
852
+ description?: string | null | undefined;
853
+ docstatus?: number | undefined;
854
+ _user_tags?: string | null | undefined;
855
+ item_name?: string | null | undefined;
856
+ item_tax_template?: string | null | undefined;
857
+ amount?: number | null | undefined;
858
+ base_rate?: number | null | undefined;
859
+ base_amount?: number | null | undefined;
860
+ net_rate?: number | null | undefined;
861
+ net_amount?: number | null | undefined;
862
+ base_net_rate?: number | null | undefined;
863
+ base_net_amount?: number | null | undefined;
864
+ shipping_cost?: number | null | undefined;
865
+ base_shipping_cost?: number | null | undefined;
866
+ delivered_by_supplier?: unknown;
867
+ sales_order?: string | null | undefined;
868
+ so_detail?: string | null | undefined;
869
+ sales_invoice?: string | null | undefined;
870
+ sales_invoice_item?: string | null | undefined;
871
+ customer?: string | null | undefined;
872
+ shipment?: string | null | undefined;
873
+ delivery_note?: string | null | undefined;
874
+ dn_detail?: string | null | undefined;
875
+ customs_tariff_number?: string | null | undefined;
876
+ country_of_origin?: string | null | undefined;
877
+ region_of_origin?: string | null | undefined;
878
+ }[];
879
+ docstatus?: number | undefined;
880
+ amended_from?: string | null | undefined;
881
+ _user_tags?: string | null | undefined;
882
+ company?: string | null | undefined;
883
+ naming_series?: string | null | undefined;
884
+ posting_time?: string | null | undefined;
885
+ company_tax_id?: string | null | undefined;
886
+ mrn?: string | null | undefined;
887
+ abd?: string | null | undefined;
888
+ dispatch_address?: string | null | undefined;
889
+ importer_address_display?: string | null | undefined;
890
+ importer_contact_phone?: string | null | undefined;
891
+ importer_contact_email?: string | null | undefined;
892
+ exporter_address_display?: string | null | undefined;
893
+ exporter_contact_phone?: string | null | undefined;
894
+ exporter_contact_email?: string | null | undefined;
895
+ };
456
896
  importer_info: {
457
897
  address_line1: string;
458
898
  city: string;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const Address_1 = require("./Address");
6
6
  const zodContextOptionals_1 = require("../../utils/zodContextOptionals");
7
7
  const Boolean_1 = require("./Boolean");
8
+ const DocTypeHelpers_1 = require("./DocTypeHelpers");
8
9
  // Child table: Consolidated Customs Invoice Item
9
10
  exports.ConsolidatedCustomsInvoiceItem = zod_1.z
10
11
  .object({
@@ -43,6 +44,7 @@ exports.ConsolidatedCustomsInvoiceItem = zod_1.z
43
44
  // Customs
44
45
  customs_tariff_number: zod_1.z.string().nullish(),
45
46
  country_of_origin: zod_1.z.string().nullish(),
47
+ region_of_origin: zod_1.z.string().nullish(),
46
48
  })
47
49
  .describe("Consolidated Customs Invoice Item");
48
50
  exports.ConsolidatedCustomsInvoiceExportApprovalStatus = zod_1.z.enum([
@@ -93,8 +95,7 @@ exports.ConsolidatedCustomsInvoiceCreateMethodInput = zod_1.z
93
95
  .describe("ConsolidatedCustomsInvoiceCreateMethodInput");
94
96
  exports.ConsolidatedCustomsInvoiceCreateMethodResponseSchema = zod_1.z
95
97
  .object({
96
- name: zod_1.z.string().min(1),
97
- exchange_rate: zod_1.z.number(),
98
+ doc: (0, DocTypeHelpers_1.DocModel)(exports.ConsolidatedCustomsInvoice, true),
98
99
  importer_info: Address_1.Address.pick({
99
100
  address_title: true,
100
101
  address_line1: true,
@@ -102,9 +102,6 @@ export declare const Report: <RModel extends ZodTypeAny>(reportRowModel: RModel)
102
102
  prepared_report: boolean;
103
103
  message?: string | null | undefined;
104
104
  status?: string | null | undefined;
105
- chart?: any;
106
- report_summary?: string | null | undefined;
107
- execution_time?: number | null | undefined;
108
105
  doc?: {
109
106
  status?: string | null | undefined;
110
107
  filters?: string | null | undefined;
@@ -114,6 +111,9 @@ export declare const Report: <RModel extends ZodTypeAny>(reportRowModel: RModel)
114
111
  report_start_time?: string | null | undefined;
115
112
  report_end_time?: string | null | undefined;
116
113
  } | null | undefined;
114
+ chart?: any;
115
+ report_summary?: string | null | undefined;
116
+ execution_time?: number | null | undefined;
117
117
  }, {
118
118
  result: (z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many"> | RModel)["_input"][] | RModel["_input"][];
119
119
  columns: {
@@ -128,10 +128,6 @@ export declare const Report: <RModel extends ZodTypeAny>(reportRowModel: RModel)
128
128
  prepared_report: boolean;
129
129
  message?: string | null | undefined;
130
130
  status?: string | null | undefined;
131
- chart?: any;
132
- report_summary?: string | null | undefined;
133
- skip_total_row?: number | null | undefined;
134
- execution_time?: number | null | undefined;
135
131
  doc?: {
136
132
  status?: string | null | undefined;
137
133
  filters?: string | null | undefined;
@@ -141,17 +137,21 @@ export declare const Report: <RModel extends ZodTypeAny>(reportRowModel: RModel)
141
137
  report_start_time?: string | null | undefined;
142
138
  report_end_time?: string | null | undefined;
143
139
  } | null | undefined;
140
+ chart?: any;
141
+ report_summary?: string | null | undefined;
142
+ skip_total_row?: number | null | undefined;
143
+ execution_time?: number | null | undefined;
144
144
  }>;
145
145
  export declare const PendingPreparedReport: z.ZodObject<{
146
146
  prepared_report: z.ZodBoolean;
147
147
  doc: z.ZodNull;
148
148
  add_total_row: z.ZodBoolean;
149
149
  }, "strip", z.ZodTypeAny, {
150
+ doc: null;
150
151
  add_total_row: boolean;
151
152
  prepared_report: boolean;
152
- doc: null;
153
153
  }, {
154
+ doc: null;
154
155
  add_total_row: boolean;
155
156
  prepared_report: boolean;
156
- doc: null;
157
157
  }>;
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "winston": "^3.15.0",
35
35
  "zod": "3.25.76"
36
36
  },
37
- "version": "2.5.24",
37
+ "version": "2.6.1",
38
38
  "devDependencies": {
39
39
  "@types/crypto-js": "^4.2.2",
40
40
  "@types/lodash": "^4.17.13",