erpnext-queue-client 2.3.2 → 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 (53) 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 +76 -3
  5. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +65 -55
  6. package/dist/erpnext/doctypes/contact.d.ts +220 -3
  7. package/dist/erpnext/doctypes/deliveryNote.d.ts +207 -202
  8. package/dist/erpnext/doctypes/item.d.ts +19 -2
  9. package/dist/erpnext/doctypes/paymentEntry.d.ts +116 -6
  10. package/dist/erpnext/doctypes/productBundle.d.ts +5 -2
  11. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +141 -5
  12. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +11 -5
  13. package/dist/erpnext/doctypes/salesInvoice.d.ts +400 -6
  14. package/dist/erpnext/doctypes/servicecase.d.ts +38 -2
  15. package/dist/erpnext/doctypes/shipment.d.ts +100 -93
  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 -25
  30. package/dist/erpnext/model/DocTypeHelpers.js +44 -23
  31. package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +4 -1
  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/PaymentEntry.d.ts +3 -0
  40. package/dist/erpnext/model/PurchaseInvoice.d.ts +75 -1
  41. package/dist/erpnext/model/PurchaseOrder.d.ts +52 -63
  42. package/dist/erpnext/model/PurchaseOrder.js +20 -38
  43. package/dist/erpnext/model/SalesInvoice.d.ts +197 -4
  44. package/dist/erpnext/model/Servicecase.d.ts +8 -0
  45. package/dist/erpnext/model/Shipment.d.ts +119 -162
  46. package/dist/erpnext/model/Shipment.js +17 -47
  47. package/dist/erpnext/model/ShippingProvider.d.ts +55 -65
  48. package/dist/erpnext/model/ShippingProvider.js +6 -10
  49. package/dist/erpnext/resourceRequest.d.ts +2 -2
  50. package/dist/utils/zodContextOptionals.d.ts +2 -0
  51. package/dist/utils/zodContextOptionals.js +8 -4
  52. package/dist/utils/zodUtils.js +3 -2
  53. package/package.json +1 -1
@@ -1511,6 +1511,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1511
1511
  doctype: z.ZodString;
1512
1512
  _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1513
