erpnext-queue-client 1.1.0 → 1.1.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.
- package/dist/erpnext/doctypeResourceRequest.d.ts +20 -18
- package/dist/erpnext/doctypeResourceRequest.js +5 -5
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +4 -4
- package/dist/erpnext/doctypes/address.d.ts +61 -15
- package/dist/erpnext/doctypes/contact.d.ts +85 -15
- package/dist/erpnext/doctypes/deliveryNote.d.ts +394 -16
- package/dist/erpnext/doctypes/item.d.ts +273 -39
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +1241 -418
- package/dist/erpnext/doctypes/purchaseReceipt.js +1 -0
- package/dist/erpnext/doctypes/shipment.d.ts +205 -15
- package/dist/erpnext/model/ERPNextResponse.d.ts +7 -0
- package/dist/erpnext/model/ERPNextResponse.js +6 -1
- package/dist/erpnext/model/Item.d.ts +12 -52
- package/dist/erpnext/model/Item.js +1 -6
- package/dist/erpnext/resourceRequest.d.ts +23 -21
- package/dist/erpnext/resourceRequest.js +4 -6
- package/dist/utils/zodUtils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8,15 +8,15 @@ 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: <TField extends ("description" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "disabled" | "item_code" | "item_name" | "item_group" | "stock_uom" | "grant_commission" | "weight_per_unit" | "weight_uom" | "naming_series" | "taxes" | "override_base_name" | "sync_from_warehouse" | "allow_alternative_item" | "is_stock_item" | "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" | "shipping_template" | "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" | "product_weight_unit" | "has_batch_no" | "create_new_batch" | "has_expiry_date" | "retain_sample" | "sample_quantity" | "has_serial_no" | "has_variants" | "variant_based_on" | "is_purchase_item" | "min_order_qty" | "safety_stock" | "lead_time_days" | "last_purchase_rate" | "is_customer_provided_item" | "delivered_by_supplier" | "sales_uom" | "is_sales_item" | "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" | "published_in_website" | "total_projected_qty" | "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items") | ("warehouse_category" | "ean" | "shipping_width" | "shipping_length" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }: {
|
|
12
|
+
fields?: TField[] | undefined;
|
|
13
13
|
filters?: string[][];
|
|
14
14
|
skip?: number;
|
|
15
15
|
limit?: number;
|
|
16
16
|
priority?: number;
|
|
17
|
-
asDict?:
|
|
17
|
+
asDict?: TAsDict;
|
|
18
18
|
params?: string;
|
|
19
|
-
}) => Promise<
|
|
19
|
+
}) => Promise<TAsDict extends false ? string[][] : Pick<{
|
|
20
20
|
description: string;
|
|
21
21
|
name: string;
|
|
22
22
|
owner: string;
|
|
@@ -37,7 +37,6 @@ export declare class ERPNextItem {
|
|
|
37
37
|
naming_series: string;
|
|
38
38
|
taxes: any[];
|
|
39
39
|
override_base_name: number;
|
|
40
|
-
is_item_from_hub: number;
|
|
41
40
|
sync_from_warehouse: number;
|
|
42
41
|
allow_alternative_item: number;
|
|
43
42
|
is_stock_item: number;
|
|
@@ -50,11 +49,10 @@ export declare class ERPNextItem {
|
|
|
50
49
|
over_delivery_receipt_allowance: number;
|
|
51
50
|
over_billing_allowance: number;
|
|
52
51
|
custom_is_shipping_enabled: number;
|
|
52
|
+
shipping_template: string;
|
|
53
53
|
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
54
54
|
packaging_weight_unit_cardboard: "kg" | "g" | "mg";
|
|
55
55
|
packaging_weight_unit_plastic: "kg" | "g" | "mg";
|
|
56
|
-
woocommerce: number;
|
|
57
|
-
amazon: number;
|
|
58
56
|
shelf_life_in_days: number;
|
|
59
57
|
end_of_life: string;
|
|
60
58
|
default_material_request_type: string;
|
|
@@ -87,8 +85,6 @@ export declare class ERPNextItem {
|
|
|
87
85
|
inspection_required_before_delivery: number;
|
|
88
86
|
is_sub_contracted_item: number;
|
|
89
87
|
customer_code: string;
|
|
90
|
-
publish_in_hub: number;
|
|
91
|
-
synced_with_hub: number;
|
|
92
88
|
published_in_website: number;
|
|
93
89
|
total_projected_qty: number;
|
|
94
90
|
barcodes: {
|
|
@@ -142,22 +138,275 @@ export declare class ERPNextItem {
|
|
|
142
138
|
customer_items: any[];
|
|
143
139
|
warehouse_category?: string | null | undefined;
|
|
144
140
|
ean?: string | null | undefined;
|
|
145
|
-
shipping_template?: string | null | undefined;
|
|
146
141
|
shipping_width?: number | null | undefined;
|
|
147
142
|
shipping_length?: number | null | undefined;
|
|
148
143
|
shipping_height?: number | null | undefined;
|
|
149
144
|
packaging_weight_cardboard?: number | null | undefined;
|
|
150
145
|
packaging_weight_plastic?: number | null | undefined;
|
|
151
|
-
},
|
|
152
|
-
getById:
|
|
146
|
+
}, TField>[]>;
|
|
147
|
+
getById: ({ resourceId, priority, }: {
|
|
153
148
|
resourceId: string;
|
|
154
149
|
priority?: number;
|
|
155
|
-
}) => Promise<
|
|
156
|
-
|
|
150
|
+
}) => Promise<{
|
|
151
|
+
description: string;
|
|
152
|
+
name: string;
|
|
153
|
+
owner: string;
|
|
154
|
+
creation: string;
|
|
155
|
+
modified: string;
|
|
156
|
+
modified_by: string;
|
|
157
|
+
idx: number;
|
|
158
|
+
docstatus: number;
|
|
159
|
+
doctype: string;
|
|
160
|
+
disabled: number;
|
|
161
|
+
item_code: string;
|
|
162
|
+
item_name: string;
|
|
163
|
+
item_group: string;
|
|
164
|
+
stock_uom: string;
|
|
165
|
+
grant_commission: number;
|
|
166
|
+
weight_per_unit: number;
|
|
167
|
+
weight_uom: "kg" | "g" | "mg";
|
|
168
|
+
naming_series: string;
|
|
169
|
+
taxes: any[];
|
|
170
|
+
override_base_name: number;
|
|
171
|
+
sync_from_warehouse: number;
|
|
172
|
+
allow_alternative_item: number;
|
|
173
|
+
is_stock_item: number;
|
|
174
|
+
include_item_in_manufacturing: number;
|
|
175
|
+
opening_stock: number;
|
|
176
|
+
valuation_rate: number;
|
|
177
|
+
standard_rate: number;
|
|
178
|
+
is_fixed_asset: number;
|
|
179
|
+
auto_create_assets: number;
|
|
180
|
+
over_delivery_receipt_allowance: number;
|
|
181
|
+
over_billing_allowance: number;
|
|
182
|
+
custom_is_shipping_enabled: number;
|
|
183
|
+
shipping_template: string;
|
|
184
|
+
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
185
|
+
packaging_weight_unit_cardboard: "kg" | "g" | "mg";
|
|
186
|
+
packaging_weight_unit_plastic: "kg" | "g" | "mg";
|
|
187
|
+
shelf_life_in_days: number;
|
|
188
|
+
end_of_life: string;
|
|
189
|
+
default_material_request_type: string;
|
|
190
|
+
valuation_method: string;
|
|
191
|
+
product_weight: number;
|
|
192
|
+
product_weight_unit: "kg" | "g" | "mg";
|
|
193
|
+
has_batch_no: number;
|
|
194
|
+
create_new_batch: number;
|
|
195
|
+
has_expiry_date: number;
|
|
196
|
+
retain_sample: number;
|
|
197
|
+
sample_quantity: number;
|
|
198
|
+
has_serial_no: number;
|
|
199
|
+
has_variants: number;
|
|
200
|
+
variant_based_on: string;
|
|
201
|
+
is_purchase_item: number;
|
|
202
|
+
min_order_qty: number;
|
|
203
|
+
safety_stock: number;
|
|
204
|
+
lead_time_days: number;
|
|
205
|
+
last_purchase_rate: number;
|
|
206
|
+
is_customer_provided_item: number;
|
|
207
|
+
delivered_by_supplier: number;
|
|
208
|
+
sales_uom: string;
|
|
209
|
+
is_sales_item: number;
|
|
210
|
+
max_discount: number;
|
|
211
|
+
enable_deferred_revenue: number;
|
|
212
|
+
no_of_months: number;
|
|
213
|
+
enable_deferred_expense: number;
|
|
214
|
+
no_of_months_exp: number;
|
|
215
|
+
inspection_required_before_purchase: number;
|
|
216
|
+
inspection_required_before_delivery: number;
|
|
217
|
+
is_sub_contracted_item: number;
|
|
218
|
+
customer_code: string;
|
|
219
|
+
published_in_website: number;
|
|
220
|
+
total_projected_qty: number;
|
|
221
|
+
barcodes: {
|
|
222
|
+
name: string;
|
|
223
|
+
owner: string;
|
|
224
|
+
creation: string;
|
|
225
|
+
modified: string;
|
|
226
|
+
modified_by: string;
|
|
227
|
+
parent: string;
|
|
228
|
+
parentfield: string;
|
|
229
|
+
parenttype: string;
|
|
230
|
+
idx: number;
|
|
231
|
+
docstatus: number;
|
|
232
|
+
doctype: string;
|
|
233
|
+
barcode: string;
|
|
234
|
+
barcode_type: string;
|
|
235
|
+
}[];
|
|
236
|
+
reorder_levels: any[];
|
|
237
|
+
uoms: {
|
|
238
|
+
name: string;
|
|
239
|
+
owner: string;
|
|
240
|
+
creation: string;
|
|
241
|
+
modified: string;
|
|
242
|
+
modified_by: string;
|
|
243
|
+
parent: string;
|
|
244
|
+
parentfield: string;
|
|
245
|
+
parenttype: string;
|
|
246
|
+
idx: number;
|
|
247
|
+
docstatus: number;
|
|
248
|
+
doctype: string;
|
|
249
|
+
uom: string;
|
|
250
|
+
conversion_factor: number;
|
|
251
|
+
}[];
|
|
252
|
+
attributes: any[];
|
|
253
|
+
item_defaults: {
|
|
254
|
+
name: string;
|
|
255
|
+
owner: string;
|
|
256
|
+
creation: string;
|
|
257
|
+
modified: string;
|
|
258
|
+
modified_by: string;
|
|
259
|
+
parent: string;
|
|
260
|
+
parentfield: string;
|
|
261
|
+
parenttype: string;
|
|
262
|
+
idx: number;
|
|
263
|
+
docstatus: number;
|
|
264
|
+
doctype: string;
|
|
265
|
+
company: string;
|
|
266
|
+
default_warehouse: string;
|
|
267
|
+
}[];
|
|
268
|
+
supplier_items: any[];
|
|
269
|
+
customer_items: any[];
|
|
270
|
+
warehouse_category?: string | null | undefined;
|
|
271
|
+
ean?: string | null | undefined;
|
|
272
|
+
shipping_width?: number | null | undefined;
|
|
273
|
+
shipping_length?: number | null | undefined;
|
|
274
|
+
shipping_height?: number | null | undefined;
|
|
275
|
+
packaging_weight_cardboard?: number | null | undefined;
|
|
276
|
+
packaging_weight_plastic?: number | null | undefined;
|
|
277
|
+
}>;
|
|
278
|
+
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
279
|
+
description: string;
|
|
280
|
+
name: string;
|
|
281
|
+
owner: string;
|
|
282
|
+
creation: string;
|
|
283
|
+
modified: string;
|
|
284
|
+
modified_by: string;
|
|
285
|
+
idx: number;
|
|
286
|
+
docstatus: number;
|
|
287
|
+
doctype: string;
|
|
288
|
+
disabled: number;
|
|
289
|
+
item_code: string;
|
|
290
|
+
item_name: string;
|
|
291
|
+
item_group: string;
|
|
292
|
+
stock_uom: string;
|
|
293
|
+
grant_commission: number;
|
|
294
|
+
weight_per_unit: number;
|
|
295
|
+
weight_uom: "kg" | "g" | "mg";
|
|
296
|
+
naming_series: string;
|
|
297
|
+
taxes: any[];
|
|
298
|
+
override_base_name: number;
|
|
299
|
+
sync_from_warehouse: number;
|
|
300
|
+
allow_alternative_item: number;
|
|
301
|
+
is_stock_item: number;
|
|
302
|
+
include_item_in_manufacturing: number;
|
|
303
|
+
opening_stock: number;
|
|
304
|
+
valuation_rate: number;
|
|
305
|
+
standard_rate: number;
|
|
306
|
+
is_fixed_asset: number;
|
|
307
|
+
auto_create_assets: number;
|
|
308
|
+
over_delivery_receipt_allowance: number;
|
|
309
|
+
over_billing_allowance: number;
|
|
310
|
+
custom_is_shipping_enabled: number;
|
|
311
|
+
shipping_template: string;
|
|
312
|
+
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
313
|
+
packaging_weight_unit_cardboard: "kg" | "g" | "mg";
|
|
314
|
+
packaging_weight_unit_plastic: "kg" | "g" | "mg";
|
|
315
|
+
shelf_life_in_days: number;
|
|
316
|
+
end_of_life: string;
|
|
317
|
+
default_material_request_type: string;
|
|
318
|
+
valuation_method: string;
|
|
319
|
+
product_weight: number;
|
|
320
|
+
product_weight_unit: "kg" | "g" | "mg";
|
|
321
|
+
has_batch_no: number;
|
|
322
|
+
create_new_batch: number;
|
|
323
|
+
has_expiry_date: number;
|
|
324
|
+
retain_sample: number;
|
|
325
|
+
sample_quantity: number;
|
|
326
|
+
has_serial_no: number;
|
|
327
|
+
has_variants: number;
|
|
328
|
+
variant_based_on: string;
|
|
329
|
+
is_purchase_item: number;
|
|
330
|
+
min_order_qty: number;
|
|
331
|
+
safety_stock: number;
|
|
332
|
+
lead_time_days: number;
|
|
333
|
+
last_purchase_rate: number;
|
|
334
|
+
is_customer_provided_item: number;
|
|
335
|
+
delivered_by_supplier: number;
|
|
336
|
+
sales_uom: string;
|
|
337
|
+
is_sales_item: number;
|
|
338
|
+
max_discount: number;
|
|
339
|
+
enable_deferred_revenue: number;
|
|
340
|
+
no_of_months: number;
|
|
341
|
+
enable_deferred_expense: number;
|
|
342
|
+
no_of_months_exp: number;
|
|
343
|
+
inspection_required_before_purchase: number;
|
|
344
|
+
inspection_required_before_delivery: number;
|
|
345
|
+
is_sub_contracted_item: number;
|
|
346
|
+
customer_code: string;
|
|
347
|
+
published_in_website: number;
|
|
348
|
+
total_projected_qty: number;
|
|
349
|
+
barcodes: {
|
|
350
|
+
name: string;
|
|
351
|
+
owner: string;
|
|
352
|
+
creation: string;
|
|
353
|
+
modified: string;
|
|
354
|
+
modified_by: string;
|
|
355
|
+
parent: string;
|
|
356
|
+
parentfield: string;
|
|
357
|
+
parenttype: string;
|
|
358
|
+
idx: number;
|
|
359
|
+
docstatus: number;
|
|
360
|
+
doctype: string;
|
|
361
|
+
barcode: string;
|
|
362
|
+
barcode_type: string;
|
|
363
|
+
}[];
|
|
364
|
+
reorder_levels: any[];
|
|
365
|
+
uoms: {
|
|
366
|
+
name: string;
|
|
367
|
+
owner: string;
|
|
368
|
+
creation: string;
|
|
369
|
+
modified: string;
|
|
370
|
+
modified_by: string;
|
|
371
|
+
parent: string;
|
|
372
|
+
parentfield: string;
|
|
373
|
+
parenttype: string;
|
|
374
|
+
idx: number;
|
|
375
|
+
docstatus: number;
|
|
376
|
+
doctype: string;
|
|
377
|
+
uom: string;
|
|
378
|
+
conversion_factor: number;
|
|
379
|
+
}[];
|
|
380
|
+
attributes: any[];
|
|
381
|
+
item_defaults: {
|
|
382
|
+
name: string;
|
|
383
|
+
owner: string;
|
|
384
|
+
creation: string;
|
|
385
|
+
modified: string;
|
|
386
|
+
modified_by: string;
|
|
387
|
+
parent: string;
|
|
388
|
+
parentfield: string;
|
|
389
|
+
parenttype: string;
|
|
390
|
+
idx: number;
|
|
391
|
+
docstatus: number;
|
|
392
|
+
doctype: string;
|
|
393
|
+
company: string;
|
|
394
|
+
default_warehouse: string;
|
|
395
|
+
}[];
|
|
396
|
+
supplier_items: any[];
|
|
397
|
+
customer_items: any[];
|
|
398
|
+
warehouse_category?: string | null | undefined;
|
|
399
|
+
ean?: string | null | undefined;
|
|
400
|
+
shipping_width?: number | null | undefined;
|
|
401
|
+
shipping_length?: number | null | undefined;
|
|
402
|
+
shipping_height?: number | null | undefined;
|
|
403
|
+
packaging_weight_cardboard?: number | null | undefined;
|
|
404
|
+
packaging_weight_plastic?: number | null | undefined;
|
|
405
|
+
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
157
406
|
resourceId: string;
|
|
158
|
-
inputValidationModel?:
|
|
407
|
+
inputValidationModel?: TInputModel;
|
|
159
408
|
priority?: number;
|
|
160
|
-
body:
|
|
409
|
+
body: TInput;
|
|
161
410
|
}) => Promise<{
|
|
162
411
|
description: string;
|
|
163
412
|
name: string;
|
|
@@ -179,7 +428,6 @@ export declare class ERPNextItem {
|
|
|
179
428
|
naming_series: string;
|
|
180
429
|
taxes: any[];
|
|
181
430
|
override_base_name: number;
|
|
182
|
-
is_item_from_hub: number;
|
|
183
431
|
sync_from_warehouse: number;
|
|
184
432
|
allow_alternative_item: number;
|
|
185
433
|
is_stock_item: number;
|
|
@@ -192,11 +440,10 @@ export declare class ERPNextItem {
|
|
|
192
440
|
over_delivery_receipt_allowance: number;
|
|
193
441
|
over_billing_allowance: number;
|
|
194
442
|
custom_is_shipping_enabled: number;
|
|
443
|
+
shipping_template: string;
|
|
195
444
|
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
196
445
|
packaging_weight_unit_cardboard: "kg" | "g" | "mg";
|
|
197
446
|
packaging_weight_unit_plastic: "kg" | "g" | "mg";
|
|
198
|
-
woocommerce: number;
|
|
199
|
-
amazon: number;
|
|
200
447
|
shelf_life_in_days: number;
|
|
201
448
|
end_of_life: string;
|
|
202
449
|
default_material_request_type: string;
|
|
@@ -229,8 +476,6 @@ export declare class ERPNextItem {
|
|
|
229
476
|
inspection_required_before_delivery: number;
|
|
230
477
|
is_sub_contracted_item: number;
|
|
231
478
|
customer_code: string;
|
|
232
|
-
publish_in_hub: number;
|
|
233
|
-
synced_with_hub: number;
|
|
234
479
|
published_in_website: number;
|
|
235
480
|
total_projected_qty: number;
|
|
236
481
|
barcodes: {
|
|
@@ -284,7 +529,6 @@ export declare class ERPNextItem {
|
|
|
284
529
|
customer_items: any[];
|
|
285
530
|
warehouse_category?: string | null | undefined;
|
|
286
531
|
ean?: string | null | undefined;
|
|
287
|
-
shipping_template?: string | null | undefined;
|
|
288
532
|
shipping_width?: number | null | undefined;
|
|
289
533
|
shipping_length?: number | null | undefined;
|
|
290
534
|
shipping_height?: number | null | undefined;
|
|
@@ -294,7 +538,8 @@ export declare class ERPNextItem {
|
|
|
294
538
|
deleteById: ({ resourceId, priority, }: {
|
|
295
539
|
resourceId: string;
|
|
296
540
|
priority?: number;
|
|
297
|
-
}) => Promise<
|
|
541
|
+
}) => Promise<z.TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
542
|
+
create: <TInput extends TInputModel extends undefined ? Partial<{
|
|
298
543
|
description: string;
|
|
299
544
|
name: string;
|
|
300
545
|
owner: string;
|
|
@@ -315,7 +560,6 @@ export declare class ERPNextItem {
|
|
|
315
560
|
naming_series: string;
|
|
316
561
|
taxes: any[];
|
|
317
562
|
override_base_name: number;
|
|
318
|
-
is_item_from_hub: number;
|
|
319
563
|
sync_from_warehouse: number;
|
|
320
564
|
allow_alternative_item: number;
|
|
321
565
|
is_stock_item: number;
|
|
@@ -328,11 +572,10 @@ export declare class ERPNextItem {
|
|
|
328
572
|
over_delivery_receipt_allowance: number;
|
|
329
573
|
over_billing_allowance: number;
|
|
330
574
|
custom_is_shipping_enabled: number;
|
|
575
|
+
shipping_template: string;
|
|
331
576
|
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
332
577
|
packaging_weight_unit_cardboard: "kg" | "g" | "mg";
|
|
333
578
|
packaging_weight_unit_plastic: "kg" | "g" | "mg";
|
|
334
|
-
woocommerce: number;
|
|
335
|
-
amazon: number;
|
|
336
579
|
shelf_life_in_days: number;
|
|
337
580
|
end_of_life: string;
|
|
338
581
|
default_material_request_type: string;
|
|
@@ -365,8 +608,6 @@ export declare class ERPNextItem {
|
|
|
365
608
|
inspection_required_before_delivery: number;
|
|
366
609
|
is_sub_contracted_item: number;
|
|
367
610
|
customer_code: string;
|
|
368
|
-
publish_in_hub: number;
|
|
369
|
-
synced_with_hub: number;
|
|
370
611
|
published_in_website: number;
|
|
371
612
|
total_projected_qty: number;
|
|
372
613
|
barcodes: {
|
|
@@ -420,17 +661,15 @@ export declare class ERPNextItem {
|
|
|
420
661
|
customer_items: any[];
|
|
421
662
|
warehouse_category?: string | null | undefined;
|
|
422
663
|
ean?: string | null | undefined;
|
|
423
|
-
shipping_template?: string | null | undefined;
|
|
424
664
|
shipping_width?: number | null | undefined;
|
|
425
665
|
shipping_length?: number | null | undefined;
|
|
426
666
|
shipping_height?: number | null | undefined;
|
|
427
667
|
packaging_weight_cardboard?: number | null | undefined;
|
|
428
668
|
packaging_weight_plastic?: number | null | undefined;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
inputValidationModel?: K;
|
|
669
|
+
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, priority, }: {
|
|
670
|
+
inputValidationModel?: TInputModel;
|
|
432
671
|
priority?: number;
|
|
433
|
-
body:
|
|
672
|
+
body: TInput;
|
|
434
673
|
}) => Promise<{
|
|
435
674
|
description: string;
|
|
436
675
|
name: string;
|
|
@@ -452,7 +691,6 @@ export declare class ERPNextItem {
|
|
|
452
691
|
naming_series: string;
|
|
453
692
|
taxes: any[];
|
|
454
693
|
override_base_name: number;
|
|
455
|
-
is_item_from_hub: number;
|
|
456
694
|
sync_from_warehouse: number;
|
|
457
695
|
allow_alternative_item: number;
|
|
458
696
|
is_stock_item: number;
|
|
@@ -465,11 +703,10 @@ export declare class ERPNextItem {
|
|
|
465
703
|
over_delivery_receipt_allowance: number;
|
|
466
704
|
over_billing_allowance: number;
|
|
467
705
|
custom_is_shipping_enabled: number;
|
|
706
|
+
shipping_template: string;
|
|
468
707
|
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
469
708
|
packaging_weight_unit_cardboard: "kg" | "g" | "mg";
|
|
470
709
|
packaging_weight_unit_plastic: "kg" | "g" | "mg";
|
|
471
|
-
woocommerce: number;
|
|
472
|
-
amazon: number;
|
|
473
710
|
shelf_life_in_days: number;
|
|
474
711
|
end_of_life: string;
|
|
475
712
|
default_material_request_type: string;
|
|
@@ -502,8 +739,6 @@ export declare class ERPNextItem {
|
|
|
502
739
|
inspection_required_before_delivery: number;
|
|
503
740
|
is_sub_contracted_item: number;
|
|
504
741
|
customer_code: string;
|
|
505
|
-
publish_in_hub: number;
|
|
506
|
-
synced_with_hub: number;
|
|
507
742
|
published_in_website: number;
|
|
508
743
|
total_projected_qty: number;
|
|
509
744
|
barcodes: {
|
|
@@ -557,7 +792,6 @@ export declare class ERPNextItem {
|
|
|
557
792
|
customer_items: any[];
|
|
558
793
|
warehouse_category?: string | null | undefined;
|
|
559
794
|
ean?: string | null | undefined;
|
|
560
|
-
shipping_template?: string | null | undefined;
|
|
561
795
|
shipping_width?: number | null | undefined;
|
|
562
796
|
shipping_length?: number | null | undefined;
|
|
563
797
|
shipping_height?: number | null | undefined;
|