🚀New lib version v0.4.6 [CI SKIP]
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
This commit is contained in:
parent
f7118fcc1f
commit
6eef75f329
|
@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.OpenAPI = void 0;
|
||||
exports.OpenAPI = {
|
||||
BASE: '',
|
||||
VERSION: '0.4.5',
|
||||
VERSION: '0.4.6',
|
||||
WITH_CREDENTIALS: false,
|
||||
TOKEN: undefined,
|
||||
USERNAME: undefined,
|
||||
|
|
|
@ -82,7 +82,9 @@ export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam';
|
|||
export type { ResponseScan } from './models/ResponseScan';
|
||||
export type { ResponseScanStation } from './models/ResponseScanStation';
|
||||
export type { ResponseSelfServiceDonation } from './models/ResponseSelfServiceDonation';
|
||||
export type { ResponseSelfServiceOrganisation } from './models/ResponseSelfServiceOrganisation';
|
||||
export type { ResponseSelfServiceRunner } from './models/ResponseSelfServiceRunner';
|
||||
export type { ResponseSelfServiceTeam } from './models/ResponseSelfServiceTeam';
|
||||
export type { ResponseStats } from './models/ResponseStats';
|
||||
export type { ResponseStatsClient } from './models/ResponseStatsClient';
|
||||
export type { ResponseStatsOrgnisation } from './models/ResponseStatsOrgnisation';
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export declare type ResponseSelfServiceOrganisation = {
|
||||
name: string;
|
||||
teams: Array<any>;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -0,0 +1,4 @@
|
|||
export declare type ResponseSelfServiceTeam = {
|
||||
name: string;
|
||||
id: number;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -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>;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@odit/lfk-client-js",
|
||||
"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",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
Loading…
Reference in New Issue