export type DeleteApiApiQuotesQuoteIdFeeLineItemsLineItemIdArgs = {quoteId: string, lineItemId: string}; export type DeleteApiApiQuotesQuoteIdFeeLineItemsLineItemIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete a specific fee line item for a Quote * * DELETE /api/quotes/{quoteId}/fee-line-items/{lineItemId} */ export const deleteApiApiQuotesQuoteIdFeeLineItemsLineItemId = async (args: DeleteApiApiQuotesQuoteIdFeeLineItemsLineItemIdArgs, options?: DeleteApiApiQuotesQuoteIdFeeLineItemsLineItemIdOptions) => { const {baseUrl = "https://api.fulcrumpro.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/api/quotes/${encodeURIComponent(String(args.quoteId))}/fee-line-items/${encodeURIComponent(String(args.lineItemId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };