erpnext-queue-client 2.5.0 → 2.5.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/doctypeResourceRequest.d.ts +12 -1
- package/dist/erpnext/doctypeResourceRequest.js +3 -3
- package/dist/erpnext/doctypes/address.d.ts +3 -233
- package/dist/erpnext/doctypes/address.js +5 -16
- package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +3 -486
- package/dist/erpnext/doctypes/consolidatedCustomsInvoice.js +4 -18
- package/dist/erpnext/doctypes/contact.d.ts +3 -358
- package/dist/erpnext/doctypes/contact.js +6 -17
- package/dist/erpnext/doctypes/deliveryNote.d.ts +1 -1575
- package/dist/erpnext/doctypes/deliveryNote.js +2 -19
- package/dist/erpnext/doctypes/item.d.ts +1 -1019
- package/dist/erpnext/doctypes/item.js +3 -16
- package/dist/erpnext/doctypes/paymentEntry.d.ts +1 -728
- package/dist/erpnext/doctypes/paymentEntry.js +4 -21
- package/dist/erpnext/doctypes/productBundle.d.ts +1 -143
- package/dist/erpnext/doctypes/productBundle.js +2 -13
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +1 -1395
- package/dist/erpnext/doctypes/purchaseInvoice.js +4 -19
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +1 -1204
- package/dist/erpnext/doctypes/purchaseReceipt.js +4 -19
- package/dist/erpnext/doctypes/salesInvoice.d.ts +1 -2517
- package/dist/erpnext/doctypes/salesInvoice.js +4 -21
- package/dist/erpnext/doctypes/servicecase.d.ts +24 -425
- package/dist/erpnext/doctypes/servicecase.js +14 -15
- package/dist/erpnext/doctypes/shipment.d.ts +1 -758
- package/dist/erpnext/doctypes/shipment.js +3 -20
- package/dist/erpnext/item.getList.alias-parsing.test.d.ts +1 -0
- package/dist/erpnext/item.getList.alias-parsing.test.js +66 -0
- package/dist/index.test.js +3 -2
- package/dist/utils/zodUtils.js +14 -6
- package/package.json +1 -1
|
@@ -2,494 +2,11 @@ import { TemporalClient } from "../../client";
|
|
|
2
2
|
import { ERPNextDoctypeSubmittableResourceRequest } from "../doctypeSubmittableResourceRequest";
|
|
3
3
|
import { ERPNextMethodRequest } from "../methodRequest";
|
|
4
4
|
import { ConsolidatedCustomsInvoice, ConsolidatedCustomsInvoiceCreateMethodInputType } from "../model/ConsolidatedCustomsInvoice";
|
|
5
|
-
export declare class ERPNextConsolidatedCustomsInvoice {
|
|
6
|
-
protected temporalClient: TemporalClient;
|
|
7
|
-
protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof ConsolidatedCustomsInvoice>;
|
|
5
|
+
export declare class ERPNextConsolidatedCustomsInvoice extends ERPNextDoctypeSubmittableResourceRequest<typeof ConsolidatedCustomsInvoice> {
|
|
8
6
|
protected methodRequest: ERPNextMethodRequest;
|
|
9
|
-
getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "export_approval_status" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "mrn" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email"), TSelectedFields extends readonly ["*"] | readonly TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
10
|
-
fields?: TSelectedFields;
|
|
11
|
-
filters?: (string | string[])[][];
|
|
12
|
-
skip?: number;
|
|
13
|
-
limit?: number;
|
|
14
|
-
priority?: number;
|
|
15
|
-
asDict?: TAsDict;
|
|
16
|
-
params?: Record<string, string>;
|
|
17
|
-
}) => Promise<(TAsDict extends false ? string[][] : TSelectedFields extends undefined ? {
|
|
18
|
-
name: string;
|
|
19
|
-
}[] : TSelectedFields extends readonly ["*"] ? {
|
|
20
|
-
docstatus: number;
|
|
21
|
-
name: string;
|
|
22
|
-
owner: string;
|
|
23
|
-
creation: string;
|
|
24
|
-
modified: string;
|
|
25
|
-
modified_by: string;
|
|
26
|
-
idx: number;
|
|
27
|
-
posting_date: string;
|
|
28
|
-
set_posting_time: boolean;
|
|
29
|
-
export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
|
|
30
|
-
currency: string;
|
|
31
|
-
conversion_rate: number;
|
|
32
|
-
total_qty: number;
|
|
33
|
-
total_net_weight: number;
|
|
34
|
-
base_total: number;
|
|
35
|
-
base_net_total: number;
|
|
36
|
-
total: number;
|
|
37
|
-
net_total: number;
|
|
38
|
-
dispatch_address_name: string;
|
|
39
|
-
importer_address: string;
|
|
40
|
-
importer_contact: string;
|
|
41
|
-
exporter_address: string;
|
|
42
|
-
exporter_contact: string;
|
|
43
|
-
amended_from?: string | null | undefined;
|
|
44
|
-
_user_tags?: string | null | undefined;
|
|
45
|
-
company?: string | null | undefined;
|
|
46
|
-
naming_series?: string | null | undefined;
|
|
47
|
-
posting_time?: string | null | undefined;
|
|
48
|
-
company_tax_id?: string | null | undefined;
|
|
49
|
-
mrn?: string | null | undefined;
|
|
50
|
-
dispatch_address?: string | null | undefined;
|
|
51
|
-
importer_address_display?: string | null | undefined;
|
|
52
|
-
importer_contact_phone?: string | null | undefined;
|
|
53
|
-
importer_contact_email?: string | null | undefined;
|
|
54
|
-
exporter_address_display?: string | null | undefined;
|
|
55
|
-
exporter_contact_phone?: string | null | undefined;
|
|
56
|
-
exporter_contact_email?: string | null | undefined;
|
|
57
|
-
}[] : TSelectedFields extends readonly TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "export_approval_status" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "mrn" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email") ? {
|
|
58
|
-
docstatus: number;
|
|
59
|
-
name: string;
|
|
60
|
-
owner: string;
|
|
61
|
-
creation: string;
|
|
62
|
-
modified: string;
|
|
63
|
-
modified_by: string;
|
|
64
|
-
idx: number;
|
|
65
|
-
posting_date: string;
|
|
66
|
-
set_posting_time: boolean;
|
|
67
|
-
export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
|
|
68
|
-
currency: string;
|
|
69
|
-
conversion_rate: number;
|
|
70
|
-
total_qty: number;
|
|
71
|
-
total_net_weight: number;
|
|
72
|
-
base_total: number;
|
|
73
|
-
base_net_total: number;
|
|
74
|
-
total: number;
|
|
75
|
-
net_total: number;
|
|
76
|
-
dispatch_address_name: string;
|
|
77
|
-
importer_address: string;
|
|
78
|
-
importer_contact: string;
|
|
79
|
-
exporter_address: string;
|
|
80
|
-
exporter_contact: string;
|
|
81
|
-
amended_from?: string | null | undefined;
|
|
82
|
-
_user_tags?: string | null | undefined;
|
|
83
|
-
company?: string | null | undefined;
|
|
84
|
-
naming_series?: string | null | undefined;
|
|
85
|
-
posting_time?: string | null | undefined;
|
|
86
|
-
company_tax_id?: string | null | undefined;
|
|
87
|
-
mrn?: string | null | undefined;
|
|
88
|
-
dispatch_address?: string | null | undefined;
|
|
89
|
-
importer_address_display?: string | null | undefined;
|
|
90
|
-
importer_contact_phone?: string | null | undefined;
|
|
91
|
-
importer_contact_email?: string | null | undefined;
|
|
92
|
-
exporter_address_display?: string | null | undefined;
|
|
93
|
-
exporter_contact_phone?: string | null | undefined;
|
|
94
|
-
exporter_contact_email?: string | null | undefined;
|
|
95
|
-
}[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "export_approval_status" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "mrn" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
96
|
-
getById: ({ resourceId, priority, }: {
|
|
97
|
-
resourceId: string;
|
|
98
|
-
priority?: number;
|
|
99
|
-
}) => Promise<{
|
|
100
|
-
docstatus: number;
|
|
101
|
-
name: string;
|
|
102
|
-
owner: string;
|
|
103
|
-
creation: string;
|
|
104
|
-
modified: string;
|
|
105
|
-
modified_by: string;
|
|
106
|
-
idx: number;
|
|
107
|
-
doctype: string;
|
|
108
|
-
posting_date: string;
|
|
109
|
-
set_posting_time: boolean;
|
|
110
|
-
export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
|
|
111
|
-
currency: string;
|
|
112
|
-
conversion_rate: number;
|
|
113
|
-
total_qty: number;
|
|
114
|
-
total_net_weight: number;
|
|
115
|
-
base_total: number;
|
|
116
|
-
base_net_total: number;
|
|
117
|
-
total: number;
|
|
118
|
-
net_total: number;
|
|
119
|
-
dispatch_address_name: string;
|
|
120
|
-
importer_address: string;
|
|
121
|
-
importer_contact: string;
|
|
122
|
-
exporter_address: string;
|
|
123
|
-
exporter_contact: string;
|
|
124
|
-
items: {
|
|
125
|
-
docstatus: number;
|
|
126
|
-
name: string;
|
|
127
|
-
owner: string;
|
|
128
|
-
creation: string;
|
|
129
|
-
modified: string;
|
|
130
|
-
modified_by: string;
|
|
131
|
-
idx: number;
|
|
132
|
-
doctype: string;
|
|
133
|
-
parent: string;
|
|
134
|
-
parenttype: string;
|
|
135
|
-
parentfield: string;
|
|
136
|
-
item_code: string;
|
|
137
|
-
qty: number;
|
|
138
|
-
rate: number;
|
|
139
|
-
delivered_by_supplier: boolean;
|
|
140
|
-
weight_per_unit: number;
|
|
141
|
-
total_weight: number;
|
|
142
|
-
weight_uom: string;
|
|
143
|
-
customer: string;
|
|
144
|
-
shipment: string;
|
|
145
|
-
delivery_note: string;
|
|
146
|
-
description?: string | null | undefined;
|
|
147
|
-
_user_tags?: string | null | undefined;
|
|
148
|
-
item_tax_template?: string | null | undefined;
|
|
149
|
-
amount?: number | null | undefined;
|
|
150
|
-
base_rate?: number | null | undefined;
|
|
151
|
-
base_amount?: number | null | undefined;
|
|
152
|
-
net_rate?: number | null | undefined;
|
|
153
|
-
net_amount?: number | null | undefined;
|
|
154
|
-
base_net_rate?: number | null | undefined;
|
|
155
|
-
base_net_amount?: number | null | undefined;
|
|
156
|
-
sales_order?: string | null | undefined;
|
|
157
|
-
so_detail?: string | null | undefined;
|
|
158
|
-
sales_invoice?: string | null | undefined;
|
|
159
|
-
sales_invoice_item?: string | null | undefined;
|
|
160
|
-
dn_detail?: string | null | undefined;
|
|
161
|
-
customs_tariff_number?: string | null | undefined;
|
|
162
|
-
country_of_origin?: string | null | undefined;
|
|
163
|
-
}[];
|
|
164
|
-
amended_from?: string | null | undefined;
|
|
165
|
-
_user_tags?: string | null | undefined;
|
|
166
|
-
company?: string | null | undefined;
|
|
167
|
-
naming_series?: string | null | undefined;
|
|
168
|
-
posting_time?: string | null | undefined;
|
|
169
|
-
company_tax_id?: string | null | undefined;
|
|
170
|
-
mrn?: string | null | undefined;
|
|
171
|
-
dispatch_address?: string | null | undefined;
|
|
172
|
-
importer_address_display?: string | null | undefined;
|
|
173
|
-
importer_contact_phone?: string | null | undefined;
|
|
174
|
-
importer_contact_email?: string | null | undefined;
|
|
175
|
-
exporter_address_display?: string | null | undefined;
|
|
176
|
-
exporter_contact_phone?: string | null | undefined;
|
|
177
|
-
exporter_contact_email?: string | null | undefined;
|
|
178
|
-
} | undefined>;
|
|
179
|
-
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
180
|
-
posting_date: string;
|
|
181
|
-
set_posting_time: boolean;
|
|
182
|
-
currency: string;
|
|
183
|
-
conversion_rate: number;
|
|
184
|
-
dispatch_address_name: string;
|
|
185
|
-
importer_address: string;
|
|
186
|
-
importer_contact: string;
|
|
187
|
-
exporter_address: string;
|
|
188
|
-
exporter_contact: string;
|
|
189
|
-
items: {
|
|
190
|
-
item_code: string;
|
|
191
|
-
qty: number;
|
|
192
|
-
rate: number;
|
|
193
|
-
delivered_by_supplier: boolean;
|
|
194
|
-
weight_per_unit: number;
|
|
195
|
-
total_weight: number;
|
|
196
|
-
weight_uom: string;
|
|
197
|
-
customer: string;
|
|
198
|
-
shipment: string;
|
|
199
|
-
delivery_note: string;
|
|
200
|
-
description?: string | null | undefined;
|
|
201
|
-
item_tax_template?: string | null | undefined;
|
|
202
|
-
amount?: number | null | undefined;
|
|
203
|
-
base_rate?: number | null | undefined;
|
|
204
|
-
base_amount?: number | null | undefined;
|
|
205
|
-
net_rate?: number | null | undefined;
|
|
206
|
-
net_amount?: number | null | undefined;
|
|
207
|
-
base_net_rate?: number | null | undefined;
|
|
208
|
-
base_net_amount?: number | null | undefined;
|
|
209
|
-
sales_order?: string | null | undefined;
|
|
210
|
-
so_detail?: string | null | undefined;
|
|
211
|
-
sales_invoice?: string | null | undefined;
|
|
212
|
-
sales_invoice_item?: string | null | undefined;
|
|
213
|
-
dn_detail?: string | null | undefined;
|
|
214
|
-
customs_tariff_number?: string | null | undefined;
|
|
215
|
-
country_of_origin?: string | null | undefined;
|
|
216
|
-
}[];
|
|
217
|
-
docstatus?: number | undefined;
|
|
218
|
-
amended_from?: string | null | undefined;
|
|
219
|
-
company?: string | null | undefined;
|
|
220
|
-
naming_series?: string | null | undefined;
|
|
221
|
-
posting_time?: string | null | undefined;
|
|
222
|
-
company_tax_id?: string | null | undefined;
|
|
223
|
-
export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | undefined;
|
|
224
|
-
mrn?: string | null | undefined;
|
|
225
|
-
total_qty?: number | undefined;
|
|
226
|
-
total_net_weight?: number | undefined;
|
|
227
|
-
base_total?: number | undefined;
|
|
228
|
-
base_net_total?: number | undefined;
|
|
229
|
-
total?: number | undefined;
|
|
230
|
-
net_total?: number | undefined;
|
|
231
|
-
dispatch_address?: string | null | undefined;
|
|
232
|
-
importer_address_display?: string | null | undefined;
|
|
233
|
-
importer_contact_phone?: string | null | undefined;
|
|
234
|
-
importer_contact_email?: string | null | undefined;
|
|
235
|
-
exporter_address_display?: string | null | undefined;
|
|
236
|
-
exporter_contact_phone?: string | null | undefined;
|
|
237
|
-
exporter_contact_email?: string | null | undefined;
|
|
238
|
-
}> : TInputModel extends import("zod").ZodTypeAny ? import("zod").TypeOf<TInputModel> : any, TInputModel extends import("zod").ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
239
|
-
resourceId: string;
|
|
240
|
-
inputValidationModel?: TInputModel;
|
|
241
|
-
priority?: number;
|
|
242
|
-
body: TInput;
|
|
243
|
-
}) => Promise<{
|
|
244
|
-
docstatus: number;
|
|
245
|
-
name: string;
|
|
246
|
-
owner: string;
|
|
247
|
-
creation: string;
|
|
248
|
-
modified: string;
|
|
249
|
-
modified_by: string;
|
|
250
|
-
idx: number;
|
|
251
|
-
doctype: string;
|
|
252
|
-
posting_date: string;
|
|
253
|
-
set_posting_time: boolean;
|
|
254
|
-
export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
|
|
255
|
-
currency: string;
|
|
256
|
-
conversion_rate: number;
|
|
257
|
-
total_qty: number;
|
|
258
|
-
total_net_weight: number;
|
|
259
|
-
base_total: number;
|
|
260
|
-
base_net_total: number;
|
|
261
|
-
total: number;
|
|
262
|
-
net_total: number;
|
|
263
|
-
dispatch_address_name: string;
|
|
264
|
-
importer_address: string;
|
|
265
|
-
importer_contact: string;
|
|
266
|
-
exporter_address: string;
|
|
267
|
-
exporter_contact: string;
|
|
268
|
-
items: {
|
|
269
|
-
docstatus: number;
|
|
270
|
-
name: string;
|
|
271
|
-
owner: string;
|
|
272
|
-
creation: string;
|
|
273
|
-
modified: string;
|
|
274
|
-
modified_by: string;
|
|
275
|
-
idx: number;
|
|
276
|
-
doctype: string;
|
|
277
|
-
parent: string;
|
|
278
|
-
parenttype: string;
|
|
279
|
-
parentfield: string;
|
|
280
|
-
item_code: string;
|
|
281
|
-
qty: number;
|
|
282
|
-
rate: number;
|
|
283
|
-
delivered_by_supplier: boolean;
|
|
284
|
-
weight_per_unit: number;
|
|
285
|
-
total_weight: number;
|
|
286
|
-
weight_uom: string;
|
|
287
|
-
customer: string;
|
|
288
|
-
shipment: string;
|
|
289
|
-
delivery_note: string;
|
|
290
|
-
description?: string | null | undefined;
|
|
291
|
-
_user_tags?: string | null | undefined;
|
|
292
|
-
item_tax_template?: string | null | undefined;
|
|
293
|
-
amount?: number | null | undefined;
|
|
294
|
-
base_rate?: number | null | undefined;
|
|
295
|
-
base_amount?: number | null | undefined;
|
|
296
|
-
net_rate?: number | null | undefined;
|
|
297
|
-
net_amount?: number | null | undefined;
|
|
298
|
-
base_net_rate?: number | null | undefined;
|
|
299
|
-
base_net_amount?: number | null | undefined;
|
|
300
|
-
sales_order?: string | null | undefined;
|
|
301
|
-
so_detail?: string | null | undefined;
|
|
302
|
-
sales_invoice?: string | null | undefined;
|
|
303
|
-
sales_invoice_item?: string | null | undefined;
|
|
304
|
-
dn_detail?: string | null | undefined;
|
|
305
|
-
customs_tariff_number?: string | null | undefined;
|
|
306
|
-
country_of_origin?: string | null | undefined;
|
|
307
|
-
}[];
|
|
308
|
-
amended_from?: string | null | undefined;
|
|
309
|
-
_user_tags?: string | null | undefined;
|
|
310
|
-
company?: string | null | undefined;
|
|
311
|
-
naming_series?: string | null | undefined;
|
|
312
|
-
posting_time?: string | null | undefined;
|
|
313
|
-
company_tax_id?: string | null | undefined;
|
|
314
|
-
mrn?: string | null | undefined;
|
|
315
|
-
dispatch_address?: string | null | undefined;
|
|
316
|
-
importer_address_display?: string | null | undefined;
|
|
317
|
-
importer_contact_phone?: string | null | undefined;
|
|
318
|
-
importer_contact_email?: string | null | undefined;
|
|
319
|
-
exporter_address_display?: string | null | undefined;
|
|
320
|
-
exporter_contact_phone?: string | null | undefined;
|
|
321
|
-
exporter_contact_email?: string | null | undefined;
|
|
322
|
-
}>;
|
|
323
|
-
deleteById: ({ resourceId, priority, }: {
|
|
324
|
-
resourceId: string;
|
|
325
|
-
priority?: number;
|
|
326
|
-
}) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
327
|
-
cancel: ({ resourceId, }: {
|
|
328
|
-
resourceId: string;
|
|
329
|
-
}) => Promise<{
|
|
330
|
-
docstatus: number;
|
|
331
|
-
name: string;
|
|
332
|
-
owner: string;
|
|
333
|
-
creation: string;
|
|
334
|
-
modified: string;
|
|
335
|
-
modified_by: string;
|
|
336
|
-
idx: number;
|
|
337
|
-
doctype: string;
|
|
338
|
-
posting_date: string;
|
|
339
|
-
set_posting_time: boolean;
|
|
340
|
-
export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
|
|
341
|
-
currency: string;
|
|
342
|
-
conversion_rate: number;
|
|
343
|
-
total_qty: number;
|
|
344
|
-
total_net_weight: number;
|
|
345
|
-
base_total: number;
|
|
346
|
-
base_net_total: number;
|
|
347
|
-
total: number;
|
|
348
|
-
net_total: number;
|
|
349
|
-
dispatch_address_name: string;
|
|
350
|
-
importer_address: string;
|
|
351
|
-
importer_contact: string;
|
|
352
|
-
exporter_address: string;
|
|
353
|
-
exporter_contact: string;
|
|
354
|
-
items: {
|
|
355
|
-
docstatus: number;
|
|
356
|
-
name: string;
|
|
357
|
-
owner: string;
|
|
358
|
-
creation: string;
|
|
359
|
-
modified: string;
|
|
360
|
-
modified_by: string;
|
|
361
|
-
idx: number;
|
|
362
|
-
doctype: string;
|
|
363
|
-
parent: string;
|
|
364
|
-
parenttype: string;
|
|
365
|
-
parentfield: string;
|
|
366
|
-
item_code: string;
|
|
367
|
-
qty: number;
|
|
368
|
-
rate: number;
|
|
369
|
-
delivered_by_supplier: boolean;
|
|
370
|
-
weight_per_unit: number;
|
|
371
|
-
total_weight: number;
|
|
372
|
-
weight_uom: string;
|
|
373
|
-
customer: string;
|
|
374
|
-
shipment: string;
|
|
375
|
-
delivery_note: string;
|
|
376
|
-
description?: string | null | undefined;
|
|
377
|
-
_user_tags?: string | null | undefined;
|
|
378
|
-
item_tax_template?: string | null | undefined;
|
|
379
|
-
amount?: number | null | undefined;
|
|
380
|
-
base_rate?: number | null | undefined;
|
|
381
|
-
base_amount?: number | null | undefined;
|
|
382
|
-
net_rate?: number | null | undefined;
|
|
383
|
-
net_amount?: number | null | undefined;
|
|
384
|
-
base_net_rate?: number | null | undefined;
|
|
385
|
-
base_net_amount?: number | null | undefined;
|
|
386
|
-
sales_order?: string | null | undefined;
|
|
387
|
-
so_detail?: string | null | undefined;
|
|
388
|
-
sales_invoice?: string | null | undefined;
|
|
389
|
-
sales_invoice_item?: string | null | undefined;
|
|
390
|
-
dn_detail?: string | null | undefined;
|
|
391
|
-
customs_tariff_number?: string | null | undefined;
|
|
392
|
-
country_of_origin?: string | null | undefined;
|
|
393
|
-
}[];
|
|
394
|
-
amended_from?: string | null | undefined;
|
|
395
|
-
_user_tags?: string | null | undefined;
|
|
396
|
-
company?: string | null | undefined;
|
|
397
|
-
naming_series?: string | null | undefined;
|
|
398
|
-
posting_time?: string | null | undefined;
|
|
399
|
-
company_tax_id?: string | null | undefined;
|
|
400
|
-
mrn?: string | null | undefined;
|
|
401
|
-
dispatch_address?: string | null | undefined;
|
|
402
|
-
importer_address_display?: string | null | undefined;
|
|
403
|
-
importer_contact_phone?: string | null | undefined;
|
|
404
|
-
importer_contact_email?: string | null | undefined;
|
|
405
|
-
exporter_address_display?: string | null | undefined;
|
|
406
|
-
exporter_contact_phone?: string | null | undefined;
|
|
407
|
-
exporter_contact_email?: string | null | undefined;
|
|
408
|
-
}>;
|
|
409
|
-
submit: ({ resourceId, }: {
|
|
410
|
-
resourceId: string;
|
|
411
|
-
}) => Promise<{
|
|
412
|
-
docstatus: number;
|
|
413
|
-
name: string;
|
|
414
|
-
owner: string;
|
|
415
|
-
creation: string;
|
|
416
|
-
modified: string;
|
|
417
|
-
modified_by: string;
|
|
418
|
-
idx: number;
|
|
419
|
-
doctype: string;
|
|
420
|
-
posting_date: string;
|
|
421
|
-
set_posting_time: boolean;
|
|
422
|
-
export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
|
|
423
|
-
currency: string;
|
|
424
|
-
conversion_rate: number;
|
|
425
|
-
total_qty: number;
|
|
426
|
-
total_net_weight: number;
|
|
427
|
-
base_total: number;
|
|
428
|
-
base_net_total: number;
|
|
429
|
-
total: number;
|
|
430
|
-
net_total: number;
|
|
431
|
-
dispatch_address_name: string;
|
|
432
|
-
importer_address: string;
|
|
433
|
-
importer_contact: string;
|
|
434
|
-
exporter_address: string;
|
|
435
|
-
exporter_contact: string;
|
|
436
|
-
items: {
|
|
437
|
-
docstatus: number;
|
|
438
|
-
name: string;
|
|
439
|
-
owner: string;
|
|
440
|
-
creation: string;
|
|
441
|
-
modified: string;
|
|
442
|
-
modified_by: string;
|
|
443
|
-
idx: number;
|
|
444
|
-
doctype: string;
|
|
445
|
-
parent: string;
|
|
446
|
-
parenttype: string;
|
|
447
|
-
parentfield: string;
|
|
448
|
-
item_code: string;
|
|
449
|
-
qty: number;
|
|
450
|
-
rate: number;
|
|
451
|
-
delivered_by_supplier: boolean;
|
|
452
|
-
weight_per_unit: number;
|
|
453
|
-
total_weight: number;
|
|
454
|
-
weight_uom: string;
|
|
455
|
-
customer: string;
|
|
456
|
-
shipment: string;
|
|
457
|
-
delivery_note: string;
|
|
458
|
-
description?: string | null | undefined;
|
|
459
|
-
_user_tags?: string | null | undefined;
|
|
460
|
-
item_tax_template?: string | null | undefined;
|
|
461
|
-
amount?: number | null | undefined;
|
|
462
|
-
base_rate?: number | null | undefined;
|
|
463
|
-
base_amount?: number | null | undefined;
|
|
464
|
-
net_rate?: number | null | undefined;
|
|
465
|
-
net_amount?: number | null | undefined;
|
|
466
|
-
base_net_rate?: number | null | undefined;
|
|
467
|
-
base_net_amount?: number | null | undefined;
|
|
468
|
-
sales_order?: string | null | undefined;
|
|
469
|
-
so_detail?: string | null | undefined;
|
|
470
|
-
sales_invoice?: string | null | undefined;
|
|
471
|
-
sales_invoice_item?: string | null | undefined;
|
|
472
|
-
dn_detail?: string | null | undefined;
|
|
473
|
-
customs_tariff_number?: string | null | undefined;
|
|
474
|
-
country_of_origin?: string | null | undefined;
|
|
475
|
-
}[];
|
|
476
|
-
amended_from?: string | null | undefined;
|
|
477
|
-
_user_tags?: string | null | undefined;
|
|
478
|
-
company?: string | null | undefined;
|
|
479
|
-
naming_series?: string | null | undefined;
|
|
480
|
-
posting_time?: string | null | undefined;
|
|
481
|
-
company_tax_id?: string | null | undefined;
|
|
482
|
-
mrn?: string | null | undefined;
|
|
483
|
-
dispatch_address?: string | null | undefined;
|
|
484
|
-
importer_address_display?: string | null | undefined;
|
|
485
|
-
importer_contact_phone?: string | null | undefined;
|
|
486
|
-
importer_contact_email?: string | null | undefined;
|
|
487
|
-
exporter_address_display?: string | null | undefined;
|
|
488
|
-
exporter_contact_phone?: string | null | undefined;
|
|
489
|
-
exporter_contact_email?: string | null | undefined;
|
|
490
|
-
}>;
|
|
491
7
|
constructor(temporalClient: TemporalClient);
|
|
492
|
-
|
|
8
|
+
/** Create a consolidated customs invoice from the given shipment names. */
|
|
9
|
+
createFromShipments({ shipments, }: ConsolidatedCustomsInvoiceCreateMethodInputType): Promise<{
|
|
493
10
|
name: string;
|
|
494
11
|
importer_info: {
|
|
495
12
|
address_line1: string;
|
|
@@ -4,28 +4,14 @@ exports.ERPNextConsolidatedCustomsInvoice = void 0;
|
|
|
4
4
|
const doctypeSubmittableResourceRequest_1 = require("../doctypeSubmittableResourceRequest");
|
|
5
5
|
const methodRequest_1 = require("../methodRequest");
|
|
6
6
|
const ConsolidatedCustomsInvoice_1 = require("../model/ConsolidatedCustomsInvoice");
|
|
7
|
-
class ERPNextConsolidatedCustomsInvoice {
|
|
8
|
-
temporalClient;
|
|
9
|
-
baseRequest;
|
|
7
|
+
class ERPNextConsolidatedCustomsInvoice extends doctypeSubmittableResourceRequest_1.ERPNextDoctypeSubmittableResourceRequest {
|
|
10
8
|
methodRequest;
|
|
11
|
-
getList;
|
|
12
|
-
getById;
|
|
13
|
-
updateById;
|
|
14
|
-
deleteById;
|
|
15
|
-
cancel;
|
|
16
|
-
submit;
|
|
17
9
|
constructor(temporalClient) {
|
|
18
|
-
|
|
19
|
-
this.baseRequest = new doctypeSubmittableResourceRequest_1.ERPNextDoctypeSubmittableResourceRequest(temporalClient, "Consolidated Customs Invoice", ConsolidatedCustomsInvoice_1.ConsolidatedCustomsInvoice);
|
|
10
|
+
super(temporalClient, "Consolidated Customs Invoice", ConsolidatedCustomsInvoice_1.ConsolidatedCustomsInvoice);
|
|
20
11
|
this.methodRequest = new methodRequest_1.ERPNextMethodRequest(temporalClient);
|
|
21
|
-
this.getList = this.baseRequest.getList;
|
|
22
|
-
this.getById = this.baseRequest.getById;
|
|
23
|
-
this.updateById = this.baseRequest.updateById;
|
|
24
|
-
this.deleteById = this.baseRequest.deleteById;
|
|
25
|
-
this.cancel = this.baseRequest.cancel;
|
|
26
|
-
this.submit = this.baseRequest.submit;
|
|
27
12
|
}
|
|
28
|
-
|
|
13
|
+
/** Create a consolidated customs invoice from the given shipment names. */
|
|
14
|
+
async createFromShipments({ shipments, }) {
|
|
29
15
|
return await this.methodRequest.request({
|
|
30
16
|
requestMethod: "POST",
|
|
31
17
|
methodName: "consolidated_customs_invoice.create",
|