@virusis/api-client 0.1.15 → 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.
- package/dist/generated/index.d.ts +37 -0
- package/dist/generated/index.js +81 -0
- package/dist/generated/models/index.d.ts +2 -0
- package/dist/generated/models/index.js +2 -0
- package/dist/generated/models/user-scan-stats-dto-i-data-result.d.ts +4 -0
- package/dist/generated/models/user-scan-stats-dto-i-data-result.js +1 -0
- package/dist/generated/models/user-scan-stats-dto.d.ts +4 -0
- package/dist/generated/models/user-scan-stats-dto.js +1 -0
- package/package.json +1 -1
|
@@ -3492,6 +3492,11 @@ export interface IScanDatasClient extends IEntity {
|
|
|
3492
3492
|
* @return OK
|
|
3493
3493
|
*/
|
|
3494
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>;
|
|
3495
3500
|
/**
|
|
3496
3501
|
* @param scanGuid (optional)
|
|
3497
3502
|
* @return OK
|
|
@@ -3599,6 +3604,12 @@ export declare class ScanDatasClient extends BaseApiClient implements IScanDatas
|
|
|
3599
3604
|
*/
|
|
3600
3605
|
getScanDataForAlgorithmAnalysisDtoByGuid(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanDataForAlgorithmAnalysisDtoIDataResult>;
|
|
3601
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>;
|
|
3602
3613
|
/**
|
|
3603
3614
|
* @param scanGuid (optional)
|
|
3604
3615
|
* @return OK
|
|
@@ -4335,6 +4346,10 @@ export interface IScansClient extends IEntity {
|
|
|
4335
4346
|
* @return OK
|
|
4336
4347
|
*/
|
|
4337
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>;
|
|
4338
4353
|
/**
|
|
4339
4354
|
* @param guid (optional)
|
|
4340
4355
|
* @return OK
|
|
@@ -4442,6 +4457,11 @@ export declare class ScansClient extends BaseApiClient implements IScansClient {
|
|
|
4442
4457
|
*/
|
|
4443
4458
|
getScansByDateRangeUser(start?: Date | undefined, end?: Date | undefined, nickName?: string | undefined, signal?: AbortSignal): Promise<ScanListIDataResult>;
|
|
4444
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>;
|
|
4445
4465
|
/**
|
|
4446
4466
|
* @param guid (optional)
|
|
4447
4467
|
* @return OK
|
|
@@ -12489,6 +12509,20 @@ export interface UserOperationClaimListIDataResult extends IEntity {
|
|
|
12489
12509
|
readonly message?: string | undefined;
|
|
12490
12510
|
readonly data?: UserOperationClaim[] | undefined;
|
|
12491
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
|
+
}
|
|
12492
12526
|
export interface WorkerEngineResultDto extends IDto {
|
|
12493
12527
|
scanApiId?: number;
|
|
12494
12528
|
engineName?: string | undefined;
|
|
@@ -12506,10 +12540,12 @@ export interface WorkerScanCompletedPayload extends IEntity {
|
|
|
12506
12540
|
targetMd5?: string | undefined;
|
|
12507
12541
|
scanType?: string | undefined;
|
|
12508
12542
|
userId?: number | undefined;
|
|
12543
|
+
deviceHash?: string | undefined;
|
|
12509
12544
|
results?: WorkerEngineResultDto[] | undefined;
|
|
12510
12545
|
basicScore?: number | undefined;
|
|
12511
12546
|
basicGrade?: string | undefined;
|
|
12512
12547
|
detectionCount?: number | undefined;
|
|
12548
|
+
scanMode?: string | undefined;
|
|
12513
12549
|
}
|
|
12514
12550
|
export interface WorkerSingleEngineResultPayload extends IEntity {
|
|
12515
12551
|
scanGuid?: string | undefined;
|
|
@@ -12519,6 +12555,7 @@ export interface WorkerSingleEngineResultPayload extends IEntity {
|
|
|
12519
12555
|
targetMd5?: string | undefined;
|
|
12520
12556
|
scanType?: string | undefined;
|
|
12521
12557
|
userId?: number | undefined;
|
|
12558
|
+
scanMode?: string | undefined;
|
|
12522
12559
|
result?: WorkerEngineResultDto;
|
|
12523
12560
|
}
|
|
12524
12561
|
export interface FileParameter extends IEntity {
|
package/dist/generated/index.js
CHANGED
|
@@ -12535,6 +12535,49 @@ export class ScanDatasClient extends BaseApiClient {
|
|
|
12535
12535
|
}
|
|
12536
12536
|
return Promise.resolve(null);
|
|
12537
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
|
+
}
|
|
12538
12581
|
/**
|
|
12539
12582
|
* @param scanGuid (optional)
|
|
12540
12583
|
* @return OK
|
|
@@ -15638,6 +15681,44 @@ export class ScansClient extends BaseApiClient {
|
|
|
15638
15681
|
}
|
|
15639
15682
|
return Promise.resolve(null);
|
|
15640
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
|
+
}
|
|
15641
15722
|
/**
|
|
15642
15723
|
* @param guid (optional)
|
|
15643
15724
|
* @return OK
|
|
@@ -649,6 +649,8 @@ export * from "./user-operation-claim-for-table-filter.js";
|
|
|
649
649
|
export * from "./user-operation-claim-for-table-filter-data-table-query.js";
|
|
650
650
|
export * from "./user-operation-claim-i-data-result.js";
|
|
651
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";
|
|
652
654
|
export * from "./worker-engine-result-dto.js";
|
|
653
655
|
export * from "./worker-scan-completed-payload.js";
|
|
654
656
|
export * from "./worker-single-engine-result-payload.js";
|
|
@@ -649,6 +649,8 @@ export * from "./user-operation-claim-for-table-filter.js";
|
|
|
649
649
|
export * from "./user-operation-claim-for-table-filter-data-table-query.js";
|
|
650
650
|
export * from "./user-operation-claim-i-data-result.js";
|
|
651
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";
|
|
652
654
|
export * from "./worker-engine-result-dto.js";
|
|
653
655
|
export * from "./worker-scan-completed-payload.js";
|
|
654
656
|
export * from "./worker-single-engine-result-payload.js";
|
|
@@ -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 @@
|
|
|
1
|
+
export const UserScanStatsDto = {};
|