erpnext-queue-client 1.4.2 → 1.4.3
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.
|
@@ -8,7 +8,7 @@ export declare class ERPNextItem {
|
|
|
8
8
|
protected temporalClient: TemporalClient;
|
|
9
9
|
protected baseRequest: ERPNextDoctypeResourceRequest<typeof Item>;
|
|
10
10
|
protected methodRequest: ERPNextMethodRequest;
|
|
11
|
-
getList: <TField extends ("description" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "disabled" | "naming_series" | "item_code" | "item_name" | "item_group" | "stock_uom" | "grant_commission" | "weight_per_unit" | "weight_uom" | "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_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") | ("image" | "warehouse_category" | "ean" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "custom_product_version" | "custom_supplier"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
11
|
+
getList: <TField extends ("description" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "disabled" | "naming_series" | "item_code" | "item_name" | "item_group" | "stock_uom" | "grant_commission" | "weight_per_unit" | "weight_uom" | "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_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") | ("image" | "warehouse_category" | "ean" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "custom_product_version" | "custom_supplier" | "custom_stock_reserve"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
12
12
|
fields?: TField[] | undefined;
|
|
13
13
|
filters?: string[][];
|
|
14
14
|
skip?: number;
|
|
@@ -146,6 +146,7 @@ export declare class ERPNextItem {
|
|
|
146
146
|
packaging_weight_plastic?: number | null | undefined;
|
|
147
147
|
custom_product_version?: string | null | undefined;
|
|
148
148
|
custom_supplier?: string | null | undefined;
|
|
149
|
+
custom_stock_reserve?: number | null | undefined;
|
|
149
150
|
}, TField>[]>;
|
|
150
151
|
getById: ({ resourceId, priority, }: {
|
|
151
152
|
resourceId: string;
|
|
@@ -280,6 +281,7 @@ export declare class ERPNextItem {
|
|
|
280
281
|
packaging_weight_plastic?: number | null | undefined;
|
|
281
282
|
custom_product_version?: string | null | undefined;
|
|
282
283
|
custom_supplier?: string | null | undefined;
|
|
284
|
+
custom_stock_reserve?: number | null | undefined;
|
|
283
285
|
}>;
|
|
284
286
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
285
287
|
description: string;
|
|
@@ -411,6 +413,7 @@ export declare class ERPNextItem {
|
|
|
411
413
|
packaging_weight_plastic?: number | null | undefined;
|
|
412
414
|
custom_product_version?: string | null | undefined;
|
|
413
415
|
custom_supplier?: string | null | undefined;
|
|
416
|
+
custom_stock_reserve?: number | null | undefined;
|
|
414
417
|
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
415
418
|
resourceId: string;
|
|
416
419
|
inputValidationModel?: TInputModel;
|
|
@@ -546,6 +549,7 @@ export declare class ERPNextItem {
|
|
|
546
549
|
packaging_weight_plastic?: number | null | undefined;
|
|
547
550
|
custom_product_version?: string | null | undefined;
|
|
548
551
|
custom_supplier?: string | null | undefined;
|
|
552
|
+
custom_stock_reserve?: number | null | undefined;
|
|
549
553
|
}>;
|
|
550
554
|
deleteById: ({ resourceId, priority, }: {
|
|
551
555
|
resourceId: string;
|
|
@@ -681,6 +685,7 @@ export declare class ERPNextItem {
|
|
|
681
685
|
packaging_weight_plastic?: number | null | undefined;
|
|
682
686
|
custom_product_version?: string | null | undefined;
|
|
683
687
|
custom_supplier?: string | null | undefined;
|
|
688
|
+
custom_stock_reserve?: number | null | undefined;
|
|
684
689
|
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, priority, }: {
|
|
685
690
|
inputValidationModel?: TInputModel;
|
|
686
691
|
priority?: number;
|
|
@@ -815,6 +820,7 @@ export declare class ERPNextItem {
|
|
|
815
820
|
packaging_weight_plastic?: number | null | undefined;
|
|
816
821
|
custom_product_version?: string | null | undefined;
|
|
817
822
|
custom_supplier?: string | null | undefined;
|
|
823
|
+
custom_stock_reserve?: number | null | undefined;
|
|
818
824
|
}>;
|
|
819
825
|
constructor(temporalClient: TemporalClient);
|
|
820
826
|
getNoneStockItems(params?: Record<string, string>): Promise<string[]>;
|
|
@@ -213,6 +213,7 @@ export declare const Item: z.ZodObject<{
|
|
|
213
213
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
214
214
|
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
215
215
|
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
216
|
+
custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
216
217
|
}, "strip", z.ZodTypeAny, {
|
|
217
218
|
description: string;
|
|
218
219
|
name: string;
|
|
@@ -343,6 +344,7 @@ export declare const Item: z.ZodObject<{
|
|
|
343
344
|
packaging_weight_plastic?: number | null | undefined;
|
|
344
345
|
custom_product_version?: string | null | undefined;
|
|
345
346
|
custom_supplier?: string | null | undefined;
|
|
347
|
+
custom_stock_reserve?: number | null | undefined;
|
|
346
348
|
}, {
|
|
347
349
|
description: string;
|
|
348
350
|
name: string;
|
|
@@ -473,6 +475,7 @@ export declare const Item: z.ZodObject<{
|
|
|
473
475
|
packaging_weight_plastic?: number | null | undefined;
|
|
474
476
|
custom_product_version?: string | null | undefined;
|
|
475
477
|
custom_supplier?: string | null | undefined;
|
|
478
|
+
custom_stock_reserve?: number | null | undefined;
|
|
476
479
|
}>;
|
|
477
480
|
export type ItemType = z.infer<typeof Item>;
|
|
478
481
|
export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
@@ -689,6 +692,7 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
689
692
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
690
693
|
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
691
694
|
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
695
|
+
custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
692
696
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_code" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
|
|
693
697
|
disabled: number;
|
|
694
698
|
item_code: string;
|
|
@@ -933,6 +937,7 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
933
937
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
934
938
|
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
935
939
|
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
940
|
+
custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
936
941
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, {
|
|
937
942
|
sku: z.ZodString;
|
|
938
943
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1180,6 +1185,7 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1180
1185
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
1181
1186
|
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1182
1187
|
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1188
|
+
custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1183
1189
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
|
|
1184
1190
|
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
1185
1191
|
shipping_width?: number | null | undefined;
|
|
@@ -1406,6 +1412,7 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1406
1412
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
1407
1413
|
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1408
1414
|
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1415
|
+
custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1409
1416
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code">, "strip", z.ZodTypeAny, {
|
|
1410
1417
|
item_code: string;
|
|
1411
1418
|
}, {
|
|
@@ -1626,6 +1633,7 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1626
1633
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
1627
1634
|
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1628
1635
|
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1636
|
+
custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1629
1637
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code" | "item_name" | "weight_per_unit" | "weight_uom">, "strip", z.ZodTypeAny, {
|
|
1630
1638
|
item_code: string;
|
|
1631
1639
|
item_name: string;
|
|
@@ -151,6 +151,7 @@ exports.Item = zod_1.z
|
|
|
151
151
|
taxes: zod_1.z.array(zod_1.z.any()),
|
|
152
152
|
custom_product_version: zod_1.z.string().optional().nullable(),
|
|
153
153
|
custom_supplier: zod_1.z.string().optional().nullable(),
|
|
154
|
+
custom_stock_reserve: zod_1.z.number().optional().nullable(),
|
|
154
155
|
})
|
|
155
156
|
.describe("Item");
|
|
156
157
|
const ItemListModel = exports.Item.omit({
|