erpnext-queue-client 1.34.8 → 1.34.9
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 +432 -0
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +101 -0
- package/dist/erpnext/model/Shipment.d.ts +21 -0
- package/dist/erpnext/model/Shipment.js +11 -0
- 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") | ("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" | "custom_export_status"), 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;
|
|
@@ -110,6 +110,9 @@ export declare class ERPNextShipment {
|
|
|
110
110
|
custom_return_shipping_provider?: string | null | undefined;
|
|
111
111
|
tracking_status_info?: string | null | undefined;
|
|
112
112
|
tracking_url?: string | null | undefined;
|
|
113
|
+
custom_delivery_country?: string | null | undefined;
|
|
114
|
+
custom_is_export?: number | null | undefined;
|
|
115
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
113
116
|
}, TField>[]>;
|
|
114
117
|
getById: ({ resourceId, priority, }: {
|
|
115
118
|
resourceId: string;
|
|
@@ -209,6 +212,9 @@ export declare class ERPNextShipment {
|
|
|
209
212
|
custom_return_shipping_provider?: string | null | undefined;
|
|
210
213
|
tracking_status_info?: string | null | undefined;
|
|
211
214
|
tracking_url?: string | null | undefined;
|
|
215
|
+
custom_delivery_country?: string | null | undefined;
|
|
216
|
+
custom_is_export?: number | null | undefined;
|
|
217
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
212
218
|
}>;
|
|
213
219
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
214
220
|
status: string;
|
|
@@ -305,6 +311,9 @@ export declare class ERPNextShipment {
|
|
|
305
311
|
custom_return_shipping_provider?: string | null | undefined;
|
|
306
312
|
tracking_status_info?: string | null | undefined;
|
|
307
313
|
tracking_url?: string | null | undefined;
|
|
314
|
+
custom_delivery_country?: string | null | undefined;
|
|
315
|
+
custom_is_export?: number | null | undefined;
|
|
316
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | 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;
|
|
@@ -405,6 +414,9 @@ export declare class ERPNextShipment {
|
|
|
405
414
|
custom_return_shipping_provider?: string | null | undefined;
|
|
406
415
|
tracking_status_info?: string | null | undefined;
|
|
407
416
|
tracking_url?: string | null | undefined;
|
|
417
|
+
custom_delivery_country?: string | null | undefined;
|
|
418
|
+
custom_is_export?: number | null | undefined;
|
|
419
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
408
420
|
}>;
|
|
409
421
|
deleteById: ({ resourceId, priority, }: {
|
|
410
422
|
resourceId: string;
|
|
@@ -505,6 +517,9 @@ export declare class ERPNextShipment {
|
|
|
505
517
|
custom_return_shipping_provider?: string | null | undefined;
|
|
506
518
|
tracking_status_info?: string | null | undefined;
|
|
507
519
|
tracking_url?: string | null | undefined;
|
|
520
|
+
custom_delivery_country?: string | null | undefined;
|
|
521
|
+
custom_is_export?: number | null | undefined;
|
|
522
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | 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;
|
|
@@ -605,6 +620,9 @@ export declare class ERPNextShipment {
|
|
|
605
620
|
custom_return_shipping_provider?: string | null | undefined;
|
|
606
621
|
tracking_status_info?: string | null | undefined;
|
|
607
622
|
tracking_url?: string | null | undefined;
|
|
623
|
+
custom_delivery_country?: string | null | undefined;
|
|
624
|
+
custom_is_export?: number | null | undefined;
|
|
625
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
608
626
|
}>;
|
|
609
627
|
cancel: ({ resourceId }: {
|
|
610
628
|
resourceId: string;
|
|
@@ -703,6 +721,9 @@ export declare class ERPNextShipment {
|
|
|
703
721
|
custom_return_shipping_provider?: string | null | undefined;
|
|
704
722
|
tracking_status_info?: string | null | undefined;
|
|
705
723
|
tracking_url?: string | null | undefined;
|
|
724
|
+
custom_delivery_country?: string | null | undefined;
|
|
725
|
+
custom_is_export?: number | null | undefined;
|
|
726
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
706
727
|
}>;
|
|
707
728
|
submit: ({ resourceId }: {
|
|
708
729
|
resourceId: string;
|
|
@@ -801,6 +822,9 @@ export declare class ERPNextShipment {
|
|
|
801
822
|
custom_return_shipping_provider?: string | null | undefined;
|
|
802
823
|
tracking_status_info?: string | null | undefined;
|
|
803
824
|
tracking_url?: string | null | undefined;
|
|
825
|
+
custom_delivery_country?: string | null | undefined;
|
|
826
|
+
custom_is_export?: number | null | undefined;
|
|
827
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
804
828
|
}>;
|
|
805
829
|
constructor(temporalClient: TemporalClient);
|
|
806
830
|
createShipmentDraft(deliveryNoteName: string): Promise<{
|
|
@@ -960,5 +984,8 @@ export declare class ERPNextShipment {
|
|
|
960
984
|
custom_return_shipping_provider?: string | null | undefined;
|
|
961
985
|
tracking_status_info?: string | null | undefined;
|
|
962
986
|
tracking_url?: string | null | undefined;
|
|
987
|
+
custom_delivery_country?: string | null | undefined;
|
|
988
|
+
custom_is_export?: number | null | undefined;
|
|
989
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
963
990
|
}>;
|
|
964
991
|
}
|
|
@@ -0,0 +1,432 @@
|
|
|
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 ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
owner: z.ZodString;
|
|
115
|
+
creation: z.ZodString;
|
|
116
|
+
modified: z.ZodString;
|
|
117
|
+
modified_by: z.ZodString;
|
|
118
|
+
idx: z.ZodNumber;
|
|
119
|
+
docstatus: z.ZodNumber;
|
|
120
|
+
posting_date: z.ZodString;
|
|
121
|
+
posting_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
122
|
+
set_posting_time: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
123
|
+
naming_series: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
|
+
company: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
|
+
company_tax_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
126
|
+
amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
127
|
+
export_approval_status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["", "Waiting for Approval", "Approved", "Declined"]>>>;
|
|
128
|
+
mrn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
129
|
+
currency: z.ZodString;
|
|
130
|
+
conversion_rate: z.ZodNumber;
|
|
131
|
+
total_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
132
|
+
total_net_weight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
133
|
+
base_total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
134
|
+
base_net_total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
135
|
+
total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
136
|
+
net_total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
137
|
+
customer_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
138
|
+
address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
139
|
+
contact_person: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
140
|
+
contact_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
141
|
+
contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
142
|
+
shipping_address_name: z.ZodString;
|
|
143
|
+
shipping_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
144
|
+
dispatch_address_name: z.ZodString;
|
|
145
|
+
dispatch_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
146
|
+
importer_address: z.ZodString;
|
|
147
|
+
importer_address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
|
+
importer_contact: z.ZodString;
|
|
149
|
+
importer_contact_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
150
|
+
importer_contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
151
|
+
exporter_address: z.ZodString;
|
|
152
|
+
exporter_address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
153
|
+
exporter_contact: z.ZodString;
|
|
154
|
+
exporter_contact_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
exporter_contact_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
156
|
+
doctype: z.ZodString;
|
|
157
|
+
items: z.ZodArray<z.ZodObject<{
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
owner: z.ZodString;
|
|
160
|
+
creation: z.ZodString;
|
|
161
|
+
modified: z.ZodString;
|
|
162
|
+
modified_by: z.ZodString;
|
|
163
|
+
parent: z.ZodString;
|
|
164
|
+
parentfield: z.ZodString;
|
|
165
|
+
parenttype: z.ZodString;
|
|
166
|
+
idx: z.ZodNumber;
|
|
167
|
+
docstatus: z.ZodNumber;
|
|
168
|
+
doctype: z.ZodString;
|
|
169
|
+
item_code: z.ZodString;
|
|
170
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
171
|
+
qty: z.ZodNumber;
|
|
172
|
+
item_tax_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
173
|
+
rate: z.ZodNumber;
|
|
174
|
+
amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
175
|
+
base_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
176
|
+
base_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
177
|
+
net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
178
|
+
net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
179
|
+
base_net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
180
|
+
base_net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
181
|
+
delivered_by_supplier: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
182
|
+
weight_per_unit: z.ZodNumber;
|
|
183
|
+
total_weight: z.ZodNumber;
|
|
184
|
+
weight_uom: z.ZodString;
|
|
185
|
+
sales_order: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
186
|
+
so_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
187
|
+
sales_invoice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
188
|
+
sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
189
|
+
customer: z.ZodString;
|
|
190
|
+
shipment: z.ZodString;
|
|
191
|
+
delivery_note: z.ZodString;
|
|
192
|
+
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
name: string;
|
|
195
|
+
doctype: string;
|
|
196
|
+
owner: string;
|
|
197
|
+
creation: string;
|
|
198
|
+
modified: string;
|
|
199
|
+
modified_by: string;
|
|
200
|
+
parent: string;
|
|
201
|
+
parentfield: string;
|
|
202
|
+
parenttype: string;
|
|
203
|
+
idx: number;
|
|
204
|
+
docstatus: number;
|
|
205
|
+
customer: string;
|
|
206
|
+
item_code: string;
|
|
207
|
+
qty: number;
|
|
208
|
+
rate: number;
|
|
209
|
+
weight_per_unit: number;
|
|
210
|
+
total_weight: number;
|
|
211
|
+
weight_uom: string;
|
|
212
|
+
delivered_by_supplier: boolean;
|
|
213
|
+
delivery_note: string;
|
|
214
|
+
shipment: string;
|
|
215
|
+
description?: string | null | undefined;
|
|
216
|
+
amount?: number | null | undefined;
|
|
217
|
+
base_rate?: number | null | undefined;
|
|
218
|
+
base_amount?: number | null | undefined;
|
|
219
|
+
net_rate?: number | null | undefined;
|
|
220
|
+
net_amount?: number | null | undefined;
|
|
221
|
+
item_tax_template?: string | null | undefined;
|
|
222
|
+
base_net_rate?: number | null | undefined;
|
|
223
|
+
base_net_amount?: number | null | undefined;
|
|
224
|
+
so_detail?: string | null | undefined;
|
|
225
|
+
dn_detail?: string | null | undefined;
|
|
226
|
+
sales_order?: string | null | undefined;
|
|
227
|
+
sales_invoice?: string | null | undefined;
|
|
228
|
+
sales_invoice_item?: string | null | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
name: string;
|
|
231
|
+
doctype: string;
|
|
232
|
+
owner: string;
|
|
233
|
+
creation: string;
|
|
234
|
+
modified: string;
|
|
235
|
+
modified_by: string;
|
|
236
|
+
parent: string;
|
|
237
|
+
parentfield: string;
|
|
238
|
+
parenttype: string;
|
|
239
|
+
idx: number;
|
|
240
|
+
docstatus: number;
|
|
241
|
+
customer: string;
|
|
242
|
+
item_code: string;
|
|
243
|
+
qty: number;
|
|
244
|
+
rate: number;
|
|
245
|
+
weight_per_unit: number;
|
|
246
|
+
total_weight: number;
|
|
247
|
+
weight_uom: string;
|
|
248
|
+
delivered_by_supplier: number;
|
|
249
|
+
delivery_note: string;
|
|
250
|
+
shipment: string;
|
|
251
|
+
description?: string | null | undefined;
|
|
252
|
+
amount?: number | null | undefined;
|
|
253
|
+
base_rate?: number | null | undefined;
|
|
254
|
+
base_amount?: number | null | undefined;
|
|
255
|
+
net_rate?: number | null | undefined;
|
|
256
|
+
net_amount?: number | null | undefined;
|
|
257
|
+
item_tax_template?: string | null | undefined;
|
|
258
|
+
base_net_rate?: number | null | undefined;
|
|
259
|
+
base_net_amount?: number | null | undefined;
|
|
260
|
+
so_detail?: string | null | undefined;
|
|
261
|
+
dn_detail?: string | null | undefined;
|
|
262
|
+
sales_order?: string | null | undefined;
|
|
263
|
+
sales_invoice?: string | null | undefined;
|
|
264
|
+
sales_invoice_item?: string | null | undefined;
|
|
265
|
+
}>, "many">;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
name: string;
|
|
268
|
+
doctype: string;
|
|
269
|
+
owner: string;
|
|
270
|
+
creation: string;
|
|
271
|
+
modified: string;
|
|
272
|
+
modified_by: string;
|
|
273
|
+
idx: number;
|
|
274
|
+
docstatus: number;
|
|
275
|
+
items: {
|
|
276
|
+
name: string;
|
|
277
|
+
doctype: string;
|
|
278
|
+
owner: string;
|
|
279
|
+
creation: string;
|
|
280
|
+
modified: string;
|
|
281
|
+
modified_by: string;
|
|
282
|
+
parent: string;
|
|
283
|
+
parentfield: string;
|
|
284
|
+
parenttype: string;
|
|
285
|
+
idx: number;
|
|
286
|
+
docstatus: number;
|
|
287
|
+
customer: string;
|
|
288
|
+
item_code: string;
|
|
289
|
+
qty: number;
|
|
290
|
+
rate: number;
|
|
291
|
+
weight_per_unit: number;
|
|
292
|
+
total_weight: number;
|
|
293
|
+
weight_uom: string;
|
|
294
|
+
delivered_by_supplier: boolean;
|
|
295
|
+
delivery_note: string;
|
|
296
|
+
shipment: string;
|
|
297
|
+
description?: string | null | undefined;
|
|
298
|
+
amount?: number | null | undefined;
|
|
299
|
+
base_rate?: number | null | undefined;
|
|
300
|
+
base_amount?: number | null | undefined;
|
|
301
|
+
net_rate?: number | null | undefined;
|
|
302
|
+
net_amount?: number | null | undefined;
|
|
303
|
+
item_tax_template?: string | null | undefined;
|
|
304
|
+
base_net_rate?: number | null | undefined;
|
|
305
|
+
base_net_amount?: number | null | undefined;
|
|
306
|
+
so_detail?: string | null | undefined;
|
|
307
|
+
dn_detail?: string | null | undefined;
|
|
308
|
+
sales_order?: string | null | undefined;
|
|
309
|
+
sales_invoice?: string | null | undefined;
|
|
310
|
+
sales_invoice_item?: string | null | undefined;
|
|
311
|
+
}[];
|
|
312
|
+
posting_date: string;
|
|
313
|
+
set_posting_time: boolean;
|
|
314
|
+
shipping_address_name: string;
|
|
315
|
+
dispatch_address_name: string;
|
|
316
|
+
currency: string;
|
|
317
|
+
conversion_rate: number;
|
|
318
|
+
importer_address: string;
|
|
319
|
+
importer_contact: string;
|
|
320
|
+
exporter_address: string;
|
|
321
|
+
exporter_contact: string;
|
|
322
|
+
company?: string | null | undefined;
|
|
323
|
+
naming_series?: string | null | undefined;
|
|
324
|
+
amended_from?: string | null | undefined;
|
|
325
|
+
posting_time?: string | null | undefined;
|
|
326
|
+
shipping_address?: string | null | undefined;
|
|
327
|
+
dispatch_address?: string | null | undefined;
|
|
328
|
+
contact_person?: string | null | undefined;
|
|
329
|
+
contact_email?: string | null | undefined;
|
|
330
|
+
customer_address?: string | null | undefined;
|
|
331
|
+
address_display?: string | null | undefined;
|
|
332
|
+
total_qty?: number | null | undefined;
|
|
333
|
+
base_total?: number | null | undefined;
|
|
334
|
+
base_net_total?: number | null | undefined;
|
|
335
|
+
total_net_weight?: number | null | undefined;
|
|
336
|
+
total?: number | null | undefined;
|
|
337
|
+
net_total?: number | null | undefined;
|
|
338
|
+
company_tax_id?: string | null | undefined;
|
|
339
|
+
export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
|
|
340
|
+
mrn?: string | null | undefined;
|
|
341
|
+
contact_phone?: string | null | undefined;
|
|
342
|
+
importer_address_display?: string | null | undefined;
|
|
343
|
+
importer_contact_phone?: string | null | undefined;
|
|
344
|
+
importer_contact_email?: string | null | undefined;
|
|
345
|
+
exporter_address_display?: string | null | undefined;
|
|
346
|
+
exporter_contact_phone?: string | null | undefined;
|
|
347
|
+
exporter_contact_email?: string | null | undefined;
|
|
348
|
+
}, {
|
|
349
|
+
name: string;
|
|
350
|
+
doctype: string;
|
|
351
|
+
owner: string;
|
|
352
|
+
creation: string;
|
|
353
|
+
modified: string;
|
|
354
|
+
modified_by: string;
|
|
355
|
+
idx: number;
|
|
356
|
+
docstatus: number;
|
|
357
|
+
items: {
|
|
358
|
+
name: string;
|
|
359
|
+
doctype: string;
|
|
360
|
+
owner: string;
|
|
361
|
+
creation: string;
|
|
362
|
+
modified: string;
|
|
363
|
+
modified_by: string;
|
|
364
|
+
parent: string;
|
|
365
|
+
parentfield: string;
|
|
366
|
+
parenttype: string;
|
|
367
|
+
idx: number;
|
|
368
|
+
docstatus: number;
|
|
369
|
+
customer: string;
|
|
370
|
+
item_code: string;
|
|
371
|
+
qty: number;
|
|
372
|
+
rate: number;
|
|
373
|
+
weight_per_unit: number;
|
|
374
|
+
total_weight: number;
|
|
375
|
+
weight_uom: string;
|
|
376
|
+
delivered_by_supplier: number;
|
|
377
|
+
delivery_note: string;
|
|
378
|
+
shipment: string;
|
|
379
|
+
description?: string | null | undefined;
|
|
380
|
+
amount?: number | null | undefined;
|
|
381
|
+
base_rate?: number | null | undefined;
|
|
382
|
+
base_amount?: number | null | undefined;
|
|
383
|
+
net_rate?: number | null | undefined;
|
|
384
|
+
net_amount?: number | null | undefined;
|
|
385
|
+
item_tax_template?: string | null | undefined;
|
|
386
|
+
base_net_rate?: number | null | undefined;
|
|
387
|
+
base_net_amount?: number | null | undefined;
|
|
388
|
+
so_detail?: string | null | undefined;
|
|
389
|
+
dn_detail?: string | null | undefined;
|
|
390
|
+
sales_order?: string | null | undefined;
|
|
391
|
+
sales_invoice?: string | null | undefined;
|
|
392
|
+
sales_invoice_item?: string | null | undefined;
|
|
393
|
+
}[];
|
|
394
|
+
posting_date: string;
|
|
395
|
+
set_posting_time: number;
|
|
396
|
+
shipping_address_name: string;
|
|
397
|
+
dispatch_address_name: string;
|
|
398
|
+
currency: string;
|
|
399
|
+
conversion_rate: number;
|
|
400
|
+
importer_address: string;
|
|
401
|
+
importer_contact: string;
|
|
402
|
+
exporter_address: string;
|
|
403
|
+
exporter_contact: string;
|
|
404
|
+
company?: string | null | undefined;
|
|
405
|
+
naming_series?: string | null | undefined;
|
|
406
|
+
amended_from?: string | null | undefined;
|
|
407
|
+
posting_time?: string | null | undefined;
|
|
408
|
+
shipping_address?: string | null | undefined;
|
|
409
|
+
dispatch_address?: string | null | undefined;
|
|
410
|
+
contact_person?: string | null | undefined;
|
|
411
|
+
contact_email?: string | null | undefined;
|
|
412
|
+
customer_address?: string | null | undefined;
|
|
413
|
+
address_display?: string | null | undefined;
|
|
414
|
+
total_qty?: number | null | undefined;
|
|
415
|
+
base_total?: number | null | undefined;
|
|
416
|
+
base_net_total?: number | null | undefined;
|
|
417
|
+
total_net_weight?: number | null | undefined;
|
|
418
|
+
total?: number | null | undefined;
|
|
419
|
+
net_total?: number | null | undefined;
|
|
420
|
+
company_tax_id?: string | null | undefined;
|
|
421
|
+
export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
|
|
422
|
+
mrn?: string | null | undefined;
|
|
423
|
+
contact_phone?: string | null | undefined;
|
|
424
|
+
importer_address_display?: string | null | undefined;
|
|
425
|
+
importer_contact_phone?: string | null | undefined;
|
|
426
|
+
importer_contact_email?: string | null | undefined;
|
|
427
|
+
exporter_address_display?: string | null | undefined;
|
|
428
|
+
exporter_contact_phone?: string | null | undefined;
|
|
429
|
+
exporter_contact_email?: string | null | undefined;
|
|
430
|
+
}>;
|
|
431
|
+
export type ConsolidatedCustomsInvoiceType = z.infer<typeof ConsolidatedCustomsInvoice>;
|
|
432
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConsolidatedCustomsInvoice = 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.ConsolidatedCustomsInvoice = zod_1.z
|
|
51
|
+
.object({
|
|
52
|
+
name: zod_1.z.string(),
|
|
53
|
+
owner: zod_1.z.string(),
|
|
54
|
+
creation: zod_1.z.string(),
|
|
55
|
+
modified: zod_1.z.string(),
|
|
56
|
+
modified_by: zod_1.z.string(),
|
|
57
|
+
idx: zod_1.z.number(),
|
|
58
|
+
docstatus: zod_1.z.number(),
|
|
59
|
+
posting_date: zod_1.z.string(),
|
|
60
|
+
posting_time: zod_1.z.string().optional().nullable(),
|
|
61
|
+
set_posting_time: zod_1.z.number().transform(Boolean),
|
|
62
|
+
naming_series: zod_1.z.string().optional().nullable(),
|
|
63
|
+
company: zod_1.z.string().optional().nullable(),
|
|
64
|
+
company_tax_id: zod_1.z.string().optional().nullable(),
|
|
65
|
+
amended_from: zod_1.z.string().optional().nullable(),
|
|
66
|
+
export_approval_status: zod_1.z
|
|
67
|
+
.enum(["", "Waiting for Approval", "Approved", "Declined"])
|
|
68
|
+
.optional()
|
|
69
|
+
.nullable(),
|
|
70
|
+
mrn: zod_1.z.string().optional().nullable(),
|
|
71
|
+
currency: zod_1.z.string(),
|
|
72
|
+
conversion_rate: zod_1.z.number(),
|
|
73
|
+
total_qty: zod_1.z.number().optional().nullable(),
|
|
74
|
+
total_net_weight: zod_1.z.number().optional().nullable(),
|
|
75
|
+
base_total: zod_1.z.number().optional().nullable(),
|
|
76
|
+
base_net_total: zod_1.z.number().optional().nullable(),
|
|
77
|
+
total: zod_1.z.number().optional().nullable(),
|
|
78
|
+
net_total: zod_1.z.number().optional().nullable(),
|
|
79
|
+
customer_address: zod_1.z.string().optional().nullable(),
|
|
80
|
+
address_display: zod_1.z.string().optional().nullable(),
|
|
81
|
+
contact_person: zod_1.z.string().optional().nullable(),
|
|
82
|
+
contact_phone: zod_1.z.string().optional().nullable(),
|
|
83
|
+
contact_email: zod_1.z.string().optional().nullable(),
|
|
84
|
+
shipping_address_name: zod_1.z.string(),
|
|
85
|
+
shipping_address: zod_1.z.string().optional().nullable(),
|
|
86
|
+
dispatch_address_name: zod_1.z.string(),
|
|
87
|
+
dispatch_address: zod_1.z.string().optional().nullable(),
|
|
88
|
+
importer_address: zod_1.z.string(),
|
|
89
|
+
importer_address_display: zod_1.z.string().optional().nullable(),
|
|
90
|
+
importer_contact: zod_1.z.string(),
|
|
91
|
+
importer_contact_phone: zod_1.z.string().optional().nullable(),
|
|
92
|
+
importer_contact_email: zod_1.z.string().optional().nullable(),
|
|
93
|
+
exporter_address: zod_1.z.string(),
|
|
94
|
+
exporter_address_display: zod_1.z.string().optional().nullable(),
|
|
95
|
+
exporter_contact: zod_1.z.string(),
|
|
96
|
+
exporter_contact_phone: zod_1.z.string().optional().nullable(),
|
|
97
|
+
exporter_contact_email: zod_1.z.string().optional().nullable(),
|
|
98
|
+
doctype: zod_1.z.string(),
|
|
99
|
+
items: zod_1.z.array(ConsolidatedCustomsInvoiceItem),
|
|
100
|
+
})
|
|
101
|
+
.describe("Consolidated Customs Invoice");
|
|
@@ -395,6 +395,9 @@ export declare const Shipment: z.ZodObject<{
|
|
|
395
395
|
tracking_status: z.ZodString;
|
|
396
396
|
tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
397
397
|
value_of_goods: z.ZodNumber;
|
|
398
|
+
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
399
|
+
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
400
|
+
custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>;
|
|
398
401
|
}, "strip", z.ZodTypeAny, {
|
|
399
402
|
status: string;
|
|
400
403
|
name: string;
|
|
@@ -490,6 +493,9 @@ export declare const Shipment: z.ZodObject<{
|
|
|
490
493
|
custom_return_shipping_provider?: string | null | undefined;
|
|
491
494
|
tracking_status_info?: string | null | undefined;
|
|
492
495
|
tracking_url?: string | null | undefined;
|
|
496
|
+
custom_delivery_country?: string | null | undefined;
|
|
497
|
+
custom_is_export?: number | null | undefined;
|
|
498
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
493
499
|
}, {
|
|
494
500
|
status: string;
|
|
495
501
|
name: string;
|
|
@@ -585,6 +591,9 @@ export declare const Shipment: z.ZodObject<{
|
|
|
585
591
|
custom_return_shipping_provider?: string | null | undefined;
|
|
586
592
|
tracking_status_info?: string | null | undefined;
|
|
587
593
|
tracking_url?: string | null | undefined;
|
|
594
|
+
custom_delivery_country?: string | null | undefined;
|
|
595
|
+
custom_is_export?: number | null | undefined;
|
|
596
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
588
597
|
}>;
|
|
589
598
|
export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
590
599
|
__onload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -749,6 +758,9 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
749
758
|
tracking_status: z.ZodString;
|
|
750
759
|
tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
751
760
|
value_of_goods: z.ZodNumber;
|
|
761
|
+
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
762
|
+
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
763
|
+
custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>;
|
|
752
764
|
}, "name" | "creation" | "modified" | "modified_by" | "shipment_delivery_note" | "shipment_parcel"> & {
|
|
753
765
|
shipment_delivery_note: z.ZodArray<z.ZodOptional<z.ZodObject<{
|
|
754
766
|
owner: z.ZodString;
|
|
@@ -880,6 +892,9 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
880
892
|
custom_return_shipping_provider?: string | null | undefined;
|
|
881
893
|
tracking_status_info?: string | null | undefined;
|
|
882
894
|
tracking_url?: string | null | undefined;
|
|
895
|
+
custom_delivery_country?: string | null | undefined;
|
|
896
|
+
custom_is_export?: number | null | undefined;
|
|
897
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
883
898
|
}, {
|
|
884
899
|
status: string;
|
|
885
900
|
doctype: string;
|
|
@@ -956,6 +971,9 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
956
971
|
custom_return_shipping_provider?: string | null | undefined;
|
|
957
972
|
tracking_status_info?: string | null | undefined;
|
|
958
973
|
tracking_url?: string | null | undefined;
|
|
974
|
+
custom_delivery_country?: string | null | undefined;
|
|
975
|
+
custom_is_export?: number | null | undefined;
|
|
976
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
959
977
|
}>;
|
|
960
978
|
export type ShipmentType = z.infer<typeof Shipment>;
|
|
961
979
|
export type ShipmentDraftFromDeliveryNoteType = z.infer<typeof ShipmentDraftFromDeliveryNote>;
|
|
@@ -1123,6 +1141,9 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
|
|
|
1123
1141
|
tracking_status: z.ZodString;
|
|
1124
1142
|
tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1125
1143
|
value_of_goods: z.ZodNumber;
|
|
1144
|
+
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1145
|
+
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1146
|
+
custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>;
|
|
1126
1147
|
}, "docstatus" | "shipping_label" | "shipping_provider" | "custom_return_label" | "custom_return_shipping_provider">, "strip", z.ZodTypeAny, {
|
|
1127
1148
|
docstatus: number;
|
|
1128
1149
|
shipping_label?: string | null | undefined;
|
|
@@ -165,6 +165,17 @@ exports.Shipment = zod_1.z
|
|
|
165
165
|
tracking_status: zod_1.z.string(),
|
|
166
166
|
tracking_url: zod_1.z.string().optional().nullable(),
|
|
167
167
|
value_of_goods: zod_1.z.number(),
|
|
168
|
+
custom_delivery_country: zod_1.z.string().optional().nullable(),
|
|
169
|
+
custom_is_export: zod_1.z.number().optional().nullable(),
|
|
170
|
+
custom_export_status: zod_1.z
|
|
171
|
+
.enum([
|
|
172
|
+
"Open",
|
|
173
|
+
"Customs Declaration in Progress",
|
|
174
|
+
"Customs Declaration Submitted",
|
|
175
|
+
"Customs Declaration Confirmed",
|
|
176
|
+
])
|
|
177
|
+
.optional()
|
|
178
|
+
.nullable(),
|
|
168
179
|
})
|
|
169
180
|
.describe("Shipment");
|
|
170
181
|
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;
|