1513
  } & {
1514
+ parent: z.ZodString;
1514
1515
  parenttype: z.ZodString;
1515
1516
  parentfield: z.ZodString;
1516
1517
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -1522,6 +1523,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1522
1523
  modified_by: string;
1523
1524
  idx: number;
1524
1525
  doctype: string;
1526
+ parent: string;
1525
1527
  parenttype: string;
1526
1528
  parentfield: string;
1527
1529
  item_code: string;
@@ -1606,6 +1608,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1606
1608
  modified_by: string;
1607
1609
  idx: number;
1608
1610
  doctype: string;
1611
+ parent: string;
1609
1612
  parenttype: string;
1610
1613
  parentfield: string;
1611
1614
  item_code: string;
@@ -1711,11 +1714,39 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1711
1714
  base_total: z.ZodOptional<z.ZodNumber>;
1712
1715
  total: z.ZodOptional<z.ZodNumber>;
1713
1716
  tax_amount_after_discount_amount: z.ZodOptional<z.ZodNumber>;
1714
- }, "strip", z.ZodTypeAny, {
1717
+ } & {
1718
+ name: z.ZodString;
1719
+ owner: z.ZodString;
1720
+ creation: z.ZodString;
1721
+ modified: z.ZodString;
1722
+ modified_by: z.ZodString;
1723
+ idx: z.ZodNumber;
1724
+ docstatus: z.ZodDefault<z.ZodNumber> & {
1725
+ __optionalForInput: true;
1726
+ };
1727
+ doctype: z.ZodString;
1728
+ _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1729
+ } & {
1730
+ parent: z.ZodString;
1731
+ parenttype: z.ZodString;
1732
+ parentfield: z.ZodString;
1733
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1734
+ docstatus: number;
1735
+ name: string;
1736
+ owner: string;
1737
+ creation: string;
1738
+ modified: string;
1739
+ modified_by: string;
1740
+ idx: number;
1741
+ doctype: string;
1742
+ parent: string;
1743
+ parenttype: string;
1744
+ parentfield: string;
1715
1745
  charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1716
1746
  included_in_print_rate: 0 | 1;
1717
1747
  account_head: string;
1718
1748
  description?: string | undefined;
1749
+ _user_tags?: string | null | undefined;
1719
1750
  account_currency?: string | undefined;
1720
1751
  rate?: number | undefined;
1721
1752
  base_total?: number | undefined;
@@ -1726,9 +1757,21 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1726
1757
  tax_amount_after_discount_amount?: number | undefined;
1727
1758
  base_tax_amount?: number | undefined;
1728
1759
  }, {
1760
+ name: string;
1761
+ owner: string;
1762
+ creation: string;
1763
+ modified: string;
1764
+ modified_by: string;
1765
+ idx: number;
1766
+ doctype: string;
1767
+ parent: string;
1768
+ parenttype: string;
1769
+ parentfield: string;
1729
1770
  charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1730
1771
  account_head: string;
1731
1772
  description?: string | undefined;
1773
+ docstatus?: number | undefined;
1774
+ _user_tags?: string | null | undefined;
1732
1775
  account_currency?: string | undefined;
1733
1776
  rate?: number | undefined;
1734
1777
  base_total?: number | undefined;
@@ -1803,16 +1846,56 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1803
1846
  account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1804
1847
  reference_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1805
1848
  clearance_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1806
- }, "strip", z.ZodTypeAny, {
1849
+ } & {
1850
+ name: z.ZodString;
1851
+ owner: z.ZodString;
1852
+ creation: z.ZodString;
1853
+ modified: z.ZodString;
1854
+ modified_by: z.ZodString;
1855
+ idx: z.ZodNumber;
1856
+ docstatus: z.ZodDefault<z.ZodNumber> & {
1857
+ __optionalForInput: true;
1858
+ };
1859
+ doctype: z.ZodString;
1860
+ _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1861
+ } & {
1862
+ parent: z.ZodString;
1863
+ parenttype: z.ZodString;
1864
+ parentfield: z.ZodString;
1865
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1866
+ docstatus: number;
1867
+ name: string;
1868
+ owner: string;
1869
+ creation: string;
1870
+ modified: string;
1871
+ modified_by: string;
1872
+ idx: number;
1873
+ doctype: string;
1874
+ parent: string;
1875
+ parenttype: string;
1876
+ parentfield: string;
1807
1877
  amount: number;
1808
1878
  mode_of_payment: string;
1879
+ _user_tags?: string | null | undefined;
1809
1880
  base_amount?: number | null | undefined;
1810
1881
  account?: string | null | undefined;
1811
1882
  reference_no?: string | null | undefined;
1812
1883
  clearance_date?: string | null | undefined;
1813
1884
  }, {
1885
+ name: string;
1886
+ owner: string;
1887
+ creation: string;
1888
+ modified: string;
1889
+ modified_by: string;
1890
+ idx: number;
1891
+ doctype: string;
1892
+ parent: string;
1893
+ parenttype: string;
1894
+ parentfield: string;
1814
1895
  amount: number;
1815
1896
  mode_of_payment: string;
1897
+ docstatus?: number | undefined;
1898
+ _user_tags?: string | null | undefined;
1816
1899
  base_amount?: number | null | undefined;
1817
1900
  account?: string | null | undefined;
1818
1901
  reference_no?: string | null | undefined;
@@ -1837,19 +1920,57 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1837
1920
  advance_amount: z.ZodNumber;
1838
1921
  allocated_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1839
1922
  remarks: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1840
- }, "strip", z.ZodTypeAny, {
1923
+ } & {
1924
+ name: z.ZodString;
1925
+ owner: z.ZodString;
1926
+ creation: z.ZodString;
1927
+ modified: z.ZodString;
1928
+ modified_by: z.ZodString;
1929
+ idx: z.ZodNumber;
1930
+ docstatus: z.ZodDefault<z.ZodNumber> & {
1931
+ __optionalForInput: true;
1932
+ };
1933
+ doctype: z.ZodString;
1934
+ _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1935
+ } & {
1936
+ parent: z.ZodString;
1937
+ parenttype: z.ZodString;
1938
+ parentfield: z.ZodString;
1939
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1940
+ docstatus: number;
1941
+ name: string;
1942
+ owner: string;
1943
+ creation: string;
1944
+ modified: string;
1945
+ modified_by: string;
1946
+ idx: number;
1841
1947
  doctype: "Sales Invoice Advance";
1948
+ parent: string;
1949
+ parenttype: string;
1950
+ parentfield: string;
1842
1951
  reference_name: string;
1843
1952
  reference_type: string;
1844
1953
  advance_amount: number;
1954
+ _user_tags?: string | null | undefined;
1845
1955
  allocated_amount?: number | null | undefined;
1846
1956
  remarks?: string | null | undefined;
1847
1957
  reference_row?: string | null | undefined;
1848
1958
  }, {
1959
+ name: string;
1960
+ owner: string;
1961
+ creation: string;
1962
+ modified: string;
1963
+ modified_by: string;
1964
+ idx: number;
1849
1965
  doctype: "Sales Invoice Advance";
1966
+ parent: string;
1967
+ parenttype: string;
1968
+ parentfield: string;
1850
1969
  reference_name: string;
1851
1970
  reference_type: string;
1852
1971
  advance_amount: number;
1972
+ docstatus?: number | undefined;
1973
+ _user_tags?: string | null | undefined;
1853
1974
  allocated_amount?: number | null | undefined;
1854
1975
  remarks?: string | null | undefined;
1855
1976
  reference_row?: string | null | undefined;
@@ -1954,6 +2075,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1954
2075
  modified_by: string;
1955
2076
  idx: number;
1956
2077
  doctype: string;
2078
+ parent: string;
1957
2079
  parenttype: string;
1958
2080
  parentfield: string;
1959
2081
  item_code: string;
@@ -2131,10 +2253,22 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
2131
2253
  total_commission?: number | null | undefined;
2132
2254
  packed_items?: any[] | null | undefined;
2133
2255
  taxes?: {
2256
+ docstatus: number;
2257
+ name: string;
2258
+ owner: string;
2259
+ creation: string;
2260
+ modified: string;
2261
+ modified_by: string;
2262
+ idx: number;
2263
+ doctype: string;
2264
+ parent: string;
2265
+ parenttype: string;
2266
+ parentfield: string;
2134
2267
  charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
2135
2268
  included_in_print_rate: 0 | 1;
2136
2269
  account_head: string;
2137
2270
  description?: string | undefined;
2271
+ _user_tags?: string | null | undefined;
2138
2272
  account_currency?: string | undefined;
2139
2273
  rate?: number | undefined;
2140
2274
  base_total?: number | undefined;
@@ -2157,10 +2291,21 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
2157
2291
  payment_terms_template?: string | null | undefined;
2158
2292
  party_account_currency?: string | null | undefined;
2159
2293
  advances?: {
2294
+ docstatus: number;
2295
+ name: string;
2296
+ owner: string;
2297
+ creation: string;
2298
+ modified: string;
2299
+ modified_by: string;
2300
+ idx: number;
2160
2301
  doctype: "Sales Invoice Advance";
2302
+ parent: string;
2303
+ parenttype: string;
2304
+ parentfield: string;
2161
2305
  reference_name: string;
2162
2306
  reference_type: string;
2163
2307
  advance_amount: number;
2308
+ _user_tags?: string | null | undefined;
2164
2309
  allocated_amount?: number | null | undefined;
2165
2310
  remarks?: string | null | undefined;
2166
2311
  reference_row?: string | null | undefined;
@@ -2175,8 +2320,20 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
2175
2320
  total_billing_amount?: number | null | undefined;
2176
2321
  cash_bank_account?: string | null | undefined;
2177
2322
  payments?: {
2323
+ docstatus: number;
2324
+ name: string;
2325
+ owner: string;
2326
+ creation: string;
2327
+ modified: string;
2328
+ modified_by: string;
2329
+ idx: number;
2330
+ doctype: string;
2331
+ parent: string;
2332
+ parenttype: string;
2333
+ parentfield: string;
2178
2334
  amount: number;
2179
2335
  mode_of_payment: string;
2336
+ _user_tags?: string | null | undefined;
2180
2337
  base_amount?: number | null | undefined;
2181
2338
  account?: string | null | undefined;
2182
2339
  reference_no?: string | null | undefined;
@@ -2218,6 +2375,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
2218
2375
  modified_by: string;
2219
2376
  idx: number;
2220
2377
  doctype: string;
2378
+ parent: string;
2221
2379
  parenttype: string;
2222
2380
  parentfield: string;
2223
2381
  item_code: string;
@@ -2300,8 +2458,8 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
2300
2458
  custom_invoice_no: string;
2301
2459
  debit_to: string;
2302
2460
  status?: "Internal Transfer" | "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | undefined;
2303
- amended_from?: string | null | undefined;
2304
2461
  docstatus?: number | undefined;
2462
+ amended_from?: string | null | undefined;
2305
2463
  _user_tags?: string | null | undefined;
2306
2464
  tax_category?: string | null | undefined;
2307
2465
  naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
@@ -2383,9 +2541,21 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
2383
2541
  total_commission?: number | null | undefined;
2384
2542
  packed_items?: any[] | null | undefined;
2385
2543
  taxes?: {
2544
+ name: string;
2545
+ owner: string;
2546
+ creation: string;
2547
+ modified: string;
2548
+ modified_by: string;
2549
+ idx: number;
2550
+ doctype: string;
2551
+ parent: string;
2552
+ parenttype: string;
2553
+ parentfield: string;
2386
2554
  charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
2387
2555
  account_head: string;
2388
2556
  description?: string | undefined;
2557
+ docstatus?: number | undefined;
2558
+ _user_tags?: string | null | undefined;
2389
2559
  account_currency?: string | undefined;
2390
2560
  rate?: number | undefined;
2391
2561
  base_total?: number | undefined;
@@ -2413,10 +2583,21 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
2413
2583
  party_account_currency?: string | null | undefined;
2414
2584
  is_opening?: "No" | "Yes" | undefined;
2415
2585
  advances?: {
2586
+ name: string;
2587
+ owner: string;
2588
+ creation: string;
2589
+ modified: string;
2590
+ modified_by: string;
2591
+ idx: number;
2416
2592
  doctype: "Sales Invoice Advance";
2593
+ parent: string;
2594
+ parenttype: string;
2595
+ parentfield: string;
2417
2596
  reference_name: string;
2418
2597
  reference_type: string;
2419
2598
  advance_amount: number;
2599
+ docstatus?: number | undefined;
2600
+ _user_tags?: string | null | undefined;
2420
2601
  allocated_amount?: number | null | undefined;
2421
2602
  remarks?: string | null | undefined;
2422
2603
  reference_row?: string | null | undefined;
@@ -2439,8 +2620,20 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
2439
2620
  total_billing_amount?: number | null | undefined;
2440
2621
  cash_bank_account?: string | null | undefined;
2441
2622
  payments?: {
2623
+ name: string;
2624
+ owner: string;
2625
+ creation: string;
2626
+ modified: string;
2627
+ modified_by: string;
2628
+ idx: number;
2629
+ doctype: string;
2630
+ parent: string;
2631
+ parenttype: string;
2632
+ parentfield: string;
2442
2633
  amount: number;
2443
2634
  mode_of_payment: string;
2635
+ docstatus?: number | undefined;
2636
+ _user_tags?: string | null | undefined;
2444
2637
  base_amount?: number | null | undefined;
2445
2638
  account?: string | null | undefined;
2446
2639
  reference_no?: string | null | undefined;
@@ -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;