erpnext-queue-client 2.3.2 → 2.4.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/doctypeResourceRequest.d.ts +1 -1
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +6 -159
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +2 -2
- package/dist/erpnext/doctypes/address.d.ts +76 -3
- package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +65 -55
- package/dist/erpnext/doctypes/contact.d.ts +220 -3
- package/dist/erpnext/doctypes/deliveryNote.d.ts +207 -202
- package/dist/erpnext/doctypes/item.d.ts +19 -2
- package/dist/erpnext/doctypes/paymentEntry.d.ts +116 -6
- package/dist/erpnext/doctypes/productBundle.d.ts +5 -2
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +141 -5
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +11 -5
- package/dist/erpnext/doctypes/salesInvoice.d.ts +400 -6
- package/dist/erpnext/doctypes/servicecase.d.ts +38 -2
- package/dist/erpnext/doctypes/shipment.d.ts +100 -93
- package/dist/erpnext/doctypes/shipment.js +2 -1
- package/dist/erpnext/erpnextRequestWrapper.d.ts +4 -2
- package/dist/erpnext/erpnextRequestWrapper.js +1 -1
- package/dist/erpnext/fileRequests.d.ts +2 -2
- package/dist/erpnext/fileRequests.js +2 -1
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +61 -23
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +20 -11
- package/dist/erpnext/model/Contact.d.ts +29 -0
- package/dist/erpnext/model/Contact.js +5 -5
- package/dist/erpnext/model/DeliveryNote.d.ts +300 -100
- package/dist/erpnext/model/DeliveryNote.js +101 -100
- package/dist/erpnext/model/DispatchRun.d.ts +3 -0
- package/dist/erpnext/model/DispatchRun.js +1 -0
- package/dist/erpnext/model/DocTypeHelpers.d.ts +12 -25
- package/dist/erpnext/model/DocTypeHelpers.js +44 -23
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +4 -1
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +3 -2
- package/dist/erpnext/model/File.d.ts +50 -0
- package/dist/erpnext/model/File.js +3 -1
- package/dist/erpnext/model/FulfillerSettings.d.ts +52 -24
- package/dist/erpnext/model/FulfillerSettings.js +19 -7
- package/dist/erpnext/model/Item.d.ts +43 -0
- package/dist/erpnext/model/Item.js +2 -1
- package/dist/erpnext/model/PaymentEntry.d.ts +3 -0
- package/dist/erpnext/model/PurchaseInvoice.d.ts +75 -1
- package/dist/erpnext/model/PurchaseOrder.d.ts +52 -63
- package/dist/erpnext/model/PurchaseOrder.js +20 -38
- package/dist/erpnext/model/SalesInvoice.d.ts +197 -4
- package/dist/erpnext/model/Servicecase.d.ts +8 -0
- package/dist/erpnext/model/Shipment.d.ts +119 -162
- package/dist/erpnext/model/Shipment.js +17 -47
- package/dist/erpnext/model/ShippingProvider.d.ts +55 -65
- package/dist/erpnext/model/ShippingProvider.js +6 -10
- package/dist/erpnext/resourceRequest.d.ts +2 -2
- package/dist/utils/zodContextOptionals.d.ts +2 -0
- package/dist/utils/zodContextOptionals.js +8 -4
- package/dist/utils/zodUtils.js +3 -2
- package/package.json +1 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const FulfillerShippingSettingsItem: z.ZodObject<{
|
|
3
|
-
is_active: z.ZodEffects<z.
|
|
3
|
+
is_active: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
4
|
+
__optionalForInput: true;
|
|
5
|
+
};
|
|
4
6
|
fulfiller: z.ZodString;
|
|
5
7
|
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
-
is_ship_individually: z.ZodEffects<z.
|
|
8
|
+
is_ship_individually: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
9
|
+
__optionalForInput: true;
|
|
10
|
+
};
|
|
7
11
|
bundle_size: z.ZodNumber;
|
|
8
12
|
shipping_provider: z.ZodString;
|
|
9
13
|
can_be_bundled_with: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -11,9 +15,9 @@ export declare const FulfillerShippingSettingsItem: z.ZodObject<{
|
|
|
11
15
|
max_bundle_with_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
16
|
}, "strip", z.ZodTypeAny, {
|
|
13
17
|
shipping_provider: string;
|
|
14
|
-
is_active:
|
|
18
|
+
is_active: 0 | 1;
|
|
15
19
|
fulfiller: string;
|
|
16
|
-
is_ship_individually:
|
|
20
|
+
is_ship_individually: 0 | 1;
|
|
17
21
|
bundle_size: number;
|
|
18
22
|
country?: string | null | undefined;
|
|
19
23
|
can_be_bundled_with?: string | null | undefined;
|
|
@@ -21,21 +25,25 @@ export declare const FulfillerShippingSettingsItem: z.ZodObject<{
|
|
|
21
25
|
max_bundle_with_amount?: number | null | undefined;
|
|
22
26
|
}, {
|
|
23
27
|
shipping_provider: string;
|
|
24
|
-
is_active: number;
|
|
25
28
|
fulfiller: string;
|
|
26
|
-
is_ship_individually: number;
|
|
27
29
|
bundle_size: number;
|
|
28
30
|
country?: string | null | undefined;
|
|
31
|
+
is_active?: unknown;
|
|
32
|
+
is_ship_individually?: unknown;
|
|
29
33
|
can_be_bundled_with?: string | null | undefined;
|
|
30
34
|
bundle_type?: "Inside box" | "Outside box" | null | undefined;
|
|
31
35
|
max_bundle_with_amount?: number | null | undefined;
|
|
32
36
|
}>;
|
|
33
37
|
export type FulfillerShippingSettingsItemType = z.infer<typeof FulfillerShippingSettingsItem>;
|
|
34
38
|
export declare const FulfillerShippingSettings: z.ZodArray<z.ZodObject<{
|
|
35
|
-
is_active: z.ZodEffects<z.
|
|
39
|
+
is_active: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
40
|
+
__optionalForInput: true;
|
|
41
|
+
};
|
|
36
42
|
fulfiller: z.ZodString;
|
|
37
43
|
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
38
|
-
is_ship_individually: z.ZodEffects<z.
|
|
44
|
+
is_ship_individually: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
45
|
+
__optionalForInput: true;
|
|
46
|
+
};
|
|
39
47
|
bundle_size: z.ZodNumber;
|
|
40
48
|
shipping_provider: z.ZodString;
|
|
41
49
|
can_be_bundled_with: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -43,9 +51,9 @@ export declare const FulfillerShippingSettings: z.ZodArray<z.ZodObject<{
|
|
|
43
51
|
max_bundle_with_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
44
52
|
}, "strip", z.ZodTypeAny, {
|
|
45
53
|
shipping_provider: string;
|
|
46
|
-
is_active:
|
|
54
|
+
is_active: 0 | 1;
|
|
47
55
|
fulfiller: string;
|
|
48
|
-
is_ship_individually:
|
|
56
|
+
is_ship_individually: 0 | 1;
|
|
49
57
|
bundle_size: number;
|
|
50
58
|
country?: string | null | undefined;
|
|
51
59
|
can_be_bundled_with?: string | null | undefined;
|
|
@@ -53,49 +61,69 @@ export declare const FulfillerShippingSettings: z.ZodArray<z.ZodObject<{
|
|
|
53
61
|
max_bundle_with_amount?: number | null | undefined;
|
|
54
62
|
}, {
|
|
55
63
|
shipping_provider: string;
|
|
56
|
-
is_active: number;
|
|
57
64
|
fulfiller: string;
|
|
58
|
-
is_ship_individually: number;
|
|
59
65
|
bundle_size: number;
|
|
60
66
|
country?: string | null | undefined;
|
|
67
|
+
is_active?: unknown;
|
|
68
|
+
is_ship_individually?: unknown;
|
|
61
69
|
can_be_bundled_with?: string | null | undefined;
|
|
62
70
|
bundle_type?: "Inside box" | "Outside box" | null | undefined;
|
|
63
71
|
max_bundle_with_amount?: number | null | undefined;
|
|
64
72
|
}>, "many">;
|
|
65
73
|
export type FulfillerShippingSettingsType = z.infer<typeof FulfillerShippingSettings>;
|
|
66
|
-
export declare const
|
|
67
|
-
is_active: z.ZodEffects<z.
|
|
74
|
+
export declare const FulfillerShippingSettingsMethodResponse: z.ZodArray<z.ZodObject<Pick<{
|
|
75
|
+
is_active: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
76
|
+
__optionalForInput: true;
|
|
77
|
+
};
|
|
68
78
|
fulfiller: z.ZodString;
|
|
69
79
|
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
-
is_ship_individually: z.ZodEffects<z.
|
|
80
|
+
is_ship_individually: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
81
|
+
__optionalForInput: true;
|
|
82
|
+
};
|
|
71
83
|
bundle_size: z.ZodNumber;
|
|
72
84
|
shipping_provider: z.ZodString;
|
|
73
85
|
can_be_bundled_with: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
86
|
bundle_type: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Inside box">, z.ZodLiteral<"Outside box">]>>>;
|
|
75
87
|
max_bundle_with_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
76
88
|
} & {
|
|
77
|
-
|
|
78
|
-
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
owner: z.ZodString;
|
|
91
|
+
creation: z.ZodString;
|
|
92
|
+
modified: z.ZodString;
|
|
93
|
+
modified_by: z.ZodString;
|
|
94
|
+
idx: z.ZodNumber;
|
|
95
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
96
|
+
__optionalForInput: true;
|
|
97
|
+
};
|
|
98
|
+
doctype: z.ZodString;
|
|
99
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
100
|
+
} & {
|
|
101
|
+
parent: z.ZodString;
|
|
102
|
+
parenttype: z.ZodString;
|
|
103
|
+
parentfield: z.ZodString;
|
|
104
|
+
}, "name" | "parent" | "country" | "shipping_provider" | "is_active" | "fulfiller" | "is_ship_individually" | "bundle_size" | "can_be_bundled_with" | "bundle_type" | "max_bundle_with_amount">, "strip", z.ZodTypeAny, {
|
|
105
|
+
name: string;
|
|
106
|
+
parent: string;
|
|
79
107
|
shipping_provider: string;
|
|
80
|
-
is_active:
|
|
108
|
+
is_active: 0 | 1;
|
|
81
109
|
fulfiller: string;
|
|
82
|
-
is_ship_individually:
|
|
110
|
+
is_ship_individually: 0 | 1;
|
|
83
111
|
bundle_size: number;
|
|
84
|
-
skus: string[];
|
|
85
112
|
country?: string | null | undefined;
|
|
86
113
|
can_be_bundled_with?: string | null | undefined;
|
|
87
114
|
bundle_type?: "Inside box" | "Outside box" | null | undefined;
|
|
88
115
|
max_bundle_with_amount?: number | null | undefined;
|
|
89
116
|
}, {
|
|
117
|
+
name: string;
|
|
118
|
+
parent: string;
|
|
90
119
|
shipping_provider: string;
|
|
91
|
-
is_active: number;
|
|
92
120
|
fulfiller: string;
|
|
93
|
-
is_ship_individually: number;
|
|
94
121
|
bundle_size: number;
|
|
95
|
-
skus: string[];
|
|
96
122
|
country?: string | null | undefined;
|
|
123
|
+
is_active?: unknown;
|
|
124
|
+
is_ship_individually?: unknown;
|
|
97
125
|
can_be_bundled_with?: string | null | undefined;
|
|
98
126
|
bundle_type?: "Inside box" | "Outside box" | null | undefined;
|
|
99
127
|
max_bundle_with_amount?: number | null | undefined;
|
|
100
128
|
}>, "many">;
|
|
101
|
-
export type
|
|
129
|
+
export type FulfillerShippingSettingsMethodResponseType = z.infer<typeof FulfillerShippingSettingsMethodResponse>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FulfillerShippingSettingsMethodResponse = exports.FulfillerShippingSettings = exports.FulfillerShippingSettingsItem = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const DocTypeHelpers_1 = require("./DocTypeHelpers");
|
|
6
|
+
const Boolean_1 = require("./Boolean");
|
|
5
7
|
exports.FulfillerShippingSettingsItem = zod_1.z
|
|
6
8
|
.object({
|
|
7
|
-
is_active:
|
|
9
|
+
is_active: Boolean_1.ERPNextBoolean,
|
|
8
10
|
fulfiller: zod_1.z.string(),
|
|
9
11
|
country: zod_1.z.string().optional().nullable(),
|
|
10
|
-
is_ship_individually:
|
|
12
|
+
is_ship_individually: Boolean_1.ERPNextBoolean,
|
|
11
13
|
bundle_size: zod_1.z.number().min(1),
|
|
12
14
|
shipping_provider: zod_1.z.string(),
|
|
13
15
|
can_be_bundled_with: zod_1.z.string().optional().nullable(),
|
|
@@ -22,8 +24,18 @@ exports.FulfillerShippingSettingsItem = zod_1.z
|
|
|
22
24
|
exports.FulfillerShippingSettings = zod_1.z
|
|
23
25
|
.array(exports.FulfillerShippingSettingsItem)
|
|
24
26
|
.describe("FulfillerShippingSettings");
|
|
25
|
-
exports.
|
|
26
|
-
.array(exports.
|
|
27
|
-
|
|
27
|
+
exports.FulfillerShippingSettingsMethodResponse = zod_1.z
|
|
28
|
+
.array((0, DocTypeHelpers_1.CreateChildTableEntrySchema)(exports.FulfillerShippingSettings.element).pick({
|
|
29
|
+
name: true,
|
|
30
|
+
is_active: true,
|
|
31
|
+
parent: true,
|
|
32
|
+
fulfiller: true,
|
|
33
|
+
country: true,
|
|
34
|
+
is_ship_individually: true,
|
|
35
|
+
bundle_size: true,
|
|
36
|
+
shipping_provider: true,
|
|
37
|
+
can_be_bundled_with: true,
|
|
38
|
+
max_bundle_with_amount: true,
|
|
39
|
+
bundle_type: true,
|
|
28
40
|
}))
|
|
29
|
-
.describe("
|
|
41
|
+
.describe("FulfillerShippingSettingsMethodResponse");
|
|
@@ -15,6 +15,7 @@ declare const ItemdefaultDoc: z.ZodObject<{
|
|
|
15
15
|
doctype: z.ZodString;
|
|
16
16
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
17
|
} & {
|
|
18
|
+
parent: z.ZodString;
|
|
18
19
|
parenttype: z.ZodString;
|
|
19
20
|
parentfield: z.ZodString;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -26,6 +27,7 @@ declare const ItemdefaultDoc: z.ZodObject<{
|
|
|
26
27
|
modified_by: string;
|
|
27
28
|
idx: number;
|
|
28
29
|
doctype: string;
|
|
30
|
+
parent: string;
|
|
29
31
|
parenttype: string;
|
|
30
32
|
parentfield: string;
|
|
31
33
|
company: string;
|
|
@@ -39,6 +41,7 @@ declare const ItemdefaultDoc: z.ZodObject<{
|
|
|
39
41
|
modified_by: string;
|
|
40
42
|
idx: number;
|
|
41
43
|
doctype: string;
|
|
44
|
+
parent: string;
|
|
42
45
|
parenttype: string;
|
|
43
46
|
parentfield: string;
|
|
44
47
|
company: string;
|
|
@@ -63,6 +66,7 @@ declare const UomDoc: z.ZodObject<{
|
|
|
63
66
|
doctype: z.ZodString;
|
|
64
67
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
68
|
} & {
|
|
69
|
+
parent: z.ZodString;
|
|
66
70
|
parenttype: z.ZodString;
|
|
67
71
|
parentfield: z.ZodString;
|
|
68
72
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -74,6 +78,7 @@ declare const UomDoc: z.ZodObject<{
|
|
|
74
78
|
modified_by: string;
|
|
75
79
|
idx: number;
|
|
76
80
|
doctype: string;
|
|
81
|
+
parent: string;
|
|
77
82
|
parenttype: string;
|
|
78
83
|
parentfield: string;
|
|
79
84
|
uom: string;
|
|
@@ -87,6 +92,7 @@ declare const UomDoc: z.ZodObject<{
|
|
|
87
92
|
modified_by: string;
|
|
88
93
|
idx: number;
|
|
89
94
|
doctype: string;
|
|
95
|
+
parent: string;
|
|
90
96
|
parenttype: string;
|
|
91
97
|
parentfield: string;
|
|
92
98
|
uom: string;
|
|
@@ -111,6 +117,7 @@ declare const BarcodeDoc: z.ZodObject<{
|
|
|
111
117
|
doctype: z.ZodString;
|
|
112
118
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
113
119
|
} & {
|
|
120
|
+
parent: z.ZodString;
|
|
114
121
|
parenttype: z.ZodString;
|
|
115
122
|
parentfield: z.ZodString;
|
|
116
123
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -122,6 +129,7 @@ declare const BarcodeDoc: z.ZodObject<{
|
|
|
122
129
|
modified_by: string;
|
|
123
130
|
idx: number;
|
|
124
131
|
doctype: string;
|
|
132
|
+
parent: string;
|
|
125
133
|
parenttype: string;
|
|
126
134
|
parentfield: string;
|
|
127
135
|
barcode: string;
|
|
@@ -135,6 +143,7 @@ declare const BarcodeDoc: z.ZodObject<{
|
|
|
135
143
|
modified_by: string;
|
|
136
144
|
idx: number;
|
|
137
145
|
doctype: string;
|
|
146
|
+
parent: string;
|
|
138
147
|
parenttype: string;
|
|
139
148
|
parentfield: string;
|
|
140
149
|
barcode: string;
|
|
@@ -158,6 +167,7 @@ declare const ItemCertificationDoc: z.ZodObject<{
|
|
|
158
167
|
doctype: z.ZodString;
|
|
159
168
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
160
169
|
} & {
|
|
170
|
+
parent: z.ZodString;
|
|
161
171
|
parenttype: z.ZodString;
|
|
162
172
|
parentfield: z.ZodString;
|
|
163
173
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -169,6 +179,7 @@ declare const ItemCertificationDoc: z.ZodObject<{
|
|
|
169
179
|
modified_by: string;
|
|
170
180
|
idx: number;
|
|
171
181
|
doctype: string;
|
|
182
|
+
parent: string;
|
|
172
183
|
parenttype: string;
|
|
173
184
|
parentfield: string;
|
|
174
185
|
certification: string;
|
|
@@ -181,6 +192,7 @@ declare const ItemCertificationDoc: z.ZodObject<{
|
|
|
181
192
|
modified_by: string;
|
|
182
193
|
idx: number;
|
|
183
194
|
doctype: string;
|
|
195
|
+
parent: string;
|
|
184
196
|
parenttype: string;
|
|
185
197
|
parentfield: string;
|
|
186
198
|
certification: string;
|
|
@@ -204,6 +216,7 @@ declare const SupplierItemsDoc: z.ZodObject<{
|
|
|
204
216
|
doctype: z.ZodString;
|
|
205
217
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
206
218
|
} & {
|
|
219
|
+
parent: z.ZodString;
|
|
207
220
|
parenttype: z.ZodString;
|
|
208
221
|
parentfield: z.ZodString;
|
|
209
222
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -215,6 +228,7 @@ declare const SupplierItemsDoc: z.ZodObject<{
|
|
|
215
228
|
modified_by: string;
|
|
216
229
|
idx: number;
|
|
217
230
|
doctype: string;
|
|
231
|
+
parent: string;
|
|
218
232
|
parenttype: string;
|
|
219
233
|
parentfield: string;
|
|
220
234
|
supplier: string;
|
|
@@ -228,6 +242,7 @@ declare const SupplierItemsDoc: z.ZodObject<{
|
|
|
228
242
|
modified_by: string;
|
|
229
243
|
idx: number;
|
|
230
244
|
doctype: string;
|
|
245
|
+
parent: string;
|
|
231
246
|
parenttype: string;
|
|
232
247
|
parentfield: string;
|
|
233
248
|
supplier: string;
|
|
@@ -1014,6 +1029,34 @@ declare const ItemSupplier: z.ZodObject<{
|
|
|
1014
1029
|
supplier_part_no?: string | null | undefined;
|
|
1015
1030
|
}>;
|
|
1016
1031
|
export type ItemSupplierType = z.infer<typeof ItemSupplier>;
|
|
1032
|
+
export declare const ItemSupplierByItemCodeGetResponse: z.ZodArray<z.ZodObject<Pick<{
|
|
1033
|
+
supplier: z.ZodString;
|
|
1034
|
+
supplier_part_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1035
|
+
name: z.ZodString;
|
|
1036
|
+
owner: z.ZodString;
|
|
1037
|
+
creation: z.ZodString;
|
|
1038
|
+
modified: z.ZodString;
|
|
1039
|
+
modified_by: z.ZodString;
|
|
1040
|
+
idx: z.ZodNumber;
|
|
1041
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
1042
|
+
__optionalForInput: true;
|
|
1043
|
+
};
|
|
1044
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>> & z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1045
|
+
parent: z.ZodString;
|
|
1046
|
+
parenttype: z.ZodString;
|
|
1047
|
+
parentfield: z.ZodString;
|
|
1048
|
+
}, "name" | "parent" | "supplier" | "supplier_part_no">, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1049
|
+
name: string;
|
|
1050
|
+
parent: string;
|
|
1051
|
+
supplier: string;
|
|
1052
|
+
supplier_part_no?: string | null | undefined;
|
|
1053
|
+
}, {
|
|
1054
|
+
name: string;
|
|
1055
|
+
parent: string;
|
|
1056
|
+
supplier: string;
|
|
1057
|
+
supplier_part_no?: string | null | undefined;
|
|
1058
|
+
}>, "many">;
|
|
1059
|
+
export type ItemSupplierByItemCodeGetResponseType = z.infer<typeof ItemSupplierByItemCodeGetResponse>;
|
|
1017
1060
|
declare const GetSupplierPartNumbersMethodData: z.ZodObject<{
|
|
1018
1061
|
supplier: z.ZodString;
|
|
1019
1062
|
supplier_part_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ERPNextItemResponseNoneStockItemsDictFalse = exports.ItemDoc = exports.Item = void 0;
|
|
3
|
+
exports.ItemSupplierByItemCodeGetResponse = exports.ERPNextItemResponseNoneStockItemsDictFalse = exports.ItemDoc = exports.Item = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const DocTypeHelpers_1 = require("./DocTypeHelpers");
|
|
6
6
|
const Boolean_1 = require("./Boolean");
|
|
@@ -165,6 +165,7 @@ const ItemSupplier = zod_1.z
|
|
|
165
165
|
supplier_part_no: zod_1.z.string().optional().nullable(),
|
|
166
166
|
})
|
|
167
167
|
.describe("Item Supplier");
|
|
168
|
+
exports.ItemSupplierByItemCodeGetResponse = (0, DocTypeHelpers_1.DocTypeList)((0, DocTypeHelpers_1.CreateChildTableEntrySchema)(ItemSupplier), ["name", "supplier", "supplier_part_no", "parent"]).describe("ItemSupplierResponse");
|
|
168
169
|
const GetSupplierPartNumbersMethodData = ItemSupplier.extend({
|
|
169
170
|
name: zod_1.z.string(),
|
|
170
171
|
item_code: zod_1.z.string(),
|
|
@@ -343,6 +343,7 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
343
343
|
}>, "many">>;
|
|
344
344
|
taxes: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
345
345
|
deductions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
346
|
+
docstatus: z.ZodOptional<z.ZodNumber>;
|
|
346
347
|
} & {
|
|
347
348
|
reference_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
348
349
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -353,6 +354,7 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
353
354
|
paid_amount: number;
|
|
354
355
|
reference_date: string;
|
|
355
356
|
status?: string | undefined;
|
|
357
|
+
docstatus?: number | undefined;
|
|
356
358
|
company?: string | undefined;
|
|
357
359
|
posting_date?: string | undefined;
|
|
358
360
|
title?: string | undefined;
|
|
@@ -410,6 +412,7 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
410
412
|
paid_amount: number;
|
|
411
413
|
reference_date: string;
|
|
412
414
|
status?: string | undefined;
|
|
415
|
+
docstatus?: number | undefined;
|
|
413
416
|
company?: string | undefined;
|
|
414
417
|
naming_series?: "PAY-.#" | "CART-.#" | undefined;
|
|
415
418
|
posting_date?: string | undefined;
|
|
@@ -980,13 +980,41 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
980
980
|
page_break: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
981
981
|
__islocal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
982
982
|
__unsaved: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
983
|
-
}
|
|
983
|
+
} & {
|
|
984
|
+
name: z.ZodString;
|
|
985
|
+
owner: z.ZodString;
|
|
986
|
+
creation: z.ZodString;
|
|
987
|
+
modified: z.ZodString;
|
|
988
|
+
modified_by: z.ZodString;
|
|
989
|
+
idx: z.ZodNumber;
|
|
990
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
991
|
+
__optionalForInput: true;
|
|
992
|
+
};
|
|
993
|
+
doctype: z.ZodString;
|
|
994
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
995
|
+
} & {
|
|
996
|
+
parent: z.ZodString;
|
|
997
|
+
parenttype: z.ZodString;
|
|
998
|
+
parentfield: z.ZodString;
|
|
999
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1000
|
+
docstatus: number;
|
|
1001
|
+
name: string;
|
|
1002
|
+
owner: string;
|
|
1003
|
+
creation: string;
|
|
1004
|
+
modified: string;
|
|
1005
|
+
modified_by: string;
|
|
1006
|
+
idx: number;
|
|
1007
|
+
doctype: string;
|
|
1008
|
+
parent: string;
|
|
1009
|
+
parenttype: string;
|
|
1010
|
+
parentfield: string;
|
|
984
1011
|
item_code: string;
|
|
985
1012
|
qty: number;
|
|
986
1013
|
base_rate: number;
|
|
987
1014
|
allow_zero_valuation_rate: number;
|
|
988
1015
|
include_exploded_items: number;
|
|
989
1016
|
description?: string | null | undefined;
|
|
1017
|
+
_user_tags?: string | null | undefined;
|
|
990
1018
|
image?: string | null | undefined;
|
|
991
1019
|
rate?: number | null | undefined;
|
|
992
1020
|
amount?: number | null | undefined;
|
|
@@ -1034,12 +1062,24 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1034
1062
|
purchase_receipt?: string | null | undefined;
|
|
1035
1063
|
pr_detail?: string | null | undefined;
|
|
1036
1064
|
}, {
|
|
1065
|
+
name: string;
|
|
1066
|
+
owner: string;
|
|
1067
|
+
creation: string;
|
|
1068
|
+
modified: string;
|
|
1069
|
+
modified_by: string;
|
|
1070
|
+
idx: number;
|
|
1071
|
+
doctype: string;
|
|
1072
|
+
parent: string;
|
|
1073
|
+
parenttype: string;
|
|
1074
|
+
parentfield: string;
|
|
1037
1075
|
item_code: string;
|
|
1038
1076
|
qty: number;
|
|
1039
1077
|
base_rate: number;
|
|
1040
1078
|
allow_zero_valuation_rate: number;
|
|
1041
1079
|
include_exploded_items: number;
|
|
1042
1080
|
description?: string | null | undefined;
|
|
1081
|
+
docstatus?: number | undefined;
|
|
1082
|
+
_user_tags?: string | null | undefined;
|
|
1043
1083
|
image?: string | null | undefined;
|
|
1044
1084
|
rate?: number | null | undefined;
|
|
1045
1085
|
amount?: number | null | undefined;
|
|
@@ -1122,6 +1162,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1122
1162
|
doctype: z.ZodString;
|
|
1123
1163
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1124
1164
|
} & {
|
|
1165
|
+
parent: z.ZodString;
|
|
1125
1166
|
parenttype: z.ZodString;
|
|
1126
1167
|
parentfield: z.ZodString;
|
|
1127
1168
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -1133,6 +1174,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1133
1174
|
modified_by: string;
|
|
1134
1175
|
idx: number;
|
|
1135
1176
|
doctype: string;
|
|
1177
|
+
parent: string;
|
|
1136
1178
|
parenttype: string;
|
|
1137
1179
|
parentfield: string;
|
|
1138
1180
|
description?: string | null | undefined;
|
|
@@ -1163,6 +1205,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1163
1205
|
modified_by: string;
|
|
1164
1206
|
idx: number;
|
|
1165
1207
|
doctype: string;
|
|
1208
|
+
parent: string;
|
|
1166
1209
|
parenttype: string;
|
|
1167
1210
|
parentfield: string;
|
|
1168
1211
|
description?: string | null | undefined;
|
|
@@ -1212,6 +1255,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1212
1255
|
doctype: z.ZodString;
|
|
1213
1256
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1214
1257
|
} & {
|
|
1258
|
+
parent: z.ZodString;
|
|
1215
1259
|
parenttype: z.ZodString;
|
|
1216
1260
|
parentfield: z.ZodString;
|
|
1217
1261
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -1223,6 +1267,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1223
1267
|
modified_by: string;
|
|
1224
1268
|
idx: number;
|
|
1225
1269
|
doctype: string;
|
|
1270
|
+
parent: string;
|
|
1226
1271
|
parenttype: string;
|
|
1227
1272
|
parentfield: string;
|
|
1228
1273
|
_user_tags?: string | null | undefined;
|
|
@@ -1243,6 +1288,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1243
1288
|
modified_by: string;
|
|
1244
1289
|
idx: number;
|
|
1245
1290
|
doctype: string;
|
|
1291
|
+
parent: string;
|
|
1246
1292
|
parenttype: string;
|
|
1247
1293
|
parentfield: string;
|
|
1248
1294
|
docstatus?: number | undefined;
|
|
@@ -1308,6 +1354,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1308
1354
|
modified_by: string;
|
|
1309
1355
|
idx: number;
|
|
1310
1356
|
doctype: string;
|
|
1357
|
+
parent: string;
|
|
1311
1358
|
parenttype: string;
|
|
1312
1359
|
parentfield: string;
|
|
1313
1360
|
description?: string | null | undefined;
|
|
@@ -1340,6 +1387,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1340
1387
|
modified_by: string;
|
|
1341
1388
|
idx: number;
|
|
1342
1389
|
doctype: string;
|
|
1390
|
+
parent: string;
|
|
1343
1391
|
parenttype: string;
|
|
1344
1392
|
parentfield: string;
|
|
1345
1393
|
_user_tags?: string | null | undefined;
|
|
@@ -1381,12 +1429,24 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1381
1429
|
total?: number | null | undefined;
|
|
1382
1430
|
net_total?: number | null | undefined;
|
|
1383
1431
|
items?: {
|
|
1432
|
+
docstatus: number;
|
|
1433
|
+
name: string;
|
|
1434
|
+
owner: string;
|
|
1435
|
+
creation: string;
|
|
1436
|
+
modified: string;
|
|
1437
|
+
modified_by: string;
|
|
1438
|
+
idx: number;
|
|
1439
|
+
doctype: string;
|
|
1440
|
+
parent: string;
|
|
1441
|
+
parenttype: string;
|
|
1442
|
+
parentfield: string;
|
|
1384
1443
|
item_code: string;
|
|
1385
1444
|
qty: number;
|
|
1386
1445
|
base_rate: number;
|
|
1387
1446
|
allow_zero_valuation_rate: number;
|
|
1388
1447
|
include_exploded_items: number;
|
|
1389
1448
|
description?: string | null | undefined;
|
|
1449
|
+
_user_tags?: string | null | undefined;
|
|
1390
1450
|
image?: string | null | undefined;
|
|
1391
1451
|
rate?: number | null | undefined;
|
|
1392
1452
|
amount?: number | null | undefined;
|
|
@@ -1507,6 +1567,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1507
1567
|
modified_by: string;
|
|
1508
1568
|
idx: number;
|
|
1509
1569
|
doctype: string;
|
|
1570
|
+
parent: string;
|
|
1510
1571
|
parenttype: string;
|
|
1511
1572
|
parentfield: string;
|
|
1512
1573
|
description?: string | null | undefined;
|
|
@@ -1539,6 +1600,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1539
1600
|
modified_by: string;
|
|
1540
1601
|
idx: number;
|
|
1541
1602
|
doctype: string;
|
|
1603
|
+
parent: string;
|
|
1542
1604
|
parenttype: string;
|
|
1543
1605
|
parentfield: string;
|
|
1544
1606
|
docstatus?: number | undefined;
|
|
@@ -1582,12 +1644,24 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1582
1644
|
total?: number | null | undefined;
|
|
1583
1645
|
net_total?: number | null | undefined;
|
|
1584
1646
|
items?: {
|
|
1647
|
+
name: string;
|
|
1648
|
+
owner: string;
|
|
1649
|
+
creation: string;
|
|
1650
|
+
modified: string;
|
|
1651
|
+
modified_by: string;
|
|
1652
|
+
idx: number;
|
|
1653
|
+
doctype: string;
|
|
1654
|
+
parent: string;
|
|
1655
|
+
parenttype: string;
|
|
1656
|
+
parentfield: string;
|
|
1585
1657
|
item_code: string;
|
|
1586
1658
|
qty: number;
|
|
1587
1659
|
base_rate: number;
|
|
1588
1660
|
allow_zero_valuation_rate: number;
|
|
1589
1661
|
include_exploded_items: number;
|
|
1590
1662
|
description?: string | null | undefined;
|
|
1663
|
+
docstatus?: number | undefined;
|
|
1664
|
+
_user_tags?: string | null | undefined;
|
|
1591
1665
|
image?: string | null | undefined;
|
|
1592
1666
|
rate?: number | null | undefined;
|
|
1593
1667
|
amount?: number | null | undefined;
|