erpnext-queue-client 1.0.2
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/client.d.ts +25 -0
- package/dist/client.js +141 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.js +26 -0
- package/dist/erpnext/decryptFromErpNext.server.d.ts +2 -0
- package/dist/erpnext/decryptFromErpNext.server.js +17 -0
- package/dist/erpnext/decryptFromErpNext.server.test.d.ts +1 -0
- package/dist/erpnext/decryptFromErpNext.server.test.js +30 -0
- package/dist/erpnext/erpnextRequestWrapper.d.ts +5 -0
- package/dist/erpnext/erpnextRequestWrapper.js +91 -0
- package/dist/erpnext/erpnextRequests.d.ts +1786 -0
- package/dist/erpnext/erpnextRequests.js +339 -0
- package/dist/erpnext/model/Address.d.ts +349 -0
- package/dist/erpnext/model/Address.js +99 -0
- package/dist/erpnext/model/Contact.d.ts +546 -0
- package/dist/erpnext/model/Contact.js +118 -0
- package/dist/erpnext/model/Country.d.ts +78 -0
- package/dist/erpnext/model/Country.js +30 -0
- package/dist/erpnext/model/Customer.d.ts +99 -0
- package/dist/erpnext/model/Customer.js +42 -0
- package/dist/erpnext/model/DateSchema.d.ts +2 -0
- package/dist/erpnext/model/DateSchema.js +8 -0
- package/dist/erpnext/model/DeliveryNote.d.ts +1648 -0
- package/dist/erpnext/model/DeliveryNote.js +219 -0
- package/dist/erpnext/model/DispatchRun.d.ts +688 -0
- package/dist/erpnext/model/DispatchRun.js +167 -0
- package/dist/erpnext/model/DispatcherPreset.d.ts +159 -0
- package/dist/erpnext/model/DispatcherPreset.js +43 -0
- package/dist/erpnext/model/ERPNextQueue.d.ts +48 -0
- package/dist/erpnext/model/ERPNextQueue.js +5 -0
- package/dist/erpnext/model/ERPNextRequest.d.ts +29 -0
- package/dist/erpnext/model/ERPNextRequest.js +2 -0
- package/dist/erpnext/model/ERPNextResponse.d.ts +17 -0
- package/dist/erpnext/model/ERPNextResponse.js +18 -0
- package/dist/erpnext/model/File.d.ts +146 -0
- package/dist/erpnext/model/File.js +36 -0
- package/dist/erpnext/model/Fulfiller.d.ts +175 -0
- package/dist/erpnext/model/Fulfiller.js +79 -0
- package/dist/erpnext/model/FulfillerSettings.d.ts +130 -0
- package/dist/erpnext/model/FulfillerSettings.js +34 -0
- package/dist/erpnext/model/FulfillmentStation.d.ts +9 -0
- package/dist/erpnext/model/FulfillmentStation.js +9 -0
- package/dist/erpnext/model/Item.d.ts +1710 -0
- package/dist/erpnext/model/Item.js +239 -0
- package/dist/erpnext/model/ProjectedQuantityReport.d.ts +281 -0
- package/dist/erpnext/model/ProjectedQuantityReport.js +72 -0
- package/dist/erpnext/model/PurchaseOrder.d.ts +906 -0
- package/dist/erpnext/model/PurchaseOrder.js +248 -0
- package/dist/erpnext/model/Receipt.d.ts +790 -0
- package/dist/erpnext/model/Receipt.js +212 -0
- package/dist/erpnext/model/ReceiptDraft.d.ts +541 -0
- package/dist/erpnext/model/ReceiptDraft.js +149 -0
- package/dist/erpnext/model/Shipment.d.ts +1139 -0
- package/dist/erpnext/model/Shipment.js +191 -0
- package/dist/erpnext/model/ShippingProvider.d.ts +434 -0
- package/dist/erpnext/model/ShippingProvider.js +204 -0
- package/dist/erpnext/model/StockDict.d.ts +3 -0
- package/dist/erpnext/model/StockDict.js +7 -0
- package/dist/erpnext/model/WarehouseCategory.d.ts +20 -0
- package/dist/erpnext/model/WarehouseCategory.js +15 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18 -0
- package/dist/utils/fernet.server.d.ts +150 -0
- package/dist/utils/fernet.server.js +344 -0
- package/dist/utils/logger.d.ts +5 -0
- package/dist/utils/logger.js +45 -0
- package/dist/utils/request.d.ts +28 -0
- package/dist/utils/request.js +107 -0
- package/dist/utils/utils.d.ts +4 -0
- package/dist/utils/utils.js +23 -0
- package/dist/utils/zodUtils.d.ts +2 -0
- package/dist/utils/zodUtils.js +17 -0
- package/package.json +32 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipmentAddShippingLabelAndSubmitBody = exports.ShipmentDraftPostBody = exports.Shipment = exports.ShipmentParcelPostBody = exports.ShipmentParcel = exports.ShipmentDraftFromDeliveryNote = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const Onload = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
load_after_mapping: zod_1.z.boolean(),
|
|
8
|
+
})
|
|
9
|
+
.describe("Shipment Onload");
|
|
10
|
+
const ShipmentDraftDeliveryNote = zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
owner: zod_1.z.string(),
|
|
13
|
+
parentfield: zod_1.z.string(),
|
|
14
|
+
parenttype: zod_1.z.string(),
|
|
15
|
+
idx: zod_1.z.number(),
|
|
16
|
+
docstatus: zod_1.z.number(),
|
|
17
|
+
delivery_note: zod_1.z.string(),
|
|
18
|
+
grand_total: zod_1.z.number(),
|
|
19
|
+
doctype: zod_1.z.string(),
|
|
20
|
+
__islocal: zod_1.z.number().optional().nullable(),
|
|
21
|
+
__unsaved: zod_1.z.number().optional().nullable(),
|
|
22
|
+
})
|
|
23
|
+
.describe("Shipment Draft Delivery Note");
|
|
24
|
+
exports.ShipmentDraftFromDeliveryNote = zod_1.z
|
|
25
|
+
.object({
|
|
26
|
+
__islocal: zod_1.z.number().optional().nullable(),
|
|
27
|
+
__onload: Onload.optional().nullable(),
|
|
28
|
+
__unsaved: zod_1.z.number().optional().nullable(),
|
|
29
|
+
delivery_address_name: zod_1.z.string(),
|
|
30
|
+
delivery_address: zod_1.z.string(),
|
|
31
|
+
delivery_contact: zod_1.z.string().optional(),
|
|
32
|
+
delivery_customer: zod_1.z.string(),
|
|
33
|
+
delivery_to_type: zod_1.z.string(),
|
|
34
|
+
docstatus: zod_1.z.number(),
|
|
35
|
+
doctype: zod_1.z.string(),
|
|
36
|
+
idx: zod_1.z.number(),
|
|
37
|
+
incoterm: zod_1.z.string().optional().nullable(),
|
|
38
|
+
owner: zod_1.z.string(),
|
|
39
|
+
pallets: zod_1.z.string(),
|
|
40
|
+
pickup_address_name: zod_1.z.string(),
|
|
41
|
+
pickup_address: zod_1.z.string(),
|
|
42
|
+
pickup_company: zod_1.z.string(),
|
|
43
|
+
pickup_contact_email: zod_1.z.string(),
|
|
44
|
+
pickup_contact_person: zod_1.z.string(),
|
|
45
|
+
pickup_contact: zod_1.z.string(),
|
|
46
|
+
pickup_from_type: zod_1.z.string(),
|
|
47
|
+
pickup_from: zod_1.z.string(),
|
|
48
|
+
pickup_to: zod_1.z.string(),
|
|
49
|
+
pickup_type: zod_1.z.string(),
|
|
50
|
+
shipment_amount: zod_1.z.number(),
|
|
51
|
+
shipment_delivery_note: zod_1.z.array(ShipmentDraftDeliveryNote.optional()),
|
|
52
|
+
shipment_parcel: zod_1.z.array(zod_1.z.any().optional()),
|
|
53
|
+
shipment_type: zod_1.z.string(),
|
|
54
|
+
status: zod_1.z.string(),
|
|
55
|
+
tracking_status: zod_1.z.string(),
|
|
56
|
+
value_of_goods: zod_1.z.number(),
|
|
57
|
+
})
|
|
58
|
+
.describe("Shipment Draft From Delivery Note");
|
|
59
|
+
const ShipmentDeliveryNote = zod_1.z
|
|
60
|
+
.object({
|
|
61
|
+
name: zod_1.z.string(),
|
|
62
|
+
owner: zod_1.z.string(),
|
|
63
|
+
creation: zod_1.z.string(),
|
|
64
|
+
modified: zod_1.z.string(),
|
|
65
|
+
modified_by: zod_1.z.string(),
|
|
66
|
+
parent: zod_1.z.string(),
|
|
67
|
+
parentfield: zod_1.z.string(),
|
|
68
|
+
parenttype: zod_1.z.string(),
|
|
69
|
+
idx: zod_1.z.number(),
|
|
70
|
+
docstatus: zod_1.z.number(),
|
|
71
|
+
delivery_note: zod_1.z.string(),
|
|
72
|
+
grand_total: zod_1.z.number(),
|
|
73
|
+
doctype: zod_1.z.string(),
|
|
74
|
+
__unsaved: zod_1.z.number().optional().nullable(),
|
|
75
|
+
})
|
|
76
|
+
.describe("Shipment Delivery Note");
|
|
77
|
+
exports.ShipmentParcel = zod_1.z
|
|
78
|
+
.object({
|
|
79
|
+
name: zod_1.z.string(),
|
|
80
|
+
owner: zod_1.z.string(),
|
|
81
|
+
creation: zod_1.z.string(),
|
|
82
|
+
modified: zod_1.z.string(),
|
|
83
|
+
modified_by: zod_1.z.string(),
|
|
84
|
+
parent: zod_1.z.string(),
|
|
85
|
+
parentfield: zod_1.z.string(),
|
|
86
|
+
parenttype: zod_1.z.string(),
|
|
87
|
+
idx: zod_1.z.number(),
|
|
88
|
+
docstatus: zod_1.z.number(),
|
|
89
|
+
length: zod_1.z.number(),
|
|
90
|
+
width: zod_1.z.number(),
|
|
91
|
+
height: zod_1.z.number(),
|
|
92
|
+
weight: zod_1.z.number(),
|
|
93
|
+
count: zod_1.z.number(),
|
|
94
|
+
doctype: zod_1.z.string(),
|
|
95
|
+
})
|
|
96
|
+
.describe("Shipment Parcel");
|
|
97
|
+
exports.ShipmentParcelPostBody = zod_1.z
|
|
98
|
+
.object({
|
|
99
|
+
length: zod_1.z.number(),
|
|
100
|
+
width: zod_1.z.number(),
|
|
101
|
+
height: zod_1.z.number(),
|
|
102
|
+
weight: zod_1.z.number(),
|
|
103
|
+
count: zod_1.z.number(),
|
|
104
|
+
})
|
|
105
|
+
.describe("Shipment Parcel Post Body");
|
|
106
|
+
exports.Shipment = zod_1.z
|
|
107
|
+
.object({
|
|
108
|
+
__onload: Onload.optional().nullable(),
|
|
109
|
+
amended_from: zod_1.z.string().optional().nullable(),
|
|
110
|
+
awb_number: zod_1.z.string().optional().nullable(),
|
|
111
|
+
carrier_service: zod_1.z.string().optional().nullable(),
|
|
112
|
+
carrier: zod_1.z.string().optional().nullable(),
|
|
113
|
+
creation: zod_1.z.string(),
|
|
114
|
+
delivery_address_name: zod_1.z.string(),
|
|
115
|
+
delivery_address: zod_1.z.string(),
|
|
116
|
+
delivery_company: zod_1.z.string().optional().nullable(),
|
|
117
|
+
delivery_contact_email: zod_1.z.string().optional().nullable(),
|
|
118
|
+
delivery_contact_name: zod_1.z.string().optional().nullable(),
|
|
119
|
+
delivery_contact: zod_1.z.string().optional().nullable(),
|
|
120
|
+
delivery_customer: zod_1.z.string(),
|
|
121
|
+
delivery_supplier: zod_1.z.string().optional().nullable(),
|
|
122
|
+
delivery_to_type: zod_1.z.string(),
|
|
123
|
+
delivery_to: zod_1.z.string().optional().nullable(),
|
|
124
|
+
description_of_content: zod_1.z.string(),
|
|
125
|
+
docstatus: zod_1.z.number(),
|
|
126
|
+
doctype: zod_1.z.string(),
|
|
127
|
+
idx: zod_1.z.number(),
|
|
128
|
+
incoterm: zod_1.z.string(),
|
|
129
|
+
modified_by: zod_1.z.string(),
|
|
130
|
+
modified: zod_1.z.string(),
|
|
131
|
+
name: zod_1.z.string(),
|
|
132
|
+
owner: zod_1.z.string(),
|
|
133
|
+
pallets: zod_1.z.string(),
|
|
134
|
+
parcel_template: zod_1.z.string().optional().nullable(),
|
|
135
|
+
parent: zod_1.z.string().optional().nullable(),
|
|
136
|
+
parentfield: zod_1.z.string().optional().nullable(),
|
|
137
|
+
parenttype: zod_1.z.string().optional().nullable(),
|
|
138
|
+
pickup_address_name: zod_1.z.string(),
|
|
139
|
+
pickup_address: zod_1.z.string(),
|
|
140
|
+
pickup_company: zod_1.z.string(),
|
|
141
|
+
pickup_contact_email: zod_1.z.string(),
|
|
142
|
+
pickup_contact_name: zod_1.z.string().optional().nullable(),
|
|
143
|
+
pickup_contact_person: zod_1.z.string(),
|
|
144
|
+
pickup_contact: zod_1.z.string(),
|
|
145
|
+
pickup_customer: zod_1.z.string().optional().nullable(),
|
|
146
|
+
pickup_date: zod_1.z.string(),
|
|
147
|
+
pickup_from_type: zod_1.z.string(),
|
|
148
|
+
pickup_from: zod_1.z.string(),
|
|
149
|
+
pickup_supplier: zod_1.z.string().optional().nullable(),
|
|
150
|
+
pickup_to: zod_1.z.string(),
|
|
151
|
+
pickup_type: zod_1.z.string(),
|
|
152
|
+
pickup: zod_1.z.string().optional().nullable(),
|
|
153
|
+
service_provider: zod_1.z.string().optional().nullable(),
|
|
154
|
+
shipment_amount: zod_1.z.number(),
|
|
155
|
+
shipment_delivery_note: zod_1.z.array(ShipmentDeliveryNote),
|
|
156
|
+
shipment_id: zod_1.z.string(),
|
|
157
|
+
shipment_parcel: zod_1.z.array(exports.ShipmentParcel),
|
|
158
|
+
shipment_type: zod_1.z.string(),
|
|
159
|
+
shipping_label: zod_1.z.string().optional().nullable(),
|
|
160
|
+
shipping_provider: zod_1.z.string().optional().nullable(),
|
|
161
|
+
custom_return_label: zod_1.z.string().optional().nullable(),
|
|
162
|
+
custom_return_shipping_provider: zod_1.z.string().optional().nullable(),
|
|
163
|
+
status: zod_1.z.string(),
|
|
164
|
+
tracking_status_info: zod_1.z.string().optional().nullable(),
|
|
165
|
+
tracking_status: zod_1.z.string(),
|
|
166
|
+
tracking_url: zod_1.z.string().optional().nullable(),
|
|
167
|
+
value_of_goods: zod_1.z.number(),
|
|
168
|
+
})
|
|
169
|
+
.describe("Shipment");
|
|
170
|
+
exports.ShipmentDraftPostBody = exports.Shipment.omit({
|
|
171
|
+
name: true,
|
|
172
|
+
creation: true,
|
|
173
|
+
modified: true,
|
|
174
|
+
modified_by: true,
|
|
175
|
+
shipment_delivery_note: true,
|
|
176
|
+
shipment_parcel: true,
|
|
177
|
+
})
|
|
178
|
+
.extend({
|
|
179
|
+
shipment_delivery_note: zod_1.z.array(ShipmentDraftDeliveryNote.optional()),
|
|
180
|
+
})
|
|
181
|
+
.extend({
|
|
182
|
+
shipment_parcel: zod_1.z.array(exports.ShipmentParcelPostBody),
|
|
183
|
+
})
|
|
184
|
+
.describe("Shipment Draft Post Body");
|
|
185
|
+
exports.ShipmentAddShippingLabelAndSubmitBody = exports.Shipment.pick({
|
|
186
|
+
shipping_label: true,
|
|
187
|
+
shipping_provider: true,
|
|
188
|
+
custom_return_label: true,
|
|
189
|
+
custom_return_shipping_provider: true,
|
|
190
|
+
docstatus: true,
|
|
191
|
+
});
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum ShopifyCarrier {
|
|
3
|
+
"Deutsche Post (DE)" = "Deutsche Post (DE)",
|
|
4
|
+
"Deutsche Post (EN)" = "Deutsche Post (EN)",
|
|
5
|
+
"DHL" = "DHL",
|
|
6
|
+
"Swiship" = "Swiship",
|
|
7
|
+
"Hermes" = "Hermes",
|
|
8
|
+
"4PX" = "4PX",
|
|
9
|
+
"AGS" = "AGS",
|
|
10
|
+
"Amazon Logistics UK" = "Amazon Logistics UK",
|
|
11
|
+
"Amazon Logistics US" = "Amazon Logistics US",
|
|
12
|
+
"An Post" = "An Post",
|
|
13
|
+
"Anjun Logistics" = "Anjun Logistics",
|
|
14
|
+
"APC" = "APC",
|
|
15
|
+
"Asendia USA" = "Asendia USA",
|
|
16
|
+
"Australia Post" = "Australia Post",
|
|
17
|
+
"Bonshaw" = "Bonshaw",
|
|
18
|
+
"BPost" = "BPost",
|
|
19
|
+
"BPost International" = "BPost International",
|
|
20
|
+
"Canada Post" = "Canada Post",
|
|
21
|
+
"Canpar" = "Canpar",
|
|
22
|
+
"CDL Last Mile" = "CDL Last Mile",
|
|
23
|
+
"China Post" = "China Post",
|
|
24
|
+
"Chronopost" = "Chronopost",
|
|
25
|
+
"Chukou1" = "Chukou1",
|
|
26
|
+
"Colissimo" = "Colissimo",
|
|
27
|
+
"Comingle" = "Comingle",
|
|
28
|
+
"Coordinadora" = "Coordinadora",
|
|
29
|
+
"Correios" = "Correios",
|
|
30
|
+
"Correos" = "Correos",
|
|
31
|
+
"CTT" = "CTT",
|
|
32
|
+
"CTT Express" = "CTT Express",
|
|
33
|
+
"Cyprus Post" = "Cyprus Post",
|
|
34
|
+
"Delnext" = "Delnext",
|
|
35
|
+
"Deutsche Post" = "Deutsche Post",
|
|
36
|
+
"DHL eCommerce" = "DHL eCommerce",
|
|
37
|
+
"DHL eCommerce Asia" = "DHL eCommerce Asia",
|
|
38
|
+
"DHL Express" = "DHL Express",
|
|
39
|
+
"DoorDash" = "DoorDash",
|
|
40
|
+
"DPD" = "DPD",
|
|
41
|
+
"DPD Local" = "DPD Local",
|
|
42
|
+
"DPD UK" = "DPD UK",
|
|
43
|
+
"DTD Express" = "DTD Express",
|
|
44
|
+
"DX" = "DX",
|
|
45
|
+
"Eagle" = "Eagle",
|
|
46
|
+
"Estes" = "Estes",
|
|
47
|
+
"Evri" = "Evri",
|
|
48
|
+
"FedEx" = "FedEx",
|
|
49
|
+
"First Global Logistics" = "First Global Logistics",
|
|
50
|
+
"First Line" = "First Line",
|
|
51
|
+
"FSC" = "FSC",
|
|
52
|
+
"Fulfilla" = "Fulfilla",
|
|
53
|
+
"GLS DE" = "GLS DE",
|
|
54
|
+
"Guangdong Weisuyi Information Technology (WSE)" = "Guangdong Weisuyi Information Technology (WSE)",
|
|
55
|
+
"Heppner Internationale Spedition GmbH & Co." = "Heppner Internationale Spedition GmbH & Co.",
|
|
56
|
+
"Iceland Post" = "Iceland Post",
|
|
57
|
+
"IDEX" = "IDEX",
|
|
58
|
+
"Israel Post" = "Israel Post",
|
|
59
|
+
"Japan Post (EN)" = "Japan Post (EN)",
|
|
60
|
+
"Japan Post (JA)" = "Japan Post (JA)",
|
|
61
|
+
"La Poste" = "La Poste",
|
|
62
|
+
"Lasership" = "Lasership",
|
|
63
|
+
"Latvia Post" = "Latvia Post",
|
|
64
|
+
"Lietuvos Paštas" = "Lietuvos Pa\u0161tas",
|
|
65
|
+
"Logisters" = "Logisters",
|
|
66
|
+
"Lone Star Overnight" = "Lone Star Overnight",
|
|
67
|
+
"M3 Logistics" = "M3 Logistics",
|
|
68
|
+
"Meteor Space" = "Meteor Space",
|
|
69
|
+
"Mondial Relay" = "Mondial Relay",
|
|
70
|
+
"New Zealand Post" = "New Zealand Post",
|
|
71
|
+
"NinjaVan" = "NinjaVan",
|
|
72
|
+
"North Russia Supply Chain (Shenzhen) Co." = "North Russia Supply Chain (Shenzhen) Co.",
|
|
73
|
+
"OnTrac" = "OnTrac",
|
|
74
|
+
"Packeta" = "Packeta",
|
|
75
|
+
"Pago Logistics" = "Pago Logistics",
|
|
76
|
+
"Ping An Da Tengfei Express" = "Ping An Da Tengfei Express",
|
|
77
|
+
"Pitney Bowes" = "Pitney Bowes",
|
|
78
|
+
"Portal PostNord" = "Portal PostNord",
|
|
79
|
+
"Poste Italiane" = "Poste Italiane",
|
|
80
|
+
"PostNL" = "PostNL",
|
|
81
|
+
"PostNord DK" = "PostNord DK",
|
|
82
|
+
"PostNord NO" = "PostNord NO",
|
|
83
|
+
"PostNord SE" = "PostNord SE",
|
|
84
|
+
"Purolator" = "Purolator",
|
|
85
|
+
"Qxpress" = "Qxpress",
|
|
86
|
+
"Qyun Express" = "Qyun Express",
|
|
87
|
+
"Royal Mail" = "Royal Mail",
|
|
88
|
+
"Royal Shipments" = "Royal Shipments",
|
|
89
|
+
"Sagawa (EN)" = "Sagawa (EN)",
|
|
90
|
+
"Sagawa (JA)" = "Sagawa (JA)",
|
|
91
|
+
"Sendle" = "Sendle",
|
|
92
|
+
"SF Express" = "SF Express",
|
|
93
|
+
"SFC Fulfillment" = "SFC Fulfillment",
|
|
94
|
+
"SHREE NANDAN COURIER" = "SHREE NANDAN COURIER",
|
|
95
|
+
"Singapore Post" = "Singapore Post",
|
|
96
|
+
"Southwest Air Cargo" = "Southwest Air Cargo",
|
|
97
|
+
"StarTrack" = "StarTrack",
|
|
98
|
+
"Step Forward Freight" = "Step Forward Freight",
|
|
99
|
+
"Swiss Post" = "Swiss Post",
|
|
100
|
+
"TForce Final Mile" = "TForce Final Mile",
|
|
101
|
+
"Tinghao" = "Tinghao",
|
|
102
|
+
"TNT" = "TNT",
|
|
103
|
+
"Toll IPEC" = "Toll IPEC",
|
|
104
|
+
"United Delivery Service" = "United Delivery Service",
|
|
105
|
+
"UPS" = "UPS",
|
|
106
|
+
"USPS" = "USPS",
|
|
107
|
+
"Venipak" = "Venipak",
|
|
108
|
+
"We Post" = "We Post",
|
|
109
|
+
"Whistl" = "Whistl",
|
|
110
|
+
"Wizmo" = "Wizmo",
|
|
111
|
+
"WMYC" = "WMYC",
|
|
112
|
+
"Xpedigo" = "Xpedigo",
|
|
113
|
+
"XPO Logistics" = "XPO Logistics",
|
|
114
|
+
"Yamato (EN)" = "Yamato (EN)",
|
|
115
|
+
"Yamato (JA)" = "Yamato (JA)",
|
|
116
|
+
"YiFan Express" = "YiFan Express",
|
|
117
|
+
"YunExpress" = "YunExpress"
|
|
118
|
+
}
|
|
119
|
+
export declare const LabelService: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"GLS Germany">, z.ZodLiteral<"GLS ADE-plus">]>, z.ZodLiteral<"DHL">]>, z.ZodLiteral<"DHL-2-Mann">]>, z.ZodLiteral<"Deutsche Post">]>, z.ZodLiteral<"Billbee">]>, z.ZodLiteral<"Billbee Amazon MCF">]>;
|
|
120
|
+
export type LabelServiceType = z.infer<typeof LabelService>;
|
|
121
|
+
export declare const ShippingProvider: z.ZodObject<{
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
creation: z.ZodString;
|
|
124
|
+
modified: z.ZodString;
|
|
125
|
+
modified_by: z.ZodString;
|
|
126
|
+
owner: z.ZodString;
|
|
127
|
+
docstatus: z.ZodNumber;
|
|
128
|
+
parent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
129
|
+
parentfield: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
130
|
+
parenttype: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
131
|
+
idx: z.ZodNumber;
|
|
132
|
+
is_transport_by_freight_forwarding: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
133
|
+
is_print_label: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
134
|
+
label_service: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"GLS Germany">, z.ZodLiteral<"GLS ADE-plus">]>, z.ZodLiteral<"DHL">]>, z.ZodLiteral<"DHL-2-Mann">]>, z.ZodLiteral<"Deutsche Post">]>, z.ZodLiteral<"Billbee">]>, z.ZodLiteral<"Billbee Amazon MCF">]>;
|
|
135
|
+
dhl_ekp_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
136
|
+
api_user: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
137
|
+
api_password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
138
|
+
api_base_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
139
|
+
gls_shipper_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
140
|
+
billbee_shipping_provider_id: z.ZodString;
|
|
141
|
+
product_id_germany: z.ZodString;
|
|
142
|
+
product_id_europe: z.ZodString;
|
|
143
|
+
sender_address: z.ZodString;
|
|
144
|
+
title: z.ZodString;
|
|
145
|
+
shopify_carrier_mapping: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof ShopifyCarrier>, z.ZodLiteral<"">]>>>;
|
|
146
|
+
doctype: z.ZodString;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
name?: string;
|
|
149
|
+
owner?: string;
|
|
150
|
+
creation?: string;
|
|
151
|
+
modified?: string;
|
|
152
|
+
modified_by?: string;
|
|
153
|
+
parent?: string;
|
|
154
|
+
parentfield?: string;
|
|
155
|
+
parenttype?: string;
|
|
156
|
+
idx?: number;
|
|
157
|
+
docstatus?: number;
|
|
158
|
+
doctype?: string;
|
|
159
|
+
title?: string;
|
|
160
|
+
is_transport_by_freight_forwarding?: boolean;
|
|
161
|
+
is_print_label?: boolean;
|
|
162
|
+
label_service?: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
|
|
163
|
+
dhl_ekp_number?: string;
|
|
164
|
+
api_user?: string;
|
|
165
|
+
api_password?: string;
|
|
166
|
+
api_base_url?: string;
|
|
167
|
+
gls_shipper_id?: string;
|
|
168
|
+
billbee_shipping_provider_id?: string;
|
|
169
|
+
product_id_germany?: string;
|
|
170
|
+
product_id_europe?: string;
|
|
171
|
+
sender_address?: string;
|
|
172
|
+
shopify_carrier_mapping?: "" | ShopifyCarrier;
|
|
173
|
+
}, {
|
|
174
|
+
name?: string;
|
|
175
|
+
owner?: string;
|
|
176
|
+
creation?: string;
|
|
177
|
+
modified?: string;
|
|
178
|
+
modified_by?: string;
|
|
179
|
+
parent?: string;
|
|
180
|
+
parentfield?: string;
|
|
181
|
+
parenttype?: string;
|
|
182
|
+
idx?: number;
|
|
183
|
+
docstatus?: number;
|
|
184
|
+
doctype?: string;
|
|
185
|
+
title?: string;
|
|
186
|
+
is_transport_by_freight_forwarding?: number;
|
|
187
|
+
is_print_label?: number;
|
|
188
|
+
label_service?: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
|
|
189
|
+
dhl_ekp_number?: string;
|
|
190
|
+
api_user?: string;
|
|
191
|
+
api_password?: string;
|
|
192
|
+
api_base_url?: string;
|
|
193
|
+
gls_shipper_id?: string;
|
|
194
|
+
billbee_shipping_provider_id?: string;
|
|
195
|
+
product_id_germany?: string;
|
|
196
|
+
product_id_europe?: string;
|
|
197
|
+
sender_address?: string;
|
|
198
|
+
shopify_carrier_mapping?: "" | ShopifyCarrier;
|
|
199
|
+
}>;
|
|
200
|
+
export type ShippingProviderType = z.infer<typeof ShippingProvider>;
|
|
201
|
+
export declare const ShippingProviderFromList: z.ZodObject<Omit<{
|
|
202
|
+
name: z.ZodString;
|
|
203
|
+
creation: z.ZodString;
|
|
204
|
+
modified: z.ZodString;
|
|
205
|
+
modified_by: z.ZodString;
|
|
206
|
+
owner: z.ZodString;
|
|
207
|
+
docstatus: z.ZodNumber;
|
|
208
|
+
parent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
209
|
+
parentfield: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
210
|
+
parenttype: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
211
|
+
idx: z.ZodNumber;
|
|
212
|
+
is_transport_by_freight_forwarding: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
213
|
+
is_print_label: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
214
|
+
label_service: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"GLS Germany">, z.ZodLiteral<"GLS ADE-plus">]>, z.ZodLiteral<"DHL">]>, z.ZodLiteral<"DHL-2-Mann">]>, z.ZodLiteral<"Deutsche Post">]>, z.ZodLiteral<"Billbee">]>, z.ZodLiteral<"Billbee Amazon MCF">]>;
|
|
215
|
+
dhl_ekp_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
216
|
+
api_user: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
217
|
+
api_password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
218
|
+
api_base_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
219
|
+
gls_shipper_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
220
|
+
billbee_shipping_provider_id: z.ZodString;
|
|
221
|
+
product_id_germany: z.ZodString;
|
|
222
|
+
product_id_europe: z.ZodString;
|
|
223
|
+
sender_address: z.ZodString;
|
|
224
|
+
title: z.ZodString;
|
|
225
|
+
shopify_carrier_mapping: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof ShopifyCarrier>, z.ZodLiteral<"">]>>>;
|
|
226
|
+
doctype: z.ZodString;
|
|
227
|
+
}, "doctype">, "strip", z.ZodTypeAny, {
|
|
228
|
+
name?: string;
|
|
229
|
+
owner?: string;
|
|
230
|
+
creation?: string;
|
|
231
|
+
modified?: string;
|
|
232
|
+
modified_by?: string;
|
|
233
|
+
parent?: string;
|
|
234
|
+
parentfield?: string;
|
|
235
|
+
parenttype?: string;
|
|
236
|
+
idx?: number;
|
|
237
|
+
docstatus?: number;
|
|
238
|
+
title?: string;
|
|
239
|
+
is_transport_by_freight_forwarding?: boolean;
|
|
240
|
+
is_print_label?: boolean;
|
|
241
|
+
label_service?: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
|
|
242
|
+
dhl_ekp_number?: string;
|
|
243
|
+
api_user?: string;
|
|
244
|
+
api_password?: string;
|
|
245
|
+
api_base_url?: string;
|
|
246
|
+
gls_shipper_id?: string;
|
|
247
|
+
billbee_shipping_provider_id?: string;
|
|
248
|
+
product_id_germany?: string;
|
|
249
|
+
product_id_europe?: string;
|
|
250
|
+
sender_address?: string;
|
|
251
|
+
shopify_carrier_mapping?: "" | ShopifyCarrier;
|
|
252
|
+
}, {
|
|
253
|
+
name?: string;
|
|
254
|
+
owner?: string;
|
|
255
|
+
creation?: string;
|
|
256
|
+
modified?: string;
|
|
257
|
+
modified_by?: string;
|
|
258
|
+
parent?: string;
|
|
259
|
+
parentfield?: string;
|
|
260
|
+
parenttype?: string;
|
|
261
|
+
idx?: number;
|
|
262
|
+
docstatus?: number;
|
|
263
|
+
title?: string;
|
|
264
|
+
is_transport_by_freight_forwarding?: number;
|
|
265
|
+
is_print_label?: number;
|
|
266
|
+
label_service?: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
|
|
267
|
+
dhl_ekp_number?: string;
|
|
268
|
+
api_user?: string;
|
|
269
|
+
api_password?: string;
|
|
270
|
+
api_base_url?: string;
|
|
271
|
+
gls_shipper_id?: string;
|
|
272
|
+
billbee_shipping_provider_id?: string;
|
|
273
|
+
product_id_germany?: string;
|
|
274
|
+
product_id_europe?: string;
|
|
275
|
+
sender_address?: string;
|
|
276
|
+
shopify_carrier_mapping?: "" | ShopifyCarrier;
|
|
277
|
+
}>;
|
|
278
|
+
export declare const ShippingProviderList: z.ZodEffects<z.ZodArray<z.ZodObject<Omit<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
creation: z.ZodString;
|
|
281
|
+
modified: z.ZodString;
|
|
282
|
+
modified_by: z.ZodString;
|
|
283
|
+
owner: z.ZodString;
|
|
284
|
+
docstatus: z.ZodNumber;
|
|
285
|
+
parent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
286
|
+
parentfield: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
287
|
+
parenttype: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
288
|
+
idx: z.ZodNumber;
|
|
289
|
+
is_transport_by_freight_forwarding: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
290
|
+
is_print_label: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
291
|
+
label_service: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"GLS Germany">, z.ZodLiteral<"GLS ADE-plus">]>, z.ZodLiteral<"DHL">]>, z.ZodLiteral<"DHL-2-Mann">]>, z.ZodLiteral<"Deutsche Post">]>, z.ZodLiteral<"Billbee">]>, z.ZodLiteral<"Billbee Amazon MCF">]>;
|
|
292
|
+
dhl_ekp_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
293
|
+
api_user: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
294
|
+
api_password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
295
|
+
api_base_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
296
|
+
gls_shipper_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
297
|
+
billbee_shipping_provider_id: z.ZodString;
|
|
298
|
+
product_id_germany: z.ZodString;
|
|
299
|
+
product_id_europe: z.ZodString;
|
|
300
|
+
sender_address: z.ZodString;
|
|
301
|
+
title: z.ZodString;
|
|
302
|
+
shopify_carrier_mapping: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof ShopifyCarrier>, z.ZodLiteral<"">]>>>;
|
|
303
|
+
doctype: z.ZodString;
|
|
304
|
+
}, "doctype">, "strip", z.ZodTypeAny, {
|
|
305
|
+
name?: string;
|
|
306
|
+
owner?: string;
|
|
307
|
+
creation?: string;
|
|
308
|
+
modified?: string;
|
|
309
|
+
modified_by?: string;
|
|
310
|
+
parent?: string;
|
|
311
|
+
parentfield?: string;
|
|
312
|
+
parenttype?: string;
|
|
313
|
+
idx?: number;
|
|
314
|
+
docstatus?: number;
|
|
315
|
+
title?: string;
|
|
316
|
+
is_transport_by_freight_forwarding?: boolean;
|
|
317
|
+
is_print_label?: boolean;
|
|
318
|
+
label_service?: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
|
|
319
|
+
dhl_ekp_number?: string;
|
|
320
|
+
api_user?: string;
|
|
321
|
+
api_password?: string;
|
|
322
|
+
api_base_url?: string;
|
|
323
|
+
gls_shipper_id?: string;
|
|
324
|
+
billbee_shipping_provider_id?: string;
|
|
325
|
+
product_id_germany?: string;
|
|
326
|
+
product_id_europe?: string;
|
|
327
|
+
sender_address?: string;
|
|
328
|
+
shopify_carrier_mapping?: "" | ShopifyCarrier;
|
|
329
|
+
}, {
|
|
330
|
+
name?: string;
|
|
331
|
+
owner?: string;
|
|
332
|
+
creation?: string;
|
|
333
|
+
modified?: string;
|
|
334
|
+
modified_by?: string;
|
|
335
|
+
parent?: string;
|
|
336
|
+
parentfield?: string;
|
|
337
|
+
parenttype?: string;
|
|
338
|
+
idx?: number;
|
|
339
|
+
docstatus?: number;
|
|
340
|
+
title?: string;
|
|
341
|
+
is_transport_by_freight_forwarding?: number;
|
|
342
|
+
is_print_label?: number;
|
|
343
|
+
label_service?: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
|
|
344
|
+
dhl_ekp_number?: string;
|
|
345
|
+
api_user?: string;
|
|
346
|
+
api_password?: string;
|
|
347
|
+
api_base_url?: string;
|
|
348
|
+
gls_shipper_id?: string;
|
|
349
|
+
billbee_shipping_provider_id?: string;
|
|
350
|
+
product_id_germany?: string;
|
|
351
|
+
product_id_europe?: string;
|
|
352
|
+
sender_address?: string;
|
|
353
|
+
shopify_carrier_mapping?: "" | ShopifyCarrier;
|
|
354
|
+
}>, "many">, {
|
|
355
|
+
name?: string;
|
|
356
|
+
owner?: string;
|
|
357
|
+
creation?: string;
|
|
358
|
+
modified?: string;
|
|
359
|
+
modified_by?: string;
|
|
360
|
+
parent?: string;
|
|
361
|
+
parentfield?: string;
|
|
362
|
+
parenttype?: string;
|
|
363
|
+
idx?: number;
|
|
364
|
+
docstatus?: number;
|
|
365
|
+
title?: string;
|
|
366
|
+
is_transport_by_freight_forwarding?: boolean;
|
|
367
|
+
is_print_label?: boolean;
|
|
368
|
+
label_service?: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
|
|
369
|
+
dhl_ekp_number?: string;
|
|
370
|
+
api_user?: string;
|
|
371
|
+
api_password?: string;
|
|
372
|
+
api_base_url?: string;
|
|
373
|
+
gls_shipper_id?: string;
|
|
374
|
+
billbee_shipping_provider_id?: string;
|
|
375
|
+
product_id_germany?: string;
|
|
376
|
+
product_id_europe?: string;
|
|
377
|
+
sender_address?: string;
|
|
378
|
+
shopify_carrier_mapping?: "" | ShopifyCarrier;
|
|
379
|
+
}[], unknown>;
|
|
380
|
+
export type ShippingProviderListType = z.infer<typeof ShippingProviderList>;
|
|
381
|
+
export declare const ShippingProviderCredentials: z.ZodObject<{
|
|
382
|
+
api_user: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
383
|
+
api_password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
384
|
+
billbee_shipping_provider_id: z.ZodString;
|
|
385
|
+
gls_shipper_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
386
|
+
dhl_ekp_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
387
|
+
product_id_germany: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
388
|
+
product_id_europe: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
dhl_ekp_number?: string;
|
|
391
|
+
api_user?: string;
|
|
392
|
+
api_password?: string;
|
|
393
|
+
gls_shipper_id?: string;
|
|
394
|
+
billbee_shipping_provider_id?: string;
|
|
395
|
+
product_id_germany?: string;
|
|
396
|
+
product_id_europe?: string;
|
|
397
|
+
}, {
|
|
398
|
+
dhl_ekp_number?: string;
|
|
399
|
+
api_user?: string;
|
|
400
|
+
api_password?: string;
|
|
401
|
+
gls_shipper_id?: string;
|
|
402
|
+
billbee_shipping_provider_id?: string;
|
|
403
|
+
product_id_germany?: string;
|
|
404
|
+
product_id_europe?: string;
|
|
405
|
+
}>;
|
|
406
|
+
export type ShippingProviderCredentialsType = z.infer<typeof ShippingProviderCredentials>;
|
|
407
|
+
export declare const BillbeeShippingProviderCredentials: z.ZodObject<z.objectUtil.extendShape<{
|
|
408
|
+
api_user: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
409
|
+
api_password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
410
|
+
billbee_shipping_provider_id: z.ZodString;
|
|
411
|
+
gls_shipper_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
412
|
+
dhl_ekp_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
413
|
+
product_id_germany: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
414
|
+
product_id_europe: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
415
|
+
}, {
|
|
416
|
+
product_id_germany: z.ZodString;
|
|
417
|
+
product_id_europe: z.ZodString;
|
|
418
|
+
}>, "strip", z.ZodTypeAny, {
|
|
419
|
+
dhl_ekp_number?: string;
|
|
420
|
+
api_user?: string;
|
|
421
|
+
api_password?: string;
|
|
422
|
+
gls_shipper_id?: string;
|
|
423
|
+
billbee_shipping_provider_id?: string;
|
|
424
|
+
product_id_germany?: string;
|
|
425
|
+
product_id_europe?: string;
|
|
426
|
+
}, {
|
|
427
|
+
dhl_ekp_number?: string;
|
|
428
|
+
api_user?: string;
|
|
429
|
+
api_password?: string;
|
|
430
|
+
gls_shipper_id?: string;
|
|
431
|
+
billbee_shipping_provider_id?: string;
|
|
432
|
+
product_id_germany?: string;
|
|
433
|
+
product_id_europe?: string;
|
|
434
|
+
}>;
|