erpnext-queue-client 1.38.0 → 2.0.0-beta.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/client.js +2 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +16 -2
- package/dist/erpnext/doctypeResourceRequest.d.ts +12 -11
- package/dist/erpnext/doctypeResourceRequest.js +3 -2
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +121 -4
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +14 -1
- package/dist/erpnext/doctypes/address.d.ts +154 -219
- package/dist/erpnext/doctypes/address.js +0 -2
- package/dist/erpnext/doctypes/contact.d.ts +151 -308
- package/dist/erpnext/doctypes/contact.js +1 -1
- package/dist/erpnext/doctypes/deliveryNote.d.ts +644 -455
- package/dist/erpnext/doctypes/deliveryNote.js +4 -10
- package/dist/erpnext/doctypes/item.d.ts +215 -308
- package/dist/erpnext/doctypes/productBundle.d.ts +43 -53
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +669 -697
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +265 -314
- package/dist/erpnext/doctypes/salesInvoice.d.ts +3332 -0
- package/dist/erpnext/doctypes/salesInvoice.js +72 -0
- package/dist/erpnext/doctypes/servicecase.d.ts +197 -140
- package/dist/erpnext/doctypes/servicecase.js +4 -6
- package/dist/erpnext/doctypes/shipment.d.ts +168 -258
- package/dist/erpnext/doctypes/tags.d.ts +10 -0
- package/dist/erpnext/doctypes/tags.js +102 -0
- package/dist/erpnext/model/Account.d.ts +0 -33
- package/dist/erpnext/model/Account.js +0 -11
- package/dist/erpnext/model/Address.d.ts +112 -233
- package/dist/erpnext/model/Address.js +11 -49
- package/dist/erpnext/model/Attachment.d.ts +0 -3
- package/dist/erpnext/model/Attachment.js +0 -1
- package/dist/erpnext/model/Boolean.d.ts +4 -0
- package/dist/erpnext/model/Boolean.js +9 -0
- package/dist/erpnext/model/Compliance.d.ts +0 -112
- package/dist/erpnext/model/Compliance.js +0 -19
- package/dist/erpnext/model/Contact.d.ts +166 -416
- package/dist/erpnext/model/Contact.js +16 -69
- package/dist/erpnext/model/Country.d.ts +0 -64
- package/dist/erpnext/model/Country.js +0 -10
- package/dist/erpnext/model/Customer.d.ts +39 -64
- package/dist/erpnext/model/Customer.js +11 -25
- package/dist/erpnext/model/DeliveryNote.d.ts +124 -1170
- package/dist/erpnext/model/DeliveryNote.js +5 -52
- package/dist/erpnext/model/DispatchRun.d.ts +7 -113
- package/dist/erpnext/model/DispatchRun.js +2 -31
- package/dist/erpnext/model/DispatcherPreset.d.ts +0 -119
- package/dist/erpnext/model/DispatcherPreset.js +1 -27
- package/dist/erpnext/model/DocInfo.d.ts +41 -339
- package/dist/erpnext/model/DocInfo.js +5 -6
- package/dist/erpnext/model/DocTypeHelpers.d.ts +141 -2
- package/dist/erpnext/model/DocTypeHelpers.js +132 -1
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +124 -0
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +37 -0
- package/dist/erpnext/model/ERPNextRequest.d.ts +5 -5
- package/dist/erpnext/model/File.d.ts +0 -48
- package/dist/erpnext/model/File.js +0 -8
- package/dist/erpnext/model/Fulfiller.d.ts +0 -121
- package/dist/erpnext/model/Fulfiller.js +1 -56
- package/dist/erpnext/model/FulfillerSettings.d.ts +0 -39
- package/dist/erpnext/model/FulfillerSettings.js +0 -6
- package/dist/erpnext/model/InternalReasons.d.ts +0 -3
- package/dist/erpnext/model/InternalReasons.js +0 -1
- package/dist/erpnext/model/Item.d.ts +478 -1847
- package/dist/erpnext/model/Item.js +18 -142
- package/dist/erpnext/model/Logs.d.ts +0 -9
- package/dist/erpnext/model/Logs.js +0 -3
- package/dist/erpnext/model/PartList.d.ts +0 -15
- package/dist/erpnext/model/PartList.js +0 -5
- package/dist/erpnext/model/PaymentEntry.d.ts +141 -128
- package/dist/erpnext/model/PaymentEntry.js +46 -47
- package/dist/erpnext/model/Permissions.d.ts +3 -3
- package/dist/erpnext/model/Permissions.js +1 -1
- package/dist/erpnext/model/ProductBundle.d.ts +6 -107
- package/dist/erpnext/model/ProductBundle.js +0 -17
- package/dist/erpnext/model/PurchaseInvoice.d.ts +290 -362
- package/dist/erpnext/model/PurchaseInvoice.js +5 -23
- package/dist/erpnext/model/PurchaseOrder.d.ts +34 -180
- package/dist/erpnext/model/PurchaseOrder.js +0 -34
- package/dist/erpnext/model/Receipt.d.ts +30 -121
- package/dist/erpnext/model/Receipt.js +2 -25
- package/dist/erpnext/model/ReceiptDraft.d.ts +28 -67
- package/dist/erpnext/model/ReceiptDraft.js +2 -11
- package/dist/erpnext/model/Report.d.ts +0 -40
- package/dist/erpnext/model/Report.js +0 -8
- package/dist/erpnext/model/SalesInvoice.d.ts +2441 -0
- package/dist/erpnext/model/SalesInvoice.js +326 -0
- package/dist/erpnext/model/SalesOrder.d.ts +1043 -0
- package/dist/erpnext/model/SalesOrder.js +271 -0
- package/dist/erpnext/model/SalesTaxesAndCharges.d.ts +47 -0
- package/dist/erpnext/model/SalesTaxesAndCharges.js +30 -0
- package/dist/erpnext/model/Servicecase.d.ts +295 -740
- package/dist/erpnext/model/Servicecase.js +31 -116
- package/dist/erpnext/model/ServicecaseReason.d.ts +0 -8
- package/dist/erpnext/model/ServicecaseReason.js +0 -2
- package/dist/erpnext/model/ServicecaseSolution.d.ts +0 -3
- package/dist/erpnext/model/ServicecaseSolution.js +0 -1
- package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +0 -575
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +5 -50
- package/dist/erpnext/model/Shipment.d.ts +18 -729
- package/dist/erpnext/model/Shipment.js +1 -82
- package/dist/erpnext/model/ShippingLabel.d.ts +0 -32
- package/dist/erpnext/model/ShippingLabel.js +0 -8
- package/dist/erpnext/model/ShippingProvider.d.ts +6 -87
- package/dist/erpnext/model/ShippingProvider.js +3 -6
- package/dist/erpnext/model/Stock.d.ts +6 -46
- package/dist/erpnext/model/Stock.js +0 -8
- package/dist/erpnext/model/StockEntry.d.ts +12 -45
- package/dist/erpnext/model/StockEntry.js +0 -11
- package/dist/erpnext/model/StockReconciliation.d.ts +5 -32
- package/dist/erpnext/model/StockReconciliation.js +0 -10
- package/dist/erpnext/model/Supplier.d.ts +0 -79
- package/dist/erpnext/model/Supplier.js +0 -8
- package/dist/erpnext/model/Version.d.ts +0 -9
- package/dist/erpnext/model/Version.js +0 -3
- package/dist/erpnext/model/Waitlist.d.ts +0 -3
- package/dist/erpnext/model/Waitlist.js +0 -1
- package/dist/erpnext/model/WarehouseCategory.d.ts +0 -11
- package/dist/erpnext/model/WarehouseCategory.js +1 -7
- package/dist/erpnext/reports.js +3 -7
- package/dist/erpnext/resourceRequest.d.ts +13 -11
- package/dist/erpnext/resourceRequest.js +23 -18
- package/dist/index.d.ts +16 -10
- package/dist/index.js +24 -12
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +227 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/zodContextOptionals.d.ts +14 -0
- package/dist/utils/zodContextOptionals.js +42 -0
- package/dist/utils/zodUtils.js +2 -1
- package/package.json +2 -2
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +0 -433
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +0 -102
- package/dist/erpnext/model/ShippingFees.d.ts +0 -36
- package/dist/erpnext/model/ShippingFees.js +0 -18
|
@@ -8,38 +8,138 @@ export declare class ERPNextItem {
|
|
|
8
8
|
protected temporalClient: TemporalClient;
|
|
9
9
|
protected baseRequest: ERPNextDoctypeResourceRequest<typeof Item>;
|
|
10
10
|
protected methodRequest: ERPNextMethodRequest;
|
|
11
|
-
getList: <
|
|
12
|
-
fields?:
|
|
11
|
+
getList: <TFieldOptions extends ("name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "description" | "disabled" | "naming_series" | "item_code" | "item_name" | "item_group" | "stock_uom" | "grant_commission" | "weight_uom" | "override_base_name" | "sync_from_warehouse" | "allow_alternative_item" | "is_stock_item" | "custom_is_digital" | "include_item_in_manufacturing" | "opening_stock" | "valuation_rate" | "standard_rate" | "is_fixed_asset" | "auto_create_assets" | "over_delivery_receipt_allowance" | "over_billing_allowance" | "custom_is_shipping_enabled" | "dimensions_unit" | "custom_dimension_format" | "shipping_dimensions_unit" | "packaging_weight_unit_cardboard" | "packaging_weight_unit_plastic" | "shelf_life_in_days" | "end_of_life" | "default_material_request_type" | "valuation_method" | "product_weight_unit" | "has_batch_no" | "create_new_batch" | "has_expiry_date" | "retain_sample" | "sample_quantity" | "has_serial_no" | "has_variants" | "variant_based_on" | "min_order_qty" | "safety_stock" | "is_purchase_item" | "custom_include_in_purchase_planning" | "lead_time_days" | "last_purchase_rate" | "is_customer_provided_item" | "delivered_by_supplier" | "fsc_percentage" | "sales_uom" | "is_sales_item" | "custom_is_selling_enabled" | "max_discount" | "enable_deferred_revenue" | "no_of_months" | "enable_deferred_expense" | "no_of_months_exp" | "inspection_required_before_purchase" | "inspection_required_before_delivery" | "is_sub_contracted_item" | "customer_code" | "total_projected_qty" | "custom_oversell_amount") | ("length" | "_user_tags" | "image" | "weight_per_unit" | "warehouse_category" | "ean" | "shipping_template" | "width" | "height" | "shipping_length" | "shipping_width" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "product_weight" | "fsc_status" | "custom_fsc_type_of_wood" | "custom_fsc_product_group" | "customs_tariff_number" | "country_of_origin" | "custom_product_version" | "custom_supplier" | "purchase_description" | "custom_stock_reserve" | "custom_sales_category" | "custom_shopify_content_configuration" | "custom_compliance" | "custom_serviceportal_configuration"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
12
|
+
fields?: TSelectedFields;
|
|
13
13
|
filters?: (string | string[])[][];
|
|
14
14
|
skip?: number;
|
|
15
15
|
limit?: number;
|
|
16
16
|
priority?: number;
|
|
17
17
|
asDict?: TAsDict;
|
|
18
18
|
params?: Record<string, string>;
|
|
19
|
-
}) => Promise<TAsDict extends false ? string[][] :
|
|
19
|
+
}) => Promise<(TAsDict extends false ? string[][] : TSelectedFields extends undefined ? {
|
|
20
|
+
name: string;
|
|
21
|
+
}[] : TSelectedFields extends readonly ["*"] ? {
|
|
22
|
+
name: string;
|
|
23
|
+
owner: string;
|
|
24
|
+
creation: string;
|
|
25
|
+
modified: string;
|
|
26
|
+
modified_by: string;
|
|
27
|
+
idx: number;
|
|
28
|
+
docstatus: number;
|
|
20
29
|
description: string;
|
|
30
|
+
disabled: 0 | 1;
|
|
31
|
+
naming_series: string;
|
|
32
|
+
item_code: string;
|
|
33
|
+
item_name: string;
|
|
34
|
+
item_group: string;
|
|
35
|
+
stock_uom: string;
|
|
36
|
+
grant_commission: number;
|
|
37
|
+
weight_uom: "kg" | "g" | "mg";
|
|
38
|
+
override_base_name: number;
|
|
39
|
+
sync_from_warehouse: number;
|
|
40
|
+
allow_alternative_item: 0 | 1;
|
|
41
|
+
is_stock_item: 0 | 1;
|
|
42
|
+
custom_is_digital: 0 | 1;
|
|
43
|
+
include_item_in_manufacturing: number;
|
|
44
|
+
opening_stock: number;
|
|
45
|
+
valuation_rate: number;
|
|
46
|
+
standard_rate: number;
|
|
47
|
+
is_fixed_asset: number;
|
|
48
|
+
auto_create_assets: number;
|
|
49
|
+
over_delivery_receipt_allowance: number;
|
|
50
|
+
over_billing_allowance: number;
|
|
51
|
+
custom_is_shipping_enabled: number;
|
|
52
|
+
dimensions_unit: "m" | "cm" | "mm";
|
|
53
|
+
custom_dimension_format: "Length / Width / Height" | "Width / Depth / Height";
|
|
54
|
+
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
55
|
+
packaging_weight_unit_cardboard: "kg" | "g" | "mg";
|
|
56
|
+
packaging_weight_unit_plastic: "kg" | "g" | "mg";
|
|
57
|
+
shelf_life_in_days: number;
|
|
58
|
+
end_of_life: string;
|
|
59
|
+
default_material_request_type: string;
|
|
60
|
+
valuation_method: string;
|
|
61
|
+
product_weight_unit: "kg" | "g" | "mg";
|
|
62
|
+
has_batch_no: number;
|
|
63
|
+
create_new_batch: number;
|
|
64
|
+
has_expiry_date: number;
|
|
65
|
+
retain_sample: number;
|
|
66
|
+
sample_quantity: number;
|
|
67
|
+
has_serial_no: number;
|
|
68
|
+
has_variants: number;
|
|
69
|
+
variant_based_on: string;
|
|
70
|
+
min_order_qty: number;
|
|
71
|
+
safety_stock: number;
|
|
72
|
+
is_purchase_item: number;
|
|
73
|
+
custom_include_in_purchase_planning: number;
|
|
74
|
+
lead_time_days: number;
|
|
75
|
+
last_purchase_rate: number;
|
|
76
|
+
is_customer_provided_item: number;
|
|
77
|
+
delivered_by_supplier: number;
|
|
78
|
+
fsc_percentage: number;
|
|
79
|
+
sales_uom: string;
|
|
80
|
+
is_sales_item: number;
|
|
81
|
+
custom_is_selling_enabled: number;
|
|
82
|
+
max_discount: number;
|
|
83
|
+
enable_deferred_revenue: number;
|
|
84
|
+
no_of_months: number;
|
|
85
|
+
enable_deferred_expense: number;
|
|
86
|
+
no_of_months_exp: number;
|
|
87
|
+
inspection_required_before_purchase: number;
|
|
88
|
+
inspection_required_before_delivery: number;
|
|
89
|
+
is_sub_contracted_item: number;
|
|
90
|
+
customer_code: string;
|
|
91
|
+
total_projected_qty: number;
|
|
92
|
+
custom_oversell_amount: number | null;
|
|
93
|
+
length?: number | null | undefined;
|
|
94
|
+
_user_tags?: string | undefined;
|
|
95
|
+
image?: string | null | undefined;
|
|
96
|
+
weight_per_unit?: number | null | undefined;
|
|
97
|
+
warehouse_category?: string | null | undefined;
|
|
98
|
+
ean?: string | null | undefined;
|
|
99
|
+
shipping_template?: string | null | undefined;
|
|
100
|
+
width?: number | null | undefined;
|
|
101
|
+
height?: number | null | undefined;
|
|
102
|
+
shipping_length?: number | null | undefined;
|
|
103
|
+
shipping_width?: number | null | undefined;
|
|
104
|
+
shipping_height?: number | null | undefined;
|
|
105
|
+
packaging_weight_cardboard?: number | null | undefined;
|
|
106
|
+
packaging_weight_plastic?: number | null | undefined;
|
|
107
|
+
product_weight?: number | null | undefined;
|
|
108
|
+
fsc_status?: string | null | undefined;
|
|
109
|
+
custom_fsc_type_of_wood?: string | null | undefined;
|
|
110
|
+
custom_fsc_product_group?: string | null | undefined;
|
|
111
|
+
customs_tariff_number?: string | null | undefined;
|
|
112
|
+
country_of_origin?: string | null | undefined;
|
|
113
|
+
custom_product_version?: string | null | undefined;
|
|
114
|
+
custom_supplier?: string | null | undefined;
|
|
115
|
+
purchase_description?: string | null | undefined;
|
|
116
|
+
custom_stock_reserve?: number | null | undefined;
|
|
117
|
+
custom_sales_category?: string | null | undefined;
|
|
118
|
+
custom_shopify_content_configuration?: string | null | undefined;
|
|
119
|
+
custom_compliance?: string | null | undefined;
|
|
120
|
+
custom_serviceportal_configuration?: string | null | undefined;
|
|
121
|
+
}[] : TSelectedFields extends TFieldOptions[] ? Pick<{
|
|
21
122
|
name: string;
|
|
22
|
-
doctype: string;
|
|
23
123
|
owner: string;
|
|
24
124
|
creation: string;
|
|
25
125
|
modified: string;
|
|
26
126
|
modified_by: string;
|
|
27
127
|
idx: number;
|
|
28
128
|
docstatus: number;
|
|
29
|
-
|
|
129
|
+
description: string;
|
|
130
|
+
disabled: 0 | 1;
|
|
30
131
|
naming_series: string;
|
|
31
132
|
item_code: string;
|
|
32
133
|
item_name: string;
|
|
33
134
|
item_group: string;
|
|
34
135
|
stock_uom: string;
|
|
35
136
|
grant_commission: number;
|
|
36
|
-
weight_per_unit: number;
|
|
37
137
|
weight_uom: "kg" | "g" | "mg";
|
|
38
|
-
taxes: any[];
|
|
39
138
|
override_base_name: number;
|
|
40
139
|
sync_from_warehouse: number;
|
|
41
|
-
allow_alternative_item:
|
|
42
|
-
is_stock_item:
|
|
140
|
+
allow_alternative_item: 0 | 1;
|
|
141
|
+
is_stock_item: 0 | 1;
|
|
142
|
+
custom_is_digital: 0 | 1;
|
|
43
143
|
include_item_in_manufacturing: number;
|
|
44
144
|
opening_stock: number;
|
|
45
145
|
valuation_rate: number;
|
|
@@ -58,7 +158,6 @@ export declare class ERPNextItem {
|
|
|
58
158
|
end_of_life: string;
|
|
59
159
|
default_material_request_type: string;
|
|
60
160
|
valuation_method: string;
|
|
61
|
-
product_weight: number;
|
|
62
161
|
product_weight_unit: "kg" | "g" | "mg";
|
|
63
162
|
has_batch_no: number;
|
|
64
163
|
create_new_batch: number;
|
|
@@ -90,86 +189,11 @@ export declare class ERPNextItem {
|
|
|
90
189
|
is_sub_contracted_item: number;
|
|
91
190
|
customer_code: string;
|
|
92
191
|
total_projected_qty: number;
|
|
93
|
-
barcodes: {
|
|
94
|
-
name: string;
|
|
95
|
-
doctype: string;
|
|
96
|
-
owner: string;
|
|
97
|
-
creation: string;
|
|
98
|
-
modified: string;
|
|
99
|
-
modified_by: string;
|
|
100
|
-
parent: string;
|
|
101
|
-
parentfield: string;
|
|
102
|
-
parenttype: string;
|
|
103
|
-
idx: number;
|
|
104
|
-
docstatus: number;
|
|
105
|
-
barcode: string;
|
|
106
|
-
barcode_type: string;
|
|
107
|
-
}[];
|
|
108
|
-
reorder_levels: any[];
|
|
109
|
-
uoms: {
|
|
110
|
-
name: string;
|
|
111
|
-
doctype: string;
|
|
112
|
-
owner: string;
|
|
113
|
-
creation: string;
|
|
114
|
-
modified: string;
|
|
115
|
-
modified_by: string;
|
|
116
|
-
parent: string;
|
|
117
|
-
parentfield: string;
|
|
118
|
-
parenttype: string;
|
|
119
|
-
idx: number;
|
|
120
|
-
docstatus: number;
|
|
121
|
-
uom: string;
|
|
122
|
-
conversion_factor: number;
|
|
123
|
-
}[];
|
|
124
|
-
attributes: any[];
|
|
125
|
-
item_defaults: {
|
|
126
|
-
name: string;
|
|
127
|
-
doctype: string;
|
|
128
|
-
owner: string;
|
|
129
|
-
creation: string;
|
|
130
|
-
modified: string;
|
|
131
|
-
modified_by: string;
|
|
132
|
-
parent: string;
|
|
133
|
-
parentfield: string;
|
|
134
|
-
parenttype: string;
|
|
135
|
-
idx: number;
|
|
136
|
-
docstatus: number;
|
|
137
|
-
company: string;
|
|
138
|
-
default_warehouse: string;
|
|
139
|
-
}[];
|
|
140
|
-
supplier_items: {
|
|
141
|
-
name: string;
|
|
142
|
-
doctype: string;
|
|
143
|
-
owner: string;
|
|
144
|
-
creation: string;
|
|
145
|
-
modified: string;
|
|
146
|
-
modified_by: string;
|
|
147
|
-
parent: string;
|
|
148
|
-
parentfield: string;
|
|
149
|
-
parenttype: string;
|
|
150
|
-
idx: number;
|
|
151
|
-
docstatus: number;
|
|
152
|
-
supplier: string;
|
|
153
|
-
supplier_part_no?: string | null | undefined;
|
|
154
|
-
}[];
|
|
155
|
-
customer_items: any[];
|
|
156
|
-
custom_certifications: {
|
|
157
|
-
name: string;
|
|
158
|
-
doctype: string;
|
|
159
|
-
owner: string;
|
|
160
|
-
creation: string;
|
|
161
|
-
modified: string;
|
|
162
|
-
modified_by: string;
|
|
163
|
-
parent: string;
|
|
164
|
-
parentfield: string;
|
|
165
|
-
parenttype: string;
|
|
166
|
-
idx: number;
|
|
167
|
-
docstatus: number;
|
|
168
|
-
certification: string;
|
|
169
|
-
}[];
|
|
170
192
|
custom_oversell_amount: number | null;
|
|
171
193
|
length?: number | null | undefined;
|
|
194
|
+
_user_tags?: string | undefined;
|
|
172
195
|
image?: string | null | undefined;
|
|
196
|
+
weight_per_unit?: number | null | undefined;
|
|
173
197
|
warehouse_category?: string | null | undefined;
|
|
174
198
|
ean?: string | null | undefined;
|
|
175
199
|
shipping_template?: string | null | undefined;
|
|
@@ -180,6 +204,7 @@ export declare class ERPNextItem {
|
|
|
180
204
|
shipping_height?: number | null | undefined;
|
|
181
205
|
packaging_weight_cardboard?: number | null | undefined;
|
|
182
206
|
packaging_weight_plastic?: number | null | undefined;
|
|
207
|
+
product_weight?: number | null | undefined;
|
|
183
208
|
fsc_status?: string | null | undefined;
|
|
184
209
|
custom_fsc_type_of_wood?: string | null | undefined;
|
|
185
210
|
custom_fsc_product_group?: string | null | undefined;
|
|
@@ -193,34 +218,34 @@ export declare class ERPNextItem {
|
|
|
193
218
|
custom_shopify_content_configuration?: string | null | undefined;
|
|
194
219
|
custom_compliance?: string | null | undefined;
|
|
195
220
|
custom_serviceportal_configuration?: string | null | undefined;
|
|
196
|
-
},
|
|
221
|
+
}, TSelectedFields[number]>[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
197
222
|
getById: ({ resourceId, priority, }: {
|
|
198
223
|
resourceId: string;
|
|
199
224
|
priority?: number;
|
|
200
225
|
}) => Promise<{
|
|
201
|
-
description: string;
|
|
202
226
|
name: string;
|
|
203
|
-
doctype: string;
|
|
204
227
|
owner: string;
|
|
205
228
|
creation: string;
|
|
206
229
|
modified: string;
|
|
207
230
|
modified_by: string;
|
|
208
231
|
idx: number;
|
|
209
232
|
docstatus: number;
|
|
210
|
-
|
|
233
|
+
doctype: string;
|
|
234
|
+
description: string;
|
|
235
|
+
disabled: 0 | 1;
|
|
211
236
|
naming_series: string;
|
|
212
237
|
item_code: string;
|
|
213
238
|
item_name: string;
|
|
214
239
|
item_group: string;
|
|
215
240
|
stock_uom: string;
|
|
216
241
|
grant_commission: number;
|
|
217
|
-
weight_per_unit: number;
|
|
218
242
|
weight_uom: "kg" | "g" | "mg";
|
|
219
243
|
taxes: any[];
|
|
220
244
|
override_base_name: number;
|
|
221
245
|
sync_from_warehouse: number;
|
|
222
|
-
allow_alternative_item:
|
|
223
|
-
is_stock_item:
|
|
246
|
+
allow_alternative_item: 0 | 1;
|
|
247
|
+
is_stock_item: 0 | 1;
|
|
248
|
+
custom_is_digital: 0 | 1;
|
|
224
249
|
include_item_in_manufacturing: number;
|
|
225
250
|
opening_stock: number;
|
|
226
251
|
valuation_rate: number;
|
|
@@ -239,7 +264,6 @@ export declare class ERPNextItem {
|
|
|
239
264
|
end_of_life: string;
|
|
240
265
|
default_material_request_type: string;
|
|
241
266
|
valuation_method: string;
|
|
242
|
-
product_weight: number;
|
|
243
267
|
product_weight_unit: "kg" | "g" | "mg";
|
|
244
268
|
has_batch_no: number;
|
|
245
269
|
create_new_batch: number;
|
|
@@ -273,84 +297,86 @@ export declare class ERPNextItem {
|
|
|
273
297
|
total_projected_qty: number;
|
|
274
298
|
barcodes: {
|
|
275
299
|
name: string;
|
|
276
|
-
doctype: string;
|
|
277
300
|
owner: string;
|
|
278
301
|
creation: string;
|
|
279
302
|
modified: string;
|
|
280
303
|
modified_by: string;
|
|
281
|
-
parent: string;
|
|
282
|
-
parentfield: string;
|
|
283
|
-
parenttype: string;
|
|
284
304
|
idx: number;
|
|
285
305
|
docstatus: number;
|
|
306
|
+
doctype: string;
|
|
307
|
+
parenttype: string;
|
|
308
|
+
parentfield: string;
|
|
286
309
|
barcode: string;
|
|
287
310
|
barcode_type: string;
|
|
311
|
+
_user_tags?: string | undefined;
|
|
288
312
|
}[];
|
|
289
313
|
reorder_levels: any[];
|
|
290
314
|
uoms: {
|
|
291
315
|
name: string;
|
|
292
|
-
doctype: string;
|
|
293
316
|
owner: string;
|
|
294
317
|
creation: string;
|
|
295
318
|
modified: string;
|
|
296
319
|
modified_by: string;
|
|
297
|
-
parent: string;
|
|
298
|
-
parentfield: string;
|
|
299
|
-
parenttype: string;
|
|
300
320
|
idx: number;
|
|
301
321
|
docstatus: number;
|
|
322
|
+
doctype: string;
|
|
323
|
+
parenttype: string;
|
|
324
|
+
parentfield: string;
|
|
302
325
|
uom: string;
|
|
303
326
|
conversion_factor: number;
|
|
327
|
+
_user_tags?: string | undefined;
|
|
304
328
|
}[];
|
|
305
329
|
attributes: any[];
|
|
306
330
|
item_defaults: {
|
|
307
331
|
name: string;
|
|
308
|
-
doctype: string;
|
|
309
332
|
owner: string;
|
|
310
333
|
creation: string;
|
|
311
334
|
modified: string;
|
|
312
335
|
modified_by: string;
|
|
313
|
-
parent: string;
|
|
314
|
-
parentfield: string;
|
|
315
|
-
parenttype: string;
|
|
316
336
|
idx: number;
|
|
317
337
|
docstatus: number;
|
|
338
|
+
doctype: string;
|
|
339
|
+
parenttype: string;
|
|
340
|
+
parentfield: string;
|
|
318
341
|
company: string;
|
|
319
342
|
default_warehouse: string;
|
|
343
|
+
_user_tags?: string | undefined;
|
|
320
344
|
}[];
|
|
321
345
|
supplier_items: {
|
|
322
346
|
name: string;
|
|
323
|
-
doctype: string;
|
|
324
347
|
owner: string;
|
|
325
348
|
creation: string;
|
|
326
349
|
modified: string;
|
|
327
350
|
modified_by: string;
|
|
328
|
-
parent: string;
|
|
329
|
-
parentfield: string;
|
|
330
|
-
parenttype: string;
|
|
331
351
|
idx: number;
|
|
332
352
|
docstatus: number;
|
|
353
|
+
doctype: string;
|
|
354
|
+
parenttype: string;
|
|
355
|
+
parentfield: string;
|
|
333
356
|
supplier: string;
|
|
357
|
+
_user_tags?: string | undefined;
|
|
334
358
|
supplier_part_no?: string | null | undefined;
|
|
335
359
|
}[];
|
|
336
360
|
customer_items: any[];
|
|
337
361
|
custom_certifications: {
|
|
338
362
|
name: string;
|
|
339
|
-
doctype: string;
|
|
340
363
|
owner: string;
|
|
341
364
|
creation: string;
|
|
342
365
|
modified: string;
|
|
343
366
|
modified_by: string;
|
|
344
|
-
parent: string;
|
|
345
|
-
parentfield: string;
|
|
346
|
-
parenttype: string;
|
|
347
367
|
idx: number;
|
|
348
368
|
docstatus: number;
|
|
369
|
+
doctype: string;
|
|
370
|
+
parenttype: string;
|
|
371
|
+
parentfield: string;
|
|
349
372
|
certification: string;
|
|
373
|
+
_user_tags?: string | undefined;
|
|
350
374
|
}[];
|
|
351
375
|
custom_oversell_amount: number | null;
|
|
352
376
|
length?: number | null | undefined;
|
|
377
|
+
_user_tags?: string | undefined;
|
|
353
378
|
image?: string | null | undefined;
|
|
379
|
+
weight_per_unit?: number | null | undefined;
|
|
354
380
|
warehouse_category?: string | null | undefined;
|
|
355
381
|
ean?: string | null | undefined;
|
|
356
382
|
shipping_template?: string | null | undefined;
|
|
@@ -361,6 +387,7 @@ export declare class ERPNextItem {
|
|
|
361
387
|
shipping_height?: number | null | undefined;
|
|
362
388
|
packaging_weight_cardboard?: number | null | undefined;
|
|
363
389
|
packaging_weight_plastic?: number | null | undefined;
|
|
390
|
+
product_weight?: number | null | undefined;
|
|
364
391
|
fsc_status?: string | null | undefined;
|
|
365
392
|
custom_fsc_type_of_wood?: string | null | undefined;
|
|
366
393
|
custom_fsc_product_group?: string | null | undefined;
|
|
@@ -377,28 +404,16 @@ export declare class ERPNextItem {
|
|
|
377
404
|
}>;
|
|
378
405
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
379
406
|
description: string;
|
|
380
|
-
name: string;
|
|
381
|
-
doctype: string;
|
|
382
|
-
owner: string;
|
|
383
|
-
creation: string;
|
|
384
|
-
modified: string;
|
|
385
|
-
modified_by: string;
|
|
386
|
-
idx: number;
|
|
387
|
-
docstatus: number;
|
|
388
|
-
disabled: number;
|
|
389
407
|
naming_series: string;
|
|
390
408
|
item_code: string;
|
|
391
409
|
item_name: string;
|
|
392
410
|
item_group: string;
|
|
393
411
|
stock_uom: string;
|
|
394
412
|
grant_commission: number;
|
|
395
|
-
weight_per_unit: number;
|
|
396
413
|
weight_uom: "kg" | "g" | "mg";
|
|
397
414
|
taxes: any[];
|
|
398
415
|
override_base_name: number;
|
|
399
416
|
sync_from_warehouse: number;
|
|
400
|
-
allow_alternative_item: number;
|
|
401
|
-
is_stock_item: number;
|
|
402
417
|
include_item_in_manufacturing: number;
|
|
403
418
|
opening_stock: number;
|
|
404
419
|
valuation_rate: number;
|
|
@@ -417,7 +432,6 @@ export declare class ERPNextItem {
|
|
|
417
432
|
end_of_life: string;
|
|
418
433
|
default_material_request_type: string;
|
|
419
434
|
valuation_method: string;
|
|
420
|
-
product_weight: number;
|
|
421
435
|
product_weight_unit: "kg" | "g" | "mg";
|
|
422
436
|
has_batch_no: number;
|
|
423
437
|
create_new_batch: number;
|
|
@@ -450,87 +464,37 @@ export declare class ERPNextItem {
|
|
|
450
464
|
customer_code: string;
|
|
451
465
|
total_projected_qty: number;
|
|
452
466
|
barcodes: {
|
|
453
|
-
name: string;
|
|
454
|
-
doctype: string;
|
|
455
|
-
owner: string;
|
|
456
|
-
creation: string;
|
|
457
|
-
modified: string;
|
|
458
|
-
modified_by: string;
|
|
459
|
-
parent: string;
|
|
460
|
-
parentfield: string;
|
|
461
|
-
parenttype: string;
|
|
462
|
-
idx: number;
|
|
463
|
-
docstatus: number;
|
|
464
467
|
barcode: string;
|
|
465
468
|
barcode_type: string;
|
|
466
469
|
}[];
|
|
467
470
|
reorder_levels: any[];
|
|
468
471
|
uoms: {
|
|
469
|
-
name: string;
|
|
470
|
-
doctype: string;
|
|
471
|
-
owner: string;
|
|
472
|
-
creation: string;
|
|
473
|
-
modified: string;
|
|
474
|
-
modified_by: string;
|
|
475
|
-
parent: string;
|
|
476
|
-
parentfield: string;
|
|
477
|
-
parenttype: string;
|
|
478
|
-
idx: number;
|
|
479
|
-
docstatus: number;
|
|
480
472
|
uom: string;
|
|
481
473
|
conversion_factor: number;
|
|
482
474
|
}[];
|
|
483
475
|
attributes: any[];
|
|
484
476
|
item_defaults: {
|
|
485
|
-
name: string;
|
|
486
|
-
doctype: string;
|
|
487
|
-
owner: string;
|
|
488
|
-
creation: string;
|
|
489
|
-
modified: string;
|
|
490
|
-
modified_by: string;
|
|
491
|
-
parent: string;
|
|
492
|
-
parentfield: string;
|
|
493
|
-
parenttype: string;
|
|
494
|
-
idx: number;
|
|
495
|
-
docstatus: number;
|
|
496
477
|
company: string;
|
|
497
478
|
default_warehouse: string;
|
|
498
479
|
}[];
|
|
499
480
|
supplier_items: {
|
|
500
|
-
name: string;
|
|
501
|
-
doctype: string;
|
|
502
|
-
owner: string;
|
|
503
|
-
creation: string;
|
|
504
|
-
modified: string;
|
|
505
|
-
modified_by: string;
|
|
506
|
-
parent: string;
|
|
507
|
-
parentfield: string;
|
|
508
|
-
parenttype: string;
|
|
509
|
-
idx: number;
|
|
510
|
-
docstatus: number;
|
|
511
481
|
supplier: string;
|
|
512
482
|
supplier_part_no?: string | null | undefined;
|
|
513
483
|
}[];
|
|
514
484
|
customer_items: any[];
|
|
515
485
|
custom_certifications: {
|
|
516
|
-
name: string;
|
|
517
|
-
doctype: string;
|
|
518
|
-
owner: string;
|
|
519
|
-
creation: string;
|
|
520
|
-
modified: string;
|
|
521
|
-
modified_by: string;
|
|
522
|
-
parent: string;
|
|
523
|
-
parentfield: string;
|
|
524
|
-
parenttype: string;
|
|
525
|
-
idx: number;
|
|
526
|
-
docstatus: number;
|
|
527
486
|
certification: string;
|
|
528
487
|
}[];
|
|
529
488
|
custom_oversell_amount: number | null;
|
|
530
489
|
length?: number | null | undefined;
|
|
490
|
+
disabled?: 0 | 1 | undefined;
|
|
531
491
|
image?: string | null | undefined;
|
|
492
|
+
weight_per_unit?: number | null | undefined;
|
|
532
493
|
warehouse_category?: string | null | undefined;
|
|
533
494
|
ean?: string | null | undefined;
|
|
495
|
+
allow_alternative_item?: 0 | 1 | undefined;
|
|
496
|
+
is_stock_item?: 0 | 1 | undefined;
|
|
497
|
+
custom_is_digital?: 0 | 1 | undefined;
|
|
534
498
|
shipping_template?: string | null | undefined;
|
|
535
499
|
width?: number | null | undefined;
|
|
536
500
|
height?: number | null | undefined;
|
|
@@ -539,6 +503,7 @@ export declare class ERPNextItem {
|
|
|
539
503
|
shipping_height?: number | null | undefined;
|
|
540
504
|
packaging_weight_cardboard?: number | null | undefined;
|
|
541
505
|
packaging_weight_plastic?: number | null | undefined;
|
|
506
|
+
product_weight?: number | null | undefined;
|
|
542
507
|
fsc_status?: string | null | undefined;
|
|
543
508
|
custom_fsc_type_of_wood?: string | null | undefined;
|
|
544
509
|
custom_fsc_product_group?: string | null | undefined;
|
|
@@ -552,35 +517,35 @@ export declare class ERPNextItem {
|
|
|
552
517
|
custom_shopify_content_configuration?: string | null | undefined;
|
|
553
518
|
custom_compliance?: string | null | undefined;
|
|
554
519
|
custom_serviceportal_configuration?: string | null | undefined;
|
|
555
|
-
}> : TInputModel extends z.ZodTypeAny ?
|
|
520
|
+
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
556
521
|
resourceId: string;
|
|
557
522
|
inputValidationModel?: TInputModel;
|
|
558
523
|
priority?: number;
|
|
559
524
|
body: TInput;
|
|
560
525
|
}) => Promise<{
|
|
561
|
-
description: string;
|
|
562
526
|
name: string;
|
|
563
|
-
doctype: string;
|
|
564
527
|
owner: string;
|
|
565
528
|
creation: string;
|
|
566
529
|
modified: string;
|
|
567
530
|
modified_by: string;
|
|
568
531
|
idx: number;
|
|
569
532
|
docstatus: number;
|
|
570
|
-
|
|
533
|
+
doctype: string;
|
|
534
|
+
description: string;
|
|
535
|
+
disabled: 0 | 1;
|
|
571
536
|
naming_series: string;
|
|
572
537
|
item_code: string;
|
|
573
538
|
item_name: string;
|
|
574
539
|
item_group: string;
|
|
575
540
|
stock_uom: string;
|
|
576
541
|
grant_commission: number;
|
|
577
|
-
weight_per_unit: number;
|
|
578
542
|
weight_uom: "kg" | "g" | "mg";
|
|
579
543
|
taxes: any[];
|
|
580
544
|
override_base_name: number;
|
|
581
545
|
sync_from_warehouse: number;
|
|
582
|
-
allow_alternative_item:
|
|
583
|
-
is_stock_item:
|
|
546
|
+
allow_alternative_item: 0 | 1;
|
|
547
|
+
is_stock_item: 0 | 1;
|
|
548
|
+
custom_is_digital: 0 | 1;
|
|
584
549
|
include_item_in_manufacturing: number;
|
|
585
550
|
opening_stock: number;
|
|
586
551
|
valuation_rate: number;
|
|
@@ -599,7 +564,6 @@ export declare class ERPNextItem {
|
|
|
599
564
|
end_of_life: string;
|
|
600
565
|
default_material_request_type: string;
|
|
601
566
|
valuation_method: string;
|
|
602
|
-
product_weight: number;
|
|
603
567
|
product_weight_unit: "kg" | "g" | "mg";
|
|
604
568
|
has_batch_no: number;
|
|
605
569
|
create_new_batch: number;
|
|
@@ -633,84 +597,86 @@ export declare class ERPNextItem {
|
|
|
633
597
|
total_projected_qty: number;
|
|
634
598
|
barcodes: {
|
|
635
599
|
name: string;
|
|
636
|
-
doctype: string;
|
|
637
600
|
owner: string;
|
|
638
601
|
creation: string;
|
|
639
602
|
modified: string;
|
|
640
603
|
modified_by: string;
|
|
641
|
-
parent: string;
|
|
642
|
-
parentfield: string;
|
|
643
|
-
parenttype: string;
|
|
644
604
|
idx: number;
|
|
645
605
|
docstatus: number;
|
|
606
|
+
doctype: string;
|
|
607
|
+
parenttype: string;
|
|
608
|
+
parentfield: string;
|
|
646
609
|
barcode: string;
|
|
647
610
|
barcode_type: string;
|
|
611
|
+
_user_tags?: string | undefined;
|
|
648
612
|
}[];
|
|
649
613
|
reorder_levels: any[];
|
|
650
614
|
uoms: {
|
|
651
615
|
name: string;
|
|
652
|
-
doctype: string;
|
|
653
616
|
owner: string;
|
|
654
617
|
creation: string;
|
|
655
618
|
modified: string;
|
|
656
619
|
modified_by: string;
|
|
657
|
-
parent: string;
|
|
658
|
-
parentfield: string;
|
|
659
|
-
parenttype: string;
|
|
660
620
|
idx: number;
|
|
661
621
|
docstatus: number;
|
|
622
|
+
doctype: string;
|
|
623
|
+
parenttype: string;
|
|
624
|
+
parentfield: string;
|
|
662
625
|
uom: string;
|
|
663
626
|
conversion_factor: number;
|
|
627
|
+
_user_tags?: string | undefined;
|
|
664
628
|
}[];
|
|
665
629
|
attributes: any[];
|
|
666
630
|
item_defaults: {
|
|
667
631
|
name: string;
|
|
668
|
-
doctype: string;
|
|
669
632
|
owner: string;
|
|
670
633
|
creation: string;
|
|
671
634
|
modified: string;
|
|
672
635
|
modified_by: string;
|
|
673
|
-
parent: string;
|
|
674
|
-
parentfield: string;
|
|
675
|
-
parenttype: string;
|
|
676
636
|
idx: number;
|
|
677
637
|
docstatus: number;
|
|
638
|
+
doctype: string;
|
|
639
|
+
parenttype: string;
|
|
640
|
+
parentfield: string;
|
|
678
641
|
company: string;
|
|
679
642
|
default_warehouse: string;
|
|
643
|
+
_user_tags?: string | undefined;
|
|
680
644
|
}[];
|
|
681
645
|
supplier_items: {
|
|
682
646
|
name: string;
|
|
683
|
-
doctype: string;
|
|
684
647
|
owner: string;
|
|
685
648
|
creation: string;
|
|
686
649
|
modified: string;
|
|
687
650
|
modified_by: string;
|
|
688
|
-
parent: string;
|
|
689
|
-
parentfield: string;
|
|
690
|
-
parenttype: string;
|
|
691
651
|
idx: number;
|
|
692
652
|
docstatus: number;
|
|
653
|
+
doctype: string;
|
|
654
|
+
parenttype: string;
|
|
655
|
+
parentfield: string;
|
|
693
656
|
supplier: string;
|
|
657
|
+
_user_tags?: string | undefined;
|
|
694
658
|
supplier_part_no?: string | null | undefined;
|
|
695
659
|
}[];
|
|
696
660
|
customer_items: any[];
|
|
697
661
|
custom_certifications: {
|
|
698
662
|
name: string;
|
|
699
|
-
doctype: string;
|
|
700
663
|
owner: string;
|
|
701
664
|
creation: string;
|
|
702
665
|
modified: string;
|
|
703
666
|
modified_by: string;
|
|
704
|
-
parent: string;
|
|
705
|
-
parentfield: string;
|
|
706
|
-
parenttype: string;
|
|
707
667
|
idx: number;
|
|
708
668
|
docstatus: number;
|
|
669
|
+
doctype: string;
|
|
670
|
+
parenttype: string;
|
|
671
|
+
parentfield: string;
|
|
709
672
|
certification: string;
|
|
673
|
+
_user_tags?: string | undefined;
|
|
710
674
|
}[];
|
|
711
675
|
custom_oversell_amount: number | null;
|
|
712
676
|
length?: number | null | undefined;
|
|
677
|
+
_user_tags?: string | undefined;
|
|
713
678
|
image?: string | null | undefined;
|
|
679
|
+
weight_per_unit?: number | null | undefined;
|
|
714
680
|
warehouse_category?: string | null | undefined;
|
|
715
681
|
ean?: string | null | undefined;
|
|
716
682
|
shipping_template?: string | null | undefined;
|
|
@@ -721,6 +687,7 @@ export declare class ERPNextItem {
|
|
|
721
687
|
shipping_height?: number | null | undefined;
|
|
722
688
|
packaging_weight_cardboard?: number | null | undefined;
|
|
723
689
|
packaging_weight_plastic?: number | null | undefined;
|
|
690
|
+
product_weight?: number | null | undefined;
|
|
724
691
|
fsc_status?: string | null | undefined;
|
|
725
692
|
custom_fsc_type_of_wood?: string | null | undefined;
|
|
726
693
|
custom_fsc_product_group?: string | null | undefined;
|
|
@@ -739,30 +706,18 @@ export declare class ERPNextItem {
|
|
|
739
706
|
resourceId: string;
|
|
740
707
|
priority?: number;
|
|
741
708
|
}) => Promise<z.TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
742
|
-
create: <TInput extends TInputModel extends undefined ?
|
|
709
|
+
create: <TInput extends TInputModel extends undefined ? {
|
|
743
710
|
description: string;
|
|
744
|
-
name: string;
|
|
745
|
-
doctype: string;
|
|
746
|
-
owner: string;
|
|
747
|
-
creation: string;
|
|
748
|
-
modified: string;
|
|
749
|
-
modified_by: string;
|
|
750
|
-
idx: number;
|
|
751
|
-
docstatus: number;
|
|
752
|
-
disabled: number;
|
|
753
711
|
naming_series: string;
|
|
754
712
|
item_code: string;
|
|
755
713
|
item_name: string;
|
|
756
714
|
item_group: string;
|
|
757
715
|
stock_uom: string;
|
|
758
716
|
grant_commission: number;
|
|
759
|
-
weight_per_unit: number;
|
|
760
717
|
weight_uom: "kg" | "g" | "mg";
|
|
761
718
|
taxes: any[];
|
|
762
719
|
override_base_name: number;
|
|
763
720
|
sync_from_warehouse: number;
|
|
764
|
-
allow_alternative_item: number;
|
|
765
|
-
is_stock_item: number;
|
|
766
721
|
include_item_in_manufacturing: number;
|
|
767
722
|
opening_stock: number;
|
|
768
723
|
valuation_rate: number;
|
|
@@ -781,7 +736,6 @@ export declare class ERPNextItem {
|
|
|
781
736
|
end_of_life: string;
|
|
782
737
|
default_material_request_type: string;
|
|
783
738
|
valuation_method: string;
|
|
784
|
-
product_weight: number;
|
|
785
739
|
product_weight_unit: "kg" | "g" | "mg";
|
|
786
740
|
has_batch_no: number;
|
|
787
741
|
create_new_batch: number;
|
|
@@ -814,87 +768,37 @@ export declare class ERPNextItem {
|
|
|
814
768
|
customer_code: string;
|
|
815
769
|
total_projected_qty: number;
|
|
816
770
|
barcodes: {
|
|
817
|
-
name: string;
|
|
818
|
-
doctype: string;
|
|
819
|
-
owner: string;
|
|
820
|
-
creation: string;
|
|
821
|
-
modified: string;
|
|
822
|
-
modified_by: string;
|
|
823
|
-
parent: string;
|
|
824
|
-
parentfield: string;
|
|
825
|
-
parenttype: string;
|
|
826
|
-
idx: number;
|
|
827
|
-
docstatus: number;
|
|
828
771
|
barcode: string;
|
|
829
772
|
barcode_type: string;
|
|
830
773
|
}[];
|
|
831
774
|
reorder_levels: any[];
|
|
832
775
|
uoms: {
|
|
833
|
-
name: string;
|
|
834
|
-
doctype: string;
|
|
835
|
-
owner: string;
|
|
836
|
-
creation: string;
|
|
837
|
-
modified: string;
|
|
838
|
-
modified_by: string;
|
|
839
|
-
parent: string;
|
|
840
|
-
parentfield: string;
|
|
841
|
-
parenttype: string;
|
|
842
|
-
idx: number;
|
|
843
|
-
docstatus: number;
|
|
844
776
|
uom: string;
|
|
845
777
|
conversion_factor: number;
|
|
846
778
|
}[];
|
|
847
779
|
attributes: any[];
|
|
848
780
|
item_defaults: {
|
|
849
|
-
name: string;
|
|
850
|
-
doctype: string;
|
|
851
|
-
owner: string;
|
|
852
|
-
creation: string;
|
|
853
|
-
modified: string;
|
|
854
|
-
modified_by: string;
|
|
855
|
-
parent: string;
|
|
856
|
-
parentfield: string;
|
|
857
|
-
parenttype: string;
|
|
858
|
-
idx: number;
|
|
859
|
-
docstatus: number;
|
|
860
781
|
company: string;
|
|
861
782
|
default_warehouse: string;
|
|
862
783
|
}[];
|
|
863
784
|
supplier_items: {
|
|
864
|
-
name: string;
|
|
865
|
-
doctype: string;
|
|
866
|
-
owner: string;
|
|
867
|
-
creation: string;
|
|
868
|
-
modified: string;
|
|
869
|
-
modified_by: string;
|
|
870
|
-
parent: string;
|
|
871
|
-
parentfield: string;
|
|
872
|
-
parenttype: string;
|
|
873
|
-
idx: number;
|
|
874
|
-
docstatus: number;
|
|
875
785
|
supplier: string;
|
|
876
786
|
supplier_part_no?: string | null | undefined;
|
|
877
787
|
}[];
|
|
878
788
|
customer_items: any[];
|
|
879
789
|
custom_certifications: {
|
|
880
|
-
name: string;
|
|
881
|
-
doctype: string;
|
|
882
|
-
owner: string;
|
|
883
|
-
creation: string;
|
|
884
|
-
modified: string;
|
|
885
|
-
modified_by: string;
|
|
886
|
-
parent: string;
|
|
887
|
-
parentfield: string;
|
|
888
|
-
parenttype: string;
|
|
889
|
-
idx: number;
|
|
890
|
-
docstatus: number;
|
|
891
790
|
certification: string;
|
|
892
791
|
}[];
|
|
893
792
|
custom_oversell_amount: number | null;
|
|
894
793
|
length?: number | null | undefined;
|
|
794
|
+
disabled?: 0 | 1 | undefined;
|
|
895
795
|
image?: string | null | undefined;
|
|
796
|
+
weight_per_unit?: number | null | undefined;
|
|
896
797
|
warehouse_category?: string | null | undefined;
|
|
897
798
|
ean?: string | null | undefined;
|
|
799
|
+
allow_alternative_item?: 0 | 1 | undefined;
|
|
800
|
+
is_stock_item?: 0 | 1 | undefined;
|
|
801
|
+
custom_is_digital?: 0 | 1 | undefined;
|
|
898
802
|
shipping_template?: string | null | undefined;
|
|
899
803
|
width?: number | null | undefined;
|
|
900
804
|
height?: number | null | undefined;
|
|
@@ -903,6 +807,7 @@ export declare class ERPNextItem {
|
|
|
903
807
|
shipping_height?: number | null | undefined;
|
|
904
808
|
packaging_weight_cardboard?: number | null | undefined;
|
|
905
809
|
packaging_weight_plastic?: number | null | undefined;
|
|
810
|
+
product_weight?: number | null | undefined;
|
|
906
811
|
fsc_status?: string | null | undefined;
|
|
907
812
|
custom_fsc_type_of_wood?: string | null | undefined;
|
|
908
813
|
custom_fsc_product_group?: string | null | undefined;
|
|
@@ -916,35 +821,35 @@ export declare class ERPNextItem {
|
|
|
916
821
|
custom_shopify_content_configuration?: string | null | undefined;
|
|
917
822
|
custom_compliance?: string | null | undefined;
|
|
918
823
|
custom_serviceportal_configuration?: string | null | undefined;
|
|
919
|
-
}
|
|
824
|
+
} : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
|
|
920
825
|
inputValidationModel?: TInputModel;
|
|
921
826
|
body: TInput;
|
|
922
827
|
params?: Record<string, string>;
|
|
923
828
|
priority?: number;
|
|
924
829
|
}) => Promise<{
|
|
925
|
-
description: string;
|
|
926
830
|
name: string;
|
|
927
|
-
doctype: string;
|
|
928
831
|
owner: string;
|
|
929
832
|
creation: string;
|
|
930
833
|
modified: string;
|
|
931
834
|
modified_by: string;
|
|
932
835
|
idx: number;
|
|
933
836
|
docstatus: number;
|
|
934
|
-
|
|
837
|
+
doctype: string;
|
|
838
|
+
description: string;
|
|
839
|
+
disabled: 0 | 1;
|
|
935
840
|
naming_series: string;
|
|
936
841
|
item_code: string;
|
|
937
842
|
item_name: string;
|
|
938
843
|
item_group: string;
|
|
939
844
|
stock_uom: string;
|
|
940
845
|
grant_commission: number;
|
|
941
|
-
weight_per_unit: number;
|
|
942
846
|
weight_uom: "kg" | "g" | "mg";
|
|
943
847
|
taxes: any[];
|
|
944
848
|
override_base_name: number;
|
|
945
849
|
sync_from_warehouse: number;
|
|
946
|
-
allow_alternative_item:
|
|
947
|
-
is_stock_item:
|
|
850
|
+
allow_alternative_item: 0 | 1;
|
|
851
|
+
is_stock_item: 0 | 1;
|
|
852
|
+
custom_is_digital: 0 | 1;
|
|
948
853
|
include_item_in_manufacturing: number;
|
|
949
854
|
opening_stock: number;
|
|
950
855
|
valuation_rate: number;
|
|
@@ -963,7 +868,6 @@ export declare class ERPNextItem {
|
|
|
963
868
|
end_of_life: string;
|
|
964
869
|
default_material_request_type: string;
|
|
965
870
|
valuation_method: string;
|
|
966
|
-
product_weight: number;
|
|
967
871
|
product_weight_unit: "kg" | "g" | "mg";
|
|
968
872
|
has_batch_no: number;
|
|
969
873
|
create_new_batch: number;
|
|
@@ -997,84 +901,86 @@ export declare class ERPNextItem {
|
|
|
997
901
|
total_projected_qty: number;
|
|
998
902
|
barcodes: {
|
|
999
903
|
name: string;
|
|
1000
|
-
doctype: string;
|
|
1001
904
|
owner: string;
|
|
1002
905
|
creation: string;
|
|
1003
906
|
modified: string;
|
|
1004
907
|
modified_by: string;
|
|
1005
|
-
parent: string;
|
|
1006
|
-
parentfield: string;
|
|
1007
|
-
parenttype: string;
|
|
1008
908
|
idx: number;
|
|
1009
909
|
docstatus: number;
|
|
910
|
+
doctype: string;
|
|
911
|
+
parenttype: string;
|
|
912
|
+
parentfield: string;
|
|
1010
913
|
barcode: string;
|
|
1011
914
|
barcode_type: string;
|
|
915
|
+
_user_tags?: string | undefined;
|
|
1012
916
|
}[];
|
|
1013
917
|
reorder_levels: any[];
|
|
1014
918
|
uoms: {
|
|
1015
919
|
name: string;
|
|
1016
|
-
doctype: string;
|
|
1017
920
|
owner: string;
|
|
1018
921
|
creation: string;
|
|
1019
922
|
modified: string;
|
|
1020
923
|
modified_by: string;
|
|
1021
|
-
parent: string;
|
|
1022
|
-
parentfield: string;
|
|
1023
|
-
parenttype: string;
|
|
1024
924
|
idx: number;
|
|
1025
925
|
docstatus: number;
|
|
926
|
+
doctype: string;
|
|
927
|
+
parenttype: string;
|
|
928
|
+
parentfield: string;
|
|
1026
929
|
uom: string;
|
|
1027
930
|
conversion_factor: number;
|
|
931
|
+
_user_tags?: string | undefined;
|
|
1028
932
|
}[];
|
|
1029
933
|
attributes: any[];
|
|
1030
934
|
item_defaults: {
|
|
1031
935
|
name: string;
|
|
1032
|
-
doctype: string;
|
|
1033
936
|
owner: string;
|
|
1034
937
|
creation: string;
|
|
1035
938
|
modified: string;
|
|
1036
939
|
modified_by: string;
|
|
1037
|
-
parent: string;
|
|
1038
|
-
parentfield: string;
|
|
1039
|
-
parenttype: string;
|
|
1040
940
|
idx: number;
|
|
1041
941
|
docstatus: number;
|
|
942
|
+
doctype: string;
|
|
943
|
+
parenttype: string;
|
|
944
|
+
parentfield: string;
|
|
1042
945
|
company: string;
|
|
1043
946
|
default_warehouse: string;
|
|
947
|
+
_user_tags?: string | undefined;
|
|
1044
948
|
}[];
|
|
1045
949
|
supplier_items: {
|
|
1046
950
|
name: string;
|
|
1047
|
-
doctype: string;
|
|
1048
951
|
owner: string;
|
|
1049
952
|
creation: string;
|
|
1050
953
|
modified: string;
|
|
1051
954
|
modified_by: string;
|
|
1052
|
-
parent: string;
|
|
1053
|
-
parentfield: string;
|
|
1054
|
-
parenttype: string;
|
|
1055
955
|
idx: number;
|
|
1056
956
|
docstatus: number;
|
|
957
|
+
doctype: string;
|
|
958
|
+
parenttype: string;
|
|
959
|
+
parentfield: string;
|
|
1057
960
|
supplier: string;
|
|
961
|
+
_user_tags?: string | undefined;
|
|
1058
962
|
supplier_part_no?: string | null | undefined;
|
|
1059
963
|
}[];
|
|
1060
964
|
customer_items: any[];
|
|
1061
965
|
custom_certifications: {
|
|
1062
966
|
name: string;
|
|
1063
|
-
doctype: string;
|
|
1064
967
|
owner: string;
|
|
1065
968
|
creation: string;
|
|
1066
969
|
modified: string;
|
|
1067
970
|
modified_by: string;
|
|
1068
|
-
parent: string;
|
|
1069
|
-
parentfield: string;
|
|
1070
|
-
parenttype: string;
|
|
1071
971
|
idx: number;
|
|
1072
972
|
docstatus: number;
|
|
973
|
+
doctype: string;
|
|
974
|
+
parenttype: string;
|
|
975
|
+
parentfield: string;
|
|
1073
976
|
certification: string;
|
|
977
|
+
_user_tags?: string | undefined;
|
|
1074
978
|
}[];
|
|
1075
979
|
custom_oversell_amount: number | null;
|
|
1076
980
|
length?: number | null | undefined;
|
|
981
|
+
_user_tags?: string | undefined;
|
|
1077
982
|
image?: string | null | undefined;
|
|
983
|
+
weight_per_unit?: number | null | undefined;
|
|
1078
984
|
warehouse_category?: string | null | undefined;
|
|
1079
985
|
ean?: string | null | undefined;
|
|
1080
986
|
shipping_template?: string | null | undefined;
|
|
@@ -1085,6 +991,7 @@ export declare class ERPNextItem {
|
|
|
1085
991
|
shipping_height?: number | null | undefined;
|
|
1086
992
|
packaging_weight_cardboard?: number | null | undefined;
|
|
1087
993
|
packaging_weight_plastic?: number | null | undefined;
|
|
994
|
+
product_weight?: number | null | undefined;
|
|
1088
995
|
fsc_status?: string | null | undefined;
|
|
1089
996
|
custom_fsc_type_of_wood?: string | null | undefined;
|
|
1090
997
|
custom_fsc_product_group?: string | null | undefined;
|