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