erpnext-queue-client 1.34.9 → 1.34.11
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 +10 -10
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +3 -2
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +8 -7
- package/dist/erpnext/model/Shipment.d.ts +7 -5
- package/dist/erpnext/model/Shipment.js +12 -10
- 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" | "custom_delivery_country" | "custom_is_export"
|
|
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;
|
|
@@ -112,7 +113,6 @@ export declare class ERPNextShipment {
|
|
|
112
113
|
tracking_url?: string | null | undefined;
|
|
113
114
|
custom_delivery_country?: string | null | undefined;
|
|
114
115
|
custom_is_export?: number | null | undefined;
|
|
115
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
116
116
|
}, TField>[]>;
|
|
117
117
|
getById: ({ resourceId, priority, }: {
|
|
118
118
|
resourceId: string;
|
|
@@ -184,6 +184,7 @@ export declare class ERPNextShipment {
|
|
|
184
184
|
description_of_content: string;
|
|
185
185
|
pickup_date: string;
|
|
186
186
|
shipment_id: string;
|
|
187
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
187
188
|
parent?: string | null | undefined;
|
|
188
189
|
parentfield?: string | null | undefined;
|
|
189
190
|
parenttype?: string | null | undefined;
|
|
@@ -214,7 +215,6 @@ export declare class ERPNextShipment {
|
|
|
214
215
|
tracking_url?: string | null | undefined;
|
|
215
216
|
custom_delivery_country?: string | null | undefined;
|
|
216
217
|
custom_is_export?: number | null | undefined;
|
|
217
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
218
218
|
}>;
|
|
219
219
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
220
220
|
status: string;
|
|
@@ -283,6 +283,7 @@ export declare class ERPNextShipment {
|
|
|
283
283
|
description_of_content: string;
|
|
284
284
|
pickup_date: string;
|
|
285
285
|
shipment_id: string;
|
|
286
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
286
287
|
parent?: string | null | undefined;
|
|
287
288
|
parentfield?: string | null | undefined;
|
|
288
289
|
parenttype?: string | null | undefined;
|
|
@@ -313,7 +314,6 @@ export declare class ERPNextShipment {
|
|
|
313
314
|
tracking_url?: string | null | undefined;
|
|
314
315
|
custom_delivery_country?: string | null | undefined;
|
|
315
316
|
custom_is_export?: number | null | undefined;
|
|
316
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
317
317
|
}> : TInputModel extends z.ZodTypeAny ? Partial<z.TypeOf<TInputModel>> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
318
318
|
resourceId: string;
|
|
319
319
|
inputValidationModel?: TInputModel;
|
|
@@ -386,6 +386,7 @@ export declare class ERPNextShipment {
|
|
|
386
386
|
description_of_content: string;
|
|
387
387
|
pickup_date: string;
|
|
388
388
|
shipment_id: string;
|
|
389
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
389
390
|
parent?: string | null | undefined;
|
|
390
391
|
parentfield?: string | null | undefined;
|
|
391
392
|
parenttype?: string | null | undefined;
|
|
@@ -416,7 +417,6 @@ export declare class ERPNextShipment {
|
|
|
416
417
|
tracking_url?: string | null | undefined;
|
|
417
418
|
custom_delivery_country?: string | null | undefined;
|
|
418
419
|
custom_is_export?: number | null | undefined;
|
|
419
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
420
420
|
}>;
|
|
421
421
|
deleteById: ({ resourceId, priority, }: {
|
|
422
422
|
resourceId: string;
|
|
@@ -489,6 +489,7 @@ export declare class ERPNextShipment {
|
|
|
489
489
|
description_of_content: string;
|
|
490
490
|
pickup_date: string;
|
|
491
491
|
shipment_id: string;
|
|
492
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
492
493
|
parent?: string | null | undefined;
|
|
493
494
|
parentfield?: string | null | undefined;
|
|
494
495
|
parenttype?: string | null | undefined;
|
|
@@ -519,7 +520,6 @@ export declare class ERPNextShipment {
|
|
|
519
520
|
tracking_url?: string | null | undefined;
|
|
520
521
|
custom_delivery_country?: string | null | undefined;
|
|
521
522
|
custom_is_export?: number | null | undefined;
|
|
522
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
523
523
|
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
|
|
524
524
|
inputValidationModel?: TInputModel;
|
|
525
525
|
body: TInput;
|
|
@@ -592,6 +592,7 @@ export declare class ERPNextShipment {
|
|
|
592
592
|
description_of_content: string;
|
|
593
593
|
pickup_date: string;
|
|
594
594
|
shipment_id: string;
|
|
595
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
595
596
|
parent?: string | null | undefined;
|
|
596
597
|
parentfield?: string | null | undefined;
|
|
597
598
|
parenttype?: string | null | undefined;
|
|
@@ -622,7 +623,6 @@ export declare class ERPNextShipment {
|
|
|
622
623
|
tracking_url?: string | null | undefined;
|
|
623
624
|
custom_delivery_country?: string | null | undefined;
|
|
624
625
|
custom_is_export?: number | null | undefined;
|
|
625
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
626
626
|
}>;
|
|
627
627
|
cancel: ({ resourceId }: {
|
|
628
628
|
resourceId: string;
|
|
@@ -693,6 +693,7 @@ export declare class ERPNextShipment {
|
|
|
693
693
|
description_of_content: string;
|
|
694
694
|
pickup_date: string;
|
|
695
695
|
shipment_id: string;
|
|
696
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
696
697
|
parent?: string | null | undefined;
|
|
697
698
|
parentfield?: string | null | undefined;
|
|
698
699
|
parenttype?: string | null | undefined;
|
|
@@ -723,7 +724,6 @@ export declare class ERPNextShipment {
|
|
|
723
724
|
tracking_url?: string | null | undefined;
|
|
724
725
|
custom_delivery_country?: string | null | undefined;
|
|
725
726
|
custom_is_export?: number | null | undefined;
|
|
726
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
727
727
|
}>;
|
|
728
728
|
submit: ({ resourceId }: {
|
|
729
729
|
resourceId: string;
|
|
@@ -794,6 +794,7 @@ export declare class ERPNextShipment {
|
|
|
794
794
|
description_of_content: string;
|
|
795
795
|
pickup_date: string;
|
|
796
796
|
shipment_id: string;
|
|
797
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
797
798
|
parent?: string | null | undefined;
|
|
798
799
|
parentfield?: string | null | undefined;
|
|
799
800
|
parenttype?: string | null | undefined;
|
|
@@ -824,7 +825,6 @@ export declare class ERPNextShipment {
|
|
|
824
825
|
tracking_url?: string | null | undefined;
|
|
825
826
|
custom_delivery_country?: string | null | undefined;
|
|
826
827
|
custom_is_export?: number | null | undefined;
|
|
827
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
828
828
|
}>;
|
|
829
829
|
constructor(temporalClient: TemporalClient);
|
|
830
830
|
createShipmentDraft(deliveryNoteName: string): Promise<{
|
|
@@ -956,6 +956,7 @@ export declare class ERPNextShipment {
|
|
|
956
956
|
description_of_content: string;
|
|
957
957
|
pickup_date: string;
|
|
958
958
|
shipment_id: string;
|
|
959
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
959
960
|
parent?: string | null | undefined;
|
|
960
961
|
parentfield?: string | null | undefined;
|
|
961
962
|
parenttype?: string | null | undefined;
|
|
@@ -986,6 +987,5 @@ export declare class ERPNextShipment {
|
|
|
986
987
|
tracking_url?: string | null | undefined;
|
|
987
988
|
custom_delivery_country?: string | null | undefined;
|
|
988
989
|
custom_is_export?: number | null | undefined;
|
|
989
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
990
990
|
}>;
|
|
991
991
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
2
|
+
export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
owner: z.ZodString;
|
|
5
5
|
creation: z.ZodString;
|
|
@@ -109,6 +109,8 @@ declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
|
|
|
109
109
|
sales_invoice_item?: string | null | undefined;
|
|
110
110
|
}>;
|
|
111
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>;
|
|
112
114
|
export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
113
115
|
name: z.ZodString;
|
|
114
116
|
owner: z.ZodString;
|
|
@@ -429,4 +431,3 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
|
|
|
429
431
|
exporter_contact_email?: string | null | undefined;
|
|
430
432
|
}>;
|
|
431
433
|
export type ConsolidatedCustomsInvoiceType = z.infer<typeof ConsolidatedCustomsInvoice>;
|
|
432
|
-
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConsolidatedCustomsInvoice = void 0;
|
|
3
|
+
exports.ConsolidatedCustomsInvoice = exports.ConsolidatedCustomsInvoiceExportApprovalStatus = exports.ConsolidatedCustomsInvoiceItem = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
// Child table: Consolidated Customs Invoice Item
|
|
6
|
-
|
|
6
|
+
exports.ConsolidatedCustomsInvoiceItem = zod_1.z
|
|
7
7
|
.object({
|
|
8
8
|
name: zod_1.z.string(),
|
|
9
9
|
owner: zod_1.z.string(),
|
|
@@ -47,6 +47,10 @@ const ConsolidatedCustomsInvoiceItem = zod_1.z
|
|
|
47
47
|
dn_detail: zod_1.z.string().optional().nullable(),
|
|
48
48
|
})
|
|
49
49
|
.describe("Consolidated Customs Invoice Item");
|
|
50
|
+
exports.ConsolidatedCustomsInvoiceExportApprovalStatus = zod_1.z
|
|
51
|
+
.enum(["", "Waiting for Approval", "Approved", "Declined"])
|
|
52
|
+
.optional()
|
|
53
|
+
.nullable();
|
|
50
54
|
exports.ConsolidatedCustomsInvoice = zod_1.z
|
|
51
55
|
.object({
|
|
52
56
|
name: zod_1.z.string(),
|
|
@@ -63,10 +67,7 @@ exports.ConsolidatedCustomsInvoice = zod_1.z
|
|
|
63
67
|
company: zod_1.z.string().optional().nullable(),
|
|
64
68
|
company_tax_id: zod_1.z.string().optional().nullable(),
|
|
65
69
|
amended_from: zod_1.z.string().optional().nullable(),
|
|
66
|
-
export_approval_status:
|
|
67
|
-
.enum(["", "Waiting for Approval", "Approved", "Declined"])
|
|
68
|
-
.optional()
|
|
69
|
-
.nullable(),
|
|
70
|
+
export_approval_status: exports.ConsolidatedCustomsInvoiceExportApprovalStatus,
|
|
70
71
|
mrn: zod_1.z.string().optional().nullable(),
|
|
71
72
|
currency: zod_1.z.string(),
|
|
72
73
|
conversion_rate: zod_1.z.number(),
|
|
@@ -96,6 +97,6 @@ exports.ConsolidatedCustomsInvoice = zod_1.z
|
|
|
96
97
|
exporter_contact_phone: zod_1.z.string().optional().nullable(),
|
|
97
98
|
exporter_contact_email: zod_1.z.string().optional().nullable(),
|
|
98
99
|
doctype: zod_1.z.string(),
|
|
99
|
-
items: zod_1.z.array(ConsolidatedCustomsInvoiceItem),
|
|
100
|
+
items: zod_1.z.array(exports.ConsolidatedCustomsInvoiceItem),
|
|
100
101
|
})
|
|
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;
|
|
@@ -397,7 +399,7 @@ export declare const Shipment: z.ZodObject<{
|
|
|
397
399
|
value_of_goods: z.ZodNumber;
|
|
398
400
|
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
399
401
|
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"]
|
|
402
|
+
custom_export_status: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
401
403
|
}, "strip", z.ZodTypeAny, {
|
|
402
404
|
status: string;
|
|
403
405
|
name: string;
|
|
@@ -465,6 +467,7 @@ export declare const Shipment: z.ZodObject<{
|
|
|
465
467
|
description_of_content: string;
|
|
466
468
|
pickup_date: string;
|
|
467
469
|
shipment_id: string;
|
|
470
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
468
471
|
parent?: string | null | undefined;
|
|
469
472
|
parentfield?: string | null | undefined;
|
|
470
473
|
parenttype?: string | null | undefined;
|
|
@@ -495,7 +498,6 @@ export declare const Shipment: z.ZodObject<{
|
|
|
495
498
|
tracking_url?: string | null | undefined;
|
|
496
499
|
custom_delivery_country?: string | null | undefined;
|
|
497
500
|
custom_is_export?: number | null | undefined;
|
|
498
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
499
501
|
}, {
|
|
500
502
|
status: string;
|
|
501
503
|
name: string;
|
|
@@ -760,7 +762,7 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
760
762
|
value_of_goods: z.ZodNumber;
|
|
761
763
|
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
762
764
|
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"]
|
|
765
|
+
custom_export_status: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
764
766
|
}, "name" | "creation" | "modified" | "modified_by" | "shipment_delivery_note" | "shipment_parcel"> & {
|
|
765
767
|
shipment_delivery_note: z.ZodArray<z.ZodOptional<z.ZodObject<{
|
|
766
768
|
owner: z.ZodString;
|
|
@@ -864,6 +866,7 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
864
866
|
description_of_content: string;
|
|
865
867
|
pickup_date: string;
|
|
866
868
|
shipment_id: string;
|
|
869
|
+
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
867
870
|
parent?: string | null | undefined;
|
|
868
871
|
parentfield?: string | null | undefined;
|
|
869
872
|
parenttype?: string | null | undefined;
|
|
@@ -894,7 +897,6 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
894
897
|
tracking_url?: string | null | undefined;
|
|
895
898
|
custom_delivery_country?: string | null | undefined;
|
|
896
899
|
custom_is_export?: number | null | undefined;
|
|
897
|
-
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
898
900
|
}, {
|
|
899
901
|
status: string;
|
|
900
902
|
doctype: string;
|
|
@@ -1143,7 +1145,7 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
|
|
|
1143
1145
|
value_of_goods: z.ZodNumber;
|
|
1144
1146
|
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1145
1147
|
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"]
|
|
1148
|
+
custom_export_status: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
1147
1149
|
}, "docstatus" | "shipping_label" | "shipping_provider" | "custom_return_label" | "custom_return_shipping_provider">, "strip", z.ZodTypeAny, {
|
|
1148
1150
|
docstatus: number;
|
|
1149
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(),
|
|
@@ -167,15 +177,7 @@ exports.Shipment = zod_1.z
|
|
|
167
177
|
value_of_goods: zod_1.z.number(),
|
|
168
178
|
custom_delivery_country: zod_1.z.string().optional().nullable(),
|
|
169
179
|
custom_is_export: zod_1.z.number().optional().nullable(),
|
|
170
|
-
custom_export_status:
|
|
171
|
-
.enum([
|
|
172
|
-
"Open",
|
|
173
|
-
"Customs Declaration in Progress",
|
|
174
|
-
"Customs Declaration Submitted",
|
|
175
|
-
"Customs Declaration Confirmed",
|
|
176
|
-
])
|
|
177
|
-
.optional()
|
|
178
|
-
.nullable(),
|
|
180
|
+
custom_export_status: exports.ShipmentExportStatus,
|
|
179
181
|
})
|
|
180
182
|
.describe("Shipment");
|
|
181
183
|
exports.ShipmentDraftPostBody = exports.Shipment.omit({
|