@shipengine/js-api 2.2.0 → 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 +8 -0
- package/index.mjs +8 -0
- package/order-sources/api.d.ts +7 -1
- package/order-sources/types.d.ts +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3669,6 +3669,14 @@ class OrderSourcesAPI {
|
|
|
3669
3669
|
this.list = () => {
|
|
3670
3670
|
return this.client.get("/v-beta/order_sources");
|
|
3671
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
|
+
};
|
|
3672
3680
|
/**
|
|
3673
3681
|
* The `get` method retrieves a specific order source by `orderSourceId`.
|
|
3674
3682
|
*/
|
package/index.mjs
CHANGED
|
@@ -3665,6 +3665,14 @@ class OrderSourcesAPI {
|
|
|
3665
3665
|
this.list = () => {
|
|
3666
3666
|
return this.client.get("/v-beta/order_sources");
|
|
3667
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
|
+
};
|
|
3668
3676
|
/**
|
|
3669
3677
|
* The `get` method retrieves a specific order source by `orderSourceId`.
|
|
3670
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