erpnext-queue-client 2.5.0 → 2.5.2

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