erpnext-queue-client 1.12.2 → 1.13.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.
|
@@ -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[];
|
|
@@ -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;
|