erpnext-queue-client 2.0.0-beta.0 → 2.0.0-beta.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/client.js +1 -4
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +4 -4
- package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +56 -16
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +10 -8
- package/dist/erpnext/doctypes/address.d.ts +18 -18
- package/dist/erpnext/doctypes/contact.d.ts +18 -18
- package/dist/erpnext/doctypes/deliveryNote.d.ts +44 -33
- package/dist/erpnext/doctypes/item.d.ts +49 -49
- package/dist/erpnext/doctypes/paymentEntry.d.ts +820 -0
- package/dist/erpnext/doctypes/paymentEntry.js +72 -0
- package/dist/erpnext/doctypes/productBundle.d.ts +16 -16
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +99 -99
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +48 -49
- package/dist/erpnext/doctypes/salesInvoice.d.ts +2205 -2203
- package/dist/erpnext/doctypes/servicecase.d.ts +56 -56
- package/dist/erpnext/doctypes/shipment.d.ts +76 -44
- package/dist/erpnext/doctypes/stock.d.ts +2 -0
- package/dist/erpnext/doctypes/stock.js +19 -3
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +321 -0
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +83 -0
- package/dist/erpnext/model/DeliveryNote.d.ts +3 -0
- package/dist/erpnext/model/DeliveryNote.js +1 -0
- package/dist/erpnext/model/DispatchRun.d.ts +3 -3
- package/dist/erpnext/model/DispatchRun.js +1 -1
- package/dist/erpnext/model/DocTypeHelpers.d.ts +26 -7
- package/dist/erpnext/model/DocTypeHelpers.js +0 -8
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +28 -15
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +12 -7
- package/dist/erpnext/model/FulfillmentStation.d.ts +3 -0
- package/dist/erpnext/model/FulfillmentStation.js +1 -0
- package/dist/erpnext/model/Item.d.ts +35 -25
- package/dist/erpnext/model/ItemTaxTemplate.d.ts +57 -0
- package/dist/erpnext/model/ItemTaxTemplate.js +25 -0
- package/dist/erpnext/model/PaymentEntry.d.ts +183 -16
- package/dist/erpnext/model/PaymentEntry.js +6 -1
- package/dist/erpnext/model/PurchaseInvoice.d.ts +49 -47
- package/dist/erpnext/model/PurchaseInvoice.js +0 -1
- package/dist/erpnext/model/PurchaseOrder.d.ts +10 -10
- package/dist/erpnext/model/Receipt.d.ts +2 -2
- package/dist/erpnext/model/ReceiptDraft.d.ts +0 -3
- package/dist/erpnext/model/ReceiptDraft.js +0 -1
- package/dist/erpnext/model/SalesInvoice.d.ts +1530 -1526
- package/dist/erpnext/model/SalesInvoice.js +182 -178
- package/dist/erpnext/model/SalesOrder.d.ts +778 -748
- package/dist/erpnext/model/SalesOrder.js +151 -149
- package/dist/erpnext/model/Servicecase.d.ts +30 -30
- package/dist/erpnext/model/Servicecase.js +8 -1
- package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +128 -3
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +34 -2
- package/dist/erpnext/model/Shipment.d.ts +14 -0
- package/dist/erpnext/model/Shipment.js +14 -1
- package/dist/erpnext/model/ShippingFees.d.ts +36 -0
- package/dist/erpnext/model/ShippingFees.js +18 -0
- package/dist/erpnext/model/ShippingProvider.d.ts +2 -2
- package/dist/erpnext/model/Stock.d.ts +6 -6
- package/dist/erpnext/model/StockEntry.d.ts +2 -2
- package/dist/erpnext/model/TaxCategory.d.ts +20 -0
- package/dist/erpnext/model/TaxCategory.js +16 -0
- package/dist/erpnext/resourceRequest.d.ts +1 -1
- package/dist/erpnext/resourceRequest.js +11 -5
- package/dist/index.d.ts +8 -2
- package/dist/index.js +9 -2
- package/dist/index.test.js +104 -70
- package/dist/utils/zodContextOptionals.js +7 -4
- package/dist/utils/zodUtils.js +14 -2
- package/package.json +7 -2
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const Docstatus: z.ZodDefault<z.ZodNumber>;
|
|
3
|
+
export type DocstatusType = z.infer<typeof Docstatus>;
|
|
2
4
|
export declare const SubmittableMeta: z.ZodObject<{
|
|
3
5
|
amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
7
|
+
__optionalForInput: true;
|
|
8
|
+
};
|
|
4
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
docstatus: number;
|
|
5
11
|
amended_from?: string | null | undefined;
|
|
6
12
|
}, {
|
|
7
13
|
amended_from?: string | null | undefined;
|
|
14
|
+
docstatus?: number | undefined;
|
|
8
15
|
}>;
|
|
9
16
|
export declare const DocTypeMeta: z.ZodObject<{
|
|
10
17
|
name: z.ZodString;
|
|
@@ -13,19 +20,21 @@ export declare const DocTypeMeta: z.ZodObject<{
|
|
|
13
20
|
modified: z.ZodString;
|
|
14
21
|
modified_by: z.ZodString;
|
|
15
22
|
idx: z.ZodNumber;
|
|
16
|
-
docstatus: z.ZodDefault<z.ZodNumber
|
|
23
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
24
|
+
__optionalForInput: true;
|
|
25
|
+
};
|
|
17
26
|
doctype: z.ZodString;
|
|
18
|
-
_user_tags: z.ZodOptional<z.ZodString
|
|
27
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
docstatus: number;
|
|
20
30
|
name: string;
|
|
21
31
|
owner: string;
|
|
22
32
|
creation: string;
|
|
23
33
|
modified: string;
|
|
24
34
|
modified_by: string;
|
|
25
35
|
idx: number;
|
|
26
|
-
docstatus: number;
|
|
27
36
|
doctype: string;
|
|
28
|
-
_user_tags?: string | undefined;
|
|
37
|
+
_user_tags?: string | null | undefined;
|
|
29
38
|
}, {
|
|
30
39
|
name: string;
|
|
31
40
|
owner: string;
|
|
@@ -35,7 +44,7 @@ export declare const DocTypeMeta: z.ZodObject<{
|
|
|
35
44
|
idx: number;
|
|
36
45
|
doctype: string;
|
|
37
46
|
docstatus?: number | undefined;
|
|
38
|
-
_user_tags?: string | undefined;
|
|
47
|
+
_user_tags?: string | null | undefined;
|
|
39
48
|
}>;
|
|
40
49
|
export type DocTypeMetaType = z.infer<typeof DocTypeMeta>;
|
|
41
50
|
export declare const DocTypeChildTableEntryMeta: z.ZodObject<{
|
|
@@ -45,24 +54,26 @@ export declare const DocTypeChildTableEntryMeta: z.ZodObject<{
|
|
|
45
54
|
modified: z.ZodString;
|
|
46
55
|
modified_by: z.ZodString;
|
|
47
56
|
idx: z.ZodNumber;
|
|
48
|
-
docstatus: z.ZodDefault<z.ZodNumber
|
|
57
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
58
|
+
__optionalForInput: true;
|
|
59
|
+
};
|
|
49
60
|
doctype: z.ZodString;
|
|
50
|
-
_user_tags: z.ZodOptional<z.ZodString
|
|
61
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
62
|
} & {
|
|
52
63
|
parenttype: z.ZodString;
|
|
53
64
|
parentfield: z.ZodString;
|
|
54
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
docstatus: number;
|
|
55
67
|
name: string;
|
|
56
68
|
owner: string;
|
|
57
69
|
creation: string;
|
|
58
70
|
modified: string;
|
|
59
71
|
modified_by: string;
|
|
60
72
|
idx: number;
|
|
61
|
-
docstatus: number;
|
|
62
73
|
doctype: string;
|
|
63
74
|
parenttype: string;
|
|
64
75
|
parentfield: string;
|
|
65
|
-
_user_tags?: string | undefined;
|
|
76
|
+
_user_tags?: string | null | undefined;
|
|
66
77
|
}, {
|
|
67
78
|
name: string;
|
|
68
79
|
owner: string;
|
|
@@ -74,7 +85,7 @@ export declare const DocTypeChildTableEntryMeta: z.ZodObject<{
|
|
|
74
85
|
parenttype: string;
|
|
75
86
|
parentfield: string;
|
|
76
87
|
docstatus?: number | undefined;
|
|
77
|
-
_user_tags?: string | undefined;
|
|
88
|
+
_user_tags?: string | null | undefined;
|
|
78
89
|
}>;
|
|
79
90
|
export type DocTypeChildTableEntryMetaType = z.infer<typeof DocTypeChildTableEntryMeta>;
|
|
80
91
|
export declare const DocTypeNested: z.ZodObject<{
|
|
@@ -83,9 +94,11 @@ export declare const DocTypeNested: z.ZodObject<{
|
|
|
83
94
|
creation: z.ZodString;
|
|
84
95
|
modified: z.ZodString;
|
|
85
96
|
modified_by: z.ZodString;
|
|
86
|
-
docstatus: z.ZodDefault<z.ZodNumber
|
|
97
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
98
|
+
__optionalForInput: true;
|
|
99
|
+
};
|
|
87
100
|
doctype: z.ZodString;
|
|
88
|
-
_user_tags: z.ZodOptional<z.ZodString
|
|
101
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
89
102
|
} & {
|
|
90
103
|
old_parent: z.ZodString;
|
|
91
104
|
is_group: z.ZodNumber;
|
|
@@ -93,19 +106,19 @@ export declare const DocTypeNested: z.ZodObject<{
|
|
|
93
106
|
rgt: z.ZodNumber;
|
|
94
107
|
idx: z.ZodNumber;
|
|
95
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
docstatus: number;
|
|
96
110
|
name: string;
|
|
97
111
|
owner: string;
|
|
98
112
|
creation: string;
|
|
99
113
|
modified: string;
|
|
100
114
|
modified_by: string;
|
|
101
115
|
idx: number;
|
|
102
|
-
docstatus: number;
|
|
103
116
|
doctype: string;
|
|
104
117
|
old_parent: string;
|
|
105
118
|
is_group: number;
|
|
106
119
|
lft: number;
|
|
107
120
|
rgt: number;
|
|
108
|
-
_user_tags?: string | undefined;
|
|
121
|
+
_user_tags?: string | null | undefined;
|
|
109
122
|
}, {
|
|
110
123
|
name: string;
|
|
111
124
|
owner: string;
|
|
@@ -119,6 +132,6 @@ export declare const DocTypeNested: z.ZodObject<{
|
|
|
119
132
|
lft: number;
|
|
120
133
|
rgt: number;
|
|
121
134
|
docstatus?: number | undefined;
|
|
122
|
-
_user_tags?: string | undefined;
|
|
135
|
+
_user_tags?: string | null | undefined;
|
|
123
136
|
}>;
|
|
124
137
|
export type DocTypeNestedType = z.infer<typeof DocTypeNested>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DocTypeNested = exports.DocTypeChildTableEntryMeta = exports.DocTypeMeta = exports.SubmittableMeta = void 0;
|
|
3
|
+
exports.DocTypeNested = exports.DocTypeChildTableEntryMeta = exports.DocTypeMeta = exports.SubmittableMeta = exports.Docstatus = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
|
|
5
|
+
const zodContextOptionals_1 = require("../../utils/zodContextOptionals");
|
|
6
|
+
exports.Docstatus = zod_1.z.number().int().min(0).max(2).default(0);
|
|
7
|
+
exports.SubmittableMeta = zod_1.z
|
|
8
|
+
.object({
|
|
6
9
|
amended_from: zod_1.z.string().optional().nullable(),
|
|
7
|
-
|
|
10
|
+
docstatus: (0, zodContextOptionals_1.optionalForInput)(exports.Docstatus),
|
|
11
|
+
})
|
|
12
|
+
.describe("Submittable Meta");
|
|
8
13
|
exports.DocTypeMeta = zod_1.z
|
|
9
14
|
.object({
|
|
10
15
|
name: zod_1.z.string(),
|
|
@@ -13,9 +18,9 @@ exports.DocTypeMeta = zod_1.z
|
|
|
13
18
|
modified: zod_1.z.string(),
|
|
14
19
|
modified_by: zod_1.z.string(),
|
|
15
20
|
idx: zod_1.z.number(),
|
|
16
|
-
docstatus:
|
|
21
|
+
docstatus: (0, zodContextOptionals_1.optionalForInput)(exports.Docstatus),
|
|
17
22
|
doctype: zod_1.z.string(),
|
|
18
|
-
_user_tags: zod_1.z.string().optional(),
|
|
23
|
+
_user_tags: zod_1.z.string().optional().nullable(),
|
|
19
24
|
})
|
|
20
25
|
.describe("Sales Order");
|
|
21
26
|
const ChildTableEntryFieldsMeta = zod_1.z
|
|
@@ -24,7 +29,7 @@ const ChildTableEntryFieldsMeta = zod_1.z
|
|
|
24
29
|
parentfield: zod_1.z.string(),
|
|
25
30
|
})
|
|
26
31
|
.describe("Sales Order");
|
|
27
|
-
exports.DocTypeChildTableEntryMeta = exports.DocTypeMeta.merge(ChildTableEntryFieldsMeta);
|
|
32
|
+
exports.DocTypeChildTableEntryMeta = exports.DocTypeMeta.merge(ChildTableEntryFieldsMeta).describe("Doc Type Child Table Entry Meta");
|
|
28
33
|
const DocTypeNestedMeta = zod_1.z
|
|
29
34
|
.object({
|
|
30
35
|
old_parent: zod_1.z.string(),
|
|
@@ -34,4 +39,4 @@ const DocTypeNestedMeta = zod_1.z
|
|
|
34
39
|
idx: zod_1.z.number(),
|
|
35
40
|
})
|
|
36
41
|
.describe("Sales Order");
|
|
37
|
-
exports.DocTypeNested = exports.DocTypeMeta.merge(DocTypeNestedMeta);
|
|
42
|
+
exports.DocTypeNested = exports.DocTypeMeta.merge(DocTypeNestedMeta).describe("Doc Type Nested Meta");
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const FulfillmentStations: z.ZodArray<z.ZodObject<{
|
|
3
3
|
fulfillment_station: z.ZodString;
|
|
4
|
+
require_scan_to_print: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNumber>>>;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
5
6
|
fulfillment_station: string;
|
|
7
|
+
require_scan_to_print?: number | null | undefined;
|
|
6
8
|
}, {
|
|
7
9
|
fulfillment_station: string;
|
|
10
|
+
require_scan_to_print?: number | null | undefined;
|
|
8
11
|
}>, "many">;
|
|
9
12
|
export type FulfillmentStationsType = z.infer<typeof FulfillmentStations>;
|
|
@@ -9,26 +9,28 @@ declare const ItemdefaultDoc: z.ZodObject<{
|
|
|
9
9
|
modified: z.ZodString;
|
|
10
10
|
modified_by: z.ZodString;
|
|
11
11
|
idx: z.ZodNumber;
|
|
12
|
-
docstatus: z.ZodDefault<z.ZodNumber
|
|
12
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
13
|
+
__optionalForInput: true;
|
|
14
|
+
};
|
|
13
15
|
doctype: z.ZodString;
|
|
14
|
-
_user_tags: z.ZodOptional<z.ZodString
|
|
16
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
17
|
} & {
|
|
16
18
|
parenttype: z.ZodString;
|
|
17
19
|
parentfield: z.ZodString;
|
|
18
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
docstatus: number;
|
|
19
22
|
name: string;
|
|
20
23
|
owner: string;
|
|
21
24
|
creation: string;
|
|
22
25
|
modified: string;
|
|
23
26
|
modified_by: string;
|
|
24
27
|
idx: number;
|
|
25
|
-
docstatus: number;
|
|
26
28
|
doctype: string;
|
|
27
29
|
parenttype: string;
|
|
28
30
|
parentfield: string;
|
|
29
31
|
company: string;
|
|
30
32
|
default_warehouse: string;
|
|
31
|
-
_user_tags?: string | undefined;
|
|
33
|
+
_user_tags?: string | null | undefined;
|
|
32
34
|
}, {
|
|
33
35
|
name: string;
|
|
34
36
|
owner: string;
|
|
@@ -42,7 +44,7 @@ declare const ItemdefaultDoc: z.ZodObject<{
|
|
|
42
44
|
company: string;
|
|
43
45
|
default_warehouse: string;
|
|
44
46
|
docstatus?: number | undefined;
|
|
45
|
-
_user_tags?: string | undefined;
|
|
47
|
+
_user_tags?: string | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
export type ItemdefaultDocType = z.infer<typeof ItemdefaultDoc>;
|
|
48
50
|
declare const UomDoc: z.ZodObject<{
|
|
@@ -55,26 +57,28 @@ declare const UomDoc: z.ZodObject<{
|
|
|
55
57
|
modified: z.ZodString;
|
|
56
58
|
modified_by: z.ZodString;
|
|
57
59
|
idx: z.ZodNumber;
|
|
58
|
-
docstatus: z.ZodDefault<z.ZodNumber
|
|
60
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
61
|
+
__optionalForInput: true;
|
|
62
|
+
};
|
|
59
63
|
doctype: z.ZodString;
|
|
60
|
-
_user_tags: z.ZodOptional<z.ZodString
|
|
64
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
65
|
} & {
|
|
62
66
|
parenttype: z.ZodString;
|
|
63
67
|
parentfield: z.ZodString;
|
|
64
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
docstatus: number;
|
|
65
70
|
name: string;
|
|
66
71
|
owner: string;
|
|
67
72
|
creation: string;
|
|
68
73
|
modified: string;
|
|
69
74
|
modified_by: string;
|
|
70
75
|
idx: number;
|
|
71
|
-
docstatus: number;
|
|
72
76
|
doctype: string;
|
|
73
77
|
parenttype: string;
|
|
74
78
|
parentfield: string;
|
|
75
79
|
uom: string;
|
|
76
80
|
conversion_factor: number;
|
|
77
|
-
_user_tags?: string | undefined;
|
|
81
|
+
_user_tags?: string | null | undefined;
|
|
78
82
|
}, {
|
|
79
83
|
name: string;
|
|
80
84
|
owner: string;
|
|
@@ -88,7 +92,7 @@ declare const UomDoc: z.ZodObject<{
|
|
|
88
92
|
uom: string;
|
|
89
93
|
conversion_factor: number;
|
|
90
94
|
docstatus?: number | undefined;
|
|
91
|
-
_user_tags?: string | undefined;
|
|
95
|
+
_user_tags?: string | null | undefined;
|
|
92
96
|
}>;
|
|
93
97
|
export type UomDocType = z.infer<typeof UomDoc>;
|
|
94
98
|
declare const BarcodeDoc: z.ZodObject<{
|
|
@@ -101,26 +105,28 @@ declare const BarcodeDoc: z.ZodObject<{
|
|
|
101
105
|
modified: z.ZodString;
|
|
102
106
|
modified_by: z.ZodString;
|
|
103
107
|
idx: z.ZodNumber;
|
|
104
|
-
docstatus: z.ZodDefault<z.ZodNumber
|
|
108
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
109
|
+
__optionalForInput: true;
|
|
110
|
+
};
|
|
105
111
|
doctype: z.ZodString;
|
|
106
|
-
_user_tags: z.ZodOptional<z.ZodString
|
|
112
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
107
113
|
} & {
|
|
108
114
|
parenttype: z.ZodString;
|
|
109
115
|
parentfield: z.ZodString;
|
|
110
116
|
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
docstatus: number;
|
|
111
118
|
name: string;
|
|
112
119
|
owner: string;
|
|
113
120
|
creation: string;
|
|
114
121
|
modified: string;
|
|
115
122
|
modified_by: string;
|
|
116
123
|
idx: number;
|
|
117
|
-
docstatus: number;
|
|
118
124
|
doctype: string;
|
|
119
125
|
parenttype: string;
|
|
120
126
|
parentfield: string;
|
|
121
127
|
barcode: string;
|
|
122
128
|
barcode_type: string;
|
|
123
|
-
_user_tags?: string | undefined;
|
|
129
|
+
_user_tags?: string | null | undefined;
|
|
124
130
|
}, {
|
|
125
131
|
name: string;
|
|
126
132
|
owner: string;
|
|
@@ -134,7 +140,7 @@ declare const BarcodeDoc: z.ZodObject<{
|
|
|
134
140
|
barcode: string;
|
|
135
141
|
barcode_type: string;
|
|
136
142
|
docstatus?: number | undefined;
|
|
137
|
-
_user_tags?: string | undefined;
|
|
143
|
+
_user_tags?: string | null | undefined;
|
|
138
144
|
}>;
|
|
139
145
|
export type BarcodeDocType = z.infer<typeof BarcodeDoc>;
|
|
140
146
|
declare const ItemCertificationDoc: z.ZodObject<{
|
|
@@ -146,25 +152,27 @@ declare const ItemCertificationDoc: z.ZodObject<{
|
|
|
146
152
|
modified: z.ZodString;
|
|
147
153
|
modified_by: z.ZodString;
|
|
148
154
|
idx: z.ZodNumber;
|
|
149
|
-
docstatus: z.ZodDefault<z.ZodNumber
|
|
155
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
156
|
+
__optionalForInput: true;
|
|
157
|
+
};
|
|
150
158
|
doctype: z.ZodString;
|
|
151
|
-
_user_tags: z.ZodOptional<z.ZodString
|
|
159
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
152
160
|
} & {
|
|
153
161
|
parenttype: z.ZodString;
|
|
154
162
|
parentfield: z.ZodString;
|
|
155
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
docstatus: number;
|
|
156
165
|
name: string;
|
|
157
166
|
owner: string;
|
|
158
167
|
creation: string;
|
|
159
168
|
modified: string;
|
|
160
169
|
modified_by: string;
|
|
161
170
|
idx: number;
|
|
162
|
-
docstatus: number;
|
|
163
171
|
doctype: string;
|
|
164
172
|
parenttype: string;
|
|
165
173
|
parentfield: string;
|
|
166
174
|
certification: string;
|
|
167
|
-
_user_tags?: string | undefined;
|
|
175
|
+
_user_tags?: string | null | undefined;
|
|
168
176
|
}, {
|
|
169
177
|
name: string;
|
|
170
178
|
owner: string;
|
|
@@ -177,7 +185,7 @@ declare const ItemCertificationDoc: z.ZodObject<{
|
|
|
177
185
|
parentfield: string;
|
|
178
186
|
certification: string;
|
|
179
187
|
docstatus?: number | undefined;
|
|
180
|
-
_user_tags?: string | undefined;
|
|
188
|
+
_user_tags?: string | null | undefined;
|
|
181
189
|
}>;
|
|
182
190
|
export type ItemCertificationDocType = z.infer<typeof ItemCertificationDoc>;
|
|
183
191
|
declare const SupplierItemsDoc: z.ZodObject<{
|
|
@@ -190,25 +198,27 @@ declare const SupplierItemsDoc: z.ZodObject<{
|
|
|
190
198
|
modified: z.ZodString;
|
|
191
199
|
modified_by: z.ZodString;
|
|
192
200
|
idx: z.ZodNumber;
|
|
193
|
-
docstatus: z.ZodDefault<z.ZodNumber
|
|
201
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
202
|
+
__optionalForInput: true;
|
|
203
|
+
};
|
|
194
204
|
doctype: z.ZodString;
|
|
195
|
-
_user_tags: z.ZodOptional<z.ZodString
|
|
205
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
196
206
|
} & {
|
|
197
207
|
parenttype: z.ZodString;
|
|
198
208
|
parentfield: z.ZodString;
|
|
199
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
docstatus: number;
|
|
200
211
|
name: string;
|
|
201
212
|
owner: string;
|
|
202
213
|
creation: string;
|
|
203
214
|
modified: string;
|
|
204
215
|
modified_by: string;
|
|
205
216
|
idx: number;
|
|
206
|
-
docstatus: number;
|
|
207
217
|
doctype: string;
|
|
208
218
|
parenttype: string;
|
|
209
219
|
parentfield: string;
|
|
210
220
|
supplier: string;
|
|
211
|
-
_user_tags?: string | undefined;
|
|
221
|
+
_user_tags?: string | null | undefined;
|
|
212
222
|
supplier_part_no?: string | null | undefined;
|
|
213
223
|
}, {
|
|
214
224
|
name: string;
|
|
@@ -222,7 +232,7 @@ declare const SupplierItemsDoc: z.ZodObject<{
|
|
|
222
232
|
parentfield: string;
|
|
223
233
|
supplier: string;
|
|
224
234
|
docstatus?: number | undefined;
|
|
225
|
-
_user_tags?: string | undefined;
|
|
235
|
+
_user_tags?: string | null | undefined;
|
|
226
236
|
supplier_part_no?: string | null | undefined;
|
|
227
237
|
}>;
|
|
228
238
|
export type SupplierItemsDocType = z.infer<typeof SupplierItemsDoc>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const ItemTaxTemplateDetail: z.ZodObject<{
|
|
3
|
+
tax_type: z.ZodString;
|
|
4
|
+
tax_rate: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
tax_type: string;
|
|
7
|
+
tax_rate: number;
|
|
8
|
+
}, {
|
|
9
|
+
tax_type: string;
|
|
10
|
+
tax_rate?: number | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type ItemTaxTemplateDetailType = z.infer<typeof ItemTaxTemplateDetail>;
|
|
13
|
+
export declare const ItemTaxTemplate: z.ZodObject<{
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
company: z.ZodString;
|
|
16
|
+
custom_country: z.ZodString;
|
|
17
|
+
custom_income_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
disabled: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
19
|
+
__optionalForInput: true;
|
|
20
|
+
};
|
|
21
|
+
custom_is_default: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
22
|
+
__optionalForInput: true;
|
|
23
|
+
};
|
|
24
|
+
taxes: z.ZodArray<z.ZodObject<{
|
|
25
|
+
tax_type: z.ZodString;
|
|
26
|
+
tax_rate: z.ZodDefault<z.ZodNumber>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
tax_type: string;
|
|
29
|
+
tax_rate: number;
|
|
30
|
+
}, {
|
|
31
|
+
tax_type: string;
|
|
32
|
+
tax_rate?: number | undefined;
|
|
33
|
+
}>, "many">;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
disabled: 0 | 1;
|
|
36
|
+
company: string;
|
|
37
|
+
title: string;
|
|
38
|
+
taxes: {
|
|
39
|
+
tax_type: string;
|
|
40
|
+
tax_rate: number;
|
|
41
|
+
}[];
|
|
42
|
+
custom_country: string;
|
|
43
|
+
custom_is_default: 0 | 1;
|
|
44
|
+
custom_income_account?: string | null | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
company: string;
|
|
47
|
+
title: string;
|
|
48
|
+
taxes: {
|
|
49
|
+
tax_type: string;
|
|
50
|
+
tax_rate?: number | undefined;
|
|
51
|
+
}[];
|
|
52
|
+
custom_country: string;
|
|
53
|
+
disabled?: unknown;
|
|
54
|
+
custom_income_account?: string | null | undefined;
|
|
55
|
+
custom_is_default?: unknown;
|
|
56
|
+
}>;
|
|
57
|
+
export type ItemTaxTemplateType = z.infer<typeof ItemTaxTemplate>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ItemTaxTemplate = exports.ItemTaxTemplateDetail = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const Boolean_1 = require("./Boolean");
|
|
9
|
+
exports.ItemTaxTemplateDetail = zod_1.default
|
|
10
|
+
.object({
|
|
11
|
+
tax_type: zod_1.default.string(),
|
|
12
|
+
tax_rate: zod_1.default.number().positive().default(0), // Default to 0 if not provided
|
|
13
|
+
})
|
|
14
|
+
.describe("Item Tax Template Detail");
|
|
15
|
+
exports.ItemTaxTemplate = zod_1.default
|
|
16
|
+
.object({
|
|
17
|
+
title: zod_1.default.string(),
|
|
18
|
+
company: zod_1.default.string(),
|
|
19
|
+
custom_country: zod_1.default.string(),
|
|
20
|
+
custom_income_account: zod_1.default.string().optional().nullable(),
|
|
21
|
+
disabled: Boolean_1.ERPNextBoolean,
|
|
22
|
+
custom_is_default: Boolean_1.ERPNextBoolean,
|
|
23
|
+
taxes: zod_1.default.array(exports.ItemTaxTemplateDetail),
|
|
24
|
+
})
|
|
25
|
+
.describe("Item Tax Template");
|