@shipengine/js-api 2.1.1 → 2.2.0

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 CHANGED
@@ -113,12 +113,20 @@ 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";
119
126
  return CustomsNonDeliveryType2;
120
127
  })(CustomsNonDeliveryType || {});
121
128
  var InsuranceProviderType = /* @__PURE__ */ ((InsuranceProviderType2) => {
129
+ InsuranceProviderType2["FUNDING_SOURCE"] = "funding_source";
122
130
  InsuranceProviderType2["SHIPSURANCE"] = "shipsurance";
123
131
  InsuranceProviderType2["CARRIER"] = "carrier";
124
132
  InsuranceProviderType2["THIRD_PARTY"] = "third_party";
@@ -139,6 +147,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
139
147
  MetadataCapability,
140
148
  MetadataRequirement,
141
149
  MetadataSatisfyingFormTypes,
150
+ MovementType,
142
151
  RateCardStatus
143
152
  }, Symbol.toStringTag, { value: 'Module' }));
144
153
 
@@ -21732,6 +21741,7 @@ exports.LabelsAPI = LabelsAPI;
21732
21741
  exports.MetadataCapability = MetadataCapability;
21733
21742
  exports.MetadataRequirement = MetadataRequirement;
21734
21743
  exports.MetadataSatisfyingFormTypes = MetadataSatisfyingFormTypes;
21744
+ exports.MovementType = MovementType;
21735
21745
  exports.OrderSourcesAPI = OrderSourcesAPI;
21736
21746
  exports.RateCardStatus = RateCardStatus;
21737
21747
  exports.RateCardsAPI = RateCardsAPI;
package/index.mjs CHANGED
@@ -109,12 +109,20 @@ 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";
115
122
  return CustomsNonDeliveryType2;
116
123
  })(CustomsNonDeliveryType || {});
117
124
  var InsuranceProviderType = /* @__PURE__ */ ((InsuranceProviderType2) => {
125
+ InsuranceProviderType2["FUNDING_SOURCE"] = "funding_source";
118
126
  InsuranceProviderType2["SHIPSURANCE"] = "shipsurance";
119
127
  InsuranceProviderType2["CARRIER"] = "carrier";
120
128
  InsuranceProviderType2["THIRD_PARTY"] = "third_party";
@@ -135,6 +143,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
135
143
  MetadataCapability,
136
144
  MetadataRequirement,
137
145
  MetadataSatisfyingFormTypes,
146
+ MovementType,
138
147
  RateCardStatus
139
148
  }, Symbol.toStringTag, { value: 'Module' }));
140
149
 
@@ -21710,4 +21719,4 @@ class ShipEngineAPI {
21710
21719
  }
21711
21720
  }
21712
21721
 
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 };
21722
+ 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -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"
@@ -67,6 +73,7 @@ export type DangerousGoodsPackagingInstructionSection = "section_1" | "section_2
67
73
  export type DangerousGoodsRegulationLevel = "lightly_regulated" | "fully_regulated" | "limited_quantities" | "excepted_quantity";
68
74
  export type DangerousGoodsTransportMean = "ground" | "water" | "cargo_aircraft_only" | "passenger_aircraft";
69
75
  export declare enum InsuranceProviderType {
76
+ FUNDING_SOURCE = "funding_source",
70
77
  SHIPSURANCE = "shipsurance",
71
78
  CARRIER = "carrier",
72
79
  THIRD_PARTY = "third_party",
@@ -74,7 +81,7 @@ export declare enum InsuranceProviderType {
74
81
  }
75
82
  export type ShipmentStatus = "cancelled" | "label_purchased" | "pending" | "processing";
76
83
  export type TaxableEntityType = "shipper" | "recipient";
77
- export type TaxableIdentifierType = "vat" | "eori" | "ssn" | "ein" | "tin" | "ioss" | "pan" | "voec";
84
+ export type TaxableIdentifierType = "vat" | "eori" | "ssn" | "ein" | "tin" | "ioss" | "pan" | "voec" | "ukims";
78
85
  export interface Product {
79
86
  countryOfOrigin?: string;
80
87
  dangerousGoods?: DangerousGoods;
@@ -152,6 +159,10 @@ export type Customs = {
152
159
  nonDelivery: CustomsNonDeliveryOptions;
153
160
  termsOfTradeCode?: CustomsTermsOfTradeCode;
154
161
  };
162
+ export type WindsorFrameworkDetails = {
163
+ movementIndicator: MovementType;
164
+ notAtRisk: boolean;
165
+ };
155
166
  export interface Shipment {
156
167
  addressValidation?: AddressValidation;
157
168
  advancedOptions?: {
@@ -187,6 +198,7 @@ export interface Shipment {
187
198
  shipperRelease?: boolean;
188
199
  thirdPartyConsignee?: boolean;
189
200
  useUpsGroundFreightPricing?: boolean;
201
+ windsorFrameworkDetails?: WindsorFrameworkDetails;
190
202
  };
191
203
  carrierId: string;
192
204
  comparisonRateType?: string;