🚀New lib version v0.4.6 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2021-02-26 18:33:55 +00:00
parent 46be0ad3f1
commit dbbd5b27da
10 changed files with 46 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfServiceCitizenRunner';
import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner';
import type { ResponseSelfServiceOrganisation } from '../models/ResponseSelfServiceOrganisation';
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
export declare class RunnerSelfService {
/**
@@ -27,4 +28,12 @@ export declare class RunnerSelfService {
* @throws ApiError
*/
static runnerSelfServiceControllerRegisterOrganizationRunner(token: string, requestBody?: CreateSelfServiceRunner): Promise<ResponseSelfServiceRunner>;
/**
* Get selfservice org
* Get the basic info and teams for a org.
* @param token
* @returns ResponseSelfServiceOrganisation
* @throws ApiError
*/
static runnerSelfServiceControllerGetSelfserviceOrg(token: string): Promise<ResponseSelfServiceOrganisation>;
}

View File

@@ -48,5 +48,19 @@ class RunnerSelfService {
});
return result.body;
}
/**
* Get selfservice org
* Get the basic info and teams for a org.
* @param token
* @returns ResponseSelfServiceOrganisation
* @throws ApiError
*/
static async runnerSelfServiceControllerGetSelfserviceOrg(token) {
const result = await request_1.request({
method: 'GET',
path: `/api/organizations/selfservice/${token}`,
});
return result.body;
}
}
exports.RunnerSelfService = RunnerSelfService;