erpnext-queue-client 1.35.0 → 1.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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"
|
|
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;
|
|
@@ -82,7 +82,6 @@ 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;
|
|
86
85
|
parent?: string | null | undefined;
|
|
87
86
|
parentfield?: string | null | undefined;
|
|
88
87
|
parenttype?: string | null | undefined;
|
|
@@ -113,6 +112,7 @@ export declare class ERPNextShipment {
|
|
|
113
112
|
tracking_url?: string | null | undefined;
|
|
114
113
|
custom_delivery_country?: string | null | undefined;
|
|
115
114
|
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,7 +184,6 @@ 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;
|
|
188
187
|
parent?: string | null | undefined;
|
|
189
188
|
parentfield?: string | null | undefined;
|
|
190
189
|
parenttype?: string | null | undefined;
|
|
@@ -215,6 +214,7 @@ export declare class ERPNextShipment {
|
|
|
215
214
|
tracking_url?: string | null | undefined;
|
|
216
215
|
custom_delivery_country?: string | null | undefined;
|
|
217
216
|
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,7 +283,6 @@ 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;
|
|
287
286
|
parent?: string | null | undefined;
|
|
288
287
|
parentfield?: string | null | undefined;
|
|
289
288
|
parenttype?: string | null | undefined;
|
|
@@ -314,6 +313,7 @@ export declare class ERPNextShipment {
|
|
|
314
313
|
tracking_url?: string | null | undefined;
|
|
315
314
|
custom_delivery_country?: string | null | undefined;
|
|
316
315
|
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,7 +386,6 @@ 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;
|
|
390
389
|
parent?: string | null | undefined;
|
|
391
390
|
parentfield?: string | null | undefined;
|
|
392
391
|
parenttype?: string | null | undefined;
|
|
@@ -417,6 +416,7 @@ export declare class ERPNextShipment {
|
|
|
417
416
|
tracking_url?: string | null | undefined;
|
|
418
417
|
custom_delivery_country?: string | null | undefined;
|
|
419
418
|
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,7 +489,6 @@ 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;
|
|
493
492
|
parent?: string | null | undefined;
|
|
494
493
|
parentfield?: string | null | undefined;
|
|
495
494
|
parenttype?: string | null | undefined;
|
|
@@ -520,6 +519,7 @@ export declare class ERPNextShipment {
|
|
|
520
519
|
tracking_url?: string | null | undefined;
|
|
521
520
|
custom_delivery_country?: string | null | undefined;
|
|
522
521
|
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,7 +592,6 @@ 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;
|
|
596
595
|
parent?: string | null | undefined;
|
|
597
596
|
parentfield?: string | null | undefined;
|
|
598
597
|
parenttype?: string | null | undefined;
|
|
@@ -623,6 +622,7 @@ export declare class ERPNextShipment {
|
|
|
623
622
|
tracking_url?: string | null | undefined;
|
|
624
623
|
custom_delivery_country?: string | null | undefined;
|
|
625
624
|
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,7 +693,6 @@ 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;
|
|
697
696
|
parent?: string | null | undefined;
|
|
698
697
|
parentfield?: string | null | undefined;
|
|
699
698
|
parenttype?: string | null | undefined;
|
|
@@ -724,6 +723,7 @@ export declare class ERPNextShipment {
|
|
|
724
723
|
tracking_url?: string | null | undefined;
|
|
725
724
|
custom_delivery_country?: string | null | undefined;
|
|
726
725
|
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,7 +794,6 @@ 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;
|
|
798
797
|
parent?: string | null | undefined;
|
|
799
798
|
parentfield?: string | null | undefined;
|
|
800
799
|
parenttype?: string | null | undefined;
|
|
@@ -825,6 +824,7 @@ export declare class ERPNextShipment {
|
|
|
825
824
|
tracking_url?: string | null | undefined;
|
|
826
825
|
custom_delivery_country?: string | null | undefined;
|
|
827
826
|
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,7 +956,6 @@ 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;
|
|
960
959
|
parent?: string | null | undefined;
|
|
961
960
|
parentfield?: string | null | undefined;
|
|
962
961
|
parenttype?: string | null | undefined;
|
|
@@ -987,5 +986,6 @@ export declare class ERPNextShipment {
|
|
|
987
986
|
tracking_url?: string | null | undefined;
|
|
988
987
|
custom_delivery_country?: string | null | undefined;
|
|
989
988
|
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
|
}
|
|
@@ -232,7 +232,7 @@ export declare const ShipmentParcelPostBody: z.ZodObject<{
|
|
|
232
232
|
weight: number;
|
|
233
233
|
count: number;
|
|
234
234
|
}>;
|
|
235
|
-
export declare const ShipmentExportStatus: z.
|
|
235
|
+
export declare const ShipmentExportStatus: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
236
236
|
export type ShipmentExportStatusType = z.infer<typeof ShipmentExportStatus>;
|
|
237
237
|
export declare const Shipment: z.ZodObject<{
|
|
238
238
|
__onload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -399,7 +399,7 @@ export declare const Shipment: z.ZodObject<{
|
|
|
399
399
|
value_of_goods: z.ZodNumber;
|
|
400
400
|
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
401
401
|
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
402
|
-
custom_export_status: z.
|
|
402
|
+
custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
403
403
|
}, "strip", z.ZodTypeAny, {
|
|
404
404
|
status: string;
|
|
405
405
|
name: string;
|
|
@@ -467,7 +467,6 @@ export declare const Shipment: z.ZodObject<{
|
|
|
467
467
|
description_of_content: string;
|
|
468
468
|
pickup_date: string;
|
|
469
469
|
shipment_id: string;
|
|
470
|
-
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
471
470
|
parent?: string | null | undefined;
|
|
472
471
|
parentfield?: string | null | undefined;
|
|
473
472
|
parenttype?: string | null | undefined;
|
|
@@ -498,6 +497,7 @@ export declare const Shipment: z.ZodObject<{
|
|
|
498
497
|
tracking_url?: string | null | undefined;
|
|
499
498
|
custom_delivery_country?: string | null | undefined;
|
|
500
499
|
custom_is_export?: number | null | undefined;
|
|
500
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
501
501
|
}, {
|
|
502
502
|
status: string;
|
|
503
503
|
name: string;
|
|
@@ -762,7 +762,7 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
762
762
|
value_of_goods: z.ZodNumber;
|
|
763
763
|
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
764
764
|
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
765
|
-
custom_export_status: z.
|
|
765
|
+
custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
766
766
|
}, "name" | "creation" | "modified" | "modified_by" | "shipment_delivery_note" | "shipment_parcel"> & {
|
|
767
767
|
shipment_delivery_note: z.ZodArray<z.ZodOptional<z.ZodObject<{
|
|
768
768
|
owner: z.ZodString;
|
|
@@ -866,7 +866,6 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
866
866
|
description_of_content: string;
|
|
867
867
|
pickup_date: string;
|
|
868
868
|
shipment_id: string;
|
|
869
|
-
custom_export_status: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null;
|
|
870
869
|
parent?: string | null | undefined;
|
|
871
870
|
parentfield?: string | null | undefined;
|
|
872
871
|
parenttype?: string | null | undefined;
|
|
@@ -897,6 +896,7 @@ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
|
|
|
897
896
|
tracking_url?: string | null | undefined;
|
|
898
897
|
custom_delivery_country?: string | null | undefined;
|
|
899
898
|
custom_is_export?: number | null | undefined;
|
|
899
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
900
900
|
}, {
|
|
901
901
|
status: string;
|
|
902
902
|
doctype: string;
|
|
@@ -1145,7 +1145,7 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
|
|
|
1145
1145
|
value_of_goods: z.ZodNumber;
|
|
1146
1146
|
custom_delivery_country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1147
1147
|
custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1148
|
-
custom_export_status: z.
|
|
1148
|
+
custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
1149
1149
|
}, "docstatus" | "shipping_label" | "shipping_provider" | "custom_return_label" | "custom_return_shipping_provider">, "strip", z.ZodTypeAny, {
|
|
1150
1150
|
docstatus: number;
|
|
1151
1151
|
shipping_label?: string | null | undefined;
|
|
@@ -110,9 +110,9 @@ exports.ShipmentExportStatus = zod_1.z
|
|
|
110
110
|
"Customs Declaration Submitted",
|
|
111
111
|
"Customs Declaration Confirmed",
|
|
112
112
|
])
|
|
113
|
+
.default("Open")
|
|
113
114
|
.optional()
|
|
114
|
-
.nullable()
|
|
115
|
-
.default("Open");
|
|
115
|
+
.nullable();
|
|
116
116
|
exports.Shipment = zod_1.z
|
|
117
117
|
.object({
|
|
118
118
|
__onload: Onload.optional().nullable(),
|