@virusis/api-client 0.1.3 → 0.1.4
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.
|
@@ -5080,16 +5080,6 @@ export declare class ThreatRuleVersionsClient extends BaseApiClient implements I
|
|
|
5080
5080
|
protected processGetFiltersBase(response: Response): Promise<ThreatRuleVersionForTableDtoListResultFilterIDataResult>;
|
|
5081
5081
|
}
|
|
5082
5082
|
export interface ITrialAuthClient extends IEntity {
|
|
5083
|
-
/**
|
|
5084
|
-
* @param body (optional)
|
|
5085
|
-
* @return OK
|
|
5086
|
-
*/
|
|
5087
|
-
login(body?: TrialUserForLoginDto | undefined, signal?: AbortSignal): Promise<any>;
|
|
5088
|
-
/**
|
|
5089
|
-
* @param body (optional)
|
|
5090
|
-
* @return OK
|
|
5091
|
-
*/
|
|
5092
|
-
register(body?: TrialUserForRegisterDto | undefined, signal?: AbortSignal): Promise<any>;
|
|
5093
5083
|
/**
|
|
5094
5084
|
* @param body (optional)
|
|
5095
5085
|
* @return OK
|
|
@@ -5103,18 +5093,6 @@ export declare class TrialAuthClient extends BaseApiClient implements ITrialAuth
|
|
|
5103
5093
|
constructor(configuration: ApiClientConfig, baseUrl?: string, http?: {
|
|
5104
5094
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
5105
5095
|
});
|
|
5106
|
-
/**
|
|
5107
|
-
* @param body (optional)
|
|
5108
|
-
* @return OK
|
|
5109
|
-
*/
|
|
5110
|
-
login(body?: TrialUserForLoginDto | undefined, signal?: AbortSignal): Promise<any>;
|
|
5111
|
-
protected processLogin(response: Response): Promise<any>;
|
|
5112
|
-
/**
|
|
5113
|
-
* @param body (optional)
|
|
5114
|
-
* @return OK
|
|
5115
|
-
*/
|
|
5116
|
-
register(body?: TrialUserForRegisterDto | undefined, signal?: AbortSignal): Promise<any>;
|
|
5117
|
-
protected processRegister(response: Response): Promise<any>;
|
|
5118
5096
|
/**
|
|
5119
5097
|
* @param body (optional)
|
|
5120
5098
|
* @return OK
|
|
@@ -9153,18 +9131,6 @@ export interface TrialUser extends IEntity {
|
|
|
9153
9131
|
updateTime?: Date | undefined;
|
|
9154
9132
|
status?: boolean | undefined;
|
|
9155
9133
|
}
|
|
9156
|
-
export interface TrialUserForLoginDto extends IDto {
|
|
9157
|
-
email?: string | undefined;
|
|
9158
|
-
password?: string | undefined;
|
|
9159
|
-
deviceInfo?: DeviceInfoDto;
|
|
9160
|
-
}
|
|
9161
|
-
export interface TrialUserForRegisterDto extends IDto {
|
|
9162
|
-
email?: string | undefined;
|
|
9163
|
-
password?: string | undefined;
|
|
9164
|
-
nickName?: string | undefined;
|
|
9165
|
-
trackingId?: string;
|
|
9166
|
-
deviceInfo?: DeviceInfoDto;
|
|
9167
|
-
}
|
|
9168
9134
|
export interface TrialUserForTableDto extends IDto {
|
|
9169
9135
|
id?: number;
|
|
9170
9136
|
nickName?: string | undefined;
|
|
@@ -9208,8 +9174,11 @@ export interface TrialUserForTableFilterDataTableQuery extends IFilter {
|
|
|
9208
9174
|
take?: number;
|
|
9209
9175
|
}
|
|
9210
9176
|
export interface TrialUserForTrialerDto extends IDto {
|
|
9211
|
-
|
|
9212
|
-
|
|
9177
|
+
trackingId?: string;
|
|
9178
|
+
viewKey?: string;
|
|
9179
|
+
nickName?: string | undefined;
|
|
9180
|
+
email?: string | undefined;
|
|
9181
|
+
deviceInfo?: DeviceInfoDto;
|
|
9213
9182
|
}
|
|
9214
9183
|
export interface TrialUserIDataResult extends IEntity {
|
|
9215
9184
|
readonly success?: boolean;
|
package/dist/generated/index.js
CHANGED
|
@@ -18185,86 +18185,6 @@ export class TrialAuthClient extends BaseApiClient {
|
|
|
18185
18185
|
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
18186
18186
|
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
18187
18187
|
}
|
|
18188
|
-
/**
|
|
18189
|
-
* @param body (optional)
|
|
18190
|
-
* @return OK
|
|
18191
|
-
*/
|
|
18192
|
-
login(body, signal) {
|
|
18193
|
-
let url_ = this.baseUrl + "/api/TrialAuth/Login";
|
|
18194
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
18195
|
-
const content_ = JSON.stringify(body);
|
|
18196
|
-
let options_ = {
|
|
18197
|
-
body: content_,
|
|
18198
|
-
method: "POST",
|
|
18199
|
-
signal,
|
|
18200
|
-
headers: {
|
|
18201
|
-
"Content-Type": "application/json",
|
|
18202
|
-
}
|
|
18203
|
-
};
|
|
18204
|
-
return this.http.fetch(url_, options_).then((_response) => {
|
|
18205
|
-
return this.processLogin(_response);
|
|
18206
|
-
});
|
|
18207
|
-
}
|
|
18208
|
-
processLogin(response) {
|
|
18209
|
-
const status = response.status;
|
|
18210
|
-
let _headers = {};
|
|
18211
|
-
if (response.headers && response.headers.forEach) {
|
|
18212
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18213
|
-
}
|
|
18214
|
-
;
|
|
18215
|
-
if (status === 200) {
|
|
18216
|
-
return response.text().then((_responseText) => {
|
|
18217
|
-
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18218
|
-
return result200;
|
|
18219
|
-
});
|
|
18220
|
-
}
|
|
18221
|
-
else if (status !== 200 && status !== 204) {
|
|
18222
|
-
return response.text().then((_responseText) => {
|
|
18223
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18224
|
-
});
|
|
18225
|
-
}
|
|
18226
|
-
return Promise.resolve(null);
|
|
18227
|
-
}
|
|
18228
|
-
/**
|
|
18229
|
-
* @param body (optional)
|
|
18230
|
-
* @return OK
|
|
18231
|
-
*/
|
|
18232
|
-
register(body, signal) {
|
|
18233
|
-
let url_ = this.baseUrl + "/api/TrialAuth/Register";
|
|
18234
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
18235
|
-
const content_ = JSON.stringify(body);
|
|
18236
|
-
let options_ = {
|
|
18237
|
-
body: content_,
|
|
18238
|
-
method: "POST",
|
|
18239
|
-
signal,
|
|
18240
|
-
headers: {
|
|
18241
|
-
"Content-Type": "application/json",
|
|
18242
|
-
}
|
|
18243
|
-
};
|
|
18244
|
-
return this.http.fetch(url_, options_).then((_response) => {
|
|
18245
|
-
return this.processRegister(_response);
|
|
18246
|
-
});
|
|
18247
|
-
}
|
|
18248
|
-
processRegister(response) {
|
|
18249
|
-
const status = response.status;
|
|
18250
|
-
let _headers = {};
|
|
18251
|
-
if (response.headers && response.headers.forEach) {
|
|
18252
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18253
|
-
}
|
|
18254
|
-
;
|
|
18255
|
-
if (status === 200) {
|
|
18256
|
-
return response.text().then((_responseText) => {
|
|
18257
|
-
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18258
|
-
return result200;
|
|
18259
|
-
});
|
|
18260
|
-
}
|
|
18261
|
-
else if (status !== 200 && status !== 204) {
|
|
18262
|
-
return response.text().then((_responseText) => {
|
|
18263
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18264
|
-
});
|
|
18265
|
-
}
|
|
18266
|
-
return Promise.resolve(null);
|
|
18267
|
-
}
|
|
18268
18188
|
/**
|
|
18269
18189
|
* @param body (optional)
|
|
18270
18190
|
* @return OK
|
|
@@ -468,8 +468,6 @@ export * from "./threat-rule-version-for-table-filter-data-table-query.js";
|
|
|
468
468
|
export * from "./threat-rule-version-i-data-result.js";
|
|
469
469
|
export * from "./threat-rule-version-list-i-data-result.js";
|
|
470
470
|
export * from "./trial-user.js";
|
|
471
|
-
export * from "./trial-user-for-login-dto.js";
|
|
472
|
-
export * from "./trial-user-for-register-dto.js";
|
|
473
471
|
export * from "./trial-user-for-table-dto.js";
|
|
474
472
|
export * from "./trial-user-for-table-dto-list-i-data-result.js";
|
|
475
473
|
export * from "./trial-user-for-table-dto-list-result-filter.js";
|
|
@@ -468,8 +468,6 @@ export * from "./threat-rule-version-for-table-filter-data-table-query.js";
|
|
|
468
468
|
export * from "./threat-rule-version-i-data-result.js";
|
|
469
469
|
export * from "./threat-rule-version-list-i-data-result.js";
|
|
470
470
|
export * from "./trial-user.js";
|
|
471
|
-
export * from "./trial-user-for-login-dto.js";
|
|
472
|
-
export * from "./trial-user-for-register-dto.js";
|
|
473
471
|
export * from "./trial-user-for-table-dto.js";
|
|
474
472
|
export * from "./trial-user-for-table-dto-list-i-data-result.js";
|
|
475
473
|
export * from "./trial-user-for-table-dto-list-result-filter.js";
|