@virusis/api-client 0.1.14 → 0.1.16

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.
@@ -1187,6 +1187,16 @@ export declare class MenusClient extends BaseApiClient implements IMenusClient {
1187
1187
  protected processGetFiltersBase(response: Response): Promise<MenuForTableDtoListResultFilterIDataResult>;
1188
1188
  }
1189
1189
  export interface INotificationsClient extends IEntity {
1190
+ /**
1191
+ * @param body (optional)
1192
+ * @return OK
1193
+ */
1194
+ trialMarkAsRead(body?: TrialNotificationMutationRequest | undefined, signal?: AbortSignal): Promise<any>;
1195
+ /**
1196
+ * @param body (optional)
1197
+ * @return OK
1198
+ */
1199
+ trialDelete(body?: TrialNotificationMutationRequest | undefined, signal?: AbortSignal): Promise<any>;
1190
1200
  /**
1191
1201
  * @param body (optional)
1192
1202
  * @return OK
@@ -1240,6 +1250,18 @@ export declare class NotificationsClient extends BaseApiClient implements INotif
1240
1250
  constructor(configuration: ApiClientConfig, baseUrl?: string, http?: {
1241
1251
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1242
1252
  });
1253
+ /**
1254
+ * @param body (optional)
1255
+ * @return OK
1256
+ */
1257
+ trialMarkAsRead(body?: TrialNotificationMutationRequest | undefined, signal?: AbortSignal): Promise<any>;
1258
+ protected processTrialMarkAsRead(response: Response): Promise<any>;
1259
+ /**
1260
+ * @param body (optional)
1261
+ * @return OK
1262
+ */
1263
+ trialDelete(body?: TrialNotificationMutationRequest | undefined, signal?: AbortSignal): Promise<any>;
1264
+ protected processTrialDelete(response: Response): Promise<any>;
1243
1265
  /**
1244
1266
  * @param body (optional)
1245
1267
  * @return OK
@@ -3470,6 +3492,11 @@ export interface IScanDatasClient extends IEntity {
3470
3492
  * @return OK
3471
3493
  */
3472
3494
  getScanDataForAlgorithmAnalysisDtoByGuid(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanDataForAlgorithmAnalysisDtoIDataResult>;
3495
+ /**
3496
+ * @param scanGuid (optional)
3497
+ * @return OK
3498
+ */
3499
+ getScanDataForAlgorithmAnalysisDtoByGuidInternal(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanDataForAlgorithmAnalysisDtoIDataResult>;
3473
3500
  /**
3474
3501
  * @param scanGuid (optional)
3475
3502
  * @return OK
@@ -3577,6 +3604,12 @@ export declare class ScanDatasClient extends BaseApiClient implements IScanDatas
3577
3604
  */
3578
3605
  getScanDataForAlgorithmAnalysisDtoByGuid(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanDataForAlgorithmAnalysisDtoIDataResult>;
3579
3606
  protected processGetScanDataForAlgorithmAnalysisDtoByGuid(response: Response): Promise<ScanDataForAlgorithmAnalysisDtoIDataResult>;
3607
+ /**
3608
+ * @param scanGuid (optional)
3609
+ * @return OK
3610
+ */
3611
+ getScanDataForAlgorithmAnalysisDtoByGuidInternal(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanDataForAlgorithmAnalysisDtoIDataResult>;
3612
+ protected processGetScanDataForAlgorithmAnalysisDtoByGuidInternal(response: Response): Promise<ScanDataForAlgorithmAnalysisDtoIDataResult>;
3580
3613
  /**
3581
3614
  * @param scanGuid (optional)
3582
3615
  * @return OK
@@ -4313,6 +4346,10 @@ export interface IScansClient extends IEntity {
4313
4346
  * @return OK
4314
4347
  */
4315
4348
  getScansByDateRangeUser(start?: Date | undefined, end?: Date | undefined, nickName?: string | undefined, signal?: AbortSignal): Promise<ScanListIDataResult>;
4349
+ /**
4350
+ * @return OK
4351
+ */
4352
+ getUserScanStats(signal?: AbortSignal): Promise<UserScanStatsDtoIDataResult>;
4316
4353
  /**
4317
4354
  * @param guid (optional)
4318
4355
  * @return OK
@@ -4420,6 +4457,11 @@ export declare class ScansClient extends BaseApiClient implements IScansClient {
4420
4457
  */
4421
4458
  getScansByDateRangeUser(start?: Date | undefined, end?: Date | undefined, nickName?: string | undefined, signal?: AbortSignal): Promise<ScanListIDataResult>;
4422
4459
  protected processGetScansByDateRangeUser(response: Response): Promise<ScanListIDataResult>;
4460
+ /**
4461
+ * @return OK
4462
+ */
4463
+ getUserScanStats(signal?: AbortSignal): Promise<UserScanStatsDtoIDataResult>;
4464
+ protected processGetUserScanStats(response: Response): Promise<UserScanStatsDtoIDataResult>;
4423
4465
  /**
4424
4466
  * @param guid (optional)
4425
4467
  * @return OK
@@ -8694,6 +8736,7 @@ export interface NotificationForTableDto extends IDto {
8694
8736
  deviceHash?: string | undefined;
8695
8737
  updateTime?: Date | undefined;
8696
8738
  satatus?: boolean | undefined;
8739
+ eventFingerprint?: string | undefined;
8697
8740
  }
8698
8741
  export interface NotificationForTableDtoListIDataResult extends IEntity {
8699
8742
  readonly success?: boolean;
@@ -11964,6 +12007,10 @@ export interface TrialAnonFinalizeDto extends IDto {
11964
12007
  code?: string | undefined;
11965
12008
  state?: string | undefined;
11966
12009
  }
12010
+ export interface TrialNotificationMutationRequest extends IEntity {
12011
+ notificationId?: number;
12012
+ deviceHash?: string | undefined;
12013
+ }
11967
12014
  export interface TrialUser extends IEntity {
11968
12015
  id?: number;
11969
12016
  baseUserId?: number;
@@ -12462,6 +12509,20 @@ export interface UserOperationClaimListIDataResult extends IEntity {
12462
12509
  readonly message?: string | undefined;
12463
12510
  readonly data?: UserOperationClaim[] | undefined;
12464
12511
  }
12512
+ export interface UserScanStatsDto extends IDto {
12513
+ totalScans?: number;
12514
+ completedScans?: number;
12515
+ completedWithWarningsScans?: number;
12516
+ failedScans?: number;
12517
+ cancelledScans?: number;
12518
+ queuedScans?: number;
12519
+ runningScans?: number;
12520
+ }
12521
+ export interface UserScanStatsDtoIDataResult extends IEntity {
12522
+ readonly success?: boolean;
12523
+ readonly message?: string | undefined;
12524
+ data?: UserScanStatsDto;
12525
+ }
12465
12526
  export interface WorkerEngineResultDto extends IDto {
12466
12527
  scanApiId?: number;
12467
12528
  engineName?: string | undefined;
@@ -12479,10 +12540,12 @@ export interface WorkerScanCompletedPayload extends IEntity {
12479
12540
  targetMd5?: string | undefined;
12480
12541
  scanType?: string | undefined;
12481
12542
  userId?: number | undefined;
12543
+ deviceHash?: string | undefined;
12482
12544
  results?: WorkerEngineResultDto[] | undefined;
12483
12545
  basicScore?: number | undefined;
12484
12546
  basicGrade?: string | undefined;
12485
12547
  detectionCount?: number | undefined;
12548
+ scanMode?: string | undefined;
12486
12549
  }
12487
12550
  export interface WorkerSingleEngineResultPayload extends IEntity {
12488
12551
  scanGuid?: string | undefined;
@@ -12492,6 +12555,7 @@ export interface WorkerSingleEngineResultPayload extends IEntity {
12492
12555
  targetMd5?: string | undefined;
12493
12556
  scanType?: string | undefined;
12494
12557
  userId?: number | undefined;
12558
+ scanMode?: string | undefined;
12495
12559
  result?: WorkerEngineResultDto;
12496
12560
  }
12497
12561
  export interface FileParameter extends IEntity {
@@ -4228,6 +4228,86 @@ export class NotificationsClient extends BaseApiClient {
4228
4228
  this.http = http ? http : { fetch: buildAuthFetch(configuration) };
4229
4229
  this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
4230
4230
  }
4231
+ /**
4232
+ * @param body (optional)
4233
+ * @return OK
4234
+ */
4235
+ trialMarkAsRead(body, signal) {
4236
+ let url_ = this.baseUrl + "/api/Notifications/TrialMarkAsRead";
4237
+ url_ = url_.replace(/[?&]$/, "");
4238
+ const content_ = JSON.stringify(body);
4239
+ let options_ = {
4240
+ body: content_,
4241
+ method: "POST",
4242
+ signal,
4243
+ headers: {
4244
+ "Content-Type": "application/json",
4245
+ }
4246
+ };
4247
+ return this.http.fetch(url_, options_).then((_response) => {
4248
+ return this.processTrialMarkAsRead(_response);
4249
+ });
4250
+ }
4251
+ processTrialMarkAsRead(response) {
4252
+ const status = response.status;
4253
+ let _headers = {};
4254
+ if (response.headers && response.headers.forEach) {
4255
+ response.headers.forEach((v, k) => _headers[k] = v);
4256
+ }
4257
+ ;
4258
+ if (status === 200) {
4259
+ return response.text().then((_responseText) => {
4260
+ const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4261
+ return result200;
4262
+ });
4263
+ }
4264
+ else if (status !== 200 && status !== 204) {
4265
+ return response.text().then((_responseText) => {
4266
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4267
+ });
4268
+ }
4269
+ return Promise.resolve(null);
4270
+ }
4271
+ /**
4272
+ * @param body (optional)
4273
+ * @return OK
4274
+ */
4275
+ trialDelete(body, signal) {
4276
+ let url_ = this.baseUrl + "/api/Notifications/TrialDelete";
4277
+ url_ = url_.replace(/[?&]$/, "");
4278
+ const content_ = JSON.stringify(body);
4279
+ let options_ = {
4280
+ body: content_,
4281
+ method: "POST",
4282
+ signal,
4283
+ headers: {
4284
+ "Content-Type": "application/json",
4285
+ }
4286
+ };
4287
+ return this.http.fetch(url_, options_).then((_response) => {
4288
+ return this.processTrialDelete(_response);
4289
+ });
4290
+ }
4291
+ processTrialDelete(response) {
4292
+ const status = response.status;
4293
+ let _headers = {};
4294
+ if (response.headers && response.headers.forEach) {
4295
+ response.headers.forEach((v, k) => _headers[k] = v);
4296
+ }
4297
+ ;
4298
+ if (status === 200) {
4299
+ return response.text().then((_responseText) => {
4300
+ const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4301
+ return result200;
4302
+ });
4303
+ }
4304
+ else if (status !== 200 && status !== 204) {
4305
+ return response.text().then((_responseText) => {
4306
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4307
+ });
4308
+ }
4309
+ return Promise.resolve(null);
4310
+ }
4231
4311
  /**
4232
4312
  * @param body (optional)
4233
4313
  * @return OK
@@ -12455,6 +12535,49 @@ export class ScanDatasClient extends BaseApiClient {
12455
12535
  }
12456
12536
  return Promise.resolve(null);
12457
12537
  }
12538
+ /**
12539
+ * @param scanGuid (optional)
12540
+ * @return OK
12541
+ */
12542
+ getScanDataForAlgorithmAnalysisDtoByGuidInternal(scanGuid, signal) {
12543
+ let url_ = this.baseUrl + "/api/ScanDatas/GetScanDataForAlgorithmAnalysisDtoByGuidInternal?";
12544
+ if (scanGuid === null)
12545
+ throw new globalThis.Error("The parameter 'scanGuid' cannot be null.");
12546
+ else if (scanGuid !== undefined)
12547
+ url_ += "scanGuid=" + encodeURIComponent("" + scanGuid) + "&";
12548
+ url_ = url_.replace(/[?&]$/, "");
12549
+ let options_ = {
12550
+ method: "GET",
12551
+ signal,
12552
+ headers: {
12553
+ "Accept": "application/json"
12554
+ }
12555
+ };
12556
+ return this.http.fetch(url_, options_).then((_response) => {
12557
+ return this.processGetScanDataForAlgorithmAnalysisDtoByGuidInternal(_response);
12558
+ });
12559
+ }
12560
+ processGetScanDataForAlgorithmAnalysisDtoByGuidInternal(response) {
12561
+ const status = response.status;
12562
+ let _headers = {};
12563
+ if (response.headers && response.headers.forEach) {
12564
+ response.headers.forEach((v, k) => _headers[k] = v);
12565
+ }
12566
+ ;
12567
+ if (status === 200) {
12568
+ return response.text().then((_responseText) => {
12569
+ let result200 = null;
12570
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12571
+ return result200;
12572
+ });
12573
+ }
12574
+ else if (status !== 200 && status !== 204) {
12575
+ return response.text().then((_responseText) => {
12576
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12577
+ });
12578
+ }
12579
+ return Promise.resolve(null);
12580
+ }
12458
12581
  /**
12459
12582
  * @param scanGuid (optional)
12460
12583
  * @return OK
@@ -15558,6 +15681,44 @@ export class ScansClient extends BaseApiClient {
15558
15681
  }
15559
15682
  return Promise.resolve(null);
15560
15683
  }
15684
+ /**
15685
+ * @return OK
15686
+ */
15687
+ getUserScanStats(signal) {
15688
+ let url_ = this.baseUrl + "/api/Scans/GetUserScanStats";
15689
+ url_ = url_.replace(/[?&]$/, "");
15690
+ let options_ = {
15691
+ method: "GET",
15692
+ signal,
15693
+ headers: {
15694
+ "Accept": "application/json"
15695
+ }
15696
+ };
15697
+ return this.http.fetch(url_, options_).then((_response) => {
15698
+ return this.processGetUserScanStats(_response);
15699
+ });
15700
+ }
15701
+ processGetUserScanStats(response) {
15702
+ const status = response.status;
15703
+ let _headers = {};
15704
+ if (response.headers && response.headers.forEach) {
15705
+ response.headers.forEach((v, k) => _headers[k] = v);
15706
+ }
15707
+ ;
15708
+ if (status === 200) {
15709
+ return response.text().then((_responseText) => {
15710
+ let result200 = null;
15711
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15712
+ return result200;
15713
+ });
15714
+ }
15715
+ else if (status !== 200 && status !== 204) {
15716
+ return response.text().then((_responseText) => {
15717
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15718
+ });
15719
+ }
15720
+ return Promise.resolve(null);
15721
+ }
15561
15722
  /**
15562
15723
  * @param guid (optional)
15563
15724
  * @return OK
@@ -597,6 +597,7 @@ export * from "./threat-rule-version-i-data-result.js";
597
597
  export * from "./threat-rule-version-list-i-data-result.js";
598
598
  export * from "./trial-anon-auth-link-dto.js";
599
599
  export * from "./trial-anon-finalize-dto.js";
600
+ export * from "./trial-notification-mutation-request.js";
600
601
  export * from "./trial-user.js";
601
602
  export * from "./trial-user-for-table-dto.js";
602
603
  export * from "./trial-user-for-table-dto-list-i-data-result.js";
@@ -648,6 +649,8 @@ export * from "./user-operation-claim-for-table-filter.js";
648
649
  export * from "./user-operation-claim-for-table-filter-data-table-query.js";
649
650
  export * from "./user-operation-claim-i-data-result.js";
650
651
  export * from "./user-operation-claim-list-i-data-result.js";
652
+ export * from "./user-scan-stats-dto.js";
653
+ export * from "./user-scan-stats-dto-i-data-result.js";
651
654
  export * from "./worker-engine-result-dto.js";
652
655
  export * from "./worker-scan-completed-payload.js";
653
656
  export * from "./worker-single-engine-result-payload.js";
@@ -597,6 +597,7 @@ export * from "./threat-rule-version-i-data-result.js";
597
597
  export * from "./threat-rule-version-list-i-data-result.js";
598
598
  export * from "./trial-anon-auth-link-dto.js";
599
599
  export * from "./trial-anon-finalize-dto.js";
600
+ export * from "./trial-notification-mutation-request.js";
600
601
  export * from "./trial-user.js";
601
602
  export * from "./trial-user-for-table-dto.js";
602
603
  export * from "./trial-user-for-table-dto-list-i-data-result.js";
@@ -648,6 +649,8 @@ export * from "./user-operation-claim-for-table-filter.js";
648
649
  export * from "./user-operation-claim-for-table-filter-data-table-query.js";
649
650
  export * from "./user-operation-claim-i-data-result.js";
650
651
  export * from "./user-operation-claim-list-i-data-result.js";
652
+ export * from "./user-scan-stats-dto.js";
653
+ export * from "./user-scan-stats-dto-i-data-result.js";
651
654
  export * from "./worker-engine-result-dto.js";
652
655
  export * from "./worker-scan-completed-payload.js";
653
656
  export * from "./worker-single-engine-result-payload.js";
@@ -0,0 +1,4 @@
1
+ import type { TrialNotificationMutationRequest as __TrialNotificationMutationRequest } from "../index.js";
2
+ export declare const TrialNotificationMutationRequest: __TrialNotificationMutationRequest;
3
+ export type TrialNotificationMutationRequest = __TrialNotificationMutationRequest;
4
+ export type trialNotificationMutationRequest = __TrialNotificationMutationRequest;
@@ -0,0 +1 @@
1
+ export const TrialNotificationMutationRequest = {};
@@ -0,0 +1,4 @@
1
+ import type { UserScanStatsDtoIDataResult as __UserScanStatsDtoIDataResult } from "../index.js";
2
+ export declare const UserScanStatsDtoIDataResult: __UserScanStatsDtoIDataResult;
3
+ export type UserScanStatsDtoIDataResult = __UserScanStatsDtoIDataResult;
4
+ export type userScanStatsDtoIDataResult = __UserScanStatsDtoIDataResult;
@@ -0,0 +1 @@
1
+ export const UserScanStatsDtoIDataResult = {};
@@ -0,0 +1,4 @@
1
+ import type { UserScanStatsDto as __UserScanStatsDto } from "../index.js";
2
+ export declare const UserScanStatsDto: __UserScanStatsDto;
3
+ export type UserScanStatsDto = __UserScanStatsDto;
4
+ export type userScanStatsDto = __UserScanStatsDto;
@@ -0,0 +1 @@
1
+ export const UserScanStatsDto = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virusis/api-client",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",