🚀New lib version v0.4.6 [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:
parent
46be0ad3f1
commit
dbbd5b27da
2
dist/core/OpenAPI.js
vendored
2
dist/core/OpenAPI.js
vendored
@ -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,
|
||||
|
2
dist/index.d.ts
vendored
2
dist/index.d.ts
vendored
@ -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';
|
||||
|
4
dist/models/ResponseSelfServiceOrganisation.d.ts
vendored
Normal file
4
dist/models/ResponseSelfServiceOrganisation.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type ResponseSelfServiceOrganisation = {
|
||||
name: string;
|
||||
teams: Array<any>;
|
||||
};
|
5
dist/models/ResponseSelfServiceOrganisation.js
vendored
Normal file
5
dist/models/ResponseSelfServiceOrganisation.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
4
dist/models/ResponseSelfServiceTeam.d.ts
vendored
Normal file
4
dist/models/ResponseSelfServiceTeam.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type ResponseSelfServiceTeam = {
|
||||
name: string;
|
||||
id: number;
|
||||
};
|
5
dist/models/ResponseSelfServiceTeam.js
vendored
Normal file
5
dist/models/ResponseSelfServiceTeam.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
9
dist/services/RunnerSelfService.d.ts
vendored
9
dist/services/RunnerSelfService.d.ts
vendored
@ -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>;
|
||||
}
|
||||
|
14
dist/services/RunnerSelfService.js
vendored
14
dist/services/RunnerSelfService.js
vendored
@ -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-node",
|
||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS 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",
|
||||
|
Reference in New Issue
Block a user