erpnext-queue-client 2.0.0-beta.2 → 2.1.1
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/paymentEntry.d.ts +91 -0
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +23 -23
- package/dist/erpnext/doctypes/salesInvoice.d.ts +42 -42
- package/dist/erpnext/model/Account.d.ts +100 -3
- package/dist/erpnext/model/Account.js +68 -2
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +16 -0
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +3 -0
- package/dist/erpnext/model/ItemTaxTemplate.d.ts +3 -3
- package/dist/erpnext/model/PaymentEntry.d.ts +105 -2
- package/dist/erpnext/model/PaymentEntry.js +7 -0
- package/dist/erpnext/model/PurchaseInvoice.d.ts +12 -12
- package/dist/erpnext/model/SalesInvoice.d.ts +22 -22
- package/dist/erpnext/model/SalesOrder.d.ts +4 -4
- package/dist/erpnext/model/SalesTaxesAndCharges.d.ts +2 -2
- package/dist/erpnext/model/StockEntry.d.ts +2 -2
- package/dist/erpnext/model/Supplier.d.ts +71 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,11 +1,108 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const Account: z.ZodObject<{
|
|
3
|
+
account_name: z.ZodString;
|
|
4
|
+
account_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
is_group: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
6
|
+
__optionalForInput: true;
|
|
7
|
+
};
|
|
3
8
|
company: z.ZodString;
|
|
4
|
-
|
|
9
|
+
root_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Asset", "Liability", "Income", "Expense", "Equity"]>>>;
|
|
10
|
+
report_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Balance Sheet", "Profit and Loss"]>>>;
|
|
11
|
+
account_currency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
parent_account: z.ZodString;
|
|
13
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Accumulated Depreciation", "Asset Received But Not Billed", "Bank", "Cash", "Chargeable", "Capital Work in Progress", "Cost of Goods Sold", "Current Asset", "Current Liability", "Depreciation", "Direct Expense", "Direct Income", "Equity", "Expense Account", "Expenses Included In Asset Valuation", "Expenses Included In Valuation", "Fixed Asset", "Income Account", "Indirect Expense", "Indirect Income", "Liability", "Payable", "Receivable", "Round Off", "Stock", "Stock Adjustment", "Stock Received But Not Billed", "Service Received But Not Billed", "Tax", "Temporary"]>>>;
|
|
14
|
+
tax_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
+
freeze_account: z.ZodNullable<z.ZodOptional<z.ZodEnum<["No", "Yes"]>>>;
|
|
16
|
+
balance_must_be: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Debit", "Credit"]>>>;
|
|
17
|
+
include_in_gross: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
18
|
+
__optionalForInput: true;
|
|
19
|
+
};
|
|
20
|
+
disabled: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
21
|
+
__optionalForInput: true;
|
|
22
|
+
};
|
|
5
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
is_group: 0 | 1;
|
|
25
|
+
disabled: 0 | 1;
|
|
26
|
+
account_name: string;
|
|
6
27
|
company: string;
|
|
7
|
-
|
|
28
|
+
parent_account: string;
|
|
29
|
+
include_in_gross: 0 | 1;
|
|
30
|
+
account_number?: string | null | undefined;
|
|
31
|
+
root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
|
|
32
|
+
report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
|
|
33
|
+
account_currency?: string | null | undefined;
|
|
34
|
+
account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
|
|
35
|
+
tax_rate?: number | null | undefined;
|
|
36
|
+
freeze_account?: "No" | "Yes" | null | undefined;
|
|
37
|
+
balance_must_be?: "Debit" | "Credit" | null | undefined;
|
|
8
38
|
}, {
|
|
39
|
+
account_name: string;
|
|
9
40
|
company: string;
|
|
10
|
-
|
|
41
|
+
parent_account: string;
|
|
42
|
+
is_group?: unknown;
|
|
43
|
+
disabled?: unknown;
|
|
44
|
+
account_number?: string | null | undefined;
|
|
45
|
+
root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
|
|
46
|
+
report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
|
|
47
|
+
account_currency?: string | null | undefined;
|
|
48
|
+
account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
|
|
49
|
+
tax_rate?: number | null | undefined;
|
|
50
|
+
freeze_account?: "No" | "Yes" | null | undefined;
|
|
51
|
+
balance_must_be?: "Debit" | "Credit" | null | undefined;
|
|
52
|
+
include_in_gross?: unknown;
|
|
11
53
|
}>;
|
|
54
|
+
export type AccountType = z.infer<typeof Account>;
|
|
55
|
+
declare const AccountInput: import("../../utils/zodContextOptionals").ResourceInputType<z.ZodObject<{
|
|
56
|
+
account_name: z.ZodString;
|
|
57
|
+
account_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
58
|
+
is_group: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
59
|
+
__optionalForInput: true;
|
|
60
|
+
};
|
|
61
|
+
company: z.ZodString;
|
|
62
|
+
root_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Asset", "Liability", "Income", "Expense", "Equity"]>>>;
|
|
63
|
+
report_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Balance Sheet", "Profit and Loss"]>>>;
|
|
64
|
+
account_currency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
+
parent_account: z.ZodString;
|
|
66
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Accumulated Depreciation", "Asset Received But Not Billed", "Bank", "Cash", "Chargeable", "Capital Work in Progress", "Cost of Goods Sold", "Current Asset", "Current Liability", "Depreciation", "Direct Expense", "Direct Income", "Equity", "Expense Account", "Expenses Included In Asset Valuation", "Expenses Included In Valuation", "Fixed Asset", "Income Account", "Indirect Expense", "Indirect Income", "Liability", "Payable", "Receivable", "Round Off", "Stock", "Stock Adjustment", "Stock Received But Not Billed", "Service Received But Not Billed", "Tax", "Temporary"]>>>;
|
|
67
|
+
tax_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
68
|
+
freeze_account: z.ZodNullable<z.ZodOptional<z.ZodEnum<["No", "Yes"]>>>;
|
|
69
|
+
balance_must_be: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Debit", "Credit"]>>>;
|
|
70
|
+
include_in_gross: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
71
|
+
__optionalForInput: true;
|
|
72
|
+
};
|
|
73
|
+
disabled: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
74
|
+
__optionalForInput: true;
|
|
75
|
+
};
|
|
76
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
77
|
+
is_group: 0 | 1;
|
|
78
|
+
disabled: 0 | 1;
|
|
79
|
+
account_name: string;
|
|
80
|
+
company: string;
|
|
81
|
+
parent_account: string;
|
|
82
|
+
include_in_gross: 0 | 1;
|
|
83
|
+
account_number?: string | null | undefined;
|
|
84
|
+
root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
|
|
85
|
+
report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
|
|
86
|
+
account_currency?: string | null | undefined;
|
|
87
|
+
account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
|
|
88
|
+
tax_rate?: number | null | undefined;
|
|
89
|
+
freeze_account?: "No" | "Yes" | null | undefined;
|
|
90
|
+
balance_must_be?: "Debit" | "Credit" | null | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
account_name: string;
|
|
93
|
+
company: string;
|
|
94
|
+
parent_account: string;
|
|
95
|
+
is_group?: unknown;
|
|
96
|
+
disabled?: unknown;
|
|
97
|
+
account_number?: string | null | undefined;
|
|
98
|
+
root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
|
|
99
|
+
report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
|
|
100
|
+
account_currency?: string | null | undefined;
|
|
101
|
+
account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
|
|
102
|
+
tax_rate?: number | null | undefined;
|
|
103
|
+
freeze_account?: "No" | "Yes" | null | undefined;
|
|
104
|
+
balance_must_be?: "Debit" | "Credit" | null | undefined;
|
|
105
|
+
include_in_gross?: unknown;
|
|
106
|
+
}>>;
|
|
107
|
+
export type AccountInputType = z.infer<typeof AccountInput>;
|
|
108
|
+
export {};
|
|
@@ -2,9 +2,75 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Account = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const Boolean_1 = require("./Boolean");
|
|
6
|
+
const zodContextOptionals_1 = require("../../utils/zodContextOptionals");
|
|
5
7
|
exports.Account = zod_1.z
|
|
6
8
|
.object({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
account_name: zod_1.z.string().describe("Account Name"),
|
|
10
|
+
account_number: zod_1.z.string().optional().nullable().describe("Account Number"),
|
|
11
|
+
is_group: Boolean_1.ERPNextBoolean.describe("Is Group"),
|
|
12
|
+
company: zod_1.z.string().describe("Company"),
|
|
13
|
+
root_type: zod_1.z
|
|
14
|
+
.enum(["Asset", "Liability", "Income", "Expense", "Equity"])
|
|
15
|
+
.optional()
|
|
16
|
+
.nullable()
|
|
17
|
+
.describe("Root Type"),
|
|
18
|
+
report_type: zod_1.z
|
|
19
|
+
.enum(["Balance Sheet", "Profit and Loss"])
|
|
20
|
+
.optional()
|
|
21
|
+
.nullable()
|
|
22
|
+
.describe("Report Type"),
|
|
23
|
+
account_currency: zod_1.z.string().optional().nullable().describe("Currency"),
|
|
24
|
+
parent_account: zod_1.z.string().describe("Parent Account"),
|
|
25
|
+
account_type: zod_1.z
|
|
26
|
+
.enum([
|
|
27
|
+
"Accumulated Depreciation",
|
|
28
|
+
"Asset Received But Not Billed",
|
|
29
|
+
"Bank",
|
|
30
|
+
"Cash",
|
|
31
|
+
"Chargeable",
|
|
32
|
+
"Capital Work in Progress",
|
|
33
|
+
"Cost of Goods Sold",
|
|
34
|
+
"Current Asset",
|
|
35
|
+
"Current Liability",
|
|
36
|
+
"Depreciation",
|
|
37
|
+
"Direct Expense",
|
|
38
|
+
"Direct Income",
|
|
39
|
+
"Equity",
|
|
40
|
+
"Expense Account",
|
|
41
|
+
"Expenses Included In Asset Valuation",
|
|
42
|
+
"Expenses Included In Valuation",
|
|
43
|
+
"Fixed Asset",
|
|
44
|
+
"Income Account",
|
|
45
|
+
"Indirect Expense",
|
|
46
|
+
"Indirect Income",
|
|
47
|
+
"Liability",
|
|
48
|
+
"Payable",
|
|
49
|
+
"Receivable",
|
|
50
|
+
"Round Off",
|
|
51
|
+
"Stock",
|
|
52
|
+
"Stock Adjustment",
|
|
53
|
+
"Stock Received But Not Billed",
|
|
54
|
+
"Service Received But Not Billed",
|
|
55
|
+
"Tax",
|
|
56
|
+
"Temporary",
|
|
57
|
+
])
|
|
58
|
+
.optional()
|
|
59
|
+
.nullable()
|
|
60
|
+
.describe("Account Type"),
|
|
61
|
+
tax_rate: zod_1.z.number().optional().nullable().describe("Rate"),
|
|
62
|
+
freeze_account: zod_1.z
|
|
63
|
+
.enum(["No", "Yes"])
|
|
64
|
+
.optional()
|
|
65
|
+
.nullable()
|
|
66
|
+
.describe("Frozen"),
|
|
67
|
+
balance_must_be: zod_1.z
|
|
68
|
+
.enum(["Debit", "Credit"])
|
|
69
|
+
.optional()
|
|
70
|
+
.nullable()
|
|
71
|
+
.describe("Balance must be"),
|
|
72
|
+
include_in_gross: Boolean_1.ERPNextBoolean.describe("Include in gross"),
|
|
73
|
+
disabled: Boolean_1.ERPNextBoolean.describe("Disable"),
|
|
9
74
|
})
|
|
10
75
|
.describe("Account");
|
|
76
|
+
const AccountInput = (0, zodContextOptionals_1.ResourceInput)(exports.Account).describe("AccountInput");
|
|
@@ -24,6 +24,8 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
|
24
24
|
shipment: z.ZodString;
|
|
25
25
|
delivery_note: z.ZodString;
|
|
26
26
|
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
customs_tariff_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
country_of_origin: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
29
|
}, "strip", z.ZodTypeAny, {
|
|
28
30
|
item_code: string;
|
|
29
31
|
qty: number;
|
|
@@ -46,6 +48,8 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
|
46
48
|
base_net_amount?: number | null | undefined;
|
|
47
49
|
so_detail?: string | null | undefined;
|
|
48
50
|
dn_detail?: string | null | undefined;
|
|
51
|
+
customs_tariff_number?: string | null | undefined;
|
|
52
|
+
country_of_origin?: string | null | undefined;
|
|
49
53
|
sales_order?: string | null | undefined;
|
|
50
54
|
sales_invoice_item?: string | null | undefined;
|
|
51
55
|
sales_invoice?: string | null | undefined;
|
|
@@ -71,6 +75,8 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
|
71
75
|
base_net_amount?: number | null | undefined;
|
|
72
76
|
so_detail?: string | null | undefined;
|
|
73
77
|
dn_detail?: string | null | undefined;
|
|
78
|
+
customs_tariff_number?: string | null | undefined;
|
|
79
|
+
country_of_origin?: string | null | undefined;
|
|
74
80
|
sales_order?: string | null | undefined;
|
|
75
81
|
sales_invoice_item?: string | null | undefined;
|
|
76
82
|
sales_invoice?: string | null | undefined;
|
|
@@ -140,6 +146,8 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
140
146
|
shipment: z.ZodString;
|
|
141
147
|
delivery_note: z.ZodString;
|
|
142
148
|
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
149
|
+
customs_tariff_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
150
|
+
country_of_origin: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
143
151
|
}, "strip", z.ZodTypeAny, {
|
|
144
152
|
item_code: string;
|
|
145
153
|
qty: number;
|
|
@@ -162,6 +170,8 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
162
170
|
base_net_amount?: number | null | undefined;
|
|
163
171
|
so_detail?: string | null | undefined;
|
|
164
172
|
dn_detail?: string | null | undefined;
|
|
173
|
+
customs_tariff_number?: string | null | undefined;
|
|
174
|
+
country_of_origin?: string | null | undefined;
|
|
165
175
|
sales_order?: string | null | undefined;
|
|
166
176
|
sales_invoice_item?: string | null | undefined;
|
|
167
177
|
sales_invoice?: string | null | undefined;
|
|
@@ -187,6 +197,8 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
187
197
|
base_net_amount?: number | null | undefined;
|
|
188
198
|
so_detail?: string | null | undefined;
|
|
189
199
|
dn_detail?: string | null | undefined;
|
|
200
|
+
customs_tariff_number?: string | null | undefined;
|
|
201
|
+
country_of_origin?: string | null | undefined;
|
|
190
202
|
sales_order?: string | null | undefined;
|
|
191
203
|
sales_invoice_item?: string | null | undefined;
|
|
192
204
|
sales_invoice?: string | null | undefined;
|
|
@@ -220,6 +232,8 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
220
232
|
base_net_amount?: number | null | undefined;
|
|
221
233
|
so_detail?: string | null | undefined;
|
|
222
234
|
dn_detail?: string | null | undefined;
|
|
235
|
+
customs_tariff_number?: string | null | undefined;
|
|
236
|
+
country_of_origin?: string | null | undefined;
|
|
223
237
|
sales_order?: string | null | undefined;
|
|
224
238
|
sales_invoice_item?: string | null | undefined;
|
|
225
239
|
sales_invoice?: string | null | undefined;
|
|
@@ -283,6 +297,8 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
283
297
|
base_net_amount?: number | null | undefined;
|
|
284
298
|
so_detail?: string | null | undefined;
|
|
285
299
|
dn_detail?: string | null | undefined;
|
|
300
|
+
customs_tariff_number?: string | null | undefined;
|
|
301
|
+
country_of_origin?: string | null | undefined;
|
|
286
302
|
sales_order?: string | null | undefined;
|
|
287
303
|
sales_invoice_item?: string | null | undefined;
|
|
288
304
|
sales_invoice?: string | null | undefined;
|
|
@@ -34,6 +34,9 @@ exports.ConsolidatedCustomsInvoiceItem = zod_1.z
|
|
|
34
34
|
shipment: zod_1.z.string(),
|
|
35
35
|
delivery_note: zod_1.z.string(),
|
|
36
36
|
dn_detail: zod_1.z.string().optional().nullable(),
|
|
37
|
+
// Customs
|
|
38
|
+
customs_tariff_number: zod_1.z.string().optional().nullable(),
|
|
39
|
+
country_of_origin: zod_1.z.string().optional().nullable()
|
|
37
40
|
})
|
|
38
41
|
.describe("Consolidated Customs Invoice Item");
|
|
39
42
|
exports.ConsolidatedCustomsInvoiceExportApprovalStatus = zod_1.z
|
|
@@ -3,8 +3,8 @@ export declare const ItemTaxTemplateDetail: z.ZodObject<{
|
|
|
3
3
|
tax_type: z.ZodString;
|
|
4
4
|
tax_rate: z.ZodDefault<z.ZodNumber>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
tax_type: string;
|
|
7
6
|
tax_rate: number;
|
|
7
|
+
tax_type: string;
|
|
8
8
|
}, {
|
|
9
9
|
tax_type: string;
|
|
10
10
|
tax_rate?: number | undefined;
|
|
@@ -25,8 +25,8 @@ export declare const ItemTaxTemplate: z.ZodObject<{
|
|
|
25
25
|
tax_type: z.ZodString;
|
|
26
26
|
tax_rate: z.ZodDefault<z.ZodNumber>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
tax_type: string;
|
|
29
28
|
tax_rate: number;
|
|
29
|
+
tax_type: string;
|
|
30
30
|
}, {
|
|
31
31
|
tax_type: string;
|
|
32
32
|
tax_rate?: number | undefined;
|
|
@@ -36,8 +36,8 @@ export declare const ItemTaxTemplate: z.ZodObject<{
|
|
|
36
36
|
company: string;
|
|
37
37
|
title: string;
|
|
38
38
|
taxes: {
|
|
39
|
-
tax_type: string;
|
|
40
39
|
tax_rate: number;
|
|
40
|
+
tax_type: string;
|
|
41
41
|
}[];
|
|
42
42
|
custom_country: string;
|
|
43
43
|
custom_is_default: 0 | 1;
|
|
@@ -2,15 +2,40 @@ import { z } from "zod";
|
|
|
2
2
|
declare const PaymentEntryReference: z.ZodObject<{
|
|
3
3
|
reference_doctype: z.ZodString;
|
|
4
4
|
reference_name: z.ZodString;
|
|
5
|
+
payment_termn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
total_amount: z.ZodNumber & {
|
|
9
|
+
__optionalForInput: true;
|
|
10
|
+
};
|
|
11
|
+
outstanding_amount: z.ZodNumber & {
|
|
12
|
+
__optionalForInput: true;
|
|
13
|
+
};
|
|
5
14
|
allocated_amount: z.ZodNumber;
|
|
15
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
17
|
}, "strip", z.ZodTypeAny, {
|
|
7
18
|
reference_doctype: string;
|
|
8
19
|
reference_name: string;
|
|
20
|
+
total_amount: number;
|
|
21
|
+
outstanding_amount: number;
|
|
9
22
|
allocated_amount: number;
|
|
23
|
+
account_type?: string | null | undefined;
|
|
24
|
+
payment_termn?: string | null | undefined;
|
|
25
|
+
payment_type?: string | null | undefined;
|
|
26
|
+
account?: string | null | undefined;
|
|
27
|
+
payment_request?: string | null | undefined;
|
|
10
28
|
}, {
|
|
11
29
|
reference_doctype: string;
|
|
12
30
|
reference_name: string;
|
|
31
|
+
total_amount: number;
|
|
32
|
+
outstanding_amount: number;
|
|
13
33
|
allocated_amount: number;
|
|
34
|
+
account_type?: string | null | undefined;
|
|
35
|
+
payment_termn?: string | null | undefined;
|
|
36
|
+
payment_type?: string | null | undefined;
|
|
37
|
+
account?: string | null | undefined;
|
|
38
|
+
payment_request?: string | null | undefined;
|
|
14
39
|
}>;
|
|
15
40
|
export type PaymentEntryReferenceType = z.infer<typeof PaymentEntryReference>;
|
|
16
41
|
export declare const PaymentEntry: z.ZodObject<{
|
|
@@ -89,15 +114,40 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
89
114
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
115
|
reference_doctype: z.ZodString;
|
|
91
116
|
reference_name: z.ZodString;
|
|
117
|
+
payment_termn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
118
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
119
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
total_amount: z.ZodNumber & {
|
|
121
|
+
__optionalForInput: true;
|
|
122
|
+
};
|
|
123
|
+
outstanding_amount: z.ZodNumber & {
|
|
124
|
+
__optionalForInput: true;
|
|
125
|
+
};
|
|
92
126
|
allocated_amount: z.ZodNumber;
|
|
127
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
128
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
129
|
}, "strip", z.ZodTypeAny, {
|
|
94
130
|
reference_doctype: string;
|
|
95
131
|
reference_name: string;
|
|
132
|
+
total_amount: number;
|
|
133
|
+
outstanding_amount: number;
|
|
96
134
|
allocated_amount: number;
|
|
135
|
+
account_type?: string | null | undefined;
|
|
136
|
+
payment_termn?: string | null | undefined;
|
|
137
|
+
payment_type?: string | null | undefined;
|
|
138
|
+
account?: string | null | undefined;
|
|
139
|
+
payment_request?: string | null | undefined;
|
|
97
140
|
}, {
|
|
98
141
|
reference_doctype: string;
|
|
99
142
|
reference_name: string;
|
|
143
|
+
total_amount: number;
|
|
144
|
+
outstanding_amount: number;
|
|
100
145
|
allocated_amount: number;
|
|
146
|
+
account_type?: string | null | undefined;
|
|
147
|
+
payment_termn?: string | null | undefined;
|
|
148
|
+
payment_type?: string | null | undefined;
|
|
149
|
+
account?: string | null | undefined;
|
|
150
|
+
payment_request?: string | null | undefined;
|
|
101
151
|
}>, "many">>;
|
|
102
152
|
taxes: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
103
153
|
deductions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -150,7 +200,14 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
150
200
|
references?: {
|
|
151
201
|
reference_doctype: string;
|
|
152
202
|
reference_name: string;
|
|
203
|
+
total_amount: number;
|
|
204
|
+
outstanding_amount: number;
|
|
153
205
|
allocated_amount: number;
|
|
206
|
+
account_type?: string | null | undefined;
|
|
207
|
+
payment_termn?: string | null | undefined;
|
|
208
|
+
payment_type?: string | null | undefined;
|
|
209
|
+
account?: string | null | undefined;
|
|
210
|
+
payment_request?: string | null | undefined;
|
|
154
211
|
}[] | undefined;
|
|
155
212
|
deductions?: unknown[] | undefined;
|
|
156
213
|
}, {
|
|
@@ -179,8 +236,8 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
179
236
|
base_total_taxes_and_charges?: number | undefined;
|
|
180
237
|
total_taxes_and_charges?: number | undefined;
|
|
181
238
|
taxes?: unknown[] | undefined;
|
|
182
|
-
payment_number?: string | undefined;
|
|
183
239
|
payment_type?: "Receive" | "Pay" | "Internal Transfer" | undefined;
|
|
240
|
+
payment_number?: string | undefined;
|
|
184
241
|
internal_reference?: string | undefined;
|
|
185
242
|
mode_of_payment?: string | undefined;
|
|
186
243
|
custom_external_payment_method?: string | undefined;
|
|
@@ -202,7 +259,14 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
202
259
|
references?: {
|
|
203
260
|
reference_doctype: string;
|
|
204
261
|
reference_name: string;
|
|
262
|
+
total_amount: number;
|
|
263
|
+
outstanding_amount: number;
|
|
205
264
|
allocated_amount: number;
|
|
265
|
+
account_type?: string | null | undefined;
|
|
266
|
+
payment_termn?: string | null | undefined;
|
|
267
|
+
payment_type?: string | null | undefined;
|
|
268
|
+
account?: string | null | undefined;
|
|
269
|
+
payment_request?: string | null | undefined;
|
|
206
270
|
}[] | undefined;
|
|
207
271
|
deductions?: unknown[] | undefined;
|
|
208
272
|
}>;
|
|
@@ -254,15 +318,40 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
254
318
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
255
319
|
reference_doctype: z.ZodString;
|
|
256
320
|
reference_name: z.ZodString;
|
|
321
|
+
payment_termn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
322
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
323
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
324
|
+
total_amount: z.ZodNumber & {
|
|
325
|
+
__optionalForInput: true;
|
|
326
|
+
};
|
|
327
|
+
outstanding_amount: z.ZodNumber & {
|
|
328
|
+
__optionalForInput: true;
|
|
329
|
+
};
|
|
257
330
|
allocated_amount: z.ZodNumber;
|
|
331
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
332
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
258
333
|
}, "strip", z.ZodTypeAny, {
|
|
259
334
|
reference_doctype: string;
|
|
260
335
|
reference_name: string;
|
|
336
|
+
total_amount: number;
|
|
337
|
+
outstanding_amount: number;
|
|
261
338
|
allocated_amount: number;
|
|
339
|
+
account_type?: string | null | undefined;
|
|
340
|
+
payment_termn?: string | null | undefined;
|
|
341
|
+
payment_type?: string | null | undefined;
|
|
342
|
+
account?: string | null | undefined;
|
|
343
|
+
payment_request?: string | null | undefined;
|
|
262
344
|
}, {
|
|
263
345
|
reference_doctype: string;
|
|
264
346
|
reference_name: string;
|
|
347
|
+
total_amount: number;
|
|
348
|
+
outstanding_amount: number;
|
|
265
349
|
allocated_amount: number;
|
|
350
|
+
account_type?: string | null | undefined;
|
|
351
|
+
payment_termn?: string | null | undefined;
|
|
352
|
+
payment_type?: string | null | undefined;
|
|
353
|
+
account?: string | null | undefined;
|
|
354
|
+
payment_request?: string | null | undefined;
|
|
266
355
|
}>, "many">>;
|
|
267
356
|
taxes: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
268
357
|
deductions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -317,7 +406,14 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
317
406
|
references?: {
|
|
318
407
|
reference_doctype: string;
|
|
319
408
|
reference_name: string;
|
|
409
|
+
total_amount: number;
|
|
410
|
+
outstanding_amount: number;
|
|
320
411
|
allocated_amount: number;
|
|
412
|
+
account_type?: string | null | undefined;
|
|
413
|
+
payment_termn?: string | null | undefined;
|
|
414
|
+
payment_type?: string | null | undefined;
|
|
415
|
+
account?: string | null | undefined;
|
|
416
|
+
payment_request?: string | null | undefined;
|
|
321
417
|
}[] | undefined;
|
|
322
418
|
deductions?: unknown[] | undefined;
|
|
323
419
|
}, {
|
|
@@ -333,8 +429,8 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
333
429
|
base_total_taxes_and_charges?: number | undefined;
|
|
334
430
|
total_taxes_and_charges?: number | undefined;
|
|
335
431
|
taxes?: unknown[] | undefined;
|
|
336
|
-
payment_number?: string | undefined;
|
|
337
432
|
payment_type?: "Receive" | "Pay" | "Internal Transfer" | undefined;
|
|
433
|
+
payment_number?: string | undefined;
|
|
338
434
|
payment_order_status?: "Initiated" | "Payment Ordered" | undefined;
|
|
339
435
|
internal_reference?: string | undefined;
|
|
340
436
|
mode_of_payment?: string | undefined;
|
|
@@ -369,7 +465,14 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
369
465
|
references?: {
|
|
370
466
|
reference_doctype: string;
|
|
371
467
|
reference_name: string;
|
|
468
|
+
total_amount: number;
|
|
469
|
+
outstanding_amount: number;
|
|
372
470
|
allocated_amount: number;
|
|
471
|
+
account_type?: string | null | undefined;
|
|
472
|
+
payment_termn?: string | null | undefined;
|
|
473
|
+
payment_type?: string | null | undefined;
|
|
474
|
+
account?: string | null | undefined;
|
|
475
|
+
payment_request?: string | null | undefined;
|
|
373
476
|
}[] | undefined;
|
|
374
477
|
deductions?: unknown[] | undefined;
|
|
375
478
|
}>;
|
|
@@ -7,7 +7,14 @@ const PaymentEntryReference = zod_1.z
|
|
|
7
7
|
.object({
|
|
8
8
|
reference_doctype: zod_1.z.string(),
|
|
9
9
|
reference_name: zod_1.z.string(),
|
|
10
|
+
payment_termn: zod_1.z.string().optional().nullable(),
|
|
11
|
+
account_type: zod_1.z.string().optional().nullable(),
|
|
12
|
+
payment_type: zod_1.z.string().optional().nullable(),
|
|
13
|
+
total_amount: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.number()),
|
|
14
|
+
outstanding_amount: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.number()),
|
|
10
15
|
allocated_amount: zod_1.z.number(),
|
|
16
|
+
account: zod_1.z.string().optional().nullable(),
|
|
17
|
+
payment_request: zod_1.z.string().optional().nullable(),
|
|
11
18
|
})
|
|
12
19
|
.describe("Payment Entry Reference");
|
|
13
20
|
const PaymentTypes = zod_1.z.enum(["Receive", "Pay", "Internal Transfer"]);
|