This commit is contained in:
parent
7d6de0936f
commit
b9e573311c
16
dist/index.d.ts
vendored
16
dist/index.d.ts
vendored
@ -13,8 +13,11 @@ export type { CreateRunner } from './models/CreateRunner';
|
||||
export type { CreateRunnerGroup } from './models/CreateRunnerGroup';
|
||||
export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation';
|
||||
export type { CreateRunnerTeam } from './models/CreateRunnerTeam';
|
||||
export type { CreateScan } from './models/CreateScan';
|
||||
export type { CreateScanStation } from './models/CreateScanStation';
|
||||
export type { CreateStatsClient } from './models/CreateStatsClient';
|
||||
export type { CreateTrack } from './models/CreateTrack';
|
||||
export type { CreateTrackScan } from './models/CreateTrackScan';
|
||||
export type { CreateUser } from './models/CreateUser';
|
||||
export type { CreateUserGroup } from './models/CreateUserGroup';
|
||||
export type { DistanceDonation } from './models/DistanceDonation';
|
||||
@ -57,12 +60,15 @@ export type { ResponseRunner } from './models/ResponseRunner';
|
||||
export type { ResponseRunnerGroup } from './models/ResponseRunnerGroup';
|
||||
export type { ResponseRunnerOrganisation } from './models/ResponseRunnerOrganisation';
|
||||
export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam';
|
||||
export type { ResponseScan } from './models/ResponseScan';
|
||||
export type { ResponseScanStation } from './models/ResponseScanStation';
|
||||
export type { ResponseStats } from './models/ResponseStats';
|
||||
export type { ResponseStatsClient } from './models/ResponseStatsClient';
|
||||
export type { ResponseStatsOrgnisation } from './models/ResponseStatsOrgnisation';
|
||||
export type { ResponseStatsRunner } from './models/ResponseStatsRunner';
|
||||
export type { ResponseStatsTeam } from './models/ResponseStatsTeam';
|
||||
export type { ResponseTrack } from './models/ResponseTrack';
|
||||
export type { ResponseTrackScan } from './models/ResponseTrackScan';
|
||||
export type { ResponseUser } from './models/ResponseUser';
|
||||
export type { ResponseUserGroup } from './models/ResponseUserGroup';
|
||||
export type { Runner } from './models/Runner';
|
||||
@ -84,11 +90,17 @@ export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMat
|
||||
export type { RunnerTeamNeedsParentError } from './models/RunnerTeamNeedsParentError';
|
||||
export type { RunnerTeamNotFoundError } from './models/RunnerTeamNotFoundError';
|
||||
export type { Scan } from './models/Scan';
|
||||
export type { ScanIdsNotMatchingError } from './models/ScanIdsNotMatchingError';
|
||||
export type { ScanNotFoundError } from './models/ScanNotFoundError';
|
||||
export type { ScanStation } from './models/ScanStation';
|
||||
export type { ScanStationHasScansError } from './models/ScanStationHasScansError';
|
||||
export type { ScanStationIdsNotMatchingError } from './models/ScanStationIdsNotMatchingError';
|
||||
export type { ScanStationNotFoundError } from './models/ScanStationNotFoundError';
|
||||
export type { StatsClient } from './models/StatsClient';
|
||||
export type { StatsClientIdsNotMatchingError } from './models/StatsClientIdsNotMatchingError';
|
||||
export type { StatsClientNotFoundError } from './models/StatsClientNotFoundError';
|
||||
export type { Track } from './models/Track';
|
||||
export type { TrackHasScanStationsError } from './models/TrackHasScanStationsError';
|
||||
export type { TrackIdsNotMatchingError } from './models/TrackIdsNotMatchingError';
|
||||
export type { TrackLapTimeCantBeNegativeError } from './models/TrackLapTimeCantBeNegativeError';
|
||||
export type { TrackNotFoundError } from './models/TrackNotFoundError';
|
||||
@ -98,6 +110,8 @@ export type { UpdatePermission } from './models/UpdatePermission';
|
||||
export type { UpdateRunner } from './models/UpdateRunner';
|
||||
export type { UpdateRunnerOrganisation } from './models/UpdateRunnerOrganisation';
|
||||
export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam';
|
||||
export type { UpdateScan } from './models/UpdateScan';
|
||||
export type { UpdateScanStation } from './models/UpdateScanStation';
|
||||
export type { UpdateTrack } from './models/UpdateTrack';
|
||||
export type { UpdateUser } from './models/UpdateUser';
|
||||
export type { User } from './models/User';
|
||||
@ -118,6 +132,8 @@ export { PermissionService } from './services/PermissionService';
|
||||
export { RunnerOrganisationService } from './services/RunnerOrganisationService';
|
||||
export { RunnerService } from './services/RunnerService';
|
||||
export { RunnerTeamService } from './services/RunnerTeamService';
|
||||
export { ScanService } from './services/ScanService';
|
||||
export { ScanStationService } from './services/ScanStationService';
|
||||
export { StatsClientService } from './services/StatsClientService';
|
||||
export { StatsService } from './services/StatsService';
|
||||
export { StatusService } from './services/StatusService';
|
||||
|
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.PermissionService = exports.ImportService = exports.DonorService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0;
|
||||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.ScanStationService = exports.ScanService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.PermissionService = exports.ImportService = exports.DonorService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0;
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
@ -30,6 +30,10 @@ var RunnerService_1 = require("./services/RunnerService");
|
||||
Object.defineProperty(exports, "RunnerService", { enumerable: true, get: function () { return RunnerService_1.RunnerService; } });
|
||||
var RunnerTeamService_1 = require("./services/RunnerTeamService");
|
||||
Object.defineProperty(exports, "RunnerTeamService", { enumerable: true, get: function () { return RunnerTeamService_1.RunnerTeamService; } });
|
||||
var ScanService_1 = require("./services/ScanService");
|
||||
Object.defineProperty(exports, "ScanService", { enumerable: true, get: function () { return ScanService_1.ScanService; } });
|
||||
var ScanStationService_1 = require("./services/ScanStationService");
|
||||
Object.defineProperty(exports, "ScanStationService", { enumerable: true, get: function () { return ScanStationService_1.ScanStationService; } });
|
||||
var StatsClientService_1 = require("./services/StatsClientService");
|
||||
Object.defineProperty(exports, "StatsClientService", { enumerable: true, get: function () { return StatsClientService_1.StatsClientService; } });
|
||||
var StatsService_1 = require("./services/StatsService");
|
||||
|
4
dist/models/CreatePermission.d.ts
vendored
4
dist/models/CreatePermission.d.ts
vendored
@ -13,7 +13,9 @@ export declare namespace CreatePermission {
|
||||
USERGROUP = "USERGROUP",
|
||||
PERMISSION = "PERMISSION",
|
||||
STATSCLIENT = "STATSCLIENT",
|
||||
DONOR = "DONOR"
|
||||
DONOR = "DONOR",
|
||||
SCAN = "SCAN",
|
||||
STATION = "STATION"
|
||||
}
|
||||
enum action {
|
||||
GET = "GET",
|
||||
|
2
dist/models/CreatePermission.js
vendored
2
dist/models/CreatePermission.js
vendored
@ -17,6 +17,8 @@ var CreatePermission;
|
||||
target["PERMISSION"] = "PERMISSION";
|
||||
target["STATSCLIENT"] = "STATSCLIENT";
|
||||
target["DONOR"] = "DONOR";
|
||||
target["SCAN"] = "SCAN";
|
||||
target["STATION"] = "STATION";
|
||||
})(target = CreatePermission.target || (CreatePermission.target = {}));
|
||||
let action;
|
||||
(function (action) {
|
||||
|
5
dist/models/CreateScan.d.ts
vendored
Normal file
5
dist/models/CreateScan.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type CreateScan = {
|
||||
runner: number;
|
||||
valid?: boolean;
|
||||
distance: number;
|
||||
};
|
5
dist/models/CreateScan.js
vendored
Normal file
5
dist/models/CreateScan.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
5
dist/models/CreateScanStation.d.ts
vendored
Normal file
5
dist/models/CreateScanStation.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type CreateScanStation = {
|
||||
description?: string;
|
||||
track: number;
|
||||
enabled?: boolean;
|
||||
};
|
5
dist/models/CreateScanStation.js
vendored
Normal file
5
dist/models/CreateScanStation.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
8
dist/models/CreateTrackScan.d.ts
vendored
Normal file
8
dist/models/CreateTrackScan.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export declare type CreateTrackScan = {
|
||||
track: string;
|
||||
card: string;
|
||||
station: string;
|
||||
runner: number;
|
||||
valid?: boolean;
|
||||
distance: number;
|
||||
};
|
5
dist/models/CreateTrackScan.js
vendored
Normal file
5
dist/models/CreateTrackScan.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
1
dist/models/CreateUser.d.ts
vendored
1
dist/models/CreateUser.d.ts
vendored
@ -8,4 +8,5 @@ export declare type CreateUser = {
|
||||
password: string;
|
||||
enabled?: boolean;
|
||||
groups?: any;
|
||||
profilePic?: string;
|
||||
};
|
||||
|
4
dist/models/Permission.d.ts
vendored
4
dist/models/Permission.d.ts
vendored
@ -13,7 +13,9 @@ export declare namespace Permission {
|
||||
USERGROUP = "USERGROUP",
|
||||
PERMISSION = "PERMISSION",
|
||||
STATSCLIENT = "STATSCLIENT",
|
||||
DONOR = "DONOR"
|
||||
DONOR = "DONOR",
|
||||
SCAN = "SCAN",
|
||||
STATION = "STATION"
|
||||
}
|
||||
enum action {
|
||||
GET = "GET",
|
||||
|
2
dist/models/Permission.js
vendored
2
dist/models/Permission.js
vendored
@ -17,6 +17,8 @@ var Permission;
|
||||
target["PERMISSION"] = "PERMISSION";
|
||||
target["STATSCLIENT"] = "STATSCLIENT";
|
||||
target["DONOR"] = "DONOR";
|
||||
target["SCAN"] = "SCAN";
|
||||
target["STATION"] = "STATION";
|
||||
})(target = Permission.target || (Permission.target = {}));
|
||||
let action;
|
||||
(function (action) {
|
||||
|
4
dist/models/ResponsePermission.d.ts
vendored
4
dist/models/ResponsePermission.d.ts
vendored
@ -14,7 +14,9 @@ export declare namespace ResponsePermission {
|
||||
USERGROUP = "USERGROUP",
|
||||
PERMISSION = "PERMISSION",
|
||||
STATSCLIENT = "STATSCLIENT",
|
||||
DONOR = "DONOR"
|
||||
DONOR = "DONOR",
|
||||
SCAN = "SCAN",
|
||||
STATION = "STATION"
|
||||
}
|
||||
enum action {
|
||||
GET = "GET",
|
||||
|
2
dist/models/ResponsePermission.js
vendored
2
dist/models/ResponsePermission.js
vendored
@ -17,6 +17,8 @@ var ResponsePermission;
|
||||
target["PERMISSION"] = "PERMISSION";
|
||||
target["STATSCLIENT"] = "STATSCLIENT";
|
||||
target["DONOR"] = "DONOR";
|
||||
target["SCAN"] = "SCAN";
|
||||
target["STATION"] = "STATION";
|
||||
})(target = ResponsePermission.target || (ResponsePermission.target = {}));
|
||||
let action;
|
||||
(function (action) {
|
||||
|
6
dist/models/ResponseScan.d.ts
vendored
Normal file
6
dist/models/ResponseScan.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type ResponseScan = {
|
||||
id: number;
|
||||
runner: string;
|
||||
valid: boolean;
|
||||
distance: number;
|
||||
};
|
5
dist/models/ResponseScan.js
vendored
Normal file
5
dist/models/ResponseScan.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
8
dist/models/ResponseScanStation.d.ts
vendored
Normal file
8
dist/models/ResponseScanStation.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export declare type ResponseScanStation = {
|
||||
id: number;
|
||||
description?: string;
|
||||
key?: string;
|
||||
prefix: string;
|
||||
track: any;
|
||||
enabled: boolean;
|
||||
};
|
5
dist/models/ResponseScanStation.js
vendored
Normal file
5
dist/models/ResponseScanStation.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
10
dist/models/ResponseTrackScan.d.ts
vendored
Normal file
10
dist/models/ResponseTrackScan.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
export declare type ResponseTrackScan = {
|
||||
track: string;
|
||||
card: string;
|
||||
station: string;
|
||||
timestamp: string;
|
||||
id: number;
|
||||
runner: string;
|
||||
valid: boolean;
|
||||
distance: number;
|
||||
};
|
5
dist/models/ResponseTrackScan.js
vendored
Normal file
5
dist/models/ResponseTrackScan.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
2
dist/models/ResponseUser.d.ts
vendored
2
dist/models/ResponseUser.d.ts
vendored
@ -6,7 +6,7 @@ export declare type ResponseUser = {
|
||||
email: string;
|
||||
username: string;
|
||||
enabled: boolean;
|
||||
profilePic?: string;
|
||||
profilePic: string;
|
||||
groups?: Array<any>;
|
||||
permissions?: Array<any>;
|
||||
id: number;
|
||||
|
3
dist/models/Scan.d.ts
vendored
3
dist/models/Scan.d.ts
vendored
@ -1,6 +1,7 @@
|
||||
export declare type Scan = {
|
||||
id: number;
|
||||
runner: string;
|
||||
distance: number;
|
||||
valid: boolean;
|
||||
_distance: number;
|
||||
distance: number;
|
||||
};
|
||||
|
4
dist/models/ScanIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/ScanIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type ScanIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
5
dist/models/ScanIdsNotMatchingError.js
vendored
Normal file
5
dist/models/ScanIdsNotMatchingError.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/ScanNotFoundError.d.ts
vendored
Normal file
4
dist/models/ScanNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type ScanNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
5
dist/models/ScanNotFoundError.js
vendored
Normal file
5
dist/models/ScanNotFoundError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
2
dist/models/ScanStation.d.ts
vendored
2
dist/models/ScanStation.d.ts
vendored
@ -2,6 +2,8 @@ export declare type ScanStation = {
|
||||
id: number;
|
||||
description?: string;
|
||||
track: string;
|
||||
prefix: string;
|
||||
key: string;
|
||||
cleartextkey?: string;
|
||||
enabled: boolean;
|
||||
};
|
||||
|
4
dist/models/ScanStationHasScansError.d.ts
vendored
Normal file
4
dist/models/ScanStationHasScansError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type ScanStationHasScansError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
5
dist/models/ScanStationHasScansError.js
vendored
Normal file
5
dist/models/ScanStationHasScansError.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/ScanStationIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/ScanStationIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type ScanStationIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
5
dist/models/ScanStationIdsNotMatchingError.js
vendored
Normal file
5
dist/models/ScanStationIdsNotMatchingError.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/ScanStationNotFoundError.d.ts
vendored
Normal file
4
dist/models/ScanStationNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type ScanStationNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
5
dist/models/ScanStationNotFoundError.js
vendored
Normal file
5
dist/models/ScanStationNotFoundError.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/TrackHasScanStationsError.d.ts
vendored
Normal file
4
dist/models/TrackHasScanStationsError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type TrackHasScanStationsError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
5
dist/models/TrackHasScanStationsError.js
vendored
Normal file
5
dist/models/TrackHasScanStationsError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
1
dist/models/TrackScan.d.ts
vendored
1
dist/models/TrackScan.d.ts
vendored
@ -7,4 +7,5 @@ export declare type TrackScan = {
|
||||
id: number;
|
||||
runner: string;
|
||||
valid: boolean;
|
||||
_distance: number;
|
||||
};
|
||||
|
6
dist/models/UpdateScan.d.ts
vendored
Normal file
6
dist/models/UpdateScan.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type UpdateScan = {
|
||||
id: number;
|
||||
runner: number;
|
||||
valid?: boolean;
|
||||
distance: number;
|
||||
};
|
5
dist/models/UpdateScan.js
vendored
Normal file
5
dist/models/UpdateScan.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
5
dist/models/UpdateScanStation.d.ts
vendored
Normal file
5
dist/models/UpdateScanStation.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type UpdateScanStation = {
|
||||
id: number;
|
||||
description?: string;
|
||||
enabled?: boolean;
|
||||
};
|
5
dist/models/UpdateScanStation.js
vendored
Normal file
5
dist/models/UpdateScanStation.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
1
dist/models/UpdateUser.d.ts
vendored
1
dist/models/UpdateUser.d.ts
vendored
@ -9,4 +9,5 @@ export declare type UpdateUser = {
|
||||
password?: string;
|
||||
enabled: boolean;
|
||||
groups?: any;
|
||||
profilePic?: string;
|
||||
};
|
||||
|
2
dist/models/User.d.ts
vendored
2
dist/models/User.d.ts
vendored
@ -10,7 +10,7 @@ export declare type User = {
|
||||
groups?: any;
|
||||
enabled: boolean;
|
||||
refreshTokenCount: number;
|
||||
profilePic?: string;
|
||||
profilePic: string;
|
||||
resetRequestedTimestamp?: string;
|
||||
actions?: any;
|
||||
id: number;
|
||||
|
58
dist/services/ScanService.d.ts
vendored
Normal file
58
dist/services/ScanService.d.ts
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
import type { CreateScan } from '../models/CreateScan';
|
||||
import type { CreateTrackScan } from '../models/CreateTrackScan';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseScan } from '../models/ResponseScan';
|
||||
import type { ResponseTrackScan } from '../models/ResponseTrackScan';
|
||||
import type { UpdateScan } from '../models/UpdateScan';
|
||||
export declare class ScanService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all scans (normal or track) from all runners. <br> This includes the scan's runner's distance ran.
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanControllerGetAll(): Promise<(Array<ResponseScan> | Array<ResponseTrackScan>)>;
|
||||
/**
|
||||
* Post
|
||||
* Create a new scan. <br> Please remeber to provide the scan's runner's id and distance for normal scans.
|
||||
* @param requestBody CreateScan
|
||||
* @returns ResponseScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanControllerPost(requestBody?: CreateScan): Promise<ResponseScan>;
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the scan whose id got provided. This includes the scan's runner's distance ran.
|
||||
* @param id
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanControllerGetOne(id: number): Promise<(ResponseScan | ResponseTrackScan)>;
|
||||
/**
|
||||
* Put
|
||||
* Update the scan whose id you provided. <br> Please remember that ids can't be changed and distances must be positive.
|
||||
* @param id
|
||||
* @param requestBody UpdateScan
|
||||
* @returns ResponseScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanControllerPut(id: number, requestBody?: UpdateScan): Promise<ResponseScan>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete the scan whose id you provided. <br> If no scan with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseScan
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanControllerRemove(id: number, force?: boolean): Promise<ResponseScan | ResponseEmpty>;
|
||||
/**
|
||||
* Post track scans
|
||||
* Create a new track scan. <br> This is just a alias for posting /scans
|
||||
* @param requestBody CreateTrackScan
|
||||
* @returns ResponseScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanControllerPostTrackScans(requestBody?: CreateTrackScan): Promise<ResponseScan>;
|
||||
}
|
99
dist/services/ScanService.js
vendored
Normal file
99
dist/services/ScanService.js
vendored
Normal file
@ -0,0 +1,99 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ScanService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class ScanService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all scans (normal or track) from all runners. <br> This includes the scan's runner's distance ran.
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerGetAll() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/scans`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post
|
||||
* Create a new scan. <br> Please remeber to provide the scan's runner's id and distance for normal scans.
|
||||
* @param requestBody CreateScan
|
||||
* @returns ResponseScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerPost(requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/scans`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the scan whose id got provided. This includes the scan's runner's distance ran.
|
||||
* @param id
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerGetOne(id) {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/scans/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Put
|
||||
* Update the scan whose id you provided. <br> Please remember that ids can't be changed and distances must be positive.
|
||||
* @param id
|
||||
* @param requestBody UpdateScan
|
||||
* @returns ResponseScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerPut(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'PUT',
|
||||
path: `/api/scans/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Delete the scan whose id you provided. <br> If no scan with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseScan
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerRemove(id, force) {
|
||||
const result = await request_1.request({
|
||||
method: 'DELETE',
|
||||
path: `/api/scans/${id}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post track scans
|
||||
* Create a new track scan. <br> This is just a alias for posting /scans
|
||||
* @param requestBody CreateTrackScan
|
||||
* @returns ResponseScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerPostTrackScans(requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/scans/trackscans`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.ScanService = ScanService;
|
48
dist/services/ScanStationService.d.ts
vendored
Normal file
48
dist/services/ScanStationService.d.ts
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
import type { CreateScanStation } from '../models/CreateScanStation';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseScanStation } from '../models/ResponseScanStation';
|
||||
import type { UpdateScanStation } from '../models/UpdateScanStation';
|
||||
export declare class ScanStationService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all stations. <br> This includes their associated tracks.
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanStationControllerGetAll(): Promise<Array<ResponseScanStation>>;
|
||||
/**
|
||||
* Post
|
||||
* Create a new station. <br> Please remeber to provide the station's track's id. <br> Please also remember that the station key is only visibe on creation.
|
||||
* @param requestBody CreateScanStation
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanStationControllerPost(requestBody?: CreateScanStation): Promise<ResponseScanStation>;
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the station whose id got provided. <br> This includes it's associated track.
|
||||
* @param id
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanStationControllerGetOne(id: number): Promise<ResponseScanStation>;
|
||||
/**
|
||||
* Put
|
||||
* Update the station whose id you provided. <br> Please remember that only the description and enabled state can be changed.
|
||||
* @param id
|
||||
* @param requestBody UpdateScanStation
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanStationControllerPut(id: number, requestBody?: UpdateScanStation): Promise<ResponseScanStation>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete the station whose id you provided. <br> If no station with this id exists it will just return 204(no content). <br> If the station still has scans associated you have to provide the force=true query param (warning: this deletes all scans associated with/created by this station - please disable it instead).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseScanStation
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static scanStationControllerRemove(id: number, force?: boolean): Promise<ResponseScanStation | ResponseEmpty>;
|
||||
}
|
84
dist/services/ScanStationService.js
vendored
Normal file
84
dist/services/ScanStationService.js
vendored
Normal file
@ -0,0 +1,84 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ScanStationService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class ScanStationService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all stations. <br> This includes their associated tracks.
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerGetAll() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stations`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post
|
||||
* Create a new station. <br> Please remeber to provide the station's track's id. <br> Please also remember that the station key is only visibe on creation.
|
||||
* @param requestBody CreateScanStation
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerPost(requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/stations`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the station whose id got provided. <br> This includes it's associated track.
|
||||
* @param id
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerGetOne(id) {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stations/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Put
|
||||
* Update the station whose id you provided. <br> Please remember that only the description and enabled state can be changed.
|
||||
* @param id
|
||||
* @param requestBody UpdateScanStation
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerPut(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'PUT',
|
||||
path: `/api/stations/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Delete the station whose id you provided. <br> If no station with this id exists it will just return 204(no content). <br> If the station still has scans associated you have to provide the force=true query param (warning: this deletes all scans associated with/created by this station - please disable it instead).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseScanStation
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerRemove(id, force) {
|
||||
const result = await request_1.request({
|
||||
method: 'DELETE',
|
||||
path: `/api/stations/${id}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.ScanStationService = ScanStationService;
|
3
dist/services/TrackService.d.ts
vendored
3
dist/services/TrackService.d.ts
vendored
@ -39,9 +39,10 @@ export declare class TrackService {
|
||||
* Remove
|
||||
* Delete the track whose id you provided. <br> If no track with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseTrack
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static trackControllerRemove(id: number): Promise<ResponseTrack | ResponseEmpty>;
|
||||
static trackControllerRemove(id: number, force?: boolean): Promise<ResponseTrack | ResponseEmpty>;
|
||||
}
|
||||
|
6
dist/services/TrackService.js
vendored
6
dist/services/TrackService.js
vendored
@ -65,14 +65,18 @@ class TrackService {
|
||||
* Remove
|
||||
* Delete the track whose id you provided. <br> If no track with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseTrack
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async trackControllerRemove(id) {
|
||||
static async trackControllerRemove(id, force) {
|
||||
const result = await request_1.request({
|
||||
method: 'DELETE',
|
||||
path: `/api/tracks/${id}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
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.0.8",
|
||||
"version": "0.0.9",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
Loading…
x
Reference in New Issue
Block a user