petalbid-frontend
    Preparing search index...

    Variable auctionServiceConst

    auctionService: {
        createAuction: (data: CreateAuctionDto) => Promise<ApiResponse<Auction>>;
        deleteAuction: (id: number) => Promise<ApiResponse<unknown>>;
        endAuction: (id: number) => Promise<ApiResponse<null>>;
        getAllAuctions: () => Promise<ApiResponse<Auction[]>>;
        nextLot: (id: number) => Promise<ApiResponse<null>>;
        pauseAuction: (id: number) => Promise<ApiResponse<null>>;
        startAuction: (id: number) => Promise<ApiResponse<null>>;
        updateAuction: (id: number, data: Auction) => Promise<ApiResponse<Auction>>;
        getAuctionsByAuctioneer(id: number): Promise<ApiResponse<Auction[]>>;
    } = ...

    Service for handling auction-related API calls.

    Type Declaration

    • createAuction: (data: CreateAuctionDto) => Promise<ApiResponse<Auction>>

      Creates a new auction.

    • deleteAuction: (id: number) => Promise<ApiResponse<unknown>>

      Deletes an auction.

    • endAuction: (id: number) => Promise<ApiResponse<null>>

      Ends an auction by ID.

    • getAllAuctions: () => Promise<ApiResponse<Auction[]>>

      Retrieves all auctions.

    • nextLot: (id: number) => Promise<ApiResponse<null>>

      Moves to the next lot in an auction by ID.

    • pauseAuction: (id: number) => Promise<ApiResponse<null>>

      Pauses an auction by ID.

    • startAuction: (id: number) => Promise<ApiResponse<null>>

      Starts an auction by ID.

    • updateAuction: (id: number, data: Auction) => Promise<ApiResponse<Auction>>

      Updates an existing auction.

    • getAuctionsByAuctioneer: function