🚀New lib version v0.3.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:
		
							
								
								
									
										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.3.0',
 | 
			
		||||
    VERSION: '0.3.1',
 | 
			
		||||
    WITH_CREDENTIALS: false,
 | 
			
		||||
    TOKEN: undefined,
 | 
			
		||||
    USERNAME: undefined,
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								dist/services/RunnerOrganizationService.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								dist/services/RunnerOrganizationService.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,6 @@
 | 
			
		||||
import type { CreateRunnerOrganization } from '../models/CreateRunnerOrganization';
 | 
			
		||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
 | 
			
		||||
import type { ResponseRunner } from '../models/ResponseRunner';
 | 
			
		||||
import type { ResponseRunnerOrganization } from '../models/ResponseRunnerOrganization';
 | 
			
		||||
import type { UpdateRunnerOrganization } from '../models/UpdateRunnerOrganization';
 | 
			
		||||
export declare class RunnerOrganizationService {
 | 
			
		||||
@@ -45,4 +46,13 @@ export declare class RunnerOrganizationService {
 | 
			
		||||
     * @throws ApiError
 | 
			
		||||
     */
 | 
			
		||||
    static runnerOrganizationControllerRemove(id: number, force?: boolean): Promise<ResponseRunnerOrganization | ResponseEmpty>;
 | 
			
		||||
    /**
 | 
			
		||||
     * Get runners
 | 
			
		||||
     * Lists all runners from this org and it's teams (if you don't provide the ?onlyDirect=true param). <br> This includes the runner's group and distance ran.
 | 
			
		||||
     * @param id
 | 
			
		||||
     * @param onlyDirect
 | 
			
		||||
     * @returns ResponseRunner
 | 
			
		||||
     * @throws ApiError
 | 
			
		||||
     */
 | 
			
		||||
    static runnerOrganizationControllerGetRunners(id: number, onlyDirect?: boolean): Promise<Array<ResponseRunner>>;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								dist/services/RunnerOrganizationService.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								dist/services/RunnerOrganizationService.js
									
									
									
									
										vendored
									
									
								
							@@ -80,5 +80,23 @@ class RunnerOrganizationService {
 | 
			
		||||
        });
 | 
			
		||||
        return result.body;
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Get runners
 | 
			
		||||
     * Lists all runners from this org and it's teams (if you don't provide the ?onlyDirect=true param). <br> This includes the runner's group and distance ran.
 | 
			
		||||
     * @param id
 | 
			
		||||
     * @param onlyDirect
 | 
			
		||||
     * @returns ResponseRunner
 | 
			
		||||
     * @throws ApiError
 | 
			
		||||
     */
 | 
			
		||||
    static async runnerOrganizationControllerGetRunners(id, onlyDirect) {
 | 
			
		||||
        const result = await request_1.request({
 | 
			
		||||
            method: 'GET',
 | 
			
		||||
            path: `/api/organizations/${id}/runners`,
 | 
			
		||||
            query: {
 | 
			
		||||
                'onlyDirect': onlyDirect,
 | 
			
		||||
            },
 | 
			
		||||
        });
 | 
			
		||||
        return result.body;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
exports.RunnerOrganizationService = RunnerOrganizationService;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								dist/services/RunnerTeamService.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								dist/services/RunnerTeamService.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,6 @@
 | 
			
		||||
import type { CreateRunnerTeam } from '../models/CreateRunnerTeam';
 | 
			
		||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
 | 
			
		||||
import type { ResponseRunner } from '../models/ResponseRunner';
 | 
			
		||||
import type { ResponseRunnerTeam } from '../models/ResponseRunnerTeam';
 | 
			
		||||
import type { UpdateRunnerTeam } from '../models/UpdateRunnerTeam';
 | 
			
		||||
export declare class RunnerTeamService {
 | 
			
		||||
@@ -45,4 +46,12 @@ export declare class RunnerTeamService {
 | 
			
		||||
     * @throws ApiError
 | 
			
		||||
     */
 | 
			
		||||
    static runnerTeamControllerRemove(id: number, force?: boolean): Promise<ResponseRunnerTeam | ResponseEmpty>;
 | 
			
		||||
    /**
 | 
			
		||||
     * Get runners
 | 
			
		||||
     * Lists all runners from this team. <br> This includes the runner's group and distance ran.
 | 
			
		||||
     * @param id
 | 
			
		||||
     * @returns ResponseRunner
 | 
			
		||||
     * @throws ApiError
 | 
			
		||||
     */
 | 
			
		||||
    static runnerTeamControllerGetRunners(id: number): Promise<Array<ResponseRunner>>;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										14
									
								
								dist/services/RunnerTeamService.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								dist/services/RunnerTeamService.js
									
									
									
									
										vendored
									
									
								
							@@ -80,5 +80,19 @@ class RunnerTeamService {
 | 
			
		||||
        });
 | 
			
		||||
        return result.body;
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Get runners
 | 
			
		||||
     * Lists all runners from this team. <br> This includes the runner's group and distance ran.
 | 
			
		||||
     * @param id
 | 
			
		||||
     * @returns ResponseRunner
 | 
			
		||||
     * @throws ApiError
 | 
			
		||||
     */
 | 
			
		||||
    static async runnerTeamControllerGetRunners(id) {
 | 
			
		||||
        const result = await request_1.request({
 | 
			
		||||
            method: 'GET',
 | 
			
		||||
            path: `/api/teams/${id}/runners`,
 | 
			
		||||
        });
 | 
			
		||||
        return result.body;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
exports.RunnerTeamService = RunnerTeamService;
 | 
			
		||||
 
 | 
			
		||||
										
											
												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.3.0",
 | 
			
		||||
	"version": "0.3.1",
 | 
			
		||||
	"license": "CC-BY-NC-SA-4.0",
 | 
			
		||||
	"main": "./dist/index.js",
 | 
			
		||||
	"types": "./dist/index.d.ts",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user