🚀New lib version [CI SKIP]
This commit is contained in:
26
dist/services/RunnerCardService.js
vendored
26
dist/services/RunnerCardService.js
vendored
@@ -6,11 +6,11 @@ class RunnerCardService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all card.
|
||||
* @returns ResponseRunnerCard
|
||||
* @result ResponseRunnerCard
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerCardControllerGetAll() {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'GET',
|
||||
path: `/api/cards`,
|
||||
});
|
||||
@@ -20,11 +20,11 @@ class RunnerCardService {
|
||||
* Post
|
||||
* Create a new card. <br> You can provide a associated runner by id but you don't have to.
|
||||
* @param requestBody CreateRunnerCard
|
||||
* @returns ResponseRunnerCard
|
||||
* @result ResponseRunnerCard
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerCardControllerPost(requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/cards`,
|
||||
body: requestBody,
|
||||
@@ -35,11 +35,11 @@ class RunnerCardService {
|
||||
* Get one
|
||||
* Lists all information about the card whose id got provided.
|
||||
* @param id
|
||||
* @returns ResponseRunnerCard
|
||||
* @result ResponseRunnerCard
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerCardControllerGetOne(id) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'GET',
|
||||
path: `/api/cards/${id}`,
|
||||
});
|
||||
@@ -50,11 +50,11 @@ class RunnerCardService {
|
||||
* Update the card whose id you provided. <br> Scans created via this card will still be associated with the old runner. <br> Please remember that ids can't be changed.
|
||||
* @param id
|
||||
* @param requestBody UpdateRunnerCard
|
||||
* @returns ResponseRunnerCard
|
||||
* @result ResponseRunnerCard
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerCardControllerPut(id, requestBody) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'PUT',
|
||||
path: `/api/cards/${id}`,
|
||||
body: requestBody,
|
||||
@@ -66,12 +66,12 @@ class RunnerCardService {
|
||||
* Delete the card whose id you provided. <br> If no card with this id exists it will just return 204(no content). <br> If the card still has scans associated you have to provide the force=true query param (warning: this deletes all scans associated with by this card - please disable it instead or just remove the runner association).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns ResponseRunnerCard
|
||||
* @returns ResponseEmpty
|
||||
* @result ResponseRunnerCard
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerCardControllerRemove(id, force) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'DELETE',
|
||||
path: `/api/cards/${id}`,
|
||||
query: {
|
||||
@@ -85,11 +85,11 @@ class RunnerCardService {
|
||||
* Create blank cards in bulk. <br> Just provide the count as a query param and wait for the 200 response. <br> You can provide the 'returnCards' query param if you want to receive the RESPONSERUNNERCARD objects in the response.
|
||||
* @param count
|
||||
* @param returnCards
|
||||
* @returns ResponseEmpty
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerCardControllerPostBlancoBulk(count, returnCards) {
|
||||
const result = await request_1.request({
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/cards/bulk`,
|
||||
query: {
|
||||
|
||||
Reference in New Issue
Block a user