export type AdminUpdateProjectVolumeRequest = {serial_end?: string | undefined, serial_postfix?: string | undefined, serial_prefix?: string | undefined, serial_start?: string | undefined, type?: ('MINUS' | 'PLUS') | undefined, value?: number | undefined}; export type UpdateApiBapiV1ProjectIdIncrementArgs = {id: number, body: AdminUpdateProjectVolumeRequest}; export type UpdateApiBapiV1ProjectIdIncrementOptions = {baseUrl?: string | undefined, Bearer?: string | undefined, fetch?: typeof fetch | undefined}; /** * 프로젝트 수량변경 * * PUT /bapi/v1/project/{id}/increment */ export const updateApiBapiV1ProjectIdIncrement = async (args: UpdateApiBapiV1ProjectIdIncrementArgs, options?: UpdateApiBapiV1ProjectIdIncrementOptions) => { const {baseUrl = "https://api.wincl.io:443", fetch: fetchFn = fetch, Bearer} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") if (Bearer !== undefined) headers.set('authorization', `Bearer ${Bearer}`) const url = `${baseUrl.replace(/\/+$/, '')}/bapi/v1/project/${encodeURIComponent(String(args.id))}/increment${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };