erpnext-queue-client 1.12.2 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/erpnext/doctypes/item.d.ts +7 -1
- package/dist/erpnext/model/DispatcherPreset.d.ts +2 -2
- package/dist/erpnext/model/FulfillerSettings.d.ts +6 -6
- package/dist/erpnext/model/Item.d.ts +8 -0
- package/dist/erpnext/model/Item.js +1 -0
- package/dist/erpnext/model/PartList.d.ts +112 -0
- package/dist/erpnext/model/PartList.js +37 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -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" | "doctype" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "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" | "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" | "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" | "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items" | "custom_certifications") | ("length" | "image" | "warehouse_category" | "ean" | "shipping_template" | "width" | "height" | "shipping_length" | "shipping_width" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "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"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
11
|
+
getList: <TField extends ("description" | "name" | "doctype" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "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" | "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" | "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" | "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items" | "custom_certifications" | "custom_oversell_amount") | ("length" | "image" | "warehouse_category" | "ean" | "shipping_template" | "width" | "height" | "shipping_length" | "shipping_width" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "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"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
12
12
|
fields?: TField[] | undefined;
|
|
13
13
|
filters?: (string | string[])[][];
|
|
14
14
|
skip?: number;
|
|
@@ -167,6 +167,7 @@ export declare class ERPNextItem {
|
|
|
167
167
|
docstatus: number;
|
|
168
168
|
certification: string;
|
|
169
169
|
}[];
|
|
170
|
+
custom_oversell_amount: number | null;
|
|
170
171
|
length?: number | null | undefined;
|
|
171
172
|
image?: string | null | undefined;
|
|
172
173
|
warehouse_category?: string | null | undefined;
|
|
@@ -344,6 +345,7 @@ export declare class ERPNextItem {
|
|
|
344
345
|
docstatus: number;
|
|
345
346
|
certification: string;
|
|
346
347
|
}[];
|
|
348
|
+
custom_oversell_amount: number | null;
|
|
347
349
|
length?: number | null | undefined;
|
|
348
350
|
image?: string | null | undefined;
|
|
349
351
|
warehouse_category?: string | null | undefined;
|
|
@@ -518,6 +520,7 @@ export declare class ERPNextItem {
|
|
|
518
520
|
docstatus: number;
|
|
519
521
|
certification: string;
|
|
520
522
|
}[];
|
|
523
|
+
custom_oversell_amount: number | null;
|
|
521
524
|
length?: number | null | undefined;
|
|
522
525
|
image?: string | null | undefined;
|
|
523
526
|
warehouse_category?: string | null | undefined;
|
|
@@ -696,6 +699,7 @@ export declare class ERPNextItem {
|
|
|
696
699
|
docstatus: number;
|
|
697
700
|
certification: string;
|
|
698
701
|
}[];
|
|
702
|
+
custom_oversell_amount: number | null;
|
|
699
703
|
length?: number | null | undefined;
|
|
700
704
|
image?: string | null | undefined;
|
|
701
705
|
warehouse_category?: string | null | undefined;
|
|
@@ -874,6 +878,7 @@ export declare class ERPNextItem {
|
|
|
874
878
|
docstatus: number;
|
|
875
879
|
certification: string;
|
|
876
880
|
}[];
|
|
881
|
+
custom_oversell_amount: number | null;
|
|
877
882
|
length?: number | null | undefined;
|
|
878
883
|
image?: string | null | undefined;
|
|
879
884
|
warehouse_category?: string | null | undefined;
|
|
@@ -1052,6 +1057,7 @@ export declare class ERPNextItem {
|
|
|
1052
1057
|
docstatus: number;
|
|
1053
1058
|
certification: string;
|
|
1054
1059
|
}[];
|
|
1060
|
+
custom_oversell_amount: number | null;
|
|
1055
1061
|
length?: number | null | undefined;
|
|
1056
1062
|
image?: string | null | undefined;
|
|
1057
1063
|
warehouse_category?: string | null | undefined;
|
|
@@ -103,8 +103,8 @@ export declare const DispatcherPreset: z.ZodObject<{
|
|
|
103
103
|
idx: number;
|
|
104
104
|
docstatus: number;
|
|
105
105
|
title: string;
|
|
106
|
-
fulfiller: string;
|
|
107
106
|
is_active: boolean;
|
|
107
|
+
fulfiller: string;
|
|
108
108
|
fulfiller_priority: {
|
|
109
109
|
name: string;
|
|
110
110
|
doctype: string;
|
|
@@ -128,8 +128,8 @@ export declare const DispatcherPreset: z.ZodObject<{
|
|
|
128
128
|
idx: number;
|
|
129
129
|
docstatus: number;
|
|
130
130
|
title: string;
|
|
131
|
-
fulfiller: string;
|
|
132
131
|
is_active: number;
|
|
132
|
+
fulfiller: string;
|
|
133
133
|
fulfiller_priority: {
|
|
134
134
|
name: string;
|
|
135
135
|
doctype: string;
|
|
@@ -14,8 +14,8 @@ export declare const FulfillerShippingSettingsItem: z.ZodObject<{
|
|
|
14
14
|
name: string;
|
|
15
15
|
parent: string;
|
|
16
16
|
shipping_provider: string;
|
|
17
|
-
fulfiller: string;
|
|
18
17
|
is_active: boolean;
|
|
18
|
+
fulfiller: string;
|
|
19
19
|
is_ship_individually: boolean;
|
|
20
20
|
bundle_size: number;
|
|
21
21
|
can_be_bundled_with?: string | null | undefined;
|
|
@@ -25,8 +25,8 @@ export declare const FulfillerShippingSettingsItem: z.ZodObject<{
|
|
|
25
25
|
name: string;
|
|
26
26
|
parent: string;
|
|
27
27
|
shipping_provider: string;
|
|
28
|
-
fulfiller: string;
|
|
29
28
|
is_active: number;
|
|
29
|
+
fulfiller: string;
|
|
30
30
|
is_ship_individually: number;
|
|
31
31
|
bundle_size: number;
|
|
32
32
|
can_be_bundled_with?: string | null | undefined;
|
|
@@ -49,8 +49,8 @@ export declare const FulfillerShippingSettings: z.ZodArray<z.ZodObject<{
|
|
|
49
49
|
name: string;
|
|
50
50
|
parent: string;
|
|
51
51
|
shipping_provider: string;
|
|
52
|
-
fulfiller: string;
|
|
53
52
|
is_active: boolean;
|
|
53
|
+
fulfiller: string;
|
|
54
54
|
is_ship_individually: boolean;
|
|
55
55
|
bundle_size: number;
|
|
56
56
|
can_be_bundled_with?: string | null | undefined;
|
|
@@ -60,8 +60,8 @@ export declare const FulfillerShippingSettings: z.ZodArray<z.ZodObject<{
|
|
|
60
60
|
name: string;
|
|
61
61
|
parent: string;
|
|
62
62
|
shipping_provider: string;
|
|
63
|
-
fulfiller: string;
|
|
64
63
|
is_active: number;
|
|
64
|
+
fulfiller: string;
|
|
65
65
|
is_ship_individually: number;
|
|
66
66
|
bundle_size: number;
|
|
67
67
|
can_be_bundled_with?: string | null | undefined;
|
|
@@ -86,8 +86,8 @@ export declare const FulfillerShippingSettingsWithSkus: z.ZodArray<z.ZodObject<z
|
|
|
86
86
|
name: string;
|
|
87
87
|
parent: string;
|
|
88
88
|
shipping_provider: string;
|
|
89
|
-
fulfiller: string;
|
|
90
89
|
is_active: boolean;
|
|
90
|
+
fulfiller: string;
|
|
91
91
|
is_ship_individually: boolean;
|
|
92
92
|
bundle_size: number;
|
|
93
93
|
skus: string[];
|
|
@@ -98,8 +98,8 @@ export declare const FulfillerShippingSettingsWithSkus: z.ZodArray<z.ZodObject<z
|
|
|
98
98
|
name: string;
|
|
99
99
|
parent: string;
|
|
100
100
|
shipping_provider: string;
|
|
101
|
-
fulfiller: string;
|
|
102
101
|
is_active: number;
|
|
102
|
+
fulfiller: string;
|
|
103
103
|
is_ship_individually: number;
|
|
104
104
|
bundle_size: number;
|
|
105
105
|
skus: string[];
|
|
@@ -310,6 +310,7 @@ export declare const Item: z.ZodObject<{
|
|
|
310
310
|
docstatus: number;
|
|
311
311
|
certification: string;
|
|
312
312
|
}>, "many">;
|
|
313
|
+
custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
313
314
|
}, "strip", z.ZodTypeAny, {
|
|
314
315
|
description: string;
|
|
315
316
|
name: string;
|
|
@@ -461,6 +462,7 @@ export declare const Item: z.ZodObject<{
|
|
|
461
462
|
docstatus: number;
|
|
462
463
|
certification: string;
|
|
463
464
|
}[];
|
|
465
|
+
custom_oversell_amount: number | null;
|
|
464
466
|
length?: number | null | undefined;
|
|
465
467
|
image?: string | null | undefined;
|
|
466
468
|
warehouse_category?: string | null | undefined;
|
|
@@ -656,6 +658,7 @@ export declare const Item: z.ZodObject<{
|
|
|
656
658
|
custom_sales_category?: string | null | undefined;
|
|
657
659
|
custom_shopify_content_configuration?: string | null | undefined;
|
|
658
660
|
custom_compliance?: string | null | undefined;
|
|
661
|
+
custom_oversell_amount?: number | null | undefined;
|
|
659
662
|
}>;
|
|
660
663
|
export type ItemType = z.infer<typeof Item>;
|
|
661
664
|
export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
@@ -969,6 +972,7 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
969
972
|
docstatus: number;
|
|
970
973
|
certification: string;
|
|
971
974
|
}>, "many">;
|
|
975
|
+
custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
972
976
|
}, "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_length" | "shipping_width" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
|
|
973
977
|
disabled: number;
|
|
974
978
|
item_code: string;
|
|
@@ -1310,6 +1314,7 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
1310
1314
|
docstatus: number;
|
|
1311
1315
|
certification: string;
|
|
1312
1316
|
}>, "many">;
|
|
1317
|
+
custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1313
1318
|
}, "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_length" | "shipping_width" | "shipping_height" | "shipping_dimensions_unit">, {
|
|
1314
1319
|
sku: z.ZodString;
|
|
1315
1320
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1654,6 +1659,7 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1654
1659
|
docstatus: number;
|
|
1655
1660
|
certification: string;
|
|
1656
1661
|
}>, "many">;
|
|
1662
|
+
custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1657
1663
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "shipping_length" | "shipping_width" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
|
|
1658
1664
|
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
1659
1665
|
shipping_length?: number | null | undefined;
|
|
@@ -1977,6 +1983,7 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1977
1983
|
docstatus: number;
|
|
1978
1984
|
certification: string;
|
|
1979
1985
|
}>, "many">;
|
|
1986
|
+
custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1980
1987
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code">, "strip", z.ZodTypeAny, {
|
|
1981
1988
|
item_code: string;
|
|
1982
1989
|
}, {
|
|
@@ -2294,6 +2301,7 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
2294
2301
|
docstatus: number;
|
|
2295
2302
|
certification: string;
|
|
2296
2303
|
}>, "many">;
|
|
2304
|
+
custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2297
2305
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code" | "item_name" | "weight_per_unit" | "weight_uom">, "strip", z.ZodTypeAny, {
|
|
2298
2306
|
item_code: string;
|
|
2299
2307
|
item_name: string;
|
|
@@ -203,6 +203,7 @@ exports.Item = zod_1.z
|
|
|
203
203
|
custom_shopify_content_configuration: zod_1.z.string().optional().nullable(),
|
|
204
204
|
custom_compliance: zod_1.z.string().optional().nullable(),
|
|
205
205
|
custom_certifications: zod_1.z.array(ItemCertification),
|
|
206
|
+
custom_oversell_amount: zod_1.z.number().optional().nullable().default(0),
|
|
206
207
|
})
|
|
207
208
|
.describe("Item");
|
|
208
209
|
const ItemListModel = exports.Item.omit({
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PartList: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
owner: z.ZodString;
|
|
5
|
+
creation: z.ZodString;
|
|
6
|
+
modified: z.ZodString;
|
|
7
|
+
modified_by: z.ZodString;
|
|
8
|
+
is_active: z.ZodDefault<z.ZodEffects<z.ZodNumber, boolean, number>>;
|
|
9
|
+
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
item_parent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
product_version_compatibility: z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
product_version: z.ZodString;
|
|
14
|
+
idx: z.ZodNumber;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: string;
|
|
17
|
+
idx: number;
|
|
18
|
+
product_version: string;
|
|
19
|
+
}, {
|
|
20
|
+
name: string;
|
|
21
|
+
idx: number;
|
|
22
|
+
product_version: string;
|
|
23
|
+
}>, "many">;
|
|
24
|
+
part_list_type: z.ZodDefault<z.ZodString>;
|
|
25
|
+
overview_image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
part_list: z.ZodArray<z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
idx: z.ZodNumber;
|
|
29
|
+
part_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
part: z.ZodString;
|
|
31
|
+
part_image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
part_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
quantity: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
comment: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
is_allow_customer_self_service: z.ZodDefault<z.ZodEffects<z.ZodNumber, boolean, number>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
name: string;
|
|
38
|
+
idx: number;
|
|
39
|
+
part: string;
|
|
40
|
+
quantity: number;
|
|
41
|
+
is_allow_customer_self_service: boolean;
|
|
42
|
+
part_number?: string | null | undefined;
|
|
43
|
+
part_image?: string | null | undefined;
|
|
44
|
+
part_name?: string | null | undefined;
|
|
45
|
+
comment?: string | null | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
name: string;
|
|
48
|
+
idx: number;
|
|
49
|
+
part: string;
|
|
50
|
+
part_number?: string | null | undefined;
|
|
51
|
+
part_image?: string | null | undefined;
|
|
52
|
+
part_name?: string | null | undefined;
|
|
53
|
+
quantity?: number | undefined;
|
|
54
|
+
comment?: string | null | undefined;
|
|
55
|
+
is_allow_customer_self_service?: number | undefined;
|
|
56
|
+
}>, "many">;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
name: string;
|
|
59
|
+
owner: string;
|
|
60
|
+
creation: string;
|
|
61
|
+
modified: string;
|
|
62
|
+
modified_by: string;
|
|
63
|
+
is_active: boolean;
|
|
64
|
+
product_version_compatibility: {
|
|
65
|
+
name: string;
|
|
66
|
+
idx: number;
|
|
67
|
+
product_version: string;
|
|
68
|
+
}[];
|
|
69
|
+
part_list_type: string;
|
|
70
|
+
part_list: {
|
|
71
|
+
name: string;
|
|
72
|
+
idx: number;
|
|
73
|
+
part: string;
|
|
74
|
+
quantity: number;
|
|
75
|
+
is_allow_customer_self_service: boolean;
|
|
76
|
+
part_number?: string | null | undefined;
|
|
77
|
+
part_image?: string | null | undefined;
|
|
78
|
+
part_name?: string | null | undefined;
|
|
79
|
+
comment?: string | null | undefined;
|
|
80
|
+
}[];
|
|
81
|
+
title?: string | null | undefined;
|
|
82
|
+
item_parent?: string | null | undefined;
|
|
83
|
+
overview_image?: string | null | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
name: string;
|
|
86
|
+
owner: string;
|
|
87
|
+
creation: string;
|
|
88
|
+
modified: string;
|
|
89
|
+
modified_by: string;
|
|
90
|
+
product_version_compatibility: {
|
|
91
|
+
name: string;
|
|
92
|
+
idx: number;
|
|
93
|
+
product_version: string;
|
|
94
|
+
}[];
|
|
95
|
+
part_list: {
|
|
96
|
+
name: string;
|
|
97
|
+
idx: number;
|
|
98
|
+
part: string;
|
|
99
|
+
part_number?: string | null | undefined;
|
|
100
|
+
part_image?: string | null | undefined;
|
|
101
|
+
part_name?: string | null | undefined;
|
|
102
|
+
quantity?: number | undefined;
|
|
103
|
+
comment?: string | null | undefined;
|
|
104
|
+
is_allow_customer_self_service?: number | undefined;
|
|
105
|
+
}[];
|
|
106
|
+
title?: string | null | undefined;
|
|
107
|
+
is_active?: number | undefined;
|
|
108
|
+
item_parent?: string | null | undefined;
|
|
109
|
+
part_list_type?: string | undefined;
|
|
110
|
+
overview_image?: string | null | undefined;
|
|
111
|
+
}>;
|
|
112
|
+
export type PartListType = z.infer<typeof PartList>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartList = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PartList = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
owner: zod_1.z.string(),
|
|
9
|
+
creation: zod_1.z.string(),
|
|
10
|
+
modified: zod_1.z.string(),
|
|
11
|
+
modified_by: zod_1.z.string(),
|
|
12
|
+
is_active: zod_1.z.number().transform(Boolean).default(1),
|
|
13
|
+
title: zod_1.z.string().optional().nullable(),
|
|
14
|
+
item_parent: zod_1.z.string().optional().nullable(),
|
|
15
|
+
product_version_compatibility: zod_1.z.array(zod_1.z.object({
|
|
16
|
+
name: zod_1.z.string(),
|
|
17
|
+
product_version: zod_1.z.string(),
|
|
18
|
+
idx: zod_1.z.number(),
|
|
19
|
+
})),
|
|
20
|
+
part_list_type: zod_1.z.string().default("Replacement Part List"),
|
|
21
|
+
overview_image: zod_1.z.string().optional().nullable(),
|
|
22
|
+
part_list: zod_1.z.array(zod_1.z.object({
|
|
23
|
+
name: zod_1.z.string(),
|
|
24
|
+
idx: zod_1.z.number(),
|
|
25
|
+
part_number: zod_1.z.string().optional().nullable(),
|
|
26
|
+
part: zod_1.z.string(),
|
|
27
|
+
part_image: zod_1.z.string().optional().nullable(),
|
|
28
|
+
part_name: zod_1.z.string().optional().nullable(),
|
|
29
|
+
quantity: zod_1.z.number().default(1),
|
|
30
|
+
comment: zod_1.z.string().optional().nullable(),
|
|
31
|
+
is_allow_customer_self_service: zod_1.z
|
|
32
|
+
.number()
|
|
33
|
+
.transform(Boolean)
|
|
34
|
+
.default(1),
|
|
35
|
+
})),
|
|
36
|
+
})
|
|
37
|
+
.describe("PartList");
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { Compliance } from "./erpnext/model/Compliance";
|
|
|
15
15
|
import { Country } from "./erpnext/model/Country";
|
|
16
16
|
import { Customer } from "./erpnext/model/Customer";
|
|
17
17
|
import { ERPNextQueueClientContructorOptions } from "./erpnext/model/ERPNextQueue";
|
|
18
|
+
import { PartList } from "./erpnext/model/PartList";
|
|
18
19
|
import { PaymentEntry } from "./erpnext/model/PaymentEntry";
|
|
19
20
|
import { ProductBundle } from "./erpnext/model/ProductBundle";
|
|
20
21
|
import { PurchaseOrder } from "./erpnext/model/PurchaseOrder";
|
|
@@ -51,6 +52,7 @@ export declare class ERPNextQueueClient {
|
|
|
51
52
|
reports: ERPNextReports;
|
|
52
53
|
productBundle: ERPNextDoctypeResourceRequest<typeof ProductBundle>;
|
|
53
54
|
compliance: ERPNextDoctypeResourceRequest<typeof Compliance>;
|
|
55
|
+
partList: ERPNextDoctypeResourceRequest<typeof PartList>;
|
|
54
56
|
/**
|
|
55
57
|
* @description Provide either a temporal client or connection details to create a new client
|
|
56
58
|
*/
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ const methodRequest_1 = require("./erpnext/methodRequest");
|
|
|
18
18
|
const Compliance_1 = require("./erpnext/model/Compliance");
|
|
19
19
|
const Country_1 = require("./erpnext/model/Country");
|
|
20
20
|
const Customer_1 = require("./erpnext/model/Customer");
|
|
21
|
+
const PartList_1 = require("./erpnext/model/PartList");
|
|
21
22
|
const PaymentEntry_1 = require("./erpnext/model/PaymentEntry");
|
|
22
23
|
const ProductBundle_1 = require("./erpnext/model/ProductBundle");
|
|
23
24
|
const PurchaseOrder_1 = require("./erpnext/model/PurchaseOrder");
|
|
@@ -62,6 +63,7 @@ class ERPNextQueueClient {
|
|
|
62
63
|
this.stock = new stock_1.ERPNextStock(this.temporalClient);
|
|
63
64
|
this.productBundle = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Product Bundle", ProductBundle_1.ProductBundle);
|
|
64
65
|
this.compliance = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Compliance", Compliance_1.Compliance);
|
|
66
|
+
this.partList = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Part List", PartList_1.PartList);
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
exports.ERPNextQueueClient = ERPNextQueueClient;
|