@shipengine/js-api 2.1.2 → 2.3.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 +9 -0
- package/index.mjs +9 -0
- package/order-sources/api.d.ts +7 -1
- package/order-sources/types.d.ts +6 -0
- package/package.json +1 -1
- package/shipments/types.d.ts +2 -1
package/index.js
CHANGED
|
@@ -126,6 +126,7 @@ var CustomsNonDeliveryType = /* @__PURE__ */ ((CustomsNonDeliveryType2) => {
|
|
|
126
126
|
return CustomsNonDeliveryType2;
|
|
127
127
|
})(CustomsNonDeliveryType || {});
|
|
128
128
|
var InsuranceProviderType = /* @__PURE__ */ ((InsuranceProviderType2) => {
|
|
129
|
+
InsuranceProviderType2["FUNDING_SOURCE"] = "funding_source";
|
|
129
130
|
InsuranceProviderType2["SHIPSURANCE"] = "shipsurance";
|
|
130
131
|
InsuranceProviderType2["CARRIER"] = "carrier";
|
|
131
132
|
InsuranceProviderType2["THIRD_PARTY"] = "third_party";
|
|
@@ -3668,6 +3669,14 @@ class OrderSourcesAPI {
|
|
|
3668
3669
|
this.list = () => {
|
|
3669
3670
|
return this.client.get("/v-beta/order_sources");
|
|
3670
3671
|
};
|
|
3672
|
+
/**
|
|
3673
|
+
* The `listConnections` method retrieves the list of available order sources to be connected with.
|
|
3674
|
+
*/
|
|
3675
|
+
this.listConnections = () => {
|
|
3676
|
+
return this.client.get(
|
|
3677
|
+
"/v1/connections/order_sources"
|
|
3678
|
+
);
|
|
3679
|
+
};
|
|
3671
3680
|
/**
|
|
3672
3681
|
* The `get` method retrieves a specific order source by `orderSourceId`.
|
|
3673
3682
|
*/
|
package/index.mjs
CHANGED
|
@@ -122,6 +122,7 @@ var CustomsNonDeliveryType = /* @__PURE__ */ ((CustomsNonDeliveryType2) => {
|
|
|
122
122
|
return CustomsNonDeliveryType2;
|
|
123
123
|
})(CustomsNonDeliveryType || {});
|
|
124
124
|
var InsuranceProviderType = /* @__PURE__ */ ((InsuranceProviderType2) => {
|
|
125
|
+
InsuranceProviderType2["FUNDING_SOURCE"] = "funding_source";
|
|
125
126
|
InsuranceProviderType2["SHIPSURANCE"] = "shipsurance";
|
|
126
127
|
InsuranceProviderType2["CARRIER"] = "carrier";
|
|
127
128
|
InsuranceProviderType2["THIRD_PARTY"] = "third_party";
|
|
@@ -3664,6 +3665,14 @@ class OrderSourcesAPI {
|
|
|
3664
3665
|
this.list = () => {
|
|
3665
3666
|
return this.client.get("/v-beta/order_sources");
|
|
3666
3667
|
};
|
|
3668
|
+
/**
|
|
3669
|
+
* The `listConnections` method retrieves the list of available order sources to be connected with.
|
|
3670
|
+
*/
|
|
3671
|
+
this.listConnections = () => {
|
|
3672
|
+
return this.client.get(
|
|
3673
|
+
"/v1/connections/order_sources"
|
|
3674
|
+
);
|
|
3675
|
+
};
|
|
3667
3676
|
/**
|
|
3668
3677
|
* The `get` method retrieves a specific order source by `orderSourceId`.
|
|
3669
3678
|
*/
|
package/order-sources/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { OrderSource } from "./types";
|
|
2
|
+
import { OrderSource, OrderSourceConnection } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* # Order Sources API module - /v-beta/order_sources
|
|
5
5
|
*/
|
|
@@ -12,6 +12,12 @@ export declare class OrderSourcesAPI {
|
|
|
12
12
|
list: () => Promise<import("axios").AxiosResponse<{
|
|
13
13
|
orderSources: OrderSource[];
|
|
14
14
|
}, any>>;
|
|
15
|
+
/**
|
|
16
|
+
* The `listConnections` method retrieves the list of available order sources to be connected with.
|
|
17
|
+
*/
|
|
18
|
+
listConnections: () => Promise<import("axios").AxiosResponse<{
|
|
19
|
+
connectableOrderSources: OrderSourceConnection[];
|
|
20
|
+
}, any>>;
|
|
15
21
|
/**
|
|
16
22
|
* The `get` method retrieves a specific order source by `orderSourceId`.
|
|
17
23
|
*/
|
package/order-sources/types.d.ts
CHANGED
package/package.json
CHANGED
package/shipments/types.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export type DangerousGoodsPackagingInstructionSection = "section_1" | "section_2
|
|
|
73
73
|
export type DangerousGoodsRegulationLevel = "lightly_regulated" | "fully_regulated" | "limited_quantities" | "excepted_quantity";
|
|
74
74
|
export type DangerousGoodsTransportMean = "ground" | "water" | "cargo_aircraft_only" | "passenger_aircraft";
|
|
75
75
|
export declare enum InsuranceProviderType {
|
|
76
|
+
FUNDING_SOURCE = "funding_source",
|
|
76
77
|
SHIPSURANCE = "shipsurance",
|
|
77
78
|
CARRIER = "carrier",
|
|
78
79
|
THIRD_PARTY = "third_party",
|
|
@@ -197,7 +198,7 @@ export interface Shipment {
|
|
|
197
198
|
shipperRelease?: boolean;
|
|
198
199
|
thirdPartyConsignee?: boolean;
|
|
199
200
|
useUpsGroundFreightPricing?: boolean;
|
|
200
|
-
windsorFrameworkDetails
|
|
201
|
+
windsorFrameworkDetails?: WindsorFrameworkDetails;
|
|
201
202
|
};
|
|
202
203
|
carrierId: string;
|
|
203
204
|
comparisonRateType?: string;
|