erpnext-queue-client 1.39.2 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +3 -6
- 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 +161 -4
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +16 -1
- package/dist/erpnext/doctypes/address.d.ts +160 -225
- package/dist/erpnext/doctypes/address.js +0 -2
- package/dist/erpnext/doctypes/contact.d.ts +157 -314
- package/dist/erpnext/doctypes/contact.js +1 -1
- package/dist/erpnext/doctypes/deliveryNote.d.ts +705 -505
- package/dist/erpnext/doctypes/deliveryNote.js +4 -10
- package/dist/erpnext/doctypes/item.d.ts +231 -324
- package/dist/erpnext/doctypes/paymentEntry.d.ts +820 -0
- package/dist/erpnext/doctypes/paymentEntry.js +72 -0
- package/dist/erpnext/doctypes/productBundle.d.ts +48 -58
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +717 -745
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +282 -332
- package/dist/erpnext/doctypes/salesInvoice.d.ts +3334 -0
- package/dist/erpnext/doctypes/salesInvoice.js +72 -0
- package/dist/erpnext/doctypes/servicecase.d.ts +191 -134
- package/dist/erpnext/doctypes/servicecase.js +4 -6
- package/dist/erpnext/doctypes/shipment.d.ts +193 -251
- 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/ConsolidatedCustomsInvoice.d.ts +26 -138
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.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 +125 -1168
- package/dist/erpnext/model/DeliveryNote.js +5 -51
- package/dist/erpnext/model/DispatchRun.d.ts +4 -110
- package/dist/erpnext/model/DispatchRun.js +1 -30
- 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 +160 -2
- package/dist/erpnext/model/DocTypeHelpers.js +124 -1
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +137 -0
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +42 -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 +488 -1847
- package/dist/erpnext/model/Item.js +18 -142
- package/dist/erpnext/model/ItemTaxTemplate.d.ts +57 -0
- package/dist/erpnext/model/ItemTaxTemplate.js +25 -0
- 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 +302 -122
- package/dist/erpnext/model/PaymentEntry.js +52 -48
- 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 +319 -389
- package/dist/erpnext/model/PurchaseInvoice.js +5 -24
- package/dist/erpnext/model/PurchaseOrder.d.ts +38 -184
- package/dist/erpnext/model/PurchaseOrder.js +0 -34
- package/dist/erpnext/model/Receipt.d.ts +32 -123
- package/dist/erpnext/model/Receipt.js +2 -25
- package/dist/erpnext/model/ReceiptDraft.d.ts +28 -70
- package/dist/erpnext/model/ReceiptDraft.js +2 -12
- package/dist/erpnext/model/Report.d.ts +0 -40
- package/dist/erpnext/model/Report.js +0 -8
- package/dist/erpnext/model/SalesInvoice.d.ts +2445 -0
- package/dist/erpnext/model/SalesInvoice.js +330 -0
- package/dist/erpnext/model/SalesOrder.d.ts +1061 -0
- package/dist/erpnext/model/SalesOrder.js +272 -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 +283 -728
- package/dist/erpnext/model/Servicecase.js +30 -108
- 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 +27 -452
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +16 -47
- package/dist/erpnext/model/Shipment.d.ts +18 -715
- package/dist/erpnext/model/Shipment.js +1 -69
- package/dist/erpnext/model/ShippingFees.d.ts +2 -2
- 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 +0 -40
- package/dist/erpnext/model/Stock.js +0 -8
- package/dist/erpnext/model/StockEntry.d.ts +14 -47
- 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/TaxCategory.d.ts +20 -0
- package/dist/erpnext/model/TaxCategory.js +16 -0
- 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 +34 -23
- package/dist/index.d.ts +23 -11
- package/dist/index.js +31 -12
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +261 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/zodContextOptionals.d.ts +14 -0
- package/dist/utils/zodContextOptionals.js +45 -0
- package/dist/utils/zodUtils.js +16 -3
- package/package.json +6 -1
|
@@ -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 ("description" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "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 ["*"] ? {
|
|
20
22
|
description: string;
|
|
23
|
+
docstatus: number;
|
|
21
24
|
name: string;
|
|
22
|
-
doctype: string;
|
|
23
25
|
owner: string;
|
|
24
26
|
creation: string;
|
|
25
27
|
modified: string;
|
|
26
28
|
modified_by: string;
|
|
27
29
|
idx: number;
|
|
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 | null | 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[] ? { [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 ("description" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "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") ? {
|
|
122
|
+
description: string;
|
|
28
123
|
docstatus: number;
|
|
29
|
-
|
|
124
|
+
name: string;
|
|
125
|
+
owner: string;
|
|
126
|
+
creation: string;
|
|
127
|
+
modified: string;
|
|
128
|
+
modified_by: string;
|
|
129
|
+
idx: number;
|
|
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 | null | 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
|
+
}[(("description" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "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")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : 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
226
|
description: string;
|
|
227
|
+
docstatus: number;
|
|
202
228
|
name: string;
|
|
203
|
-
doctype: string;
|
|
204
229
|
owner: string;
|
|
205
230
|
creation: string;
|
|
206
231
|
modified: string;
|
|
207
232
|
modified_by: string;
|
|
208
233
|
idx: number;
|
|
209
|
-
|
|
210
|
-
disabled:
|
|
234
|
+
doctype: 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;
|
|
@@ -272,85 +296,87 @@ export declare class ERPNextItem {
|
|
|
272
296
|
customer_code: string;
|
|
273
297
|
total_projected_qty: number;
|
|
274
298
|
barcodes: {
|
|
299
|
+
docstatus: number;
|
|
275
300
|
name: string;
|
|
276
|
-
doctype: string;
|
|
277
301
|
owner: string;
|
|
278
302
|
creation: string;
|
|
279
303
|
modified: string;
|
|
280
304
|
modified_by: string;
|
|
281
|
-
parent: string;
|
|
282
|
-
parentfield: string;
|
|
283
|
-
parenttype: string;
|
|
284
305
|
idx: number;
|
|
285
|
-
|
|
306
|
+
doctype: string;
|
|
307
|
+
parenttype: string;
|
|
308
|
+
parentfield: string;
|
|
286
309
|
barcode: string;
|
|
287
310
|
barcode_type: string;
|
|
311
|
+
_user_tags?: string | null | undefined;
|
|
288
312
|
}[];
|
|
289
313
|
reorder_levels: any[];
|
|
290
314
|
uoms: {
|
|
315
|
+
docstatus: number;
|
|
291
316
|
name: string;
|
|
292
|
-
doctype: string;
|
|
293
317
|
owner: string;
|
|
294
318
|
creation: string;
|
|
295
319
|
modified: string;
|
|
296
320
|
modified_by: string;
|
|
297
|
-
parent: string;
|
|
298
|
-
parentfield: string;
|
|
299
|
-
parenttype: string;
|
|
300
321
|
idx: number;
|
|
301
|
-
|
|
322
|
+
doctype: string;
|
|
323
|
+
parenttype: string;
|
|
324
|
+
parentfield: string;
|
|
302
325
|
uom: string;
|
|
303
326
|
conversion_factor: number;
|
|
327
|
+
_user_tags?: string | null | undefined;
|
|
304
328
|
}[];
|
|
305
329
|
attributes: any[];
|
|
306
330
|
item_defaults: {
|
|
331
|
+
docstatus: number;
|
|
307
332
|
name: string;
|
|
308
|
-
doctype: string;
|
|
309
333
|
owner: string;
|
|
310
334
|
creation: string;
|
|
311
335
|
modified: string;
|
|
312
336
|
modified_by: string;
|
|
313
|
-
parent: string;
|
|
314
|
-
parentfield: string;
|
|
315
|
-
parenttype: string;
|
|
316
337
|
idx: number;
|
|
317
|
-
|
|
338
|
+
doctype: string;
|
|
339
|
+
parenttype: string;
|
|
340
|
+
parentfield: string;
|
|
318
341
|
company: string;
|
|
319
342
|
default_warehouse: string;
|
|
343
|
+
_user_tags?: string | null | undefined;
|
|
320
344
|
}[];
|
|
321
345
|
supplier_items: {
|
|
346
|
+
docstatus: number;
|
|
322
347
|
name: string;
|
|
323
|
-
doctype: string;
|
|
324
348
|
owner: string;
|
|
325
349
|
creation: string;
|
|
326
350
|
modified: string;
|
|
327
351
|
modified_by: string;
|
|
328
|
-
parent: string;
|
|
329
|
-
parentfield: string;
|
|
330
|
-
parenttype: string;
|
|
331
352
|
idx: number;
|
|
332
|
-
|
|
353
|
+
doctype: string;
|
|
354
|
+
parenttype: string;
|
|
355
|
+
parentfield: string;
|
|
333
356
|
supplier: string;
|
|
357
|
+
_user_tags?: string | null | undefined;
|
|
334
358
|
supplier_part_no?: string | null | undefined;
|
|
335
359
|
}[];
|
|
336
360
|
customer_items: any[];
|
|
337
361
|
custom_certifications: {
|
|
362
|
+
docstatus: number;
|
|
338
363
|
name: string;
|
|
339
|
-
doctype: string;
|
|
340
364
|
owner: string;
|
|
341
365
|
creation: string;
|
|
342
366
|
modified: string;
|
|
343
367
|
modified_by: string;
|
|
344
|
-
parent: string;
|
|
345
|
-
parentfield: string;
|
|
346
|
-
parenttype: string;
|
|
347
368
|
idx: number;
|
|
348
|
-
|
|
369
|
+
doctype: string;
|
|
370
|
+
parenttype: string;
|
|
371
|
+
parentfield: string;
|
|
349
372
|
certification: string;
|
|
373
|
+
_user_tags?: string | null | undefined;
|
|
350
374
|
}[];
|
|
351
375
|
custom_oversell_amount: number | null;
|
|
352
376
|
length?: number | null | undefined;
|
|
377
|
+
_user_tags?: string | null | 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;
|
|
@@ -374,31 +401,19 @@ export declare class ERPNextItem {
|
|
|
374
401
|
custom_shopify_content_configuration?: string | null | undefined;
|
|
375
402
|
custom_compliance?: string | null | undefined;
|
|
376
403
|
custom_serviceportal_configuration?: string | null | undefined;
|
|
377
|
-
}>;
|
|
404
|
+
} | undefined>;
|
|
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
526
|
description: string;
|
|
527
|
+
docstatus: number;
|
|
562
528
|
name: string;
|
|
563
|
-
doctype: string;
|
|
564
529
|
owner: string;
|
|
565
530
|
creation: string;
|
|
566
531
|
modified: string;
|
|
567
532
|
modified_by: string;
|
|
568
533
|
idx: number;
|
|
569
|
-
|
|
570
|
-
disabled:
|
|
534
|
+
doctype: 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;
|
|
@@ -632,85 +596,87 @@ export declare class ERPNextItem {
|
|
|
632
596
|
customer_code: string;
|
|
633
597
|
total_projected_qty: number;
|
|
634
598
|
barcodes: {
|
|
599
|
+
docstatus: number;
|
|
635
600
|
name: string;
|
|
636
|
-
doctype: string;
|
|
637
601
|
owner: string;
|
|
638
602
|
creation: string;
|
|
639
603
|
modified: string;
|
|
640
604
|
modified_by: string;
|
|
641
|
-
parent: string;
|
|
642
|
-
parentfield: string;
|
|
643
|
-
parenttype: string;
|
|
644
605
|
idx: number;
|
|
645
|
-
|
|
606
|
+
doctype: string;
|
|
607
|
+
parenttype: string;
|
|
608
|
+
parentfield: string;
|
|
646
609
|
barcode: string;
|
|
647
610
|
barcode_type: string;
|
|
611
|
+
_user_tags?: string | null | undefined;
|
|
648
612
|
}[];
|
|
649
613
|
reorder_levels: any[];
|
|
650
614
|
uoms: {
|
|
615
|
+
docstatus: number;
|
|
651
616
|
name: string;
|
|
652
|
-
doctype: string;
|
|
653
617
|
owner: string;
|
|
654
618
|
creation: string;
|
|
655
619
|
modified: string;
|
|
656
620
|
modified_by: string;
|
|
657
|
-
parent: string;
|
|
658
|
-
parentfield: string;
|
|
659
|
-
parenttype: string;
|
|
660
621
|
idx: number;
|
|
661
|
-
|
|
622
|
+
doctype: string;
|
|
623
|
+
parenttype: string;
|
|
624
|
+
parentfield: string;
|
|
662
625
|
uom: string;
|
|
663
626
|
conversion_factor: number;
|
|
627
|
+
_user_tags?: string | null | undefined;
|
|
664
628
|
}[];
|
|
665
629
|
attributes: any[];
|
|
666
630
|
item_defaults: {
|
|
631
|
+
docstatus: number;
|
|
667
632
|
name: string;
|
|
668
|
-
doctype: string;
|
|
669
633
|
owner: string;
|
|
670
634
|
creation: string;
|
|
671
635
|
modified: string;
|
|
672
636
|
modified_by: string;
|
|
673
|
-
parent: string;
|
|
674
|
-
parentfield: string;
|
|
675
|
-
parenttype: string;
|
|
676
637
|
idx: number;
|
|
677
|
-
|
|
638
|
+
doctype: string;
|
|
639
|
+
parenttype: string;
|
|
640
|
+
parentfield: string;
|
|
678
641
|
company: string;
|
|
679
642
|
default_warehouse: string;
|
|
643
|
+
_user_tags?: string | null | undefined;
|
|
680
644
|
}[];
|
|
681
645
|
supplier_items: {
|
|
646
|
+
docstatus: number;
|
|
682
647
|
name: string;
|
|
683
|
-
doctype: string;
|
|
684
648
|
owner: string;
|
|
685
649
|
creation: string;
|
|
686
650
|
modified: string;
|
|
687
651
|
modified_by: string;
|
|
688
|
-
parent: string;
|
|
689
|
-
parentfield: string;
|
|
690
|
-
parenttype: string;
|
|
691
652
|
idx: number;
|
|
692
|
-
|
|
653
|
+
doctype: string;
|
|
654
|
+
parenttype: string;
|
|
655
|
+
parentfield: string;
|
|
693
656
|
supplier: string;
|
|
657
|
+
_user_tags?: string | null | undefined;
|
|
694
658
|
supplier_part_no?: string | null | undefined;
|
|
695
659
|
}[];
|
|
696
660
|
customer_items: any[];
|
|
697
661
|
custom_certifications: {
|
|
662
|
+
docstatus: number;
|
|
698
663
|
name: string;
|
|
699
|
-
doctype: string;
|
|
700
664
|
owner: string;
|
|
701
665
|
creation: string;
|
|
702
666
|
modified: string;
|
|
703
667
|
modified_by: string;
|
|
704
|
-
parent: string;
|
|
705
|
-
parentfield: string;
|
|
706
|
-
parenttype: string;
|
|
707
668
|
idx: number;
|
|
708
|
-
|
|
669
|
+
doctype: string;
|
|
670
|
+
parenttype: string;
|
|
671
|
+
parentfield: string;
|
|
709
672
|
certification: string;
|
|
673
|
+
_user_tags?: string | null | undefined;
|
|
710
674
|
}[];
|
|
711
675
|
custom_oversell_amount: number | null;
|
|
712
676
|
length?: number | null | undefined;
|
|
677
|
+
_user_tags?: string | null | 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
830
|
description: string;
|
|
831
|
+
docstatus: number;
|
|
926
832
|
name: string;
|
|
927
|
-
doctype: string;
|
|
928
833
|
owner: string;
|
|
929
834
|
creation: string;
|
|
930
835
|
modified: string;
|
|
931
836
|
modified_by: string;
|
|
932
837
|
idx: number;
|
|
933
|
-
|
|
934
|
-
disabled:
|
|
838
|
+
doctype: 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;
|
|
@@ -996,85 +900,87 @@ export declare class ERPNextItem {
|
|
|
996
900
|
customer_code: string;
|
|
997
901
|
total_projected_qty: number;
|
|
998
902
|
barcodes: {
|
|
903
|
+
docstatus: number;
|
|
999
904
|
name: string;
|
|
1000
|
-
doctype: string;
|
|
1001
905
|
owner: string;
|
|
1002
906
|
creation: string;
|
|
1003
907
|
modified: string;
|
|
1004
908
|
modified_by: string;
|
|
1005
|
-
parent: string;
|
|
1006
|
-
parentfield: string;
|
|
1007
|
-
parenttype: string;
|
|
1008
909
|
idx: number;
|
|
1009
|
-
|
|
910
|
+
doctype: string;
|
|
911
|
+
parenttype: string;
|
|
912
|
+
parentfield: string;
|
|
1010
913
|
barcode: string;
|
|
1011
914
|
barcode_type: string;
|
|
915
|
+
_user_tags?: string | null | undefined;
|
|
1012
916
|
}[];
|
|
1013
917
|
reorder_levels: any[];
|
|
1014
918
|
uoms: {
|
|
919
|
+
docstatus: number;
|
|
1015
920
|
name: string;
|
|
1016
|
-
doctype: string;
|
|
1017
921
|
owner: string;
|
|
1018
922
|
creation: string;
|
|
1019
923
|
modified: string;
|
|
1020
924
|
modified_by: string;
|
|
1021
|
-
parent: string;
|
|
1022
|
-
parentfield: string;
|
|
1023
|
-
parenttype: string;
|
|
1024
925
|
idx: number;
|
|
1025
|
-
|
|
926
|
+
doctype: string;
|
|
927
|
+
parenttype: string;
|
|
928
|
+
parentfield: string;
|
|
1026
929
|
uom: string;
|
|
1027
930
|
conversion_factor: number;
|
|
931
|
+
_user_tags?: string | null | undefined;
|
|
1028
932
|
}[];
|
|
1029
933
|
attributes: any[];
|
|
1030
934
|
item_defaults: {
|
|
935
|
+
docstatus: number;
|
|
1031
936
|
name: string;
|
|
1032
|
-
doctype: string;
|
|
1033
937
|
owner: string;
|
|
1034
938
|
creation: string;
|
|
1035
939
|
modified: string;
|
|
1036
940
|
modified_by: string;
|
|
1037
|
-
parent: string;
|
|
1038
|
-
parentfield: string;
|
|
1039
|
-
parenttype: string;
|
|
1040
941
|
idx: number;
|
|
1041
|
-
|
|
942
|
+
doctype: string;
|
|
943
|
+
parenttype: string;
|
|
944
|
+
parentfield: string;
|
|
1042
945
|
company: string;
|
|
1043
946
|
default_warehouse: string;
|
|
947
|
+
_user_tags?: string | null | undefined;
|
|
1044
948
|
}[];
|
|
1045
949
|
supplier_items: {
|
|
950
|
+
docstatus: number;
|
|
1046
951
|
name: string;
|
|
1047
|
-
doctype: string;
|
|
1048
952
|
owner: string;
|
|
1049
953
|
creation: string;
|
|
1050
954
|
modified: string;
|
|
1051
955
|
modified_by: string;
|
|
1052
|
-
parent: string;
|
|
1053
|
-
parentfield: string;
|
|
1054
|
-
parenttype: string;
|
|
1055
956
|
idx: number;
|
|
1056
|
-
|
|
957
|
+
doctype: string;
|
|
958
|
+
parenttype: string;
|
|
959
|
+
parentfield: string;
|
|
1057
960
|
supplier: string;
|
|
961
|
+
_user_tags?: string | null | undefined;
|
|
1058
962
|
supplier_part_no?: string | null | undefined;
|
|
1059
963
|
}[];
|
|
1060
964
|
customer_items: any[];
|
|
1061
965
|
custom_certifications: {
|
|
966
|
+
docstatus: number;
|
|
1062
967
|
name: string;
|
|
1063
|
-
doctype: string;
|
|
1064
968
|
owner: string;
|
|
1065
969
|
creation: string;
|
|
1066
970
|
modified: string;
|
|
1067
971
|
modified_by: string;
|
|
1068
|
-
parent: string;
|
|
1069
|
-
parentfield: string;
|
|
1070
|
-
parenttype: string;
|
|
1071
972
|
idx: number;
|
|
1072
|
-
|
|
973
|
+
doctype: string;
|
|
974
|
+
parenttype: string;
|
|
975
|
+
parentfield: string;
|
|
1073
976
|
certification: string;
|
|
977
|
+
_user_tags?: string | null | undefined;
|
|
1074
978
|
}[];
|
|
1075
979
|
custom_oversell_amount: number | null;
|
|
1076
980
|
length?: number | null | undefined;
|
|
981
|
+
_user_tags?: string | null | 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;
|