@virusis/api-client 0.1.7 → 0.1.8

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.
@@ -5121,6 +5121,10 @@ export interface ITrialAuthClient extends IEntity {
5121
5121
  * @return OK
5122
5122
  */
5123
5123
  me(signal?: AbortSignal): Promise<any>;
5124
+ /**
5125
+ * @return OK
5126
+ */
5127
+ refresh(signal?: AbortSignal): Promise<any>;
5124
5128
  /**
5125
5129
  * @return OK
5126
5130
  */
@@ -5144,6 +5148,11 @@ export declare class TrialAuthClient extends BaseApiClient implements ITrialAuth
5144
5148
  */
5145
5149
  me(signal?: AbortSignal): Promise<any>;
5146
5150
  protected processMe(response: Response): Promise<any>;
5151
+ /**
5152
+ * @return OK
5153
+ */
5154
+ refresh(signal?: AbortSignal): Promise<any>;
5155
+ protected processRefresh(response: Response): Promise<any>;
5147
5156
  /**
5148
5157
  * @return OK
5149
5158
  */
@@ -18348,6 +18348,41 @@ export class TrialAuthClient extends BaseApiClient {
18348
18348
  }
18349
18349
  return Promise.resolve(null);
18350
18350
  }
18351
+ /**
18352
+ * @return OK
18353
+ */
18354
+ refresh(signal) {
18355
+ let url_ = this.baseUrl + "/api/TrialAuth/Refresh";
18356
+ url_ = url_.replace(/[?&]$/, "");
18357
+ let options_ = {
18358
+ method: "POST",
18359
+ signal,
18360
+ headers: {}
18361
+ };
18362
+ return this.http.fetch(url_, options_).then((_response) => {
18363
+ return this.processRefresh(_response);
18364
+ });
18365
+ }
18366
+ processRefresh(response) {
18367
+ const status = response.status;
18368
+ let _headers = {};
18369
+ if (response.headers && response.headers.forEach) {
18370
+ response.headers.forEach((v, k) => _headers[k] = v);
18371
+ }
18372
+ ;
18373
+ if (status === 200) {
18374
+ return response.text().then((_responseText) => {
18375
+ const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18376
+ return result200;
18377
+ });
18378
+ }
18379
+ else if (status !== 200 && status !== 204) {
18380
+ return response.text().then((_responseText) => {
18381
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18382
+ });
18383
+ }
18384
+ return Promise.resolve(null);
18385
+ }
18351
18386
  /**
18352
18387
  * @return OK
18353
18388
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virusis/api-client",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",