erpnext-queue-client 1.34.8 → 1.34.10
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/shipment.d.ts +28 -1
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +434 -0
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +102 -0
- package/dist/erpnext/model/Shipment.d.ts +23 -0
- package/dist/erpnext/model/Shipment.js +14 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export declare class ERPNextShipment {
|
|
|
7
7
|
protected temporalClient: TemporalClient;
|
|
8
8
|
protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof Shipment>;
|
|
9
9
|
protected methodRequest: ERPNextMethodRequest;
|
|
10
|
-
getList: <TField extends ("status" | "name" | "doctype" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "delivery_address_name" | "delivery_address" | "delivery_customer" | "delivery_to_type" | "incoterm" | "pallets" | "pickup_address_name" | "pickup_address" | "pickup_company" | "pickup_contact_email" | "pickup_contact_person" | "pickup_contact" | "pickup_from_type" | "pickup_from" | "pickup_to" | "pickup_type" | "shipment_amount" | "shipment_delivery_note" | "shipment_parcel" | "shipment_type" | "tracking_status" | "value_of_goods" | "description_of_content" | "pickup_date" | "shipment_id") | ("parent" | "parentfield" | "parenttype" | "__onload" | "amended_from" | "delivery_contact" | "awb_number" | "carrier_service" | "carrier" | "delivery_company" | "delivery_contact_email" | "delivery_contact_name" | "delivery_supplier" | "delivery_to" | "parcel_template" | "pickup_contact_name" | "pickup_customer" | "pickup_supplier" | "pickup" | "service_provider" | "shipping_label" | "shipping_provider" | "custom_return_label" | "custom_return_shipping_provider" | "tracking_status_info" | "tracking_url"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
10
|
+
getList: <TField extends ("status" | "name" | "doctype" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "delivery_address_name" | "delivery_address" | "delivery_customer" | "delivery_to_type" | "incoterm" | "pallets" | "pickup_address_name" | "pickup_address" | "pickup_company" | "pickup_contact_email" | "pickup_contact_person" | "pickup_contact" | "pickup_from_type" | "pickup_from" | "pickup_to" | "pickup_type" | "shipment_amount" | "shipment_delivery_note" | "shipment_parcel" | "shipment_type" | "tracking_status" | "value_of_goods" | "description_of_content" | "pickup_date" | "shipment_id" | "custom_export_status") | ("parent" | "parentfield" | "parenttype" | "__onload" | "amended_from" | "delivery_contact" | "awb_number" | "carrier_service" | "carrier" | "delivery_company" | "delivery_contact_email" | "delivery_contact_name" | "delivery_supplier" | "delivery_to" | "parcel_template" | "pickup_contact_name" | "pickup_customer" | "pickup_supplier" | "pickup" | "service_provider" | "shipping_label" | "shipping_provider" | "custom_return_label" | "custom_return_shipping_provider" | "tracking_status_info" | "tracking_url" | "custom_delivery_country" | "custom_is_export"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
11
11
|
fields?: TField[] | undefined;
|
|
12
12
|
filters?: (string | string[])[][];
|
|
13
13
|
skip?: number;
|
|
@@ -82,6 +82,7 @@ export declare class ERPNextShipment {
|
|
|
82
82
|
description_of_content: string;
|
|
83
83
|
pickup_date: string;
|
|
84
84
|
shipment_id: string;
|
|
85
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
85
86
|
parent?: string | null | undefined;
|
|
86
87
|
parentfield?: string | null | undefined;
|
|
87
88
|
parenttype?: string | null | undefined;
|
|
@@ -110,6 +111,8 @@ export declare class ERPNextShipment {
|
|
|
110
111
|
custom_return_shipping_provider?: string | null | undefined;
|
|
111
112
|
tracking_status_info?: string | null | undefined;
|
|
112
113
|
tracking_url?: string | null | undefined;
|
|
114
|
+
custom_delivery_country?: string | null | undefined;
|
|
115
|
+
custom_is_export?: number | null | undefined;
|
|
113
116
|
}, TField>[]>;
|
|
114
117
|
getById: ({ resourceId, priority, }: {
|
|
115
118
|
resourceId: string;
|
|
@@ -181,6 +184,7 @@ export declare class ERPNextShipment {
|
|
|
181
184
|
description_of_content: string;
|
|
182
185
|
pickup_date: string;
|
|
183
186
|
shipment_id: string;
|
|
187
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
184
188
|
parent?: string | null | undefined;
|
|
185
189
|
parentfield?: string | null | undefined;
|
|
186
190
|
parenttype?: string | null | undefined;
|
|
@@ -209,6 +213,8 @@ export declare class ERPNextShipment {
|
|
|
209
213
|
custom_return_shipping_provider?: string | null | undefined;
|
|
210
214
|
tracking_status_info?: string | null | undefined;
|
|
211
215
|
tracking_url?: string | null | undefined;
|
|
216
|
+
custom_delivery_country?: string | null | undefined;
|
|
217
|
+
custom_is_export?: number | null | undefined;
|
|
212
218
|
}>;
|
|
213
219
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
214
220
|
status: string;
|
|
@@ -277,6 +283,7 @@ export declare class ERPNextShipment {
|
|
|
277
283
|
description_of_content: string;
|
|
278
284
|
pickup_date: string;
|
|
279
285
|
shipment_id: string;
|
|
286
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
280
287
|
parent?: string | null | undefined;
|
|
281
288
|
parentfield?: string | null | undefined;
|
|
282
289
|
parenttype?: string | null | undefined;
|
|
@@ -305,6 +312,8 @@ export declare class ERPNextShipment {
|
|
|
305
312
|
custom_return_shipping_provider?: string | null | undefined;
|
|
306
313
|
tracking_status_info?: string | null | undefined;
|
|
307
314
|
tracking_url?: string | null | undefined;
|
|
315
|
+
custom_delivery_country?: string | null | undefined;
|
|
316
|
+
custom_is_export?: number | null | undefined;
|
|
308
317
|
}> : TInputModel extends z.ZodTypeAny ? Partial<z.TypeOf<TInputModel>> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
309
318
|
resourceId: string;
|
|
310
319
|
inputValidationModel?: TInputModel;
|
|
@@ -377,6 +386,7 @@ export declare class ERPNextShipment {
|
|
|
377
386
|
description_of_content: string;
|
|
378
387
|
pickup_date: string;
|
|
379
388
|
shipment_id: string;
|
|
389
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
380
390
|
parent?: string | null | undefined;
|
|
381
391
|
parentfield?: string | null | undefined;
|
|
382
392
|
parenttype?: string | null | undefined;
|
|
@@ -405,6 +415,8 @@ export declare class ERPNextShipment {
|
|
|
405
415
|
custom_return_shipping_provider?: string | null | undefined;
|
|
406
416
|
tracking_status_info?: string | null | undefined;
|
|
407
417
|
tracking_url?: string | null | undefined;
|
|
418
|
+
custom_delivery_country?: string | null | undefined;
|
|
419
|
+
custom_is_export?: number | null | undefined;
|
|
408
420
|
}>;
|
|
409
421
|
deleteById: ({ resourceId, priority, }: {
|
|
410
422
|
resourceId: string;
|
|
@@ -477,6 +489,7 @@ export declare class ERPNextShipment {
|
|
|
477
489
|
description_of_content: string;
|
|
478
490
|
pickup_date: string;
|
|
479
491
|
shipment_id: string;
|
|
492
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
480
493
|
parent?: string | null | undefined;
|
|
481
494
|
parentfield?: string | null | undefined;
|
|
482
495
|
parenttype?: string | null | undefined;
|
|
@@ -505,6 +518,8 @@ export declare class ERPNextShipment {
|
|
|
505
518
|
custom_return_shipping_provider?: string | null | undefined;
|
|
506
519
|
tracking_status_info?: string | null | undefined;
|
|
507
520
|
tracking_url?: string | null | undefined;
|
|
521
|
+
custom_delivery_country?: string | null | undefined;
|
|
522
|
+
custom_is_export?: number | null | undefined;
|
|
508
523
|
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
|
|
509
524
|
inputValidationModel?: TInputModel;
|
|
510
525
|
body: TInput;
|
|
@@ -577,6 +592,7 @@ export declare class ERPNextShipment {
|
|
|
577
592
|
description_of_content: string;
|
|
578
593
|
pickup_date: string;
|
|
579
594
|
shipment_id: string;
|
|
595
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
580
596
|
parent?: string | null | undefined;
|
|
581
597
|
parentfield?: string | null | undefined;
|
|
582
598
|
parenttype?: string | null | undefined;
|
|
@@ -605,6 +621,8 @@ export declare class ERPNextShipment {
|
|
|
605
621
|
custom_return_shipping_provider?: string | null | undefined;
|
|
606
622
|
tracking_status_info?: string | null | undefined;
|
|
607
623
|
tracking_url?: string | null | undefined;
|
|
624
|
+
custom_delivery_country?: string | null | undefined;
|
|
625
|
+
custom_is_export?: number | null | undefined;
|
|
608
626
|
}>;
|
|
609
627
|
cancel: ({ resourceId }: {
|
|
610
628
|
resourceId: string;
|
|
@@ -675,6 +693,7 @@ export declare class ERPNextShipment {
|
|
|
675
693
|
description_of_content: string;
|
|
676
694
|
pickup_date: string;
|
|
677
695
|
shipment_id: string;
|
|
696
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
678
697
|
parent?: string | null | undefined;
|
|
679
698
|
parentfield?: string | null | undefined;
|
|
680
699
|
parenttype?: string | null | undefined;
|
|
@@ -703,6 +722,8 @@ export declare class ERPNextShipment {
|
|
|
703
722
|
custom_return_shipping_provider?: string | null | undefined;
|
|
704
723
|
tracking_status_info?: string | null | undefined;
|
|
705
724
|
tracking_url?: string | null | undefined;
|
|
725
|
+
custom_delivery_country?: string | null | undefined;
|
|
726
|
+
custom_is_export?: number | null | undefined;
|
|
706
727
|
}>;
|
|
707
728
|
submit: ({ resourceId }: {
|
|
708
729
|
resourceId: string;
|
|
@@ -773,6 +794,7 @@ export declare class ERPNextShipment {
|
|
|
773
794
|
description_of_content: string;
|
|
774
795
|
pickup_date: string;
|
|
775
796
|
shipment_id: string;
|
|
797
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
776
798
|
parent?: string | null | undefined;
|
|
777
799
|
parentfield?: string | null | undefined;
|
|
778
800
|
parenttype?: string | null | undefined;
|
|
@@ -801,6 +823,8 @@ export declare class ERPNextShipment {
|
|
|
801
823
|
custom_return_shipping_provider?: string | null | undefined;
|
|
802
824
|
tracking_status_info?: string | null | undefined;
|
|
803
825
|
tracking_url?: string | null | undefined;
|
|
826
|
+
custom_delivery_country?: string | null | undefined;
|
|
827
|
+
custom_is_export?: number | null | undefined;
|
|
804
828
|
}>;
|
|
805
829
|
constructor(temporalClient: TemporalClient);
|
|
806
830
|
createShipmentDraft(deliveryNoteName: string): Promise<{
|
|
@@ -932,6 +956,7 @@ export declare class ERPNextShipment {
|
|
|
932
956
|
description_of_content: string;
|
|
933
957
|
pickup_date: string;
|
|
934
958
|
shipment_id: string;
|
|
959
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
935
960
|
parent?: string | null | undefined;
|
|
936
961
|
parentfield?: string | null | undefined;
|
|
937
962
|
parenttype?: string | null | undefined;
|
|
@@ -960,5 +985,7 @@ export declare class ERPNextShipment {
|
|
|
960
985
|
custom_return_shipping_provider?: string | null | undefined;
|
|
961
986
|
tracking_status_info?: string | null | undefined;
|
|
962
987
|
tracking_url?: string | null | undefined;
|
|
988
|
+
custom_delivery_country?: string | null | undefined;
|
|
989
|
+
custom_is_export?: number | null | undefined;
|
|
963
990
|
}>;
|
|
964
991
|
}
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
owner: z.ZodString;
|
|
5
|
+
creation: z.ZodString;
|
|
6
|
+
modified: z.ZodString;
|
|
7
|
+
modified_by: z.ZodString;
|
|
8
|
+
parent: z.ZodString;
|
|
9
|
+
parentfield: z.ZodString;
|
|
10
|
+
parenttype: z.ZodString;
|
|
11
|
+
idx: z.ZodNumber;
|
|
12
|
+
docstatus: z.ZodNumber;
|
|
13
|
+
doctype: z.ZodString;
|
|
14
|
+
item_code: z.ZodString;
|
|
15
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
qty: z.ZodNumber;
|
|
17
|
+
item_tax_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
rate: z.ZodNumber;
|
|
19
|
+
amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
+
base_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
+
base_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
23
|
+
net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
24
|
+
base_net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
25
|
+
base_net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
26
|
+
delivered_by_supplier: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
27
|
+
weight_per_unit: z.ZodNumber;
|
|
28
|
+
total_weight: z.ZodNumber;
|
|
29
|
+
weight_uom: z.ZodString;
|
|
30
|
+
sales_order: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
so_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
sales_invoice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
customer: z.ZodString;
|
|
35
|
+
shipment: z.ZodString;
|
|
36
|
+
delivery_note: z.ZodString;
|
|
37
|
+
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
name: string;
|
|
40
|
+
doctype: string;
|
|
41
|
+
owner: string;
|
|
42
|
+
creation: string;
|
|
43
|
+
modified: string;
|
|
44
|
+
modified_by: string;
|
|
45
|
+
parent: string;
|
|
46
|
+
parentfield: string;
|
|
47
|
+
parenttype: string;
|
|
48
|
+
idx: number;
|
|
49
|
+
docstatus: number;
|
|
50
|
+
customer: string;
|
|
51
|
+
item_code: string;
|
|
52
|
+
qty: number;
|
|
53
|
+
rate: number;
|
|
54
|
+
weight_per_unit: number;
|
|
55
|
+
total_weight: number;
|
|
56
|
+
weight_uom: string;
|
|
57
|
+
delivered_by_supplier: boolean;
|
|
58
|
+
delivery_note: string;
|
|
59
|
+
shipment: string;
|
|
60
|
+
description?: string | null | undefined;
|
|
61
|
+
amount?: number | null | undefined;
|
|
62
|
+
base_rate?: number | null | undefined;
|
|
63
|
+
base_amount?: number | null | undefined;
|
|
64
|
+
net_rate?: number | null | undefined;
|
|
65
|
+
net_amount?: number | null | undefined;
|
|
66
|
+
item_tax_template?: string | null | undefined;
|
|
67
|
+
base_net_rate?: number | null | undefined;
|
|
68
|
+
base_net_amount?: number | null | undefined;
|
|
69
|
+
so_detail?: string | null | undefined;
|
|
70
|
+
dn_detail?: string | null | undefined;
|
|
71
|
+
sales_order?: string | null | undefined;
|
|
72
|
+
sales_invoice?: string | null | undefined;
|
|
73
|
+
sales_invoice_item?: string | null | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
name: string;
|
|
76
|
+
doctype: string;
|
|
77
|
+
owner: string;
|
|
78
|
+
creation: string;
|
|
79
|
+
modified: string;
|
|
80
|
+
modified_by: string;
|
|
81
|
+
parent: string;
|
|
82
|
+
parentfield: string;
|
|
83
|
+
parenttype: string;
|
|
84
|
+
idx: number;
|
|
85
|
+
docstatus: number;
|
|
86
|
+
customer: string;
|
|
87
|
+
item_code: string;
|
|
88
|
+
qty: number;
|
|
89
|
+
rate: number;
|
|
90
|
+
weight_per_unit: number;
|
|
91
|
+
total_weight: number;
|
|
92
|
+
weight_uom: string;
|
|
93
|
+
delivered_by_supplier: number;
|
|
94
|
+
delivery_note: string;
|
|
95
|
+
shipment: string;
|
|
96
|
+
description?: string | null | undefined;
|
|
97
|
+
amount?: number | null | undefined;
|
|
98
|
+
base_rate?: number | null | undefined;
|
|
99
|
+
base_amount?: number | null | undefined;
|
|
100
|
+
net_rate?: number | null | undefined;
|
|
101
|
+
net_amount?: number | null | undefined;
|
|
102
|
+
item_tax_template?: string | null | undefined;
|
|
103
|
+
base_net_rate?: number | null | undefined;
|
|
104
|
+
base_net_amount?: number | null | undefined;
|
|
105
|
+
so_detail?: string | null | undefined;
|
|
106
|
+
dn_detail?: string | null | undefined;
|
|
107
|
+
sales_order?: string | null | undefined;
|
|
108
|
+
sales_invoice?: string | null | undefined;
|
|
109
|
+
sales_invoice_item?: string | null | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
export type ConsolidatedCustomsInvoiceItemType = z.infer<typeof ConsolidatedCustomsInvoiceItem>;
|
|
112
|
+
export declare const ConsolidatedCustomsInvoiceExportApprovalStatus: z.ZodNullable<z.ZodOptional<z.ZodEnum<["", "Waiting for Approval", "Approved", "Declined"]>>>;
|
|
113
|
+
export type ConsolidatedCustomsInvoiceExportApprovalStatusType = z.infer<typeof ConsolidatedCustomsInvoiceExportApprovalStatus>;
|
|
114
|
+
export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
owner: z.ZodString;
|
|
117
|
+
creation: z.ZodString;
|
|
118
|
+
modified: z.ZodString;
|
|
119
|
+
modified_by: z.ZodString;
|
|
120
|
+
idx: z.ZodNumber;
|
|
121
|
+
docstatus: z.ZodNumber;
|
|
122
|
+
posting_date: z.ZodString;
|
|
123
|
+
posting_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
|
+
set_posting_time: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
125
|
+
naming_series: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
126
|
+
company: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
127
|
+
company_tax_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
128
|
+
amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
129
|
+
export_approval_status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["", "Waiting for Approval", "Approved", "Declined"]>>>;
|
|
130
|
+
mrn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
131
|
+
currency: z.ZodString;
|
|
132
|
+
conversion_rate: z.ZodNumber;
|
|
133
|
+
total_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
134
|
+
total_net_weight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
135
|
+
base_total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
136
|
+
base_net_total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
137
|
+
total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
138
|
+
net_total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
139
|
+
customer_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
140
|
+
address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
141
|
+
contact_person: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
142
|
+
contact_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
143
|
+
contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
144
|
+
shipping_address_name: z.ZodString;
|
|
145
|
+
shipping_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
146
|
+
dispatch_address_name: z.ZodString;
|
|
147
|
+
dispatch_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
|
+
importer_address: z.ZodString;
|
|
149
|
+
importer_address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
150
|
+
importer_contact: z.ZodString;
|
|
151
|
+
importer_contact_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
152
|
+
importer_contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
153
|
+
exporter_address: z.ZodString;
|
|
154
|
+
exporter_address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
exporter_contact: z.ZodString;
|
|
156
|
+
exporter_contact_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
157
|
+
exporter_contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
158
|
+
doctype: z.ZodString;
|
|
159
|
+
items: z.ZodArray<z.ZodObject<{
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
owner: z.ZodString;
|
|
162
|
+
creation: z.ZodString;
|
|
163
|
+
modified: z.ZodString;
|
|
164
|
+
modified_by: z.ZodString;
|
|
165
|
+
parent: z.ZodString;
|
|
166
|
+
parentfield: z.ZodString;
|
|
167
|
+
parenttype: z.ZodString;
|
|
168
|
+
idx: z.ZodNumber;
|
|
169
|
+
docstatus: z.ZodNumber;
|
|
170
|
+
doctype: z.ZodString;
|
|
171
|
+
item_code: z.ZodString;
|
|
172
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
173
|
+
qty: z.ZodNumber;
|
|
174
|
+
item_tax_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
175
|
+
rate: z.ZodNumber;
|
|
176
|
+
amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
177
|
+
base_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
178
|
+
base_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
179
|
+
net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
180
|
+
net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
181
|
+
base_net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
182
|
+
base_net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
183
|
+
delivered_by_supplier: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
184
|
+
weight_per_unit: z.ZodNumber;
|
|
185
|
+
total_weight: z.ZodNumber;
|
|
186
|
+
weight_uom: z.ZodString;
|
|
187
|
+
sales_order: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
188
|
+
so_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
189
|
+
sales_invoice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
190
|
+
sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
191
|
+
customer: z.ZodString;
|
|
192
|
+
shipment: z.ZodString;
|
|
193
|
+
delivery_note: z.ZodString;
|
|
194
|
+
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
name: string;
|
|
197
|
+
doctype: string;
|
|
198
|
+
owner: string;
|
|
199
|
+
creation: string;
|
|
200
|
+
modified: string;
|
|
201
|
+
modified_by: string;
|
|
202
|
+
parent: string;
|
|
203
|
+
parentfield: string;
|
|
204
|
+
parenttype: string;
|
|
205
|
+
idx: number;
|
|
206
|
+
docstatus: number;
|
|
207
|
+
customer: string;
|
|
208
|
+
item_code: string;
|
|
209
|
+
qty: number;
|
|
210
|
+
rate: number;
|
|
211
|
+
weight_per_unit: number;
|
|
212
|
+
total_weight: number;
|
|
213
|
+
weight_uom: string;
|
|
214
|
+
delivered_by_supplier: boolean;
|
|
215
|
+
delivery_note: string;
|
|
216
|
+
shipment: string;
|
|
217
|
+
description?: string | null | undefined;
|
|
218
|
+
amount?: number | null | undefined;
|
|
219
|
+
base_rate?: number | null | undefined;
|
|
220
|
+
base_amount?: number | null | undefined;
|
|
221
|
+
net_rate?: number | null | undefined;
|
|
222
|
+
net_amount?: number | null | undefined;
|
|
223
|
+
item_tax_template?: string | null | undefined;
|
|
224
|
+
base_net_rate?: number | null | undefined;
|
|
225
|
+
base_net_amount?: number | null | undefined;
|
|
226
|
+
so_detail?: string | null | undefined;
|
|
227
|
+
dn_detail?: string | null | undefined;
|
|
228
|
+
sales_order?: string | null | undefined;
|
|
229
|
+
sales_invoice?: string | null | undefined;
|
|
230
|
+
sales_invoice_item?: string | null | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
name: string;
|
|
233
|
+
doctype: string;
|
|
234
|
+
owner: string;
|
|
235
|
+
creation: string;
|
|
236
|
+
modified: string;
|
|
237
|
+
modified_by: string;
|
|
238
|
+
parent: string;
|
|
239
|
+
parentfield: string;
|
|
240
|
+
parenttype: string;
|
|
241
|
+
idx: number;
|
|
242
|
+
docstatus: number;
|
|
243
|
+
customer: string;
|
|
244
|
+
item_code: string;
|
|
245
|
+
qty: number;
|
|
246
|
+
rate: number;
|
|
247
|
+
weight_per_unit: number;
|
|
248
|
+
total_weight: number;
|
|
249
|
+
weight_uom: string;
|
|
250
|
+
delivered_by_supplier: number;
|
|
251
|
+
delivery_note: string;
|
|
252
|
+
shipment: string;
|
|
253
|
+
description?: string | null | undefined;
|
|
254
|
+
amount?: number | null | undefined;
|
|
255
|
+
base_rate?: number | null | undefined;
|
|
256
|
+
base_amount?: number | null | undefined;
|
|
257
|
+
net_rate?: number | null | undefined;
|
|
258
|
+
net_amount?: number | null | undefined;
|
|
259
|
+
item_tax_template?: string | null | undefined;
|
|
260
|
+
base_net_rate?: number | null | undefined;
|
|
261
|
+
base_net_amount?: number | null | undefined;
|
|
262
|
+
so_detail?: string | null | undefined;
|
|
263
|
+
dn_detail?: string | null | undefined;
|
|
264
|
+
sales_order?: string | null | undefined;
|
|
265
|
+
sales_invoice?: string | null | undefined;
|
|
266
|
+
sales_invoice_item?: string | null | undefined;
|
|
267
|
+
}>, "many">;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
name: string;
|
|
270
|
+
doctype: string;
|
|
271
|
+
owner: string;
|
|
272
|
+
creation: string;
|
|
273
|
+
modified: string;
|
|
274
|
+
modified_by: string;
|
|
275
|
+
idx: number;
|
|
276
|
+
docstatus: number;
|
|
277
|
+
items: {
|
|
278
|
+
name: string;
|
|
279
|
+
doctype: string;
|
|
280
|
+
owner: string;
|
|
281
|
+
creation: string;
|
|
282
|
+
modified: string;
|
|
283
|
+
modified_by: string;
|
|
284
|
+
parent: string;
|
|
285
|
+
parentfield: string;
|
|
286
|
+
parenttype: string;
|
|
287
|
+
idx: number;
|
|
288
|
+
docstatus: number;
|
|
289
|
+
customer: string;
|
|
290
|
+
item_code: string;
|
|
291
|
+
qty: number;
|
|
292
|
+
rate: number;
|
|
293
|
+
weight_per_unit: number;
|
|
294
|
+
total_weight: number;
|
|
295
|
+
weight_uom: string;
|
|
296
|
+
delivered_by_supplier: boolean;
|
|
297
|
+
delivery_note: string;
|
|
298
|
+
shipment: string;
|
|
299
|
+
description?: string | null | undefined;
|
|
300
|
+
amount?: number | null | undefined;
|
|
301
|
+
base_rate?: number | null | undefined;
|
|
302
|
+
base_amount?: number | null | undefined;
|
|
303
|
+
net_rate?: number | null | undefined;
|
|
304
|
+
net_amount?: number | null | undefined;
|
|
305
|
+
item_tax_template?: string | null | undefined;
|
|
306
|
+
base_net_rate?: number | null | undefined;
|
|
307
|
+
base_net_amount?: number | null | undefined;
|
|
308
|
+
so_detail?: string | null | undefined;
|
|
309
|
+
dn_detail?: string | null | undefined;
|
|
310
|
+
sales_order?: string | null | undefined;
|
|
311
|
+
sales_invoice?: string | null | undefined;
|
|
312
|
+
sales_invoice_item?: string | null | undefined;
|
|
313
|
+
}[];
|
|
314
|
+
posting_date: string;
|
|
315
|
+
set_posting_time: boolean;
|
|
316
|
+
shipping_address_name: string;
|
|
317
|
+
dispatch_address_name: string;
|
|
318
|
+
currency: string;
|
|
319
|
+
conversion_rate: number;
|
|
320
|
+
importer_address: string;
|
|
321
|
+
importer_contact: string;
|
|
322
|
+
exporter_address: string;
|
|
323
|
+
exporter_contact: string;
|
|
324
|
+
company?: string | null | undefined;
|
|
325
|
+
naming_series?: string | null | undefined;
|
|
326
|
+
amended_from?: string | null | undefined;
|
|
327
|
+
posting_time?: string | null | undefined;
|
|
328
|
+
shipping_address?: string | null | undefined;
|
|
329
|
+
dispatch_address?: string | null | undefined;
|
|
330
|
+
contact_person?: string | null | undefined;
|
|
331
|
+
contact_email?: string | null | undefined;
|
|
332
|
+
customer_address?: string | null | undefined;
|
|
333
|
+
address_display?: string | null | undefined;
|
|
334
|
+
total_qty?: number | null | undefined;
|
|
335
|
+
base_total?: number | null | undefined;
|
|
336
|
+
base_net_total?: number | null | undefined;
|
|
337
|
+
total_net_weight?: number | null | undefined;
|
|
338
|
+
total?: number | null | undefined;
|
|
339
|
+
net_total?: number | null | undefined;
|
|
340
|
+
company_tax_id?: string | null | undefined;
|
|
341
|
+
export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
|
|
342
|
+
mrn?: string | null | undefined;
|
|
343
|
+
contact_phone?: string | null | undefined;
|
|
344
|
+
importer_address_display?: string | null | undefined;
|
|
345
|
+
importer_contact_phone?: string | null | undefined;
|
|
346
|
+
importer_contact_email?: string | null | undefined;
|
|
347
|
+
exporter_address_display?: string | null | undefined;
|
|
348
|
+
exporter_contact_phone?: string | null | undefined;
|
|
349
|
+
exporter_contact_email?: string | null | undefined;
|
|
350
|
+
}, {
|
|
351
|
+
name: string;
|
|
352
|
+
doctype: string;
|
|
353
|
+
owner: string;
|
|
354
|
+
creation: string;
|
|
355
|
+
modified: string;
|
|
356
|
+
modified_by: string;
|
|
357
|
+
idx: number;
|
|
358
|
+
docstatus: number;
|
|
359
|
+
items: {
|
|
360
|
+
name: string;
|
|
361
|
+
doctype: string;
|
|
362
|
+
owner: string;
|
|
363
|
+
creation: string;
|
|
364
|
+
modified: string;
|
|
365
|
+
modified_by: string;
|
|
366
|
+
parent: string;
|
|
367
|
+
parentfield: string;
|
|
368
|
+
parenttype: string;
|
|
369
|
+
idx: number;
|
|
370
|
+
docstatus: number;
|
|
371
|
+
customer: string;
|
|
372
|
+
item_code: string;
|
|
373
|
+
qty: number;
|
|
374
|
+
rate: number;
|
|
375
|
+
weight_per_unit: number;
|
|
376
|
+
total_weight: number;
|
|
377
|
+
weight_uom: string;
|
|
378
|
+
delivered_by_supplier: number;
|
|
379
|
+
delivery_note: string;
|
|
380
|
+
shipment: string;
|
|
381
|
+
description?: string | null | undefined;
|
|
382
|
+
amount?: number | null | undefined;
|
|
383
|
+
base_rate?: number | null | undefined;
|
|
384
|
+
base_amount?: number | null | undefined;
|
|
385
|
+
net_rate?: number | null | undefined;
|
|
386
|
+
net_amount?: number | null | undefined;
|
|
387
|
+
item_tax_template?: string | null | undefined;
|
|
388
|
+
base_net_rate?: number | null | undefined;
|
|
389
|
+
base_net_amount?: number | null | undefined;
|
|
390
|
+
so_detail?: string | null | undefined;
|
|
391
|
+
dn_detail?: string | null | undefined;
|
|
392
|
+
sales_order?: string | null | undefined;
|
|
393
|
+
sales_invoice?: string | null | undefined;
|
|
394
|
+
sales_invoice_item?: string | null | undefined;
|
|
395
|
+
}[];
|
|
396
|
+
posting_date: string;
|
|
397
|
+
set_posting_time: number;
|
|
398
|
+
shipping_address_name: string;
|
|
399
|
+
dispatch_address_name: string;
|
|
400
|
+
currency: string;
|
|
401
|
+
conversion_rate: number;
|
|
402
|
+
importer_address: string;
|
|
403
|
+
importer_contact: string;
|
|
404
|
+
exporter_address: string;
|
|
405
|
+
exporter_contact: string;
|
|
406
|
+
company?: string | null | undefined;
|
|
407
|
+
naming_series?: string | null | undefined;
|
|
408
|
+
amended_from?: string | null | undefined;
|
|
409
|
+
posting_time?: string | null | undefined;
|
|
410
|
+
shipping_address?: string | null | undefined;
|
|
411
|
+
dispatch_address?: string | null | undefined;
|
|
412
|
+
contact_person?: string | null | undefined;
|
|
413
|
+
contact_email?: string | null | undefined;
|
|
414
|
+
customer_address?: string | null | undefined;
|
|
415
|
+
address_display?: string | null | undefined;
|
|
416
|
+
total_qty?: number | null | undefined;
|
|
417
|
+
base_total?: number | null | undefined;
|
|
418
|
+
base_net_total?: number | null | undefined;
|
|
419
|
+
total_net_weight?: number | null | undefined;
|
|
420
|
+
total?: number | null | undefined;
|
|
421
|
+
net_total?: number | null | undefined;
|
|
422
|
+
company_tax_id?: string | null | undefined;
|
|
423
|
+
export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
|
|
424
|
+
mrn?: string | null | undefined;
|
|
425
|
+
contact_phone?: string | null | undefined;
|
|
426
|
+
importer_address_display?: string | null | undefined;
|
|
427
|
+
importer_contact_phone?: string | null | undefined;
|
|
428
|
+
importer_contact_email?: string | null | undefined;
|
|
429
|
+
exporter_address_display?: string | null | undefined;
|
|
430
|
+
exporter_contact_phone?: string | null | undefined;
|
|
431
|
+
exporter_contact_email?: string | null | undefined;
|
|
432
|
+
}>;
|
|
433
|
+
export type ConsolidatedCustomsInvoiceType = z.infer<typeof ConsolidatedCustomsInvoice>;
|
|
434
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConsolidatedCustomsInvoice = exports.ConsolidatedCustomsInvoiceExportApprovalStatus = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// Child table: Consolidated Customs Invoice Item
|
|
6
|
+
const ConsolidatedCustomsInvoiceItem = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
name: zod_1.z.string(),
|
|
9
|
+
owner: zod_1.z.string(),
|
|
10
|
+
creation: zod_1.z.string(),
|
|
11
|
+
modified: zod_1.z.string(),
|
|
12
|
+
modified_by: zod_1.z.string(),
|
|
13
|
+
parent: zod_1.z.string(),
|
|
14
|
+
parentfield: zod_1.z.string(),
|
|
15
|
+
parenttype: zod_1.z.string(),
|
|
16
|
+
idx: zod_1.z.number(),
|
|
17
|
+
docstatus: zod_1.z.number(),
|
|
18
|
+
doctype: zod_1.z.string(),
|
|
19
|
+
// Item details
|
|
20
|
+
item_code: zod_1.z.string(),
|
|
21
|
+
description: zod_1.z.string().optional().nullable(),
|
|
22
|
+
qty: zod_1.z.number(),
|
|
23
|
+
item_tax_template: zod_1.z.string().optional().nullable(),
|
|
24
|
+
// Pricing
|
|
25
|
+
rate: zod_1.z.number(),
|
|
26
|
+
amount: zod_1.z.number().optional().nullable(),
|
|
27
|
+
base_rate: zod_1.z.number().optional().nullable(),
|
|
28
|
+
base_amount: zod_1.z.number().optional().nullable(),
|
|
29
|
+
net_rate: zod_1.z.number().optional().nullable(),
|
|
30
|
+
net_amount: zod_1.z.number().optional().nullable(),
|
|
31
|
+
base_net_rate: zod_1.z.number().optional().nullable(),
|
|
32
|
+
base_net_amount: zod_1.z.number().optional().nullable(),
|
|
33
|
+
// Drop ship
|
|
34
|
+
delivered_by_supplier: zod_1.z.number().transform(Boolean),
|
|
35
|
+
// Weight details
|
|
36
|
+
weight_per_unit: zod_1.z.number(),
|
|
37
|
+
total_weight: zod_1.z.number(),
|
|
38
|
+
weight_uom: zod_1.z.string(),
|
|
39
|
+
// References
|
|
40
|
+
sales_order: zod_1.z.string().optional().nullable(),
|
|
41
|
+
so_detail: zod_1.z.string().optional().nullable(),
|
|
42
|
+
sales_invoice: zod_1.z.string().optional().nullable(),
|
|
43
|
+
sales_invoice_item: zod_1.z.string().optional().nullable(),
|
|
44
|
+
customer: zod_1.z.string(),
|
|
45
|
+
shipment: zod_1.z.string(),
|
|
46
|
+
delivery_note: zod_1.z.string(),
|
|
47
|
+
dn_detail: zod_1.z.string().optional().nullable(),
|
|
48
|
+
})
|
|
49
|
+
.describe("Consolidated Customs Invoice Item");
|
|
50
|
+
exports.ConsolidatedCustomsInvoiceExportApprovalStatus = zod_1.z
|
|
51
|
+
.enum(["", "Waiting for Approval", "Approved", "Declined"])
|
|
52
|
+
.optional()
|
|
53
|
+
.nullable();
|
|
54
|
+
exports.ConsolidatedCustomsInvoice = zod_1.z
|
|
55
|
+
.object({
|
|
56
|
+
name: zod_1.z.string(),
|
|
57
|
+
owner: zod_1.z.string(),
|
|
58
|
+
creation: zod_1.z.string(),
|
|
59
|
+
modified: zod_1.z.string(),
|
|
60
|
+
modified_by: zod_1.z.string(),
|
|
61
|
+
idx: zod_1.z.number(),
|
|
62
|
+
docstatus: zod_1.z.number(),
|
|
63
|
+
posting_date: zod_1.z.string(),
|
|
64
|
+
posting_time: zod_1.z.string().optional().nullable(),
|
|
65
|
+
set_posting_time: zod_1.z.number().transform(Boolean),
|
|
66
|
+
naming_series: zod_1.z.string().optional().nullable(),
|
|
67
|
+
company: zod_1.z.string().optional().nullable(),
|
|
68
|
+
company_tax_id: zod_1.z.string().optional().nullable(),
|
|
69
|
+
amended_from: zod_1.z.string().optional().nullable(),
|
|
70
|
+
export_approval_status: exports.ConsolidatedCustomsInvoiceExportApprovalStatus,
|
|
71
|
+
mrn: zod_1.z.string().optional().nullable(),
|
|
72
|
+
currency: zod_1.z.string(),
|
|
73
|
+
conversion_rate: zod_1.z.number(),
|
|
74
|
+
total_qty: zod_1.z.number().optional().nullable(),
|
|
75
|
+
total_net_weight: zod_1.z.number().optional().nullable(),
|
|
76
|
+
base_total: zod_1.z.number().optional().nullable(),
|
|
77
|
+
base_net_total: zod_1.z.number().optional().nullable(),
|
|
78
|
+
total: zod_1.z.number().optional().nullable(),
|
|
79
|
+
net_total: zod_1.z.number().optional().nullable(),
|
|
80
|
+
customer_address: zod_1.z.string().optional().nullable(),
|
|
81
|
+
address_display: zod_1.z.string().optional().nullable(),
|
|
82
|
+
contact_person: zod_1.z.string().optional().nullable(),
|
|
83
|
+
contact_phone: zod_1.z.string().optional().nullable(),
|
|
84
|
+
contact_email: zod_1.z.string().optional().nullable(),
|
|
85
|
+
shipping_address_name: zod_1.z.string(),
|
|
86
|
+
shipping_address: zod_1.z.string().optional().nullable(),
|
|
87
|
+
dispatch_address_name: zod_1.z.string(),
|
|
88
|
+
dispatch_address: zod_1.z.string().optional().nullable(),
|
|
89
|
+
importer_address: zod_1.z.string(),
|
|
90
|
+
importer_address_display: zod_1.z.string().optional().nullable(),
|
|
91
|
+
importer_contact: zod_1.z.string(),
|
|
92
|
+
importer_contact_phone: zod_1.z.string().optional().nullable(),
|
|
93
|
+
importer_contact_email: zod_1.z.string().optional().nullable(),
|
|
94
|
+
exporter_address: zod_1.z.string(),
|
|
95
|
+
exporter_address_display: zod_1.z.string().optional().nullable(),
|
|
96
|
+
exporter_contact: zod_1.z.string(),
|
|
97
|
+
exporter_contact_phone: zod_1.z.string().optional().nullable(),
|
|
98
|
+
exporter_contact_email: zod_1.z.string().optional().nullable(),
|
|
99
|
+
doctype: zod_1.z.string(),
|
|
100
|
+
items: zod_1.z.array(ConsolidatedCustomsInvoiceItem),
|
|
101
|
+
})
|
|
102
|
+
.describe("Consolidated Customs Invoice");
|
|
@@ -232,6 +232,8 @@ export declare const ShipmentParcelPostBody: z.ZodObject<{
|
|
|
232
232
|
weight: number;
|
|
233
233
|
count: number;
|
|
234
234
|
}>;
|
|
235
|
+
export declare const ShipmentExportStatus: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
236
|
+
export type ShipmentExportStatusType = z.infer<typeof ShipmentExportStatus>;
|
|
235
237
|
export declare const Shipment: z.ZodObject<{
|
|
236
238
|
__onload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
237
239
|
load_after_mapping: z.ZodBoolean;
|
|
@@ -395,6 +397,9 @@ export declare const Shipment: z.ZodObject<{
|
|
|
395
397
|
tracking_status: z.ZodString;
|
|
396
398
|
tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
397
399
|
value_of_goods: z.ZodNumber;
|
|
400
|
+
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
401
|
+
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
402
|
+
custom_export_status: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
398
403
|
}, "strip", z.ZodTypeAny, {
|
|
399
404
|
status: string;
|
|
400
405
|
name: string;
|
|
@@ -462,6 +467,7 @@ export declare const Shipment: z.ZodObject<{
|
|
|
462
467
|
description_of_content: string;
|
|
463
468
|
pickup_date: string;
|
|
464
469
|
shipment_id: string;
|
|
470
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
465
471
|
parent?: string | null | undefined;
|
|
466
472
|
parentfield?: string | null | undefined;
|
|
467
473
|
parenttype?: string | null | undefined;
|
|
@@ -490,6 +496,8 @@ export declare const Shipment: z.ZodObject<{
|
|
|
490
496
|
custom_return_shipping_provider?: string | null | undefined;
|
|
491
497
|
tracking_status_info?: string | null | undefined;
|
|
492
498
|
tracking_url?: string | null | undefined;
|
|
499
|
+
custom_delivery_country?: string | null | undefined;
|
|
500
|
+
custom_is_export?: number | null | undefined;
|
|
493
501
|
}, {
|
|
494
502
|
status: string;
|
|
495
503
|
name: string;
|
|
@@ -585,6 +593,9 @@ export declare const Shipment: z.ZodObject<{
|
|
|
585
593
|
custom_return_shipping_provider?: string | null | undefined;
|
|
586
594
|
tracking_status_info?: string | null | undefined;
|
|
587
595
|
tracking_url?: string | null | undefined;
|
|
596
|
+
custom_delivery_country?: string | null | undefined;
|
|
597
|
+
custom_is_export?: number | null | undefined;
|
|
598
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
588
599
|
}>;
|
|
589
600
|
export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
590
601
|
__onload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -749,6 +760,9 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
749
760
|
tracking_status: z.ZodString;
|
|
750
761
|
tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
751
762
|
value_of_goods: z.ZodNumber;
|
|
763
|
+
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
764
|
+
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
765
|
+
custom_export_status: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
752
766
|
}, "name" | "creation" | "modified" | "modified_by" | "shipment_delivery_note" | "shipment_parcel"> & {
|
|
753
767
|
shipment_delivery_note: z.ZodArray<z.ZodOptional<z.ZodObject<{
|
|
754
768
|
owner: z.ZodString;
|
|
@@ -852,6 +866,7 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
852
866
|
description_of_content: string;
|
|
853
867
|
pickup_date: string;
|
|
854
868
|
shipment_id: string;
|
|
869
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
855
870
|
parent?: string | null | undefined;
|
|
856
871
|
parentfield?: string | null | undefined;
|
|
857
872
|
parenttype?: string | null | undefined;
|
|
@@ -880,6 +895,8 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
880
895
|
custom_return_shipping_provider?: string | null | undefined;
|
|
881
896
|
tracking_status_info?: string | null | undefined;
|
|
882
897
|
tracking_url?: string | null | undefined;
|
|
898
|
+
custom_delivery_country?: string | null | undefined;
|
|
899
|
+
custom_is_export?: number | null | undefined;
|
|
883
900
|
}, {
|
|
884
901
|
status: string;
|
|
885
902
|
doctype: string;
|
|
@@ -956,6 +973,9 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
956
973
|
custom_return_shipping_provider?: string | null | undefined;
|
|
957
974
|
tracking_status_info?: string | null | undefined;
|
|
958
975
|
tracking_url?: string | null | undefined;
|
|
976
|
+
custom_delivery_country?: string | null | undefined;
|
|
977
|
+
custom_is_export?: number | null | undefined;
|
|
978
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
959
979
|
}>;
|
|
960
980
|
export type ShipmentType = z.infer<typeof Shipment>;
|
|
961
981
|
export type ShipmentDraftFromDeliveryNoteType = z.infer<typeof ShipmentDraftFromDeliveryNote>;
|
|
@@ -1123,6 +1143,9 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
|
|
|
1123
1143
|
tracking_status: z.ZodString;
|
|
1124
1144
|
tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1125
1145
|
value_of_goods: z.ZodNumber;
|
|
1146
|
+
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1147
|
+
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1148
|
+
custom_export_status: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
1126
1149
|
}, "docstatus" | "shipping_label" | "shipping_provider" | "custom_return_label" | "custom_return_shipping_provider">, "strip", z.ZodTypeAny, {
|
|
1127
1150
|
docstatus: number;
|
|
1128
1151
|
shipping_label?: string | null | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShipmentInfoByOrderNumberMethodResponseData = exports.ShipmentAddShippingLabelAndSubmitBody = exports.ShipmentDraftPostBody = exports.Shipment = exports.ShipmentParcelPostBody = exports.ShipmentParcel = exports.ShipmentDraftFromDeliveryNote = void 0;
|
|
3
|
+
exports.ShipmentInfoByOrderNumberMethodResponseData = exports.ShipmentAddShippingLabelAndSubmitBody = exports.ShipmentDraftPostBody = exports.Shipment = exports.ShipmentExportStatus = exports.ShipmentParcelPostBody = exports.ShipmentParcel = exports.ShipmentDraftFromDeliveryNote = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const Onload = zod_1.z
|
|
6
6
|
.object({
|
|
@@ -103,6 +103,16 @@ exports.ShipmentParcelPostBody = zod_1.z
|
|
|
103
103
|
count: zod_1.z.number(),
|
|
104
104
|
})
|
|
105
105
|
.describe("Shipment Parcel Post Body");
|
|
106
|
+
exports.ShipmentExportStatus = zod_1.z
|
|
107
|
+
.enum([
|
|
108
|
+
"Open",
|
|
109
|
+
"Customs Declaration in Progress",
|
|
110
|
+
"Customs Declaration Submitted",
|
|
111
|
+
"Customs Declaration Confirmed",
|
|
112
|
+
])
|
|
113
|
+
.optional()
|
|
114
|
+
.nullable()
|
|
115
|
+
.default("Open");
|
|
106
116
|
exports.Shipment = zod_1.z
|
|
107
117
|
.object({
|
|
108
118
|
__onload: Onload.optional().nullable(),
|
|
@@ -165,6 +175,9 @@ exports.Shipment = zod_1.z
|
|
|
165
175
|
tracking_status: zod_1.z.string(),
|
|
166
176
|
tracking_url: zod_1.z.string().optional().nullable(),
|
|
167
177
|
value_of_goods: zod_1.z.number(),
|
|
178
|
+
custom_delivery_country: zod_1.z.string().optional().nullable(),
|
|
179
|
+
custom_is_export: zod_1.z.number().optional().nullable(),
|
|
180
|
+
custom_export_status: exports.ShipmentExportStatus,
|
|
168
181
|
})
|
|
169
182
|
.describe("Shipment");
|
|
170
183
|
exports.ShipmentDraftPostBody = exports.Shipment.omit({
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { ServicecaseReason } from "./erpnext/model/ServicecaseReason";
|
|
|
33
33
|
import { ServiceCaseSolution } from "./erpnext/model/ServicecaseSolution";
|
|
34
34
|
import { InternalReason } from "./erpnext/model/InternalReasons";
|
|
35
35
|
import { ERPNextFile } from "./erpnext/model/File";
|
|
36
|
+
import { ConsolidatedCustomsInvoice } from "./erpnext/model/ConsolidatedCustomsInvoice";
|
|
36
37
|
export declare class ERPNextQueueClient {
|
|
37
38
|
temporalClient: TemporalClient;
|
|
38
39
|
private credentials?;
|
|
@@ -67,6 +68,7 @@ export declare class ERPNextQueueClient {
|
|
|
67
68
|
internalReason: ERPNextDoctypeResourceRequest<typeof InternalReason>;
|
|
68
69
|
shippingLabel: ERPNextDoctypeResourceRequest<typeof ShippingLabel>;
|
|
69
70
|
file: ERPNextDoctypeResourceRequest<typeof ERPNextFile>;
|
|
71
|
+
consolidatedCustomsInvoice: ERPNextDoctypeSubmittableResourceRequest<typeof ConsolidatedCustomsInvoice>;
|
|
70
72
|
/**
|
|
71
73
|
* @description Provide either a temporal client or connection details to create a new client
|
|
72
74
|
*/
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ const ServicecaseReason_1 = require("./erpnext/model/ServicecaseReason");
|
|
|
36
36
|
const ServicecaseSolution_1 = require("./erpnext/model/ServicecaseSolution");
|
|
37
37
|
const InternalReasons_1 = require("./erpnext/model/InternalReasons");
|
|
38
38
|
const File_1 = require("./erpnext/model/File");
|
|
39
|
+
const ConsolidatedCustomsInvoice_1 = require("./erpnext/model/ConsolidatedCustomsInvoice");
|
|
39
40
|
class ERPNextQueueClient {
|
|
40
41
|
/**
|
|
41
42
|
* @description Provide either a temporal client or connection details to create a new client
|
|
@@ -78,6 +79,8 @@ class ERPNextQueueClient {
|
|
|
78
79
|
this.servicecaseSolution = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Servicecase Solution", ServicecaseSolution_1.ServiceCaseSolution);
|
|
79
80
|
this.internalReason = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Internal Reason", InternalReasons_1.InternalReason);
|
|
80
81
|
this.shippingLabel = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Shipping Label", ShippingLabel_1.ShippingLabel);
|
|
82
|
+
this.consolidatedCustomsInvoice =
|
|
83
|
+
new doctypeSubmittableResourceRequest_1.ERPNextDoctypeSubmittableResourceRequest(this.temporalClient, "Consolidated Customs Invoice", ConsolidatedCustomsInvoice_1.ConsolidatedCustomsInvoice);
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
exports.ERPNextQueueClient = ERPNextQueueClient;
|