@imposium-hub/components 1.33.1 → 1.33.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imposium-hub/components",
3
- "version": "1.33.1",
3
+ "version": "1.33.2",
4
4
  "description": "React & Typescript component / asset library for Imposium front-ends",
5
5
  "main": "dist/components.js",
6
6
  "scripts": {
package/services/API.ts CHANGED
@@ -1096,14 +1096,20 @@ export default class API {
1096
1096
  });
1097
1097
  }
1098
1098
 
1099
- public redirectToBillingPortal = (orgId : string) : void => {
1099
+ public getRedirectToBillingPortal = (orgId : string) : Promise<any> => {
1100
1100
 
1101
- window.location.replace(`/account/${orgId}/billing-portal`);
1101
+ return this.doRequest({
1102
+ url: `/account/${orgId}/billing-portal`,
1103
+ method: 'GET'
1104
+ });
1102
1105
  }
1103
1106
 
1104
- public renewPlan = (orgId : string) : void => {
1107
+ public getRedirectToRenew = (orgId : string) : Promise<any> => {
1105
1108
 
1106
- window.location.replace(`/account/${orgId}/renew`);
1109
+ return this.doRequest({
1110
+ url: `/account/${orgId}/renew`,
1111
+ method: 'GET'
1112
+ });
1107
1113
  }
1108
1114
 
1109
1115
  public getAPIUsageOverview = (startDate? : number, endDate? : number) : Promise<any> => {