@virusis/api-client 0.1.3 → 0.1.5

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.
@@ -5084,17 +5084,15 @@ export interface ITrialAuthClient extends IEntity {
5084
5084
  * @param body (optional)
5085
5085
  * @return OK
5086
5086
  */
5087
- login(body?: TrialUserForLoginDto | undefined, signal?: AbortSignal): Promise<any>;
5087
+ trialer(body?: TrialUserForTrialerDto | undefined, signal?: AbortSignal): Promise<any>;
5088
5088
  /**
5089
- * @param body (optional)
5090
5089
  * @return OK
5091
5090
  */
5092
- register(body?: TrialUserForRegisterDto | undefined, signal?: AbortSignal): Promise<any>;
5091
+ me(signal?: AbortSignal): Promise<any>;
5093
5092
  /**
5094
- * @param body (optional)
5095
5093
  * @return OK
5096
5094
  */
5097
- trialer(body?: TrialUserForTrialerDto | undefined, signal?: AbortSignal): Promise<any>;
5095
+ logout(signal?: AbortSignal): Promise<any>;
5098
5096
  }
5099
5097
  export declare class TrialAuthClient extends BaseApiClient implements ITrialAuthClient {
5100
5098
  private http;
@@ -5107,20 +5105,18 @@ export declare class TrialAuthClient extends BaseApiClient implements ITrialAuth
5107
5105
  * @param body (optional)
5108
5106
  * @return OK
5109
5107
  */
5110
- login(body?: TrialUserForLoginDto | undefined, signal?: AbortSignal): Promise<any>;
5111
- protected processLogin(response: Response): Promise<any>;
5108
+ trialer(body?: TrialUserForTrialerDto | undefined, signal?: AbortSignal): Promise<any>;
5109
+ protected processTrialer(response: Response): Promise<any>;
5112
5110
  /**
5113
- * @param body (optional)
5114
5111
  * @return OK
5115
5112
  */
5116
- register(body?: TrialUserForRegisterDto | undefined, signal?: AbortSignal): Promise<any>;
5117
- protected processRegister(response: Response): Promise<any>;
5113
+ me(signal?: AbortSignal): Promise<any>;
5114
+ protected processMe(response: Response): Promise<any>;
5118
5115
  /**
5119
- * @param body (optional)
5120
5116
  * @return OK
5121
5117
  */
5122
- trialer(body?: TrialUserForTrialerDto | undefined, signal?: AbortSignal): Promise<any>;
5123
- protected processTrialer(response: Response): Promise<any>;
5118
+ logout(signal?: AbortSignal): Promise<any>;
5119
+ protected processLogout(response: Response): Promise<any>;
5124
5120
  }
5125
5121
  export interface ITrialUserOperationClaimsClient extends IEntity {
5126
5122
  /**
@@ -9153,18 +9149,6 @@ export interface TrialUser extends IEntity {
9153
9149
  updateTime?: Date | undefined;
9154
9150
  status?: boolean | undefined;
9155
9151
  }
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
9152
  export interface TrialUserForTableDto extends IDto {
9169
9153
  id?: number;
9170
9154
  nickName?: string | undefined;
@@ -9208,8 +9192,11 @@ export interface TrialUserForTableFilterDataTableQuery extends IFilter {
9208
9192
  take?: number;
9209
9193
  }
9210
9194
  export interface TrialUserForTrialerDto extends IDto {
9211
- trialUserForLoginDto?: TrialUserForLoginDto;
9212
- trialUserForRegisterDto?: TrialUserForRegisterDto;
9195
+ trackingId?: string;
9196
+ viewKey?: string;
9197
+ nickName?: string | undefined;
9198
+ email?: string | undefined;
9199
+ deviceInfo?: DeviceInfoDto;
9213
9200
  }
9214
9201
  export interface TrialUserIDataResult extends IEntity {
9215
9202
  readonly success?: boolean;
@@ -18189,8 +18189,8 @@ export class TrialAuthClient extends BaseApiClient {
18189
18189
  * @param body (optional)
18190
18190
  * @return OK
18191
18191
  */
18192
- login(body, signal) {
18193
- let url_ = this.baseUrl + "/api/TrialAuth/Login";
18192
+ trialer(body, signal) {
18193
+ let url_ = this.baseUrl + "/api/TrialAuth/Trialer";
18194
18194
  url_ = url_.replace(/[?&]$/, "");
18195
18195
  const content_ = JSON.stringify(body);
18196
18196
  let options_ = {
@@ -18202,10 +18202,10 @@ export class TrialAuthClient extends BaseApiClient {
18202
18202
  }
18203
18203
  };
18204
18204
  return this.http.fetch(url_, options_).then((_response) => {
18205
- return this.processLogin(_response);
18205
+ return this.processTrialer(_response);
18206
18206
  });
18207
18207
  }
18208
- processLogin(response) {
18208
+ processTrialer(response) {
18209
18209
  const status = response.status;
18210
18210
  let _headers = {};
18211
18211
  if (response.headers && response.headers.forEach) {
@@ -18226,26 +18226,21 @@ export class TrialAuthClient extends BaseApiClient {
18226
18226
  return Promise.resolve(null);
18227
18227
  }
18228
18228
  /**
18229
- * @param body (optional)
18230
18229
  * @return OK
18231
18230
  */
18232
- register(body, signal) {
18233
- let url_ = this.baseUrl + "/api/TrialAuth/Register";
18231
+ me(signal) {
18232
+ let url_ = this.baseUrl + "/api/TrialAuth/Me";
18234
18233
  url_ = url_.replace(/[?&]$/, "");
18235
- const content_ = JSON.stringify(body);
18236
18234
  let options_ = {
18237
- body: content_,
18238
- method: "POST",
18235
+ method: "GET",
18239
18236
  signal,
18240
- headers: {
18241
- "Content-Type": "application/json",
18242
- }
18237
+ headers: {}
18243
18238
  };
18244
18239
  return this.http.fetch(url_, options_).then((_response) => {
18245
- return this.processRegister(_response);
18240
+ return this.processMe(_response);
18246
18241
  });
18247
18242
  }
18248
- processRegister(response) {
18243
+ processMe(response) {
18249
18244
  const status = response.status;
18250
18245
  let _headers = {};
18251
18246
  if (response.headers && response.headers.forEach) {
@@ -18266,26 +18261,21 @@ export class TrialAuthClient extends BaseApiClient {
18266
18261
  return Promise.resolve(null);
18267
18262
  }
18268
18263
  /**
18269
- * @param body (optional)
18270
18264
  * @return OK
18271
18265
  */
18272
- trialer(body, signal) {
18273
- let url_ = this.baseUrl + "/api/TrialAuth/Trialer";
18266
+ logout(signal) {
18267
+ let url_ = this.baseUrl + "/api/TrialAuth/Logout";
18274
18268
  url_ = url_.replace(/[?&]$/, "");
18275
- const content_ = JSON.stringify(body);
18276
18269
  let options_ = {
18277
- body: content_,
18278
18270
  method: "POST",
18279
18271
  signal,
18280
- headers: {
18281
- "Content-Type": "application/json",
18282
- }
18272
+ headers: {}
18283
18273
  };
18284
18274
  return this.http.fetch(url_, options_).then((_response) => {
18285
- return this.processTrialer(_response);
18275
+ return this.processLogout(_response);
18286
18276
  });
18287
18277
  }
18288
- processTrialer(response) {
18278
+ processLogout(response) {
18289
18279
  const status = response.status;
18290
18280
  let _headers = {};
18291
18281
  if (response.headers && response.headers.forEach) {
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virusis/api-client",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",