@shipengine/js-api 4.19.0 → 4.19.1-next.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/account-features/api.d.ts +6 -1
- package/account-features/types.d.ts +9 -0
- package/index.js +7 -0
- package/index.mjs +7 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { Feature } from "./types";
|
|
2
|
+
import { Feature, FeatureRequest } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* # Account Features API module - /v1/account/features
|
|
5
5
|
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6364332064/Add-ons+New+endpoints+definition
|
|
@@ -14,4 +14,9 @@ export declare class AccountFeaturesAPI {
|
|
|
14
14
|
list: () => Promise<import("axios").AxiosResponse<{
|
|
15
15
|
features: Feature[];
|
|
16
16
|
}, any>>;
|
|
17
|
+
/**
|
|
18
|
+
* The `request` method allows a Seller (usually under Enterprise plan) to request
|
|
19
|
+
* the activation of a Feature
|
|
20
|
+
*/
|
|
21
|
+
request: (request: FeatureRequest) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
17
22
|
}
|
|
@@ -11,3 +11,12 @@ export type Feature = {
|
|
|
11
11
|
isAvailableToConnect: boolean;
|
|
12
12
|
name: string;
|
|
13
13
|
};
|
|
14
|
+
export type FeatureRequest = {
|
|
15
|
+
additionalComments?: string;
|
|
16
|
+
featureId: FeatureId;
|
|
17
|
+
requesterInfo: {
|
|
18
|
+
contactEmail: string;
|
|
19
|
+
contactPhoneNumber: string;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
package/index.js
CHANGED
|
@@ -258,6 +258,13 @@ class AccountFeaturesAPI {
|
|
|
258
258
|
this.list = () => {
|
|
259
259
|
return this.client.get("/v1/account/features");
|
|
260
260
|
};
|
|
261
|
+
/**
|
|
262
|
+
* The `request` method allows a Seller (usually under Enterprise plan) to request
|
|
263
|
+
* the activation of a Feature
|
|
264
|
+
*/
|
|
265
|
+
this.request = (request) => {
|
|
266
|
+
return this.client.post("/v1/account/features/request", request);
|
|
267
|
+
};
|
|
261
268
|
this.client = client;
|
|
262
269
|
}
|
|
263
270
|
}
|
package/index.mjs
CHANGED
|
@@ -254,6 +254,13 @@ class AccountFeaturesAPI {
|
|
|
254
254
|
this.list = () => {
|
|
255
255
|
return this.client.get("/v1/account/features");
|
|
256
256
|
};
|
|
257
|
+
/**
|
|
258
|
+
* The `request` method allows a Seller (usually under Enterprise plan) to request
|
|
259
|
+
* the activation of a Feature
|
|
260
|
+
*/
|
|
261
|
+
this.request = (request) => {
|
|
262
|
+
return this.client.post("/v1/account/features/request", request);
|
|
263
|
+
};
|
|
257
264
|
this.client = client;
|
|
258
265
|
}
|
|
259
266
|
}
|