🚀New lib version [CI SKIP]
This commit is contained in:
22
dist/services/ScanStationService.js
vendored
22
dist/services/ScanStationService.js
vendored
@@ -6,11 +6,11 @@ class ScanStationService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all stations. <br> This includes their associated tracks.
|
||||
* @returns ResponseScanStation
|
||||
* @result ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerGetAll() {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'GET',
|
||||
path: `/api/stations`,
|
||||
});
|
||||
@@ -20,11 +20,11 @@ class ScanStationService {
|
||||
* 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
|
||||
* @result ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerPost(requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/stations`,
|
||||
body: requestBody,
|
||||
@@ -35,11 +35,11 @@ class ScanStationService {
|
||||
* Get one
|
||||
* Lists all information about the station whose id got provided. <br> This includes it's associated track.
|
||||
* @param id
|
||||
* @returns ResponseScanStation
|
||||
* @result ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerGetOne(id) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'GET',
|
||||
path: `/api/stations/${id}`,
|
||||
});
|
||||
@@ -50,11 +50,11 @@ class ScanStationService {
|
||||
* 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
|
||||
* @result ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerPut(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'PUT',
|
||||
path: `/api/stations/${id}`,
|
||||
body: requestBody,
|
||||
@@ -66,12 +66,12 @@ class ScanStationService {
|
||||
* 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
|
||||
* @result ResponseScanStation
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanStationControllerRemove(id, force) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'DELETE',
|
||||
path: `/api/stations/${id}`,
|
||||
query: {
|
||||
|
||||
Reference in New Issue
Block a user