@shipengine/js-api 1.29.0 → 1.30.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.
- package/addresses/types.d.ts +8 -1
- package/package.json +1 -1
- package/shipments/types.d.ts +7 -5
- package/themes/types.d.ts +4 -4
package/addresses/types.d.ts
CHANGED
|
@@ -11,13 +11,20 @@ export interface Address {
|
|
|
11
11
|
companyName?: string;
|
|
12
12
|
countryCode: string;
|
|
13
13
|
email?: string;
|
|
14
|
-
geolocation?:
|
|
14
|
+
geolocation?: AddressGeolocation[];
|
|
15
15
|
instructions?: string;
|
|
16
16
|
name: string;
|
|
17
17
|
phone: string;
|
|
18
18
|
postalCode: string;
|
|
19
19
|
stateProvince: string;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @category Entities
|
|
23
|
+
*/
|
|
24
|
+
export interface AddressGeolocation {
|
|
25
|
+
type: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
21
28
|
/**
|
|
22
29
|
* @category Entities
|
|
23
30
|
*/
|
package/package.json
CHANGED
package/shipments/types.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export interface CustomsInvoiceAdditionalDetails {
|
|
|
35
35
|
discount?: Money;
|
|
36
36
|
freightCharge?: Money;
|
|
37
37
|
insuranceCharge?: Money;
|
|
38
|
+
otherCharge?: Money;
|
|
38
39
|
otherChargeDescription?: string;
|
|
39
|
-
otherCharges?: Money;
|
|
40
40
|
}
|
|
41
41
|
export interface DangerousGoods {
|
|
42
42
|
AddionalDescription?: string;
|
|
@@ -106,12 +106,14 @@ export type ShipmentPackage = Omit<CarrierPackage, "name"> & {
|
|
|
106
106
|
insuredValue?: Money;
|
|
107
107
|
labelDownload?: Download;
|
|
108
108
|
labelMessages?: {
|
|
109
|
-
reference1
|
|
110
|
-
reference2
|
|
111
|
-
reference3
|
|
109
|
+
reference1?: string;
|
|
110
|
+
reference2?: string;
|
|
111
|
+
reference3?: string;
|
|
112
112
|
};
|
|
113
|
+
packageName: string;
|
|
113
114
|
products?: Product[];
|
|
114
115
|
sequence?: number;
|
|
116
|
+
shipmentPackageId: string;
|
|
115
117
|
trackingNumber?: string;
|
|
116
118
|
weight: WeightWithUnit;
|
|
117
119
|
};
|
|
@@ -197,7 +199,7 @@ export interface Shipment {
|
|
|
197
199
|
isReturn?: boolean;
|
|
198
200
|
items: ShipmentItem[];
|
|
199
201
|
modifiedAt: string;
|
|
200
|
-
orderSourceCode: OrderSourceCode;
|
|
202
|
+
orderSourceCode: OrderSourceCode | null;
|
|
201
203
|
originType?: OriginTypes;
|
|
202
204
|
packages: ShipmentPackage[];
|
|
203
205
|
returnTo: Address | null;
|
package/themes/types.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ export type PartnerThemeOnboarding = {
|
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* Exporting this Keyword to have it as a source of truth. This keyword its used for the
|
|
16
|
-
* "
|
|
16
|
+
* "connectCountryCodes"
|
|
17
17
|
*/
|
|
18
|
-
export type PartnerThemeCarrierHomeCountry = "
|
|
18
|
+
export type PartnerThemeCarrierHomeCountry = "ACCOUNT_ORIGIN_COUNTRY_CODE";
|
|
19
19
|
export type PartnerThemeCarriers = {
|
|
20
|
-
/** This array can includes an ISO country value or the keyword "
|
|
21
|
-
|
|
20
|
+
/** This array can includes an ISO country value or the keyword "ACCOUNT_ORIGIN_COUNTRY_CODE" */
|
|
21
|
+
connectCountryCodes?: Array<string>;
|
|
22
22
|
};
|
|
23
23
|
export type PartnerTheme = {
|
|
24
24
|
brand: string;
|