🚀New lib version v0.2.1 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
11
dist/services/RunnerSelfService.d.ts
vendored
Normal file
11
dist/services/RunnerSelfService.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
|
||||
export declare class RunnerSelfService {
|
||||
/**
|
||||
* Get
|
||||
* Lists all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
|
||||
* @param jwt
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerGet(jwt: string): Promise<ResponseSelfServiceRunner>;
|
||||
}
|
||||
21
dist/services/RunnerSelfService.js
vendored
Normal file
21
dist/services/RunnerSelfService.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.RunnerSelfService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class RunnerSelfService {
|
||||
/**
|
||||
* Get
|
||||
* Lists all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
|
||||
* @param jwt
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerSelfServiceControllerGet(jwt) {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/runners/me/${jwt}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.RunnerSelfService = RunnerSelfService;
|
||||
10
dist/services/RunnerService.d.ts
vendored
10
dist/services/RunnerService.d.ts
vendored
@@ -1,6 +1,8 @@
|
||||
import type { CreateRunner } from '../models/CreateRunner';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseRunner } from '../models/ResponseRunner';
|
||||
import type { ResponseScan } from '../models/ResponseScan';
|
||||
import type { ResponseTrackScan } from '../models/ResponseTrackScan';
|
||||
import type { RunnerGroupNeededError } from '../models/RunnerGroupNeededError';
|
||||
import type { RunnerGroupNotFoundError } from '../models/RunnerGroupNotFoundError';
|
||||
import type { UpdateRunner } from '../models/UpdateRunner';
|
||||
@@ -47,4 +49,12 @@ export declare class RunnerService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerControllerRemove(id: number, force?: boolean): Promise<ResponseRunner | ResponseEmpty>;
|
||||
/**
|
||||
* Get scans
|
||||
* Lists all scans of the runner whose id got provided. <br> If you only want the valid scans just add the ?onlyValid=true query param.
|
||||
* @param id
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerControllerGetScans(id: number): Promise<(Array<ResponseScan> | Array<ResponseTrackScan>)>;
|
||||
}
|
||||
|
||||
14
dist/services/RunnerService.js
vendored
14
dist/services/RunnerService.js
vendored
@@ -80,5 +80,19 @@ class RunnerService {
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get scans
|
||||
* Lists all scans of the runner whose id got provided. <br> If you only want the valid scans just add the ?onlyValid=true query param.
|
||||
* @param id
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerControllerGetScans(id) {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/runners/${id}/scans`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.RunnerService = RunnerService;
|
||||
|
||||
Reference in New Issue
Block a user