erpnext-queue-client 2.5.8 → 2.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +22 -3
- package/dist/client.test.d.ts +1 -0
- package/dist/client.test.js +41 -0
- package/dist/dataConverter.js +7 -17
- package/dist/erpnext/doctypes/address.d.ts +49 -5
- package/dist/erpnext/doctypes/contact.d.ts +83 -9
- package/dist/erpnext/doctypes/paymentEntry.d.ts +4 -4
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +18 -18
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +8 -8
- package/dist/erpnext/doctypes/salesInvoice.d.ts +22 -22
- package/dist/erpnext/doctypes/servicecase.d.ts +7 -7
- package/dist/erpnext/doctypes/shipment.d.ts +4 -4
- package/dist/erpnext/fileRequests.d.ts +1 -1
- package/dist/erpnext/methodRequest.d.ts +1 -1
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +8 -0
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +1 -0
- package/dist/erpnext/model/Country.d.ts +14 -2
- package/dist/erpnext/model/DeliveryNote.d.ts +4 -4
- package/dist/erpnext/model/DocInfo.d.ts +10 -10
- package/dist/erpnext/model/DocTypeHelpers.d.ts +34 -2
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +3 -3
- package/dist/erpnext/model/Item.d.ts +9 -9
- package/dist/erpnext/model/Permissions.d.ts +2 -2
- package/dist/erpnext/model/PurchaseInvoice.d.ts +16 -16
- package/dist/erpnext/model/PurchaseOrder.d.ts +4 -4
- package/dist/erpnext/model/Receipt.d.ts +4 -4
- package/dist/erpnext/model/ReceiptDraft.d.ts +4 -4
- package/dist/erpnext/model/SalesInvoice.d.ts +18 -18
- package/dist/erpnext/model/SalesOrder.d.ts +6 -6
- package/dist/erpnext/model/Servicecase.d.ts +6 -6
- package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +17 -4
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +4 -0
- package/dist/erpnext/model/Shipment.d.ts +4 -4
- package/dist/erpnext/model/ShippingFees.d.ts +2 -2
- package/dist/erpnext/model/ShippingProvider.d.ts +1 -1
- package/dist/erpnext/model/Stock.d.ts +12 -12
- package/package.json +2 -2
|
@@ -17,8 +17,8 @@ export declare class ERPNextPurchaseReceipt extends ERPNextDoctypeSubmittableRes
|
|
|
17
17
|
items: {
|
|
18
18
|
description: string;
|
|
19
19
|
item_code: string;
|
|
20
|
-
base_rate: number;
|
|
21
20
|
item_name: string;
|
|
21
|
+
base_rate: number;
|
|
22
22
|
stock_uom: string;
|
|
23
23
|
uom: string;
|
|
24
24
|
conversion_factor: number;
|
|
@@ -134,8 +134,8 @@ export declare class ERPNextPurchaseReceipt extends ERPNextDoctypeSubmittableRes
|
|
|
134
134
|
}>;
|
|
135
135
|
createFromPurchaseOrder(purchaseOrderName: string, submit?: boolean): Promise<{
|
|
136
136
|
status: string;
|
|
137
|
-
docstatus: number;
|
|
138
137
|
name: string;
|
|
138
|
+
docstatus: number;
|
|
139
139
|
owner: string;
|
|
140
140
|
creation: string;
|
|
141
141
|
modified: string;
|
|
@@ -151,9 +151,9 @@ export declare class ERPNextPurchaseReceipt extends ERPNextDoctypeSubmittableRes
|
|
|
151
151
|
conversion_rate: number;
|
|
152
152
|
base_net_total: number;
|
|
153
153
|
items: {
|
|
154
|
+
name: string;
|
|
154
155
|
description: string;
|
|
155
156
|
docstatus: number;
|
|
156
|
-
name: string;
|
|
157
157
|
owner: string;
|
|
158
158
|
creation: string;
|
|
159
159
|
modified: string;
|
|
@@ -164,8 +164,8 @@ export declare class ERPNextPurchaseReceipt extends ERPNextDoctypeSubmittableRes
|
|
|
164
164
|
parenttype: string;
|
|
165
165
|
parentfield: string;
|
|
166
166
|
item_code: string;
|
|
167
|
-
base_rate: number;
|
|
168
167
|
item_name: string;
|
|
168
|
+
base_rate: number;
|
|
169
169
|
stock_uom: string;
|
|
170
170
|
uom: string;
|
|
171
171
|
conversion_factor: number;
|
|
@@ -343,8 +343,8 @@ export declare class ERPNextPurchaseReceipt extends ERPNextDoctypeSubmittableRes
|
|
|
343
343
|
items: {
|
|
344
344
|
description: string;
|
|
345
345
|
item_code: string;
|
|
346
|
-
base_rate: number;
|
|
347
346
|
item_name: string;
|
|
347
|
+
base_rate: number;
|
|
348
348
|
stock_uom: string;
|
|
349
349
|
uom: string;
|
|
350
350
|
conversion_factor: number;
|
|
@@ -460,8 +460,8 @@ export declare class ERPNextPurchaseReceipt extends ERPNextDoctypeSubmittableRes
|
|
|
460
460
|
}>;
|
|
461
461
|
createFromPurchaseInvoice(purchaseInvoiceName: string, submit?: boolean): Promise<{
|
|
462
462
|
status: string;
|
|
463
|
-
docstatus: number;
|
|
464
463
|
name: string;
|
|
464
|
+
docstatus: number;
|
|
465
465
|
owner: string;
|
|
466
466
|
creation: string;
|
|
467
467
|
modified: string;
|
|
@@ -477,9 +477,9 @@ export declare class ERPNextPurchaseReceipt extends ERPNextDoctypeSubmittableRes
|
|
|
477
477
|
conversion_rate: number;
|
|
478
478
|
base_net_total: number;
|
|
479
479
|
items: {
|
|
480
|
+
name: string;
|
|
480
481
|
description: string;
|
|
481
482
|
docstatus: number;
|
|
482
|
-
name: string;
|
|
483
483
|
owner: string;
|
|
484
484
|
creation: string;
|
|
485
485
|
modified: string;
|
|
@@ -490,8 +490,8 @@ export declare class ERPNextPurchaseReceipt extends ERPNextDoctypeSubmittableRes
|
|
|
490
490
|
parenttype: string;
|
|
491
491
|
parentfield: string;
|
|
492
492
|
item_code: string;
|
|
493
|
-
base_rate: number;
|
|
494
493
|
item_name: string;
|
|
494
|
+
base_rate: number;
|
|
495
495
|
stock_uom: string;
|
|
496
496
|
uom: string;
|
|
497
497
|
conversion_factor: number;
|
|
@@ -22,8 +22,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
22
22
|
currency: string;
|
|
23
23
|
conversion_rate: number;
|
|
24
24
|
items: {
|
|
25
|
-
docstatus: number;
|
|
26
25
|
name: string;
|
|
26
|
+
docstatus: number;
|
|
27
27
|
owner: string;
|
|
28
28
|
creation: string;
|
|
29
29
|
modified: string;
|
|
@@ -34,10 +34,10 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
34
34
|
parenttype: string;
|
|
35
35
|
parentfield: string;
|
|
36
36
|
item_code: string;
|
|
37
|
+
item_name: string;
|
|
37
38
|
qty: number;
|
|
38
39
|
rate: number;
|
|
39
40
|
delivered_by_supplier: 0 | 1;
|
|
40
|
-
item_name: string;
|
|
41
41
|
uom: string;
|
|
42
42
|
is_free_item: 0 | 1;
|
|
43
43
|
grant_commission: 0 | 1;
|
|
@@ -208,8 +208,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
208
208
|
total_commission?: number | null | undefined;
|
|
209
209
|
packed_items?: any[] | null | undefined;
|
|
210
210
|
taxes?: {
|
|
211
|
-
docstatus: number;
|
|
212
211
|
name: string;
|
|
212
|
+
docstatus: number;
|
|
213
213
|
owner: string;
|
|
214
214
|
creation: string;
|
|
215
215
|
modified: string;
|
|
@@ -246,8 +246,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
246
246
|
payment_terms_template?: string | null | undefined;
|
|
247
247
|
party_account_currency?: string | null | undefined;
|
|
248
248
|
advances?: {
|
|
249
|
-
docstatus: number;
|
|
250
249
|
name: string;
|
|
250
|
+
docstatus: number;
|
|
251
251
|
owner: string;
|
|
252
252
|
creation: string;
|
|
253
253
|
modified: string;
|
|
@@ -275,8 +275,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
275
275
|
total_billing_amount?: number | null | undefined;
|
|
276
276
|
cash_bank_account?: string | null | undefined;
|
|
277
277
|
payments?: {
|
|
278
|
-
docstatus: number;
|
|
279
278
|
name: string;
|
|
279
|
+
docstatus: number;
|
|
280
280
|
owner: string;
|
|
281
281
|
creation: string;
|
|
282
282
|
modified: string;
|
|
@@ -314,8 +314,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
314
314
|
}>;
|
|
315
315
|
createFromSalesOrder(salesOrderName: string, submit?: boolean): Promise<{
|
|
316
316
|
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";
|
|
317
|
-
docstatus: number;
|
|
318
317
|
name: string;
|
|
318
|
+
docstatus: number;
|
|
319
319
|
owner: string;
|
|
320
320
|
creation: string;
|
|
321
321
|
modified: string;
|
|
@@ -330,8 +330,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
330
330
|
currency: string;
|
|
331
331
|
conversion_rate: number;
|
|
332
332
|
items: {
|
|
333
|
-
docstatus: number;
|
|
334
333
|
name: string;
|
|
334
|
+
docstatus: number;
|
|
335
335
|
owner: string;
|
|
336
336
|
creation: string;
|
|
337
337
|
modified: string;
|
|
@@ -342,10 +342,10 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
342
342
|
parenttype: string;
|
|
343
343
|
parentfield: string;
|
|
344
344
|
item_code: string;
|
|
345
|
+
item_name: string;
|
|
345
346
|
qty: number;
|
|
346
347
|
rate: number;
|
|
347
348
|
delivered_by_supplier: 0 | 1;
|
|
348
|
-
item_name: string;
|
|
349
349
|
uom: string;
|
|
350
350
|
is_free_item: 0 | 1;
|
|
351
351
|
grant_commission: 0 | 1;
|
|
@@ -516,8 +516,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
516
516
|
total_commission?: number | null | undefined;
|
|
517
517
|
packed_items?: any[] | null | undefined;
|
|
518
518
|
taxes?: {
|
|
519
|
-
docstatus: number;
|
|
520
519
|
name: string;
|
|
520
|
+
docstatus: number;
|
|
521
521
|
owner: string;
|
|
522
522
|
creation: string;
|
|
523
523
|
modified: string;
|
|
@@ -554,8 +554,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
554
554
|
payment_terms_template?: string | null | undefined;
|
|
555
555
|
party_account_currency?: string | null | undefined;
|
|
556
556
|
advances?: {
|
|
557
|
-
docstatus: number;
|
|
558
557
|
name: string;
|
|
558
|
+
docstatus: number;
|
|
559
559
|
owner: string;
|
|
560
560
|
creation: string;
|
|
561
561
|
modified: string;
|
|
@@ -583,8 +583,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
583
583
|
total_billing_amount?: number | null | undefined;
|
|
584
584
|
cash_bank_account?: string | null | undefined;
|
|
585
585
|
payments?: {
|
|
586
|
-
docstatus: number;
|
|
587
586
|
name: string;
|
|
587
|
+
docstatus: number;
|
|
588
588
|
owner: string;
|
|
589
589
|
creation: string;
|
|
590
590
|
modified: string;
|
|
@@ -637,8 +637,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
637
637
|
currency: string;
|
|
638
638
|
conversion_rate: number;
|
|
639
639
|
items: {
|
|
640
|
-
docstatus: number;
|
|
641
640
|
name: string;
|
|
641
|
+
docstatus: number;
|
|
642
642
|
owner: string;
|
|
643
643
|
creation: string;
|
|
644
644
|
modified: string;
|
|
@@ -649,10 +649,10 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
649
649
|
parenttype: string;
|
|
650
650
|
parentfield: string;
|
|
651
651
|
item_code: string;
|
|
652
|
+
item_name: string;
|
|
652
653
|
qty: number;
|
|
653
654
|
rate: number;
|
|
654
655
|
delivered_by_supplier: 0 | 1;
|
|
655
|
-
item_name: string;
|
|
656
656
|
uom: string;
|
|
657
657
|
is_free_item: 0 | 1;
|
|
658
658
|
grant_commission: 0 | 1;
|
|
@@ -823,8 +823,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
823
823
|
total_commission?: number | null | undefined;
|
|
824
824
|
packed_items?: any[] | null | undefined;
|
|
825
825
|
taxes?: {
|
|
826
|
-
docstatus: number;
|
|
827
826
|
name: string;
|
|
827
|
+
docstatus: number;
|
|
828
828
|
owner: string;
|
|
829
829
|
creation: string;
|
|
830
830
|
modified: string;
|
|
@@ -861,8 +861,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
861
861
|
payment_terms_template?: string | null | undefined;
|
|
862
862
|
party_account_currency?: string | null | undefined;
|
|
863
863
|
advances?: {
|
|
864
|
-
docstatus: number;
|
|
865
864
|
name: string;
|
|
865
|
+
docstatus: number;
|
|
866
866
|
owner: string;
|
|
867
867
|
creation: string;
|
|
868
868
|
modified: string;
|
|
@@ -890,8 +890,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
890
890
|
total_billing_amount?: number | null | undefined;
|
|
891
891
|
cash_bank_account?: string | null | undefined;
|
|
892
892
|
payments?: {
|
|
893
|
-
docstatus: number;
|
|
894
893
|
name: string;
|
|
894
|
+
docstatus: number;
|
|
895
895
|
owner: string;
|
|
896
896
|
creation: string;
|
|
897
897
|
modified: string;
|
|
@@ -929,8 +929,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
929
929
|
}>;
|
|
930
930
|
createFromDeliveryNote(deliveryNoteName: string, submit?: boolean): Promise<{
|
|
931
931
|
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";
|
|
932
|
-
docstatus: number;
|
|
933
932
|
name: string;
|
|
933
|
+
docstatus: number;
|
|
934
934
|
owner: string;
|
|
935
935
|
creation: string;
|
|
936
936
|
modified: string;
|
|
@@ -945,8 +945,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
945
945
|
currency: string;
|
|
946
946
|
conversion_rate: number;
|
|
947
947
|
items: {
|
|
948
|
-
docstatus: number;
|
|
949
948
|
name: string;
|
|
949
|
+
docstatus: number;
|
|
950
950
|
owner: string;
|
|
951
951
|
creation: string;
|
|
952
952
|
modified: string;
|
|
@@ -957,10 +957,10 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
957
957
|
parenttype: string;
|
|
958
958
|
parentfield: string;
|
|
959
959
|
item_code: string;
|
|
960
|
+
item_name: string;
|
|
960
961
|
qty: number;
|
|
961
962
|
rate: number;
|
|
962
963
|
delivered_by_supplier: 0 | 1;
|
|
963
|
-
item_name: string;
|
|
964
964
|
uom: string;
|
|
965
965
|
is_free_item: 0 | 1;
|
|
966
966
|
grant_commission: 0 | 1;
|
|
@@ -1131,8 +1131,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
1131
1131
|
total_commission?: number | null | undefined;
|
|
1132
1132
|
packed_items?: any[] | null | undefined;
|
|
1133
1133
|
taxes?: {
|
|
1134
|
-
docstatus: number;
|
|
1135
1134
|
name: string;
|
|
1135
|
+
docstatus: number;
|
|
1136
1136
|
owner: string;
|
|
1137
1137
|
creation: string;
|
|
1138
1138
|
modified: string;
|
|
@@ -1169,8 +1169,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
1169
1169
|
payment_terms_template?: string | null | undefined;
|
|
1170
1170
|
party_account_currency?: string | null | undefined;
|
|
1171
1171
|
advances?: {
|
|
1172
|
-
docstatus: number;
|
|
1173
1172
|
name: string;
|
|
1173
|
+
docstatus: number;
|
|
1174
1174
|
owner: string;
|
|
1175
1175
|
creation: string;
|
|
1176
1176
|
modified: string;
|
|
@@ -1198,8 +1198,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
1198
1198
|
total_billing_amount?: number | null | undefined;
|
|
1199
1199
|
cash_bank_account?: string | null | undefined;
|
|
1200
1200
|
payments?: {
|
|
1201
|
-
docstatus: number;
|
|
1202
1201
|
name: string;
|
|
1202
|
+
docstatus: number;
|
|
1203
1203
|
owner: string;
|
|
1204
1204
|
creation: string;
|
|
1205
1205
|
modified: string;
|
|
@@ -52,8 +52,8 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
52
52
|
is_sent_to_cc: boolean;
|
|
53
53
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
54
54
|
return_items: {
|
|
55
|
-
docstatus: number;
|
|
56
55
|
name: string;
|
|
56
|
+
docstatus: number;
|
|
57
57
|
owner: string;
|
|
58
58
|
creation: string;
|
|
59
59
|
modified: string;
|
|
@@ -63,8 +63,8 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
63
63
|
attachments: {
|
|
64
64
|
type: "image" | "video";
|
|
65
65
|
url: string;
|
|
66
|
-
docstatus: number;
|
|
67
66
|
name: string;
|
|
67
|
+
docstatus: number;
|
|
68
68
|
owner: string;
|
|
69
69
|
creation: string;
|
|
70
70
|
modified: string;
|
|
@@ -77,8 +77,8 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
77
77
|
_user_tags?: string | null | undefined;
|
|
78
78
|
}[];
|
|
79
79
|
internal_reasons: {
|
|
80
|
-
docstatus: number;
|
|
81
80
|
name: string;
|
|
81
|
+
docstatus: number;
|
|
82
82
|
owner: string;
|
|
83
83
|
creation: string;
|
|
84
84
|
modified: string;
|
|
@@ -125,8 +125,8 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
125
125
|
attachmentUpdate(resourceId: string, body: AttachmentCollectionType, options?: {
|
|
126
126
|
priority: number;
|
|
127
127
|
}): Promise<{
|
|
128
|
-
docstatus: number;
|
|
129
128
|
name: string;
|
|
129
|
+
docstatus: number;
|
|
130
130
|
owner: string;
|
|
131
131
|
creation: string;
|
|
132
132
|
modified: string;
|
|
@@ -137,8 +137,8 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
137
137
|
attachments?: {
|
|
138
138
|
type: "image" | "video";
|
|
139
139
|
url: string;
|
|
140
|
-
docstatus: number;
|
|
141
140
|
name: string;
|
|
141
|
+
docstatus: number;
|
|
142
142
|
owner: string;
|
|
143
143
|
creation: string;
|
|
144
144
|
modified: string;
|
|
@@ -154,8 +154,8 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
154
154
|
internalReasonUpdate(resourceId: string, body: InternalReasonCollectionType, options?: {
|
|
155
155
|
priority: number;
|
|
156
156
|
}): Promise<{
|
|
157
|
-
docstatus: number;
|
|
158
157
|
name: string;
|
|
158
|
+
docstatus: number;
|
|
159
159
|
owner: string;
|
|
160
160
|
creation: string;
|
|
161
161
|
modified: string;
|
|
@@ -164,8 +164,8 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
164
164
|
doctype: string;
|
|
165
165
|
_user_tags?: string | null | undefined;
|
|
166
166
|
internal_reasons?: {
|
|
167
|
-
docstatus: number;
|
|
168
167
|
name: string;
|
|
168
|
+
docstatus: number;
|
|
169
169
|
owner: string;
|
|
170
170
|
creation: string;
|
|
171
171
|
modified: string;
|
|
@@ -50,8 +50,8 @@ export declare class ERPNextShipment extends ERPNextDoctypeSubmittableResourceRe
|
|
|
50
50
|
creation: string;
|
|
51
51
|
address_title: string;
|
|
52
52
|
item_code: string;
|
|
53
|
-
qty: number;
|
|
54
53
|
item_name: string;
|
|
54
|
+
qty: number;
|
|
55
55
|
address_line1?: string | null | undefined;
|
|
56
56
|
address_line2?: string | null | undefined;
|
|
57
57
|
pincode?: string | null | undefined;
|
|
@@ -63,8 +63,8 @@ export declare class ERPNextShipment extends ERPNextDoctypeSubmittableResourceRe
|
|
|
63
63
|
}[]>;
|
|
64
64
|
addShippingLabelAndSubmit(shipmentErpNextName: string, body: ShipmentAddShippingLabelAndSubmitBodyType): Promise<{
|
|
65
65
|
status: string;
|
|
66
|
-
docstatus: number;
|
|
67
66
|
name: string;
|
|
67
|
+
docstatus: number;
|
|
68
68
|
owner: string;
|
|
69
69
|
creation: string;
|
|
70
70
|
modified: string;
|
|
@@ -89,8 +89,8 @@ export declare class ERPNextShipment extends ERPNextDoctypeSubmittableResourceRe
|
|
|
89
89
|
pickup_type: string;
|
|
90
90
|
shipment_amount: number;
|
|
91
91
|
shipment_delivery_note: {
|
|
92
|
-
docstatus: number;
|
|
93
92
|
name: string;
|
|
93
|
+
docstatus: number;
|
|
94
94
|
owner: string;
|
|
95
95
|
creation: string;
|
|
96
96
|
modified: string;
|
|
@@ -107,8 +107,8 @@ export declare class ERPNextShipment extends ERPNextDoctypeSubmittableResourceRe
|
|
|
107
107
|
}[];
|
|
108
108
|
shipment_parcel: {
|
|
109
109
|
length: number;
|
|
110
|
-
docstatus: number;
|
|
111
110
|
name: string;
|
|
111
|
+
docstatus: number;
|
|
112
112
|
owner: string;
|
|
113
113
|
creation: string;
|
|
114
114
|
modified: string;
|
|
@@ -5,6 +5,6 @@ export declare class ERPNextFileRequests {
|
|
|
5
5
|
private client;
|
|
6
6
|
private credentials;
|
|
7
7
|
constructor(client: TemporalClient, credentials?: ERPNextCredentials);
|
|
8
|
-
fileDownload: (url: string) => Promise<Buffer
|
|
8
|
+
fileDownload: (url: string) => Promise<Buffer>;
|
|
9
9
|
fileUpload: (file: Buffer, filename: string, doctypeToLinkTo?: string, docnameToLinkTo?: string, isPrivate?: boolean, priority?: number) => Promise<ERPNextValidatedFileDocModelType>;
|
|
10
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
3
3
|
item_code: z.ZodString;
|
|
4
|
+
item_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
5
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
6
|
qty: z.ZodNumber;
|
|
6
7
|
item_tax_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -37,6 +38,7 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
|
37
38
|
total_weight: number;
|
|
38
39
|
weight_uom: string;
|
|
39
40
|
description?: string | null | undefined;
|
|
41
|
+
item_name?: string | null | undefined;
|
|
40
42
|
item_tax_template?: string | null | undefined;
|
|
41
43
|
amount?: number | null | undefined;
|
|
42
44
|
base_rate?: number | null | undefined;
|
|
@@ -63,6 +65,7 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
|
63
65
|
total_weight: number;
|
|
64
66
|
weight_uom: string;
|
|
65
67
|
description?: string | null | undefined;
|
|
68
|
+
item_name?: string | null | undefined;
|
|
66
69
|
item_tax_template?: string | null | undefined;
|
|
67
70
|
amount?: number | null | undefined;
|
|
68
71
|
base_rate?: number | null | undefined;
|
|
@@ -132,6 +135,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
132
135
|
exporter_contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
133
136
|
items: z.ZodArray<z.ZodObject<{
|
|
134
137
|
item_code: z.ZodString;
|
|
138
|
+
item_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
139
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
136
140
|
qty: z.ZodNumber;
|
|
137
141
|
item_tax_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -168,6 +172,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
168
172
|
total_weight: number;
|
|
169
173
|
weight_uom: string;
|
|
170
174
|
description?: string | null | undefined;
|
|
175
|
+
item_name?: string | null | undefined;
|
|
171
176
|
item_tax_template?: string | null | undefined;
|
|
172
177
|
amount?: number | null | undefined;
|
|
173
178
|
base_rate?: number | null | undefined;
|
|
@@ -194,6 +199,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
194
199
|
total_weight: number;
|
|
195
200
|
weight_uom: string;
|
|
196
201
|
description?: string | null | undefined;
|
|
202
|
+
item_name?: string | null | undefined;
|
|
197
203
|
item_tax_template?: string | null | undefined;
|
|
198
204
|
amount?: number | null | undefined;
|
|
199
205
|
base_rate?: number | null | undefined;
|
|
@@ -240,6 +246,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
240
246
|
total_weight: number;
|
|
241
247
|
weight_uom: string;
|
|
242
248
|
description?: string | null | undefined;
|
|
249
|
+
item_name?: string | null | undefined;
|
|
243
250
|
item_tax_template?: string | null | undefined;
|
|
244
251
|
amount?: number | null | undefined;
|
|
245
252
|
base_rate?: number | null | undefined;
|
|
@@ -297,6 +304,7 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
297
304
|
total_weight: number;
|
|
298
305
|
weight_uom: string;
|
|
299
306
|
description?: string | null | undefined;
|
|
307
|
+
item_name?: string | null | undefined;
|
|
300
308
|
item_tax_template?: string | null | undefined;
|
|
301
309
|
amount?: number | null | undefined;
|
|
302
310
|
base_rate?: number | null | undefined;
|
|
@@ -10,6 +10,7 @@ exports.ConsolidatedCustomsInvoiceItem = zod_1.z
|
|
|
10
10
|
.object({
|
|
11
11
|
// Item details
|
|
12
12
|
item_code: zod_1.z.string(),
|
|
13
|
+
item_name: zod_1.z.string().nullish(),
|
|
13
14
|
description: zod_1.z.string().optional().nullable(),
|
|
14
15
|
qty: zod_1.z.number(),
|
|
15
16
|
item_tax_template: zod_1.z.string().optional().nullable(),
|
|
@@ -31,11 +31,23 @@ export declare const CountryList: <T extends keyof CountryType>(fields: T[]) =>
|
|
|
31
31
|
time_format: z.ZodString;
|
|
32
32
|
time_zones: z.ZodString;
|
|
33
33
|
code: z.ZodString;
|
|
34
|
-
}, T>>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
34
|
+
}, T>>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<Pick<{
|
|
35
35
|
country_name: z.ZodString;
|
|
36
36
|
date_format: z.ZodString;
|
|
37
37
|
time_format: z.ZodString;
|
|
38
38
|
time_zones: z.ZodString;
|
|
39
39
|
code: z.ZodString;
|
|
40
|
-
}, T
|
|
40
|
+
}, T>>, any>[k]; } : never, z.baseObjectInputType<Pick<{
|
|
41
|
+
country_name: z.ZodString;
|
|
42
|
+
date_format: z.ZodString;
|
|
43
|
+
time_format: z.ZodString;
|
|
44
|
+
time_zones: z.ZodString;
|
|
45
|
+
code: z.ZodString;
|
|
46
|
+
}, T>> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<Pick<{
|
|
47
|
+
country_name: z.ZodString;
|
|
48
|
+
date_format: z.ZodString;
|
|
49
|
+
time_format: z.ZodString;
|
|
50
|
+
time_zones: z.ZodString;
|
|
51
|
+
code: z.ZodString;
|
|
52
|
+
}, T>>[k_1]; } : never>, "many">;
|
|
41
53
|
export declare const CountryEnum: z.ZodEnum<["Afghanistan", "Åland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia, Plurinational State of", "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, The Democratic Republic of the", "Cook Islands", "Costa Rica", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Ivory Coast", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic Peoples Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao Peoples Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestinian Territory, Occupied", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Réunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthélemy", "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin (French part)", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Sint Maarten (Dutch part)", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard and Jan Mayen", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela, Bolivarian Republic of", "Vietnam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"]>;
|
|
@@ -360,6 +360,7 @@ export declare const DeliveryNote: z.ZodObject<{
|
|
|
360
360
|
description: string;
|
|
361
361
|
image: string;
|
|
362
362
|
item_code: string;
|
|
363
|
+
item_name: string;
|
|
363
364
|
qty: number;
|
|
364
365
|
rate: number;
|
|
365
366
|
amount: number;
|
|
@@ -372,7 +373,6 @@ export declare const DeliveryNote: z.ZodObject<{
|
|
|
372
373
|
weight_per_unit: number;
|
|
373
374
|
total_weight: number;
|
|
374
375
|
weight_uom: string;
|
|
375
|
-
item_name: string;
|
|
376
376
|
item_group: string;
|
|
377
377
|
stock_uom: string;
|
|
378
378
|
uom: string;
|
|
@@ -423,6 +423,7 @@ export declare const DeliveryNote: z.ZodObject<{
|
|
|
423
423
|
description: string;
|
|
424
424
|
image: string;
|
|
425
425
|
item_code: string;
|
|
426
|
+
item_name: string;
|
|
426
427
|
qty: number;
|
|
427
428
|
rate: number;
|
|
428
429
|
amount: number;
|
|
@@ -435,7 +436,6 @@ export declare const DeliveryNote: z.ZodObject<{
|
|
|
435
436
|
weight_per_unit: number;
|
|
436
437
|
total_weight: number;
|
|
437
438
|
weight_uom: string;
|
|
438
|
-
item_name: string;
|
|
439
439
|
item_group: string;
|
|
440
440
|
stock_uom: string;
|
|
441
441
|
uom: string;
|
|
@@ -520,6 +520,7 @@ export declare const DeliveryNote: z.ZodObject<{
|
|
|
520
520
|
description: string;
|
|
521
521
|
image: string;
|
|
522
522
|
item_code: string;
|
|
523
|
+
item_name: string;
|
|
523
524
|
qty: number;
|
|
524
525
|
rate: number;
|
|
525
526
|
amount: number;
|
|
@@ -532,7 +533,6 @@ export declare const DeliveryNote: z.ZodObject<{
|
|
|
532
533
|
weight_per_unit: number;
|
|
533
534
|
total_weight: number;
|
|
534
535
|
weight_uom: string;
|
|
535
|
-
item_name: string;
|
|
536
536
|
item_group: string;
|
|
537
537
|
stock_uom: string;
|
|
538
538
|
uom: string;
|
|
@@ -691,6 +691,7 @@ export declare const DeliveryNote: z.ZodObject<{
|
|
|
691
691
|
description: string;
|
|
692
692
|
image: string;
|
|
693
693
|
item_code: string;
|
|
694
|
+
item_name: string;
|
|
694
695
|
qty: number;
|
|
695
696
|
rate: number;
|
|
696
697
|
amount: number;
|
|
@@ -703,7 +704,6 @@ export declare const DeliveryNote: z.ZodObject<{
|
|
|
703
704
|
weight_per_unit: number;
|
|
704
705
|
total_weight: number;
|
|
705
706
|
weight_uom: string;
|
|
706
|
-
item_name: string;
|
|
707
707
|
item_group: string;
|
|
708
708
|
stock_uom: string;
|
|
709
709
|
uom: string;
|