@virusis/api-client 0.1.6 → 0.1.7
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/dist/generated/index.d.ts +9 -0
- package/dist/generated/index.js +35 -0
- package/package.json +1 -1
|
@@ -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
|
+
logout(signal?: AbortSignal): Promise<any>;
|
|
5124
5128
|
}
|
|
5125
5129
|
export declare class TrialAuthClient extends BaseApiClient implements ITrialAuthClient {
|
|
5126
5130
|
private http;
|
|
@@ -5140,6 +5144,11 @@ export declare class TrialAuthClient extends BaseApiClient implements ITrialAuth
|
|
|
5140
5144
|
*/
|
|
5141
5145
|
me(signal?: AbortSignal): Promise<any>;
|
|
5142
5146
|
protected processMe(response: Response): Promise<any>;
|
|
5147
|
+
/**
|
|
5148
|
+
* @return OK
|
|
5149
|
+
*/
|
|
5150
|
+
logout(signal?: AbortSignal): Promise<any>;
|
|
5151
|
+
protected processLogout(response: Response): Promise<any>;
|
|
5143
5152
|
}
|
|
5144
5153
|
export interface ITrialUserOperationClaimsClient extends IEntity {
|
|
5145
5154
|
/**
|
package/dist/generated/index.js
CHANGED
|
@@ -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
|
+
logout(signal) {
|
|
18355
|
+
let url_ = this.baseUrl + "/api/TrialAuth/Logout";
|
|
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.processLogout(_response);
|
|
18364
|
+
});
|
|
18365
|
+
}
|
|
18366
|
+
processLogout(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
|
export class TrialUserOperationClaimsClient extends BaseApiClient {
|
|
18353
18388
|
constructor(configuration, baseUrl, http) {
|