/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CreatePositionRequest } from '../models/CreatePositionRequest';
import type { CreatePositionResponse } from '../models/CreatePositionResponse';
import type { DeletePositionRequest } from '../models/DeletePositionRequest';
import type { DeletePositionResponse } from '../models/DeletePositionResponse';
import type { GetAllPositionsResponse } from '../models/GetAllPositionsResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class PositionService {
    /**
     * Get All
     * @returns GetAllPositionsResponse Successful Response
     * @throws ApiError
     */
    public static getAllPositions(): CancelablePromise<GetAllPositionsResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/position/get-all',
        });
    }
    /**
     * Create
     * @returns CreatePositionResponse Successful Response
     * @throws ApiError
     */
    public static createPosition({
        requestBody,
    }: {
        requestBody: CreatePositionRequest,
    }): CancelablePromise<CreatePositionResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/position/create',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Delete
     * @returns DeletePositionResponse Successful Response
     * @throws ApiError
     */
    public static deletePosition({
        requestBody,
    }: {
        requestBody: DeletePositionRequest,
    }): CancelablePromise<DeletePositionResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/position/delete',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
