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.
- package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +6 -159
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +2 -2
- package/dist/erpnext/doctypes/address.d.ts +76 -3
- package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +65 -55
- package/dist/erpnext/doctypes/contact.d.ts +220 -3
- package/dist/erpnext/doctypes/deliveryNote.d.ts +207 -202
- package/dist/erpnext/doctypes/item.d.ts +19 -2
- package/dist/erpnext/doctypes/paymentEntry.d.ts +116 -6
- package/dist/erpnext/doctypes/productBundle.d.ts +5 -2
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +141 -5
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +11 -5
- package/dist/erpnext/doctypes/salesInvoice.d.ts +400 -6
- package/dist/erpnext/doctypes/servicecase.d.ts +38 -2
- package/dist/erpnext/doctypes/shipment.d.ts +100 -93
- package/dist/erpnext/doctypes/shipment.js +2 -1
- package/dist/erpnext/erpnextRequestWrapper.d.ts +4 -2
- package/dist/erpnext/erpnextRequestWrapper.js +1 -1
- package/dist/erpnext/fileRequests.d.ts +2 -2
- package/dist/erpnext/fileRequests.js +2 -1
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +61 -23
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +20 -11
- package/dist/erpnext/model/Contact.d.ts +29 -0
- package/dist/erpnext/model/Contact.js +5 -5
- package/dist/erpnext/model/DeliveryNote.d.ts +300 -100
- package/dist/erpnext/model/DeliveryNote.js +101 -100
- package/dist/erpnext/model/DispatchRun.d.ts +3 -0
- package/dist/erpnext/model/DispatchRun.js +1 -0
- package/dist/erpnext/model/DocTypeHelpers.d.ts +12 -25
- package/dist/erpnext/model/DocTypeHelpers.js +44 -23
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +4 -1
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +3 -2
- package/dist/erpnext/model/File.d.ts +50 -0
- package/dist/erpnext/model/File.js +3 -1
- package/dist/erpnext/model/FulfillerSettings.d.ts +52 -24
- package/dist/erpnext/model/FulfillerSettings.js +19 -7
- package/dist/erpnext/model/Item.d.ts +43 -0
- package/dist/erpnext/model/Item.js +2 -1
- package/dist/erpnext/model/PaymentEntry.d.ts +3 -0
- package/dist/erpnext/model/PurchaseInvoice.d.ts +75 -1
- package/dist/erpnext/model/PurchaseOrder.d.ts +52 -63
- package/dist/erpnext/model/PurchaseOrder.js +20 -38
- package/dist/erpnext/model/SalesInvoice.d.ts +197 -4
- package/dist/erpnext/model/Servicecase.d.ts +8 -0
- package/dist/erpnext/model/Shipment.d.ts +119 -162
- package/dist/erpnext/model/Shipment.js +17 -47
- package/dist/erpnext/model/ShippingProvider.d.ts +55 -65
- package/dist/erpnext/model/ShippingProvider.js +6 -10
- package/dist/erpnext/resourceRequest.d.ts +2 -2
- package/dist/utils/zodContextOptionals.d.ts +2 -0
- package/dist/utils/zodContextOptionals.js +8 -4
- package/dist/utils/zodUtils.js +3 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
6
6
|
protected temporalClient: TemporalClient;
|
|
7
7
|
protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof PurchaseInvoice>;
|
|
8
8
|
protected methodRequest: ERPNextMethodRequest;
|
|
9
|
-
getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "posting_date" | "posting_time" | "set_posting_time" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "items" | "discount_amount" | "pricing_rules" | "__unsaved" | "is_return" | "shipping_address" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "supplier" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "allocate_advances_automatically" | "payment_terms_template" | "ignore_default_payment_terms_template" | "credit_to" | "party_account_currency" | "is_opening" | "per_received" | "supplied_items" | "advances" | "advance_tax"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
9
|
+
getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "posting_date" | "posting_time" | "set_posting_time" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "items" | "discount_amount" | "pricing_rules" | "__unsaved" | "is_return" | "shipping_address" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "supplier" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "allocate_advances_automatically" | "payment_terms_template" | "ignore_default_payment_terms_template" | "credit_to" | "party_account_currency" | "is_opening" | "per_received" | "supplied_items" | "advances" | "advance_tax"), TSelectedFields extends readonly ["*"] | readonly TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
10
10
|
fields?: TSelectedFields;
|
|
11
11
|
filters?: (string | string[])[][];
|
|
12
12
|
skip?: number;
|
|
@@ -53,12 +53,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
53
53
|
total?: number | null | undefined;
|
|
54
54
|
net_total?: number | null | undefined;
|
|
55
55
|
items?: {
|
|
56
|
+
docstatus: number;
|
|
57
|
+
name: string;
|
|
58
|
+
owner: string;
|
|
59
|
+
creation: string;
|
|
60
|
+
modified: string;
|
|
61
|
+
modified_by: string;
|
|
62
|
+
idx: number;
|
|
63
|
+
doctype: string;
|
|
64
|
+
parent: string;
|
|
65
|
+
parenttype: string;
|
|
66
|
+
parentfield: string;
|
|
56
67
|
item_code: string;
|
|
57
68
|
qty: number;
|
|
58
69
|
base_rate: number;
|
|
59
70
|
allow_zero_valuation_rate: number;
|
|
60
71
|
include_exploded_items: number;
|
|
61
72
|
description?: string | null | undefined;
|
|
73
|
+
_user_tags?: string | null | undefined;
|
|
62
74
|
image?: string | null | undefined;
|
|
63
75
|
rate?: number | null | undefined;
|
|
64
76
|
amount?: number | null | undefined;
|
|
@@ -164,7 +176,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
164
176
|
supplied_items?: string[] | null | undefined;
|
|
165
177
|
advances?: string[] | null | undefined;
|
|
166
178
|
advance_tax?: string[] | null | undefined;
|
|
167
|
-
}[] : TSelectedFields extends 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 ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "posting_date" | "posting_time" | "set_posting_time" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "items" | "discount_amount" | "pricing_rules" | "__unsaved" | "is_return" | "shipping_address" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "supplier" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "allocate_advances_automatically" | "payment_terms_template" | "ignore_default_payment_terms_template" | "credit_to" | "party_account_currency" | "is_opening" | "per_received" | "supplied_items" | "advances" | "advance_tax") ? {
|
|
179
|
+
}[] : 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 ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "posting_date" | "posting_time" | "set_posting_time" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "items" | "discount_amount" | "pricing_rules" | "__unsaved" | "is_return" | "shipping_address" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "supplier" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "allocate_advances_automatically" | "payment_terms_template" | "ignore_default_payment_terms_template" | "credit_to" | "party_account_currency" | "is_opening" | "per_received" | "supplied_items" | "advances" | "advance_tax") ? {
|
|
168
180
|
docstatus: number;
|
|
169
181
|
name: string;
|
|
170
182
|
owner: string;
|
|
@@ -201,12 +213,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
201
213
|
total?: number | null | undefined;
|
|
202
214
|
net_total?: number | null | undefined;
|
|
203
215
|
items?: {
|
|
216
|
+
docstatus: number;
|
|
217
|
+
name: string;
|
|
218
|
+
owner: string;
|
|
219
|
+
creation: string;
|
|
220
|
+
modified: string;
|
|
221
|
+
modified_by: string;
|
|
222
|
+
idx: number;
|
|
223
|
+
doctype: string;
|
|
224
|
+
parent: string;
|
|
225
|
+
parenttype: string;
|
|
226
|
+
parentfield: string;
|
|
204
227
|
item_code: string;
|
|
205
228
|
qty: number;
|
|
206
229
|
base_rate: number;
|
|
207
230
|
allow_zero_valuation_rate: number;
|
|
208
231
|
include_exploded_items: number;
|
|
209
232
|
description?: string | null | undefined;
|
|
233
|
+
_user_tags?: string | null | undefined;
|
|
210
234
|
image?: string | null | undefined;
|
|
211
235
|
rate?: number | null | undefined;
|
|
212
236
|
amount?: number | null | undefined;
|
|
@@ -334,6 +358,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
334
358
|
modified_by: string;
|
|
335
359
|
idx: number;
|
|
336
360
|
doctype: string;
|
|
361
|
+
parent: string;
|
|
337
362
|
parenttype: string;
|
|
338
363
|
parentfield: string;
|
|
339
364
|
description?: string | null | undefined;
|
|
@@ -366,6 +391,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
366
391
|
modified_by: string;
|
|
367
392
|
idx: number;
|
|
368
393
|
doctype: string;
|
|
394
|
+
parent: string;
|
|
369
395
|
parenttype: string;
|
|
370
396
|
parentfield: string;
|
|
371
397
|
_user_tags?: string | null | undefined;
|
|
@@ -408,12 +434,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
408
434
|
total?: number | null | undefined;
|
|
409
435
|
net_total?: number | null | undefined;
|
|
410
436
|
items?: {
|
|
437
|
+
docstatus: number;
|
|
438
|
+
name: string;
|
|
439
|
+
owner: string;
|
|
440
|
+
creation: string;
|
|
441
|
+
modified: string;
|
|
442
|
+
modified_by: string;
|
|
443
|
+
idx: number;
|
|
444
|
+
doctype: string;
|
|
445
|
+
parent: string;
|
|
446
|
+
parenttype: string;
|
|
447
|
+
parentfield: string;
|
|
411
448
|
item_code: string;
|
|
412
449
|
qty: number;
|
|
413
450
|
base_rate: number;
|
|
414
451
|
allow_zero_valuation_rate: number;
|
|
415
452
|
include_exploded_items: number;
|
|
416
453
|
description?: string | null | undefined;
|
|
454
|
+
_user_tags?: string | null | undefined;
|
|
417
455
|
image?: string | null | undefined;
|
|
418
456
|
rate?: number | null | undefined;
|
|
419
457
|
amount?: number | null | undefined;
|
|
@@ -554,8 +592,8 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
554
592
|
__islocal?: number | null | undefined;
|
|
555
593
|
}[];
|
|
556
594
|
status?: string | null | undefined;
|
|
557
|
-
amended_from?: string | null | undefined;
|
|
558
595
|
docstatus?: number | undefined;
|
|
596
|
+
amended_from?: string | null | undefined;
|
|
559
597
|
__onload?: {
|
|
560
598
|
make_payment_via_journal_entry?: number | null | undefined;
|
|
561
599
|
backflush_based_on?: string | null | undefined;
|
|
@@ -716,6 +754,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
716
754
|
modified_by: string;
|
|
717
755
|
idx: number;
|
|
718
756
|
doctype: string;
|
|
757
|
+
parent: string;
|
|
719
758
|
parenttype: string;
|
|
720
759
|
parentfield: string;
|
|
721
760
|
description?: string | null | undefined;
|
|
@@ -748,6 +787,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
748
787
|
modified_by: string;
|
|
749
788
|
idx: number;
|
|
750
789
|
doctype: string;
|
|
790
|
+
parent: string;
|
|
751
791
|
parenttype: string;
|
|
752
792
|
parentfield: string;
|
|
753
793
|
_user_tags?: string | null | undefined;
|
|
@@ -790,12 +830,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
790
830
|
total?: number | null | undefined;
|
|
791
831
|
net_total?: number | null | undefined;
|
|
792
832
|
items?: {
|
|
833
|
+
docstatus: number;
|
|
834
|
+
name: string;
|
|
835
|
+
owner: string;
|
|
836
|
+
creation: string;
|
|
837
|
+
modified: string;
|
|
838
|
+
modified_by: string;
|
|
839
|
+
idx: number;
|
|
840
|
+
doctype: string;
|
|
841
|
+
parent: string;
|
|
842
|
+
parenttype: string;
|
|
843
|
+
parentfield: string;
|
|
793
844
|
item_code: string;
|
|
794
845
|
qty: number;
|
|
795
846
|
base_rate: number;
|
|
796
847
|
allow_zero_valuation_rate: number;
|
|
797
848
|
include_exploded_items: number;
|
|
798
849
|
description?: string | null | undefined;
|
|
850
|
+
_user_tags?: string | null | undefined;
|
|
799
851
|
image?: string | null | undefined;
|
|
800
852
|
rate?: number | null | undefined;
|
|
801
853
|
amount?: number | null | undefined;
|
|
@@ -906,7 +958,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
906
958
|
resourceId: string;
|
|
907
959
|
priority?: number;
|
|
908
960
|
}) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
909
|
-
cancel: ({ resourceId }: {
|
|
961
|
+
cancel: ({ resourceId, }: {
|
|
910
962
|
resourceId: string;
|
|
911
963
|
}) => Promise<{
|
|
912
964
|
docstatus: number;
|
|
@@ -926,6 +978,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
926
978
|
modified_by: string;
|
|
927
979
|
idx: number;
|
|
928
980
|
doctype: string;
|
|
981
|
+
parent: string;
|
|
929
982
|
parenttype: string;
|
|
930
983
|
parentfield: string;
|
|
931
984
|
description?: string | null | undefined;
|
|
@@ -958,6 +1011,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
958
1011
|
modified_by: string;
|
|
959
1012
|
idx: number;
|
|
960
1013
|
doctype: string;
|
|
1014
|
+
parent: string;
|
|
961
1015
|
parenttype: string;
|
|
962
1016
|
parentfield: string;
|
|
963
1017
|
_user_tags?: string | null | undefined;
|
|
@@ -1000,12 +1054,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1000
1054
|
total?: number | null | undefined;
|
|
1001
1055
|
net_total?: number | null | undefined;
|
|
1002
1056
|
items?: {
|
|
1057
|
+
docstatus: number;
|
|
1058
|
+
name: string;
|
|
1059
|
+
owner: string;
|
|
1060
|
+
creation: string;
|
|
1061
|
+
modified: string;
|
|
1062
|
+
modified_by: string;
|
|
1063
|
+
idx: number;
|
|
1064
|
+
doctype: string;
|
|
1065
|
+
parent: string;
|
|
1066
|
+
parenttype: string;
|
|
1067
|
+
parentfield: string;
|
|
1003
1068
|
item_code: string;
|
|
1004
1069
|
qty: number;
|
|
1005
1070
|
base_rate: number;
|
|
1006
1071
|
allow_zero_valuation_rate: number;
|
|
1007
1072
|
include_exploded_items: number;
|
|
1008
1073
|
description?: string | null | undefined;
|
|
1074
|
+
_user_tags?: string | null | undefined;
|
|
1009
1075
|
image?: string | null | undefined;
|
|
1010
1076
|
rate?: number | null | undefined;
|
|
1011
1077
|
amount?: number | null | undefined;
|
|
@@ -1112,7 +1178,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1112
1178
|
advances?: string[] | null | undefined;
|
|
1113
1179
|
advance_tax?: string[] | null | undefined;
|
|
1114
1180
|
}>;
|
|
1115
|
-
submit: ({ resourceId }: {
|
|
1181
|
+
submit: ({ resourceId, }: {
|
|
1116
1182
|
resourceId: string;
|
|
1117
1183
|
}) => Promise<{
|
|
1118
1184
|
docstatus: number;
|
|
@@ -1132,6 +1198,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1132
1198
|
modified_by: string;
|
|
1133
1199
|
idx: number;
|
|
1134
1200
|
doctype: string;
|
|
1201
|
+
parent: string;
|
|
1135
1202
|
parenttype: string;
|
|
1136
1203
|
parentfield: string;
|
|
1137
1204
|
description?: string | null | undefined;
|
|
@@ -1164,6 +1231,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1164
1231
|
modified_by: string;
|
|
1165
1232
|
idx: number;
|
|
1166
1233
|
doctype: string;
|
|
1234
|
+
parent: string;
|
|
1167
1235
|
parenttype: string;
|
|
1168
1236
|
parentfield: string;
|
|
1169
1237
|
_user_tags?: string | null | undefined;
|
|
@@ -1206,12 +1274,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1206
1274
|
total?: number | null | undefined;
|
|
1207
1275
|
net_total?: number | null | undefined;
|
|
1208
1276
|
items?: {
|
|
1277
|
+
docstatus: number;
|
|
1278
|
+
name: string;
|
|
1279
|
+
owner: string;
|
|
1280
|
+
creation: string;
|
|
1281
|
+
modified: string;
|
|
1282
|
+
modified_by: string;
|
|
1283
|
+
idx: number;
|
|
1284
|
+
doctype: string;
|
|
1285
|
+
parent: string;
|
|
1286
|
+
parenttype: string;
|
|
1287
|
+
parentfield: string;
|
|
1209
1288
|
item_code: string;
|
|
1210
1289
|
qty: number;
|
|
1211
1290
|
base_rate: number;
|
|
1212
1291
|
allow_zero_valuation_rate: number;
|
|
1213
1292
|
include_exploded_items: number;
|
|
1214
1293
|
description?: string | null | undefined;
|
|
1294
|
+
_user_tags?: string | null | undefined;
|
|
1215
1295
|
image?: string | null | undefined;
|
|
1216
1296
|
rate?: number | null | undefined;
|
|
1217
1297
|
amount?: number | null | undefined;
|
|
@@ -1339,6 +1419,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1339
1419
|
modified_by: string;
|
|
1340
1420
|
idx: number;
|
|
1341
1421
|
doctype: string;
|
|
1422
|
+
parent: string;
|
|
1342
1423
|
parenttype: string;
|
|
1343
1424
|
parentfield: string;
|
|
1344
1425
|
description?: string | null | undefined;
|
|
@@ -1371,6 +1452,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1371
1452
|
modified_by: string;
|
|
1372
1453
|
idx: number;
|
|
1373
1454
|
doctype: string;
|
|
1455
|
+
parent: string;
|
|
1374
1456
|
parenttype: string;
|
|
1375
1457
|
parentfield: string;
|
|
1376
1458
|
_user_tags?: string | null | undefined;
|
|
@@ -1412,12 +1494,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1412
1494
|
total?: number | null | undefined;
|
|
1413
1495
|
net_total?: number | null | undefined;
|
|
1414
1496
|
items?: {
|
|
1497
|
+
docstatus: number;
|
|
1498
|
+
name: string;
|
|
1499
|
+
owner: string;
|
|
1500
|
+
creation: string;
|
|
1501
|
+
modified: string;
|
|
1502
|
+
modified_by: string;
|
|
1503
|
+
idx: number;
|
|
1504
|
+
doctype: string;
|
|
1505
|
+
parent: string;
|
|
1506
|
+
parenttype: string;
|
|
1507
|
+
parentfield: string;
|
|
1415
1508
|
item_code: string;
|
|
1416
1509
|
qty: number;
|
|
1417
1510
|
base_rate: number;
|
|
1418
1511
|
allow_zero_valuation_rate: number;
|
|
1419
1512
|
include_exploded_items: number;
|
|
1420
1513
|
description?: string | null | undefined;
|
|
1514
|
+
_user_tags?: string | null | undefined;
|
|
1421
1515
|
image?: string | null | undefined;
|
|
1422
1516
|
rate?: number | null | undefined;
|
|
1423
1517
|
amount?: number | null | undefined;
|
|
@@ -1542,6 +1636,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1542
1636
|
modified_by: string;
|
|
1543
1637
|
idx: number;
|
|
1544
1638
|
doctype: string;
|
|
1639
|
+
parent: string;
|
|
1545
1640
|
parenttype: string;
|
|
1546
1641
|
parentfield: string;
|
|
1547
1642
|
description?: string | null | undefined;
|
|
@@ -1574,6 +1669,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1574
1669
|
modified_by: string;
|
|
1575
1670
|
idx: number;
|
|
1576
1671
|
doctype: string;
|
|
1672
|
+
parent: string;
|
|
1577
1673
|
parenttype: string;
|
|
1578
1674
|
parentfield: string;
|
|
1579
1675
|
_user_tags?: string | null | undefined;
|
|
@@ -1616,12 +1712,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1616
1712
|
total?: number | null | undefined;
|
|
1617
1713
|
net_total?: number | null | undefined;
|
|
1618
1714
|
items?: {
|
|
1715
|
+
docstatus: number;
|
|
1716
|
+
name: string;
|
|
1717
|
+
owner: string;
|
|
1718
|
+
creation: string;
|
|
1719
|
+
modified: string;
|
|
1720
|
+
modified_by: string;
|
|
1721
|
+
idx: number;
|
|
1722
|
+
doctype: string;
|
|
1723
|
+
parent: string;
|
|
1724
|
+
parenttype: string;
|
|
1725
|
+
parentfield: string;
|
|
1619
1726
|
item_code: string;
|
|
1620
1727
|
qty: number;
|
|
1621
1728
|
base_rate: number;
|
|
1622
1729
|
allow_zero_valuation_rate: number;
|
|
1623
1730
|
include_exploded_items: number;
|
|
1624
1731
|
description?: string | null | undefined;
|
|
1732
|
+
_user_tags?: string | null | undefined;
|
|
1625
1733
|
image?: string | null | undefined;
|
|
1626
1734
|
rate?: number | null | undefined;
|
|
1627
1735
|
amount?: number | null | undefined;
|
|
@@ -1745,6 +1853,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1745
1853
|
modified_by: string;
|
|
1746
1854
|
idx: number;
|
|
1747
1855
|
doctype: string;
|
|
1856
|
+
parent: string;
|
|
1748
1857
|
parenttype: string;
|
|
1749
1858
|
parentfield: string;
|
|
1750
1859
|
description?: string | null | undefined;
|
|
@@ -1777,6 +1886,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1777
1886
|
modified_by: string;
|
|
1778
1887
|
idx: number;
|
|
1779
1888
|
doctype: string;
|
|
1889
|
+
parent: string;
|
|
1780
1890
|
parenttype: string;
|
|
1781
1891
|
parentfield: string;
|
|
1782
1892
|
_user_tags?: string | null | undefined;
|
|
@@ -1818,12 +1928,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1818
1928
|
total?: number | null | undefined;
|
|
1819
1929
|
net_total?: number | null | undefined;
|
|
1820
1930
|
items?: {
|
|
1931
|
+
docstatus: number;
|
|
1932
|
+
name: string;
|
|
1933
|
+
owner: string;
|
|
1934
|
+
creation: string;
|
|
1935
|
+
modified: string;
|
|
1936
|
+
modified_by: string;
|
|
1937
|
+
idx: number;
|
|
1938
|
+
doctype: string;
|
|
1939
|
+
parent: string;
|
|
1940
|
+
parenttype: string;
|
|
1941
|
+
parentfield: string;
|
|
1821
1942
|
item_code: string;
|
|
1822
1943
|
qty: number;
|
|
1823
1944
|
base_rate: number;
|
|
1824
1945
|
allow_zero_valuation_rate: number;
|
|
1825
1946
|
include_exploded_items: number;
|
|
1826
1947
|
description?: string | null | undefined;
|
|
1948
|
+
_user_tags?: string | null | undefined;
|
|
1827
1949
|
image?: string | null | undefined;
|
|
1828
1950
|
rate?: number | null | undefined;
|
|
1829
1951
|
amount?: number | null | undefined;
|
|
@@ -1948,6 +2070,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1948
2070
|
modified_by: string;
|
|
1949
2071
|
idx: number;
|
|
1950
2072
|
doctype: string;
|
|
2073
|
+
parent: string;
|
|
1951
2074
|
parenttype: string;
|
|
1952
2075
|
parentfield: string;
|
|
1953
2076
|
description?: string | null | undefined;
|
|
@@ -1980,6 +2103,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1980
2103
|
modified_by: string;
|
|
1981
2104
|
idx: number;
|
|
1982
2105
|
doctype: string;
|
|
2106
|
+
parent: string;
|
|
1983
2107
|
parenttype: string;
|
|
1984
2108
|
parentfield: string;
|
|
1985
2109
|
_user_tags?: string | null | undefined;
|
|
@@ -2022,12 +2146,24 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
2022
2146
|
total?: number | null | undefined;
|
|
2023
2147
|
net_total?: number | null | undefined;
|
|
2024
2148
|
items?: {
|
|
2149
|
+
docstatus: number;
|
|
2150
|
+
name: string;
|
|
2151
|
+
owner: string;
|
|
2152
|
+
creation: string;
|
|
2153
|
+
modified: string;
|
|
2154
|
+
modified_by: string;
|
|
2155
|
+
idx: number;
|
|
2156
|
+
doctype: string;
|
|
2157
|
+
parent: string;
|
|
2158
|
+
parenttype: string;
|
|
2159
|
+
parentfield: string;
|
|
2025
2160
|
item_code: string;
|
|
2026
2161
|
qty: number;
|
|
2027
2162
|
base_rate: number;
|
|
2028
2163
|
allow_zero_valuation_rate: number;
|
|
2029
2164
|
include_exploded_items: number;
|
|
2030
2165
|
description?: string | null | undefined;
|
|
2166
|
+
_user_tags?: string | null | undefined;
|
|
2031
2167
|
image?: string | null | undefined;
|
|
2032
2168
|
rate?: number | null | undefined;
|
|
2033
2169
|
amount?: number | null | undefined;
|
|
@@ -6,7 +6,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
6
6
|
protected temporalClient: TemporalClient;
|
|
7
7
|
protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof PurchaseReceipt>;
|
|
8
8
|
protected methodRequest: ERPNextMethodRequest;
|
|
9
|
-
getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "posting_date" | "posting_time" | "set_posting_time" | "currency" | "conversion_rate" | "base_net_total" | "supplier" | "is_subcontracted") | ("amended_from" | "_user_tags" | "__onload" | "tax_category" | "supplier_name" | "is_internal_supplier" | "language" | "total_qty" | "total_net_weight" | "base_total" | "total" | "net_total" | "discount_amount" | "cost_center" | "project" | "title" | "is_return" | "return_against" | "shipping_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "address_display" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "set_warehouse" | "scan_barcode" | "shipping_rule" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "tc_name" | "terms" | "lr_no" | "transporter_name" | "lr_date" | "represents_company" | "inter_company_reference" | "per_billed" | "letter_head" | "select_print_heading" | "group_same_items" | "per_returned" | "instructions" | "auto_repeat" | "remarks" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "rejected_warehouse" | "purchase_receipt_number" | "supplier_delivery_note" | "notes" | "apply_putaway_rule" | "supplier_address" | "set_from_warehouse" | "supplier_warehouse" | "range"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
9
|
+
getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "posting_date" | "posting_time" | "set_posting_time" | "currency" | "conversion_rate" | "base_net_total" | "supplier" | "is_subcontracted") | ("amended_from" | "_user_tags" | "__onload" | "tax_category" | "supplier_name" | "is_internal_supplier" | "language" | "total_qty" | "total_net_weight" | "base_total" | "total" | "net_total" | "discount_amount" | "cost_center" | "project" | "title" | "is_return" | "return_against" | "shipping_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "address_display" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "set_warehouse" | "scan_barcode" | "shipping_rule" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "tc_name" | "terms" | "lr_no" | "transporter_name" | "lr_date" | "represents_company" | "inter_company_reference" | "per_billed" | "letter_head" | "select_print_heading" | "group_same_items" | "per_returned" | "instructions" | "auto_repeat" | "remarks" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "rejected_warehouse" | "purchase_receipt_number" | "supplier_delivery_note" | "notes" | "apply_putaway_rule" | "supplier_address" | "set_from_warehouse" | "supplier_warehouse" | "range"), TSelectedFields extends readonly ["*"] | readonly TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
10
10
|
fields?: TSelectedFields;
|
|
11
11
|
filters?: (string | string[])[][];
|
|
12
12
|
skip?: number;
|
|
@@ -116,7 +116,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
116
116
|
set_from_warehouse?: any;
|
|
117
117
|
supplier_warehouse?: any;
|
|
118
118
|
range?: any;
|
|
119
|
-
}[] : TSelectedFields extends 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" | "company" | "naming_series" | "posting_date" | "posting_time" | "set_posting_time" | "currency" | "conversion_rate" | "base_net_total" | "supplier" | "is_subcontracted") | ("amended_from" | "_user_tags" | "__onload" | "tax_category" | "supplier_name" | "is_internal_supplier" | "language" | "total_qty" | "total_net_weight" | "base_total" | "total" | "net_total" | "discount_amount" | "cost_center" | "project" | "title" | "is_return" | "return_against" | "shipping_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "address_display" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "set_warehouse" | "scan_barcode" | "shipping_rule" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "tc_name" | "terms" | "lr_no" | "transporter_name" | "lr_date" | "represents_company" | "inter_company_reference" | "per_billed" | "letter_head" | "select_print_heading" | "group_same_items" | "per_returned" | "instructions" | "auto_repeat" | "remarks" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "rejected_warehouse" | "purchase_receipt_number" | "supplier_delivery_note" | "notes" | "apply_putaway_rule" | "supplier_address" | "set_from_warehouse" | "supplier_warehouse" | "range") ? {
|
|
119
|
+
}[] : 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" | "company" | "naming_series" | "posting_date" | "posting_time" | "set_posting_time" | "currency" | "conversion_rate" | "base_net_total" | "supplier" | "is_subcontracted") | ("amended_from" | "_user_tags" | "__onload" | "tax_category" | "supplier_name" | "is_internal_supplier" | "language" | "total_qty" | "total_net_weight" | "base_total" | "total" | "net_total" | "discount_amount" | "cost_center" | "project" | "title" | "is_return" | "return_against" | "shipping_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "address_display" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "set_warehouse" | "scan_barcode" | "shipping_rule" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "tc_name" | "terms" | "lr_no" | "transporter_name" | "lr_date" | "represents_company" | "inter_company_reference" | "per_billed" | "letter_head" | "select_print_heading" | "group_same_items" | "per_returned" | "instructions" | "auto_repeat" | "remarks" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "rejected_warehouse" | "purchase_receipt_number" | "supplier_delivery_note" | "notes" | "apply_putaway_rule" | "supplier_address" | "set_from_warehouse" | "supplier_warehouse" | "range") ? {
|
|
120
120
|
status: string;
|
|
121
121
|
docstatus: number;
|
|
122
122
|
name: string;
|
|
@@ -248,6 +248,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
248
248
|
modified_by: string;
|
|
249
249
|
idx: number;
|
|
250
250
|
doctype: string;
|
|
251
|
+
parent: string;
|
|
251
252
|
parenttype: string;
|
|
252
253
|
parentfield: string;
|
|
253
254
|
item_code: string;
|
|
@@ -515,8 +516,8 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
515
516
|
supplier: string;
|
|
516
517
|
is_subcontracted: number;
|
|
517
518
|
supplied_items: any[];
|
|
518
|
-
amended_from?: string | null | undefined;
|
|
519
519
|
docstatus?: number | undefined;
|
|
520
|
+
amended_from?: string | null | undefined;
|
|
520
521
|
__onload?: {
|
|
521
522
|
load_after_mapping: boolean;
|
|
522
523
|
ignore_price_list?: boolean | null | undefined;
|
|
@@ -629,6 +630,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
629
630
|
modified_by: string;
|
|
630
631
|
idx: number;
|
|
631
632
|
doctype: string;
|
|
633
|
+
parent: string;
|
|
632
634
|
parenttype: string;
|
|
633
635
|
parentfield: string;
|
|
634
636
|
item_code: string;
|
|
@@ -803,7 +805,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
803
805
|
resourceId: string;
|
|
804
806
|
priority?: number;
|
|
805
807
|
}) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
806
|
-
cancel: ({ resourceId }: {
|
|
808
|
+
cancel: ({ resourceId, }: {
|
|
807
809
|
resourceId: string;
|
|
808
810
|
}) => Promise<{
|
|
809
811
|
status: string;
|
|
@@ -833,6 +835,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
833
835
|
modified_by: string;
|
|
834
836
|
idx: number;
|
|
835
837
|
doctype: string;
|
|
838
|
+
parent: string;
|
|
836
839
|
parenttype: string;
|
|
837
840
|
parentfield: string;
|
|
838
841
|
item_code: string;
|
|
@@ -1003,7 +1006,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
1003
1006
|
supplier_warehouse?: any;
|
|
1004
1007
|
range?: any;
|
|
1005
1008
|
}>;
|
|
1006
|
-
submit: ({ resourceId }: {
|
|
1009
|
+
submit: ({ resourceId, }: {
|
|
1007
1010
|
resourceId: string;
|
|
1008
1011
|
}) => Promise<{
|
|
1009
1012
|
status: string;
|
|
@@ -1033,6 +1036,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
1033
1036
|
modified_by: string;
|
|
1034
1037
|
idx: number;
|
|
1035
1038
|
doctype: string;
|
|
1039
|
+
parent: string;
|
|
1036
1040
|
parenttype: string;
|
|
1037
1041
|
parentfield: string;
|
|
1038
1042
|
item_code: string;
|
|
@@ -1359,6 +1363,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
1359
1363
|
modified_by: string;
|
|
1360
1364
|
idx: number;
|
|
1361
1365
|
doctype: string;
|
|
1366
|
+
parent: string;
|
|
1362
1367
|
parenttype: string;
|
|
1363
1368
|
parentfield: string;
|
|
1364
1369
|
item_code: string;
|
|
@@ -1684,6 +1689,7 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
1684
1689
|
modified_by: string;
|
|
1685
1690
|
idx: number;
|
|
1686
1691
|
doctype: string;
|
|
1692
|
+
parent: string;
|
|
1687
1693
|
parenttype: string;
|
|
1688
1694
|
parentfield: string;
|
|
1689
1695
|
item_code: string;
|