@shipengine/js-api 4.18.5 → 4.18.6-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-addons/api.d.ts +6 -2
- package/account-addons/types.d.ts +2 -2
- package/index.js +6 -0
- package/index.mjs +6 -0
- package/package.json +1 -1
package/account-addons/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { Addon,
|
|
2
|
+
import { Addon, AddonCodes } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* # Account Addons API module - /v1/account/addons
|
|
5
5
|
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6364332064/Add-ons+New+endpoints+definition
|
|
@@ -17,5 +17,9 @@ export declare class AccountAddonsAPI {
|
|
|
17
17
|
/**
|
|
18
18
|
* The `enable` method allows to enable an AddOn for the current user
|
|
19
19
|
*/
|
|
20
|
-
enable: (addonCode:
|
|
20
|
+
enable: (addonCode: AddonCodes) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
21
|
+
/**
|
|
22
|
+
* The `disable` method allows to disable an AddOn for the current user
|
|
23
|
+
*/
|
|
24
|
+
disable: (addonCode: AddonCodes) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
21
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type AddonCodes = "ss_api_analytics";
|
|
2
2
|
export type Addon = {
|
|
3
3
|
/** Addon code, unique reference for it */
|
|
4
|
-
code:
|
|
4
|
+
code: AddonCodes;
|
|
5
5
|
/** Date when the deactivation will take place, will be undefined while the user does not wish to deactivate it */
|
|
6
6
|
deactivationDate?: string;
|
|
7
7
|
/** Flag that indicates if the addon is active for the current Seller */
|
package/index.js
CHANGED
|
@@ -238,6 +238,12 @@ class AccountAddonsAPI {
|
|
|
238
238
|
this.enable = (addonCode) => {
|
|
239
239
|
return this.client.post(`/v1/account/addons/${addonCode}/enable`);
|
|
240
240
|
};
|
|
241
|
+
/**
|
|
242
|
+
* The `disable` method allows to disable an AddOn for the current user
|
|
243
|
+
*/
|
|
244
|
+
this.disable = (addonCode) => {
|
|
245
|
+
return this.client.post(`/v1/account/addons/${addonCode}/disable`);
|
|
246
|
+
};
|
|
241
247
|
this.client = client;
|
|
242
248
|
}
|
|
243
249
|
}
|
package/index.mjs
CHANGED
|
@@ -234,6 +234,12 @@ class AccountAddonsAPI {
|
|
|
234
234
|
this.enable = (addonCode) => {
|
|
235
235
|
return this.client.post(`/v1/account/addons/${addonCode}/enable`);
|
|
236
236
|
};
|
|
237
|
+
/**
|
|
238
|
+
* The `disable` method allows to disable an AddOn for the current user
|
|
239
|
+
*/
|
|
240
|
+
this.disable = (addonCode) => {
|
|
241
|
+
return this.client.post(`/v1/account/addons/${addonCode}/disable`);
|
|
242
|
+
};
|
|
237
243
|
this.client = client;
|
|
238
244
|
}
|
|
239
245
|
}
|