🚀New lib version [CI SKIP]
This commit is contained in:
30
dist/services/ScanService.js
vendored
30
dist/services/ScanService.js
vendored
@@ -6,11 +6,11 @@ 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
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerGetAll() {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'GET',
|
||||
path: `/api/scans`,
|
||||
});
|
||||
@@ -20,11 +20,11 @@ class ScanService {
|
||||
* Post
|
||||
* Create a new scan (not track scan - use /scans/trackscans instead). <br> Please rmemember to provide the scan's runner's id and distance.
|
||||
* @param requestBody CreateScan
|
||||
* @returns ResponseScan
|
||||
* @result ResponseScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerPost(requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/scans`,
|
||||
body: requestBody,
|
||||
@@ -35,11 +35,11 @@ class ScanService {
|
||||
* 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
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerGetOne(id) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'GET',
|
||||
path: `/api/scans/${id}`,
|
||||
});
|
||||
@@ -50,11 +50,11 @@ class ScanService {
|
||||
* Update the scan (not track scan use /scans/trackscans/:id instead) 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
|
||||
* @result ResponseScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerPut(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'PUT',
|
||||
path: `/api/scans/${id}`,
|
||||
body: requestBody,
|
||||
@@ -66,12 +66,12 @@ class ScanService {
|
||||
* 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
|
||||
* @result ResponseScan
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerRemove(id, force) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'DELETE',
|
||||
path: `/api/scans/${id}`,
|
||||
query: {
|
||||
@@ -84,11 +84,11 @@ class ScanService {
|
||||
* Post track scans
|
||||
* Create a new track scan (for "normal" scans use /scans instead). <br> Please remember that to provide the scan's card's station's id.
|
||||
* @param requestBody CreateTrackScan
|
||||
* @returns ResponseTrackScan
|
||||
* @result ResponseTrackScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerPostTrackScans(requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/scans/trackscans`,
|
||||
body: requestBody,
|
||||
@@ -100,11 +100,11 @@ class ScanService {
|
||||
* Update the track scan (not "normal" scan use /scans/trackscans/:id instead) whose id you provided. <br> Please remember that only the validity, runner and track can be changed.
|
||||
* @param id
|
||||
* @param requestBody UpdateTrackScan
|
||||
* @returns ResponseTrackScan
|
||||
* @result ResponseTrackScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async scanControllerPutTrackScan(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'PUT',
|
||||
path: `/api/scans/trackscans/${id}`,
|
||||
body: requestBody,
|
||||
|
||||
Reference in New Issue
Block a user