erpnext-queue-client 1.0.6 → 1.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/client.js +41 -16
- package/dist/erpnext/decryptFromErpNext.server.d.ts +1 -1
- package/dist/erpnext/doctypeResourceRequest.d.ts +40 -0
- package/dist/erpnext/doctypeResourceRequest.js +59 -0
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +8 -0
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +39 -0
- package/dist/erpnext/doctypes/address.d.ts +309 -0
- package/dist/erpnext/doctypes/address.js +46 -0
- package/dist/erpnext/doctypes/contact.d.ts +453 -0
- package/dist/erpnext/doctypes/contact.js +46 -0
- package/dist/erpnext/doctypes/deliveryNote.d.ts +1363 -0
- package/dist/erpnext/doctypes/deliveryNote.js +38 -0
- package/dist/erpnext/doctypes/item.d.ts +836 -0
- package/dist/erpnext/doctypes/item.js +95 -0
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +1566 -0
- package/dist/erpnext/doctypes/purchaseReceipt.js +51 -0
- package/dist/erpnext/doctypes/shipment.d.ts +942 -0
- package/dist/erpnext/doctypes/shipment.js +51 -0
- package/dist/erpnext/erpnextRequestWrapper.js +15 -13
- package/dist/erpnext/fileRequests.d.ts +10 -0
- package/dist/erpnext/fileRequests.js +42 -0
- package/dist/erpnext/methodRequest.d.ts +15 -0
- package/dist/erpnext/methodRequest.js +32 -0
- package/dist/erpnext/model/Address.d.ts +200 -198
- package/dist/erpnext/model/Address.js +3 -2
- package/dist/erpnext/model/Contact.d.ts +343 -344
- package/dist/erpnext/model/Contact.js +2 -2
- package/dist/erpnext/model/Country.d.ts +83 -31
- package/dist/erpnext/model/Country.js +2 -6
- package/dist/erpnext/model/Customer.d.ts +64 -65
- package/dist/erpnext/model/Customer.js +2 -2
- package/dist/erpnext/model/DeliveryNote.d.ts +1048 -1048
- package/dist/erpnext/model/DispatchRun.d.ts +399 -399
- package/dist/erpnext/model/DispatcherPreset.d.ts +94 -94
- package/dist/erpnext/model/ERPNextRequest.d.ts +47 -30
- package/dist/erpnext/model/ERPNextResponse.d.ts +11 -4
- package/dist/erpnext/model/ERPNextResponse.js +6 -1
- package/dist/erpnext/model/File.d.ts +88 -88
- package/dist/erpnext/model/Fulfiller.d.ts +97 -97
- package/dist/erpnext/model/FulfillerSettings.d.ts +66 -66
- package/dist/erpnext/model/FulfillmentStation.d.ts +2 -2
- package/dist/erpnext/model/Item.d.ts +819 -819
- package/dist/erpnext/model/Item.js +2 -2
- package/dist/erpnext/model/PaymentEntry.d.ts +197 -0
- package/dist/erpnext/model/PaymentEntry.js +63 -0
- package/dist/erpnext/model/ProjectedQuantityReport.d.ts +178 -178
- package/dist/erpnext/model/PurchaseOrder.d.ts +528 -528
- package/dist/erpnext/model/Receipt.d.ts +448 -448
- package/dist/erpnext/model/Receipt.js +2 -2
- package/dist/erpnext/model/ReceiptDraft.d.ts +392 -392
- package/dist/erpnext/model/Shipment.d.ts +709 -709
- package/dist/erpnext/model/ShippingProvider.d.ts +198 -198
- package/dist/erpnext/model/StockEntry.d.ts +248 -0
- package/dist/erpnext/model/StockEntry.js +76 -0
- package/dist/erpnext/model/StockReconciliation.d.ts +187 -0
- package/dist/erpnext/model/StockReconciliation.js +44 -0
- package/dist/erpnext/model/Supplier.d.ts +105 -0
- package/dist/erpnext/model/Supplier.js +39 -0
- package/dist/erpnext/model/Waitlist.d.ts +32 -0
- package/dist/erpnext/model/Waitlist.js +19 -0
- package/dist/erpnext/model/WarehouseCategory.d.ts +6 -6
- package/dist/erpnext/resourceRequest.d.ts +41 -10
- package/dist/erpnext/resourceRequest.js +113 -14
- package/dist/index.d.ts +39 -4
- package/dist/index.js +43 -8
- package/dist/utils/fernet.server.d.ts +11 -11
- package/dist/utils/fernet.server.js +0 -1
- package/dist/utils/request.js +2 -2
- package/dist/utils/zodUtils.d.ts +3 -1
- package/dist/utils/zodUtils.js +14 -1
- package/package.json +4 -1
- package/dist/erpnext/doctypes/country.d.ts +0 -9
- package/dist/erpnext/doctypes/country.js +0 -28
- package/dist/erpnext/erpnextRequests.d.ts +0 -1
- package/dist/erpnext/erpnextRequests.js +0 -15
- package/dist/erpnext.d.ts +0 -20
- package/dist/erpnext.js +0 -45
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ItemSupplierResponse = exports.ItemList = exports.ItemListName = exports.
|
|
3
|
+
exports.ItemSupplierResponse = exports.ItemList = exports.ItemListName = exports.ERPNextItemResponseNoneStockItemsDictFalse = exports.ItemListWithShippingTemplateSku = exports.ItemListWithShippingTemplate = exports.Item = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const Itemdefault = zod_1.z
|
|
6
6
|
.object({
|
|
@@ -200,7 +200,7 @@ exports.ItemListWithShippingTemplateSku = zod_1.z
|
|
|
200
200
|
}).extend({ sku: zod_1.z.string() }))
|
|
201
201
|
.describe("Item List With Shipping Template and SKU");
|
|
202
202
|
// for getOrderNumbersCompleted
|
|
203
|
-
exports.
|
|
203
|
+
exports.ERPNextItemResponseNoneStockItemsDictFalse = zod_1.z
|
|
204
204
|
.array(zod_1.z.array(zod_1.z.string()))
|
|
205
205
|
.describe("ERPNext Response Dict False");
|
|
206
206
|
const ItemDimensionsInfo = ItemListModel.pick({
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const PaymentEntryReference: z.ZodObject<{
|
|
3
|
+
reference_doctype: z.ZodString;
|
|
4
|
+
reference_name: z.ZodString;
|
|
5
|
+
allocated_amount: z.ZodNumber;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
reference_doctype: string;
|
|
8
|
+
reference_name: string;
|
|
9
|
+
allocated_amount: number;
|
|
10
|
+
}, {
|
|
11
|
+
reference_doctype: string;
|
|
12
|
+
reference_name: string;
|
|
13
|
+
allocated_amount: number;
|
|
14
|
+
}>;
|
|
15
|
+
export type PaymentEntryReferenceType = z.infer<typeof PaymentEntryReference>;
|
|
16
|
+
export declare const PaymentEntry: z.ZodObject<{
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
payment_number: z.ZodString;
|
|
19
|
+
owner: z.ZodString;
|
|
20
|
+
creation: z.ZodString;
|
|
21
|
+
modified: z.ZodString;
|
|
22
|
+
modified_by: z.ZodString;
|
|
23
|
+
idx: z.ZodNumber;
|
|
24
|
+
docstatus: z.ZodNumber;
|
|
25
|
+
naming_series: z.ZodString;
|
|
26
|
+
payment_type: z.ZodString;
|
|
27
|
+
payment_order_status: z.ZodString;
|
|
28
|
+
posting_date: z.ZodString;
|
|
29
|
+
company: z.ZodString;
|
|
30
|
+
party_type: z.ZodString;
|
|
31
|
+
party: z.ZodString;
|
|
32
|
+
party_name: z.ZodString;
|
|
33
|
+
party_balance: z.ZodNumber;
|
|
34
|
+
paid_from: z.ZodString;
|
|
35
|
+
paid_from_account_type: z.ZodString;
|
|
36
|
+
paid_from_account_currency: z.ZodString;
|
|
37
|
+
paid_from_account_balance: z.ZodNumber;
|
|
38
|
+
paid_to: z.ZodString;
|
|
39
|
+
paid_to_account_type: z.ZodString;
|
|
40
|
+
paid_to_account_currency: z.ZodString;
|
|
41
|
+
paid_to_account_balance: z.ZodNumber;
|
|
42
|
+
paid_amount: z.ZodNumber;
|
|
43
|
+
paid_amount_after_tax: z.ZodNumber;
|
|
44
|
+
source_exchange_rate: z.ZodNumber;
|
|
45
|
+
base_paid_amount: z.ZodNumber;
|
|
46
|
+
base_paid_amount_after_tax: z.ZodNumber;
|
|
47
|
+
received_amount: z.ZodNumber;
|
|
48
|
+
received_amount_after_tax: z.ZodNumber;
|
|
49
|
+
target_exchange_rate: z.ZodNumber;
|
|
50
|
+
base_received_amount: z.ZodNumber;
|
|
51
|
+
base_received_amount_after_tax: z.ZodNumber;
|
|
52
|
+
total_allocated_amount: z.ZodNumber;
|
|
53
|
+
base_total_allocated_amount: z.ZodNumber;
|
|
54
|
+
unallocated_amount: z.ZodNumber;
|
|
55
|
+
difference_amount: z.ZodNumber;
|
|
56
|
+
apply_tax_withholding_amount: z.ZodNumber;
|
|
57
|
+
base_total_taxes_and_charges: z.ZodNumber;
|
|
58
|
+
total_taxes_and_charges: z.ZodNumber;
|
|
59
|
+
reference_no: z.ZodString;
|
|
60
|
+
reference_date: z.ZodString;
|
|
61
|
+
status: z.ZodString;
|
|
62
|
+
custom_remarks: z.ZodNumber;
|
|
63
|
+
remarks: z.ZodString;
|
|
64
|
+
title: z.ZodString;
|
|
65
|
+
doctype: z.ZodString;
|
|
66
|
+
references: z.ZodArray<z.ZodObject<{
|
|
67
|
+
reference_doctype: z.ZodString;
|
|
68
|
+
reference_name: z.ZodString;
|
|
69
|
+
allocated_amount: z.ZodNumber;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
reference_doctype: string;
|
|
72
|
+
reference_name: string;
|
|
73
|
+
allocated_amount: number;
|
|
74
|
+
}, {
|
|
75
|
+
reference_doctype: string;
|
|
76
|
+
reference_name: string;
|
|
77
|
+
allocated_amount: number;
|
|
78
|
+
}>, "many">;
|
|
79
|
+
taxes: z.ZodArray<z.ZodUnknown, "many">;
|
|
80
|
+
deductions: z.ZodArray<z.ZodUnknown, "many">;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
status: string;
|
|
83
|
+
name: string;
|
|
84
|
+
owner: string;
|
|
85
|
+
creation: string;
|
|
86
|
+
modified: string;
|
|
87
|
+
modified_by: string;
|
|
88
|
+
idx: number;
|
|
89
|
+
docstatus: number;
|
|
90
|
+
doctype: string;
|
|
91
|
+
company: string;
|
|
92
|
+
title: string;
|
|
93
|
+
naming_series: string;
|
|
94
|
+
posting_date: string;
|
|
95
|
+
base_total_taxes_and_charges: number;
|
|
96
|
+
total_taxes_and_charges: number;
|
|
97
|
+
taxes: unknown[];
|
|
98
|
+
remarks: string;
|
|
99
|
+
payment_number: string;
|
|
100
|
+
payment_type: string;
|
|
101
|
+
payment_order_status: string;
|
|
102
|
+
party_type: string;
|
|
103
|
+
party: string;
|
|
104
|
+
party_name: string;
|
|
105
|
+
party_balance: number;
|
|
106
|
+
paid_from: string;
|
|
107
|
+
paid_from_account_type: string;
|
|
108
|
+
paid_from_account_currency: string;
|
|
109
|
+
paid_from_account_balance: number;
|
|
110
|
+
paid_to: string;
|
|
111
|
+
paid_to_account_type: string;
|
|
112
|
+
paid_to_account_currency: string;
|
|
113
|
+
paid_to_account_balance: number;
|
|
114
|
+
paid_amount: number;
|
|
115
|
+
paid_amount_after_tax: number;
|
|
116
|
+
source_exchange_rate: number;
|
|
117
|
+
base_paid_amount: number;
|
|
118
|
+
base_paid_amount_after_tax: number;
|
|
119
|
+
received_amount: number;
|
|
120
|
+
received_amount_after_tax: number;
|
|
121
|
+
target_exchange_rate: number;
|
|
122
|
+
base_received_amount: number;
|
|
123
|
+
base_received_amount_after_tax: number;
|
|
124
|
+
total_allocated_amount: number;
|
|
125
|
+
base_total_allocated_amount: number;
|
|
126
|
+
unallocated_amount: number;
|
|
127
|
+
difference_amount: number;
|
|
128
|
+
apply_tax_withholding_amount: number;
|
|
129
|
+
reference_no: string;
|
|
130
|
+
reference_date: string;
|
|
131
|
+
custom_remarks: number;
|
|
132
|
+
references: {
|
|
133
|
+
reference_doctype: string;
|
|
134
|
+
reference_name: string;
|
|
135
|
+
allocated_amount: number;
|
|
136
|
+
}[];
|
|
137
|
+
deductions: unknown[];
|
|
138
|
+
}, {
|
|
139
|
+
status: string;
|
|
140
|
+
name: string;
|
|
141
|
+
owner: string;
|
|
142
|
+
creation: string;
|
|
143
|
+
modified: string;
|
|
144
|
+
modified_by: string;
|
|
145
|
+
idx: number;
|
|
146
|
+
docstatus: number;
|
|
147
|
+
doctype: string;
|
|
148
|
+
company: string;
|
|
149
|
+
title: string;
|
|
150
|
+
naming_series: string;
|
|
151
|
+
posting_date: string;
|
|
152
|
+
base_total_taxes_and_charges: number;
|
|
153
|
+
total_taxes_and_charges: number;
|
|
154
|
+
taxes: unknown[];
|
|
155
|
+
remarks: string;
|
|
156
|
+
payment_number: string;
|
|
157
|
+
payment_type: string;
|
|
158
|
+
payment_order_status: string;
|
|
159
|
+
party_type: string;
|
|
160
|
+
party: string;
|
|
161
|
+
party_name: string;
|
|
162
|
+
party_balance: number;
|
|
163
|
+
paid_from: string;
|
|
164
|
+
paid_from_account_type: string;
|
|
165
|
+
paid_from_account_currency: string;
|
|
166
|
+
paid_from_account_balance: number;
|
|
167
|
+
paid_to: string;
|
|
168
|
+
paid_to_account_type: string;
|
|
169
|
+
paid_to_account_currency: string;
|
|
170
|
+
paid_to_account_balance: number;
|
|
171
|
+
paid_amount: number;
|
|
172
|
+
paid_amount_after_tax: number;
|
|
173
|
+
source_exchange_rate: number;
|
|
174
|
+
base_paid_amount: number;
|
|
175
|
+
base_paid_amount_after_tax: number;
|
|
176
|
+
received_amount: number;
|
|
177
|
+
received_amount_after_tax: number;
|
|
178
|
+
target_exchange_rate: number;
|
|
179
|
+
base_received_amount: number;
|
|
180
|
+
base_received_amount_after_tax: number;
|
|
181
|
+
total_allocated_amount: number;
|
|
182
|
+
base_total_allocated_amount: number;
|
|
183
|
+
unallocated_amount: number;
|
|
184
|
+
difference_amount: number;
|
|
185
|
+
apply_tax_withholding_amount: number;
|
|
186
|
+
reference_no: string;
|
|
187
|
+
reference_date: string;
|
|
188
|
+
custom_remarks: number;
|
|
189
|
+
references: {
|
|
190
|
+
reference_doctype: string;
|
|
191
|
+
reference_name: string;
|
|
192
|
+
allocated_amount: number;
|
|
193
|
+
}[];
|
|
194
|
+
deductions: unknown[];
|
|
195
|
+
}>;
|
|
196
|
+
export type PaymentEntryType = z.infer<typeof PaymentEntry>;
|
|
197
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentEntry = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PaymentEntryReference = zod_1.z.object({
|
|
6
|
+
reference_doctype: zod_1.z.string(),
|
|
7
|
+
reference_name: zod_1.z.string(),
|
|
8
|
+
allocated_amount: zod_1.z.number(),
|
|
9
|
+
});
|
|
10
|
+
exports.PaymentEntry = zod_1.z.object({
|
|
11
|
+
name: zod_1.z.string(),
|
|
12
|
+
payment_number: zod_1.z.string(),
|
|
13
|
+
owner: zod_1.z.string(),
|
|
14
|
+
creation: zod_1.z.string(),
|
|
15
|
+
modified: zod_1.z.string(),
|
|
16
|
+
modified_by: zod_1.z.string(),
|
|
17
|
+
idx: zod_1.z.number(),
|
|
18
|
+
docstatus: zod_1.z.number(),
|
|
19
|
+
naming_series: zod_1.z.string(),
|
|
20
|
+
payment_type: zod_1.z.string(),
|
|
21
|
+
payment_order_status: zod_1.z.string(),
|
|
22
|
+
posting_date: zod_1.z.string(),
|
|
23
|
+
company: zod_1.z.string(),
|
|
24
|
+
party_type: zod_1.z.string(),
|
|
25
|
+
party: zod_1.z.string(),
|
|
26
|
+
party_name: zod_1.z.string(),
|
|
27
|
+
party_balance: zod_1.z.number(),
|
|
28
|
+
paid_from: zod_1.z.string(),
|
|
29
|
+
paid_from_account_type: zod_1.z.string(),
|
|
30
|
+
paid_from_account_currency: zod_1.z.string(),
|
|
31
|
+
paid_from_account_balance: zod_1.z.number(),
|
|
32
|
+
paid_to: zod_1.z.string(),
|
|
33
|
+
paid_to_account_type: zod_1.z.string(),
|
|
34
|
+
paid_to_account_currency: zod_1.z.string(),
|
|
35
|
+
paid_to_account_balance: zod_1.z.number(),
|
|
36
|
+
paid_amount: zod_1.z.number(),
|
|
37
|
+
paid_amount_after_tax: zod_1.z.number(),
|
|
38
|
+
source_exchange_rate: zod_1.z.number(),
|
|
39
|
+
base_paid_amount: zod_1.z.number(),
|
|
40
|
+
base_paid_amount_after_tax: zod_1.z.number(),
|
|
41
|
+
received_amount: zod_1.z.number(),
|
|
42
|
+
received_amount_after_tax: zod_1.z.number(),
|
|
43
|
+
target_exchange_rate: zod_1.z.number(),
|
|
44
|
+
base_received_amount: zod_1.z.number(),
|
|
45
|
+
base_received_amount_after_tax: zod_1.z.number(),
|
|
46
|
+
total_allocated_amount: zod_1.z.number(),
|
|
47
|
+
base_total_allocated_amount: zod_1.z.number(),
|
|
48
|
+
unallocated_amount: zod_1.z.number(),
|
|
49
|
+
difference_amount: zod_1.z.number(),
|
|
50
|
+
apply_tax_withholding_amount: zod_1.z.number(),
|
|
51
|
+
base_total_taxes_and_charges: zod_1.z.number(),
|
|
52
|
+
total_taxes_and_charges: zod_1.z.number(),
|
|
53
|
+
reference_no: zod_1.z.string(),
|
|
54
|
+
reference_date: zod_1.z.string(),
|
|
55
|
+
status: zod_1.z.string(),
|
|
56
|
+
custom_remarks: zod_1.z.number(),
|
|
57
|
+
remarks: zod_1.z.string(),
|
|
58
|
+
title: zod_1.z.string(),
|
|
59
|
+
doctype: zod_1.z.string(),
|
|
60
|
+
references: zod_1.z.array(PaymentEntryReference),
|
|
61
|
+
taxes: zod_1.z.array(zod_1.z.unknown()),
|
|
62
|
+
deductions: zod_1.z.array(zod_1.z.unknown()),
|
|
63
|
+
});
|