@shipengine/js-api 2.1.0 → 2.1.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/index.js +9 -0
- package/index.mjs +9 -1
- package/labels/types.d.ts +2 -1
- package/package.json +1 -1
- package/shipments/types.d.ts +12 -1
package/index.js
CHANGED
|
@@ -113,6 +113,13 @@ var CustomsContentsType = /* @__PURE__ */ ((CustomsContentsType2) => {
|
|
|
113
113
|
CustomsContentsType2["SAMPLE"] = "sample";
|
|
114
114
|
return CustomsContentsType2;
|
|
115
115
|
})(CustomsContentsType || {});
|
|
116
|
+
var MovementType = /* @__PURE__ */ ((MovementType2) => {
|
|
117
|
+
MovementType2["B2C"] = "b2c";
|
|
118
|
+
MovementType2["C2B"] = "c2b";
|
|
119
|
+
MovementType2["C2C"] = "c2c";
|
|
120
|
+
MovementType2["B2B"] = "b2b";
|
|
121
|
+
return MovementType2;
|
|
122
|
+
})(MovementType || {});
|
|
116
123
|
var CustomsNonDeliveryType = /* @__PURE__ */ ((CustomsNonDeliveryType2) => {
|
|
117
124
|
CustomsNonDeliveryType2["RETURN_TO_SENDER"] = "return_to_sender";
|
|
118
125
|
CustomsNonDeliveryType2["TREAT_AS_ABANDONED"] = "treat_as_abandoned";
|
|
@@ -139,6 +146,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
139
146
|
MetadataCapability,
|
|
140
147
|
MetadataRequirement,
|
|
141
148
|
MetadataSatisfyingFormTypes,
|
|
149
|
+
MovementType,
|
|
142
150
|
RateCardStatus
|
|
143
151
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
144
152
|
|
|
@@ -21732,6 +21740,7 @@ exports.LabelsAPI = LabelsAPI;
|
|
|
21732
21740
|
exports.MetadataCapability = MetadataCapability;
|
|
21733
21741
|
exports.MetadataRequirement = MetadataRequirement;
|
|
21734
21742
|
exports.MetadataSatisfyingFormTypes = MetadataSatisfyingFormTypes;
|
|
21743
|
+
exports.MovementType = MovementType;
|
|
21735
21744
|
exports.OrderSourcesAPI = OrderSourcesAPI;
|
|
21736
21745
|
exports.RateCardStatus = RateCardStatus;
|
|
21737
21746
|
exports.RateCardsAPI = RateCardsAPI;
|
package/index.mjs
CHANGED
|
@@ -109,6 +109,13 @@ var CustomsContentsType = /* @__PURE__ */ ((CustomsContentsType2) => {
|
|
|
109
109
|
CustomsContentsType2["SAMPLE"] = "sample";
|
|
110
110
|
return CustomsContentsType2;
|
|
111
111
|
})(CustomsContentsType || {});
|
|
112
|
+
var MovementType = /* @__PURE__ */ ((MovementType2) => {
|
|
113
|
+
MovementType2["B2C"] = "b2c";
|
|
114
|
+
MovementType2["C2B"] = "c2b";
|
|
115
|
+
MovementType2["C2C"] = "c2c";
|
|
116
|
+
MovementType2["B2B"] = "b2b";
|
|
117
|
+
return MovementType2;
|
|
118
|
+
})(MovementType || {});
|
|
112
119
|
var CustomsNonDeliveryType = /* @__PURE__ */ ((CustomsNonDeliveryType2) => {
|
|
113
120
|
CustomsNonDeliveryType2["RETURN_TO_SENDER"] = "return_to_sender";
|
|
114
121
|
CustomsNonDeliveryType2["TREAT_AS_ABANDONED"] = "treat_as_abandoned";
|
|
@@ -135,6 +142,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
135
142
|
MetadataCapability,
|
|
136
143
|
MetadataRequirement,
|
|
137
144
|
MetadataSatisfyingFormTypes,
|
|
145
|
+
MovementType,
|
|
138
146
|
RateCardStatus
|
|
139
147
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
140
148
|
|
|
@@ -21710,4 +21718,4 @@ class ShipEngineAPI {
|
|
|
21710
21718
|
}
|
|
21711
21719
|
}
|
|
21712
21720
|
|
|
21713
|
-
export { AccountSettingsAPI, AddressesAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngineAPI, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, parseError };
|
|
21721
|
+
export { AccountSettingsAPI, AddressesAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementType, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngineAPI, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, parseError };
|
package/labels/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type LabelDisplayScheme = "label" | "paperless" | "qr_code" | "label_and_
|
|
|
9
9
|
export type LabelFormat = "pdf" | "png" | "zpl";
|
|
10
10
|
export type LabelLayout = "4x6" | "letter";
|
|
11
11
|
export type LabelStatus = "processing" | "completed" | "error" | "voided";
|
|
12
|
+
export type LabelTrackingStatus = "unknown" | "in_transit" | "delivered" | "error";
|
|
12
13
|
export type Label = {
|
|
13
14
|
alternativeIdentifiers?: string[];
|
|
14
15
|
batchId: string;
|
|
@@ -47,7 +48,7 @@ export type Label = {
|
|
|
47
48
|
status: LabelStatus;
|
|
48
49
|
trackable: boolean;
|
|
49
50
|
trackingNumber: string;
|
|
50
|
-
trackingStatus:
|
|
51
|
+
trackingStatus: LabelTrackingStatus;
|
|
51
52
|
trackingUrl: string;
|
|
52
53
|
voided: boolean;
|
|
53
54
|
voidedAt: string | null;
|
package/package.json
CHANGED
package/shipments/types.d.ts
CHANGED
|
@@ -26,6 +26,12 @@ export declare enum CustomsContentsType {
|
|
|
26
26
|
RETURNED_GOODS = "returned_goods",
|
|
27
27
|
SAMPLE = "sample"
|
|
28
28
|
}
|
|
29
|
+
export declare enum MovementType {
|
|
30
|
+
B2C = "b2c",
|
|
31
|
+
C2B = "c2b",
|
|
32
|
+
C2C = "c2c",
|
|
33
|
+
B2B = "b2b"
|
|
34
|
+
}
|
|
29
35
|
export declare enum CustomsNonDeliveryType {
|
|
30
36
|
RETURN_TO_SENDER = "return_to_sender",
|
|
31
37
|
TREAT_AS_ABANDONED = "treat_as_abandoned"
|
|
@@ -74,7 +80,7 @@ export declare enum InsuranceProviderType {
|
|
|
74
80
|
}
|
|
75
81
|
export type ShipmentStatus = "cancelled" | "label_purchased" | "pending" | "processing";
|
|
76
82
|
export type TaxableEntityType = "shipper" | "recipient";
|
|
77
|
-
export type TaxableIdentifierType = "vat" | "eori" | "ssn" | "ein" | "tin" | "ioss" | "pan" | "voec";
|
|
83
|
+
export type TaxableIdentifierType = "vat" | "eori" | "ssn" | "ein" | "tin" | "ioss" | "pan" | "voec" | "ukims";
|
|
78
84
|
export interface Product {
|
|
79
85
|
countryOfOrigin?: string;
|
|
80
86
|
dangerousGoods?: DangerousGoods;
|
|
@@ -152,6 +158,10 @@ export type Customs = {
|
|
|
152
158
|
nonDelivery: CustomsNonDeliveryOptions;
|
|
153
159
|
termsOfTradeCode?: CustomsTermsOfTradeCode;
|
|
154
160
|
};
|
|
161
|
+
export type WindsorFrameworkDetails = {
|
|
162
|
+
movementIndicator: MovementType;
|
|
163
|
+
notAtRisk: boolean;
|
|
164
|
+
};
|
|
155
165
|
export interface Shipment {
|
|
156
166
|
addressValidation?: AddressValidation;
|
|
157
167
|
advancedOptions?: {
|
|
@@ -187,6 +197,7 @@ export interface Shipment {
|
|
|
187
197
|
shipperRelease?: boolean;
|
|
188
198
|
thirdPartyConsignee?: boolean;
|
|
189
199
|
useUpsGroundFreightPricing?: boolean;
|
|
200
|
+
windsorFrameworkDetails: WindsorFrameworkDetails;
|
|
190
201
|
};
|
|
191
202
|
carrierId: string;
|
|
192
203
|
comparisonRateType?: string;
|