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

This commit is contained in:
Nicolai Ort 2021-02-26 18:33:55 +00:00
parent f7118fcc1f
commit 6eef75f329
10 changed files with 46 additions and 3 deletions

View File

@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenAPI = void 0; exports.OpenAPI = void 0;
exports.OpenAPI = { exports.OpenAPI = {
BASE: '', BASE: '',
VERSION: '0.4.5', VERSION: '0.4.6',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
TOKEN: undefined, TOKEN: undefined,
USERNAME: undefined, USERNAME: undefined,

2
dist/index.d.ts vendored
View File

@ -82,7 +82,9 @@ export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam';
export type { ResponseScan } from './models/ResponseScan'; export type { ResponseScan } from './models/ResponseScan';
export type { ResponseScanStation } from './models/ResponseScanStation'; export type { ResponseScanStation } from './models/ResponseScanStation';
export type { ResponseSelfServiceDonation } from './models/ResponseSelfServiceDonation'; export type { ResponseSelfServiceDonation } from './models/ResponseSelfServiceDonation';
export type { ResponseSelfServiceOrganisation } from './models/ResponseSelfServiceOrganisation';
export type { ResponseSelfServiceRunner } from './models/ResponseSelfServiceRunner'; export type { ResponseSelfServiceRunner } from './models/ResponseSelfServiceRunner';
export type { ResponseSelfServiceTeam } from './models/ResponseSelfServiceTeam';
export type { ResponseStats } from './models/ResponseStats'; export type { ResponseStats } from './models/ResponseStats';
export type { ResponseStatsClient } from './models/ResponseStatsClient'; export type { ResponseStatsClient } from './models/ResponseStatsClient';
export type { ResponseStatsOrgnisation } from './models/ResponseStatsOrgnisation'; export type { ResponseStatsOrgnisation } from './models/ResponseStatsOrgnisation';

View File

@ -0,0 +1,4 @@
export declare type ResponseSelfServiceOrganisation = {
name: string;
teams: Array<any>;
};

View File

@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@ -0,0 +1,4 @@
export declare type ResponseSelfServiceTeam = {
name: string;
id: number;
};

View File

@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@ -1,5 +1,6 @@
import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfServiceCitizenRunner'; import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfServiceCitizenRunner';
import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner'; import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner';
import type { ResponseSelfServiceOrganisation } from '../models/ResponseSelfServiceOrganisation';
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner'; import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
export declare class RunnerSelfService { export declare class RunnerSelfService {
/** /**
@ -27,4 +28,12 @@ export declare class RunnerSelfService {
* @throws ApiError * @throws ApiError
*/ */
static runnerSelfServiceControllerRegisterOrganizationRunner(token: string, requestBody?: CreateSelfServiceRunner): Promise<ResponseSelfServiceRunner>; 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; 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; exports.RunnerSelfService = RunnerSelfService;

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{ {
"name": "@odit/lfk-client-js", "name": "@odit/lfk-client-js",
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.", "description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.",
"version": "0.4.5", "version": "0.4.6",
"license": "CC-BY-NC-SA-4.0", "license": "CC-BY-NC-SA-4.0",
"main": "./dist/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",