export type UpdateApiBapiV1InfoPopupShowIdArgs = {id: string}; export type UpdateApiBapiV1InfoPopupShowIdOptions = {baseUrl?: string | undefined, Bearer?: string | undefined, fetch?: typeof fetch | undefined}; /** * 특정 공지팝업 보이기 * * PUT /bapi/v1/info/popup/show/{id} */ export const updateApiBapiV1InfoPopupShowId = async (args: UpdateApiBapiV1InfoPopupShowIdArgs, options?: UpdateApiBapiV1InfoPopupShowIdOptions) => { const {baseUrl = "https://api.wincl.io:443", fetch: fetchFn = fetch, Bearer} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") if (Bearer !== undefined) headers.set('authorization', `Bearer ${Bearer}`) const url = `${baseUrl.replace(/\/+$/, '')}/bapi/v1/info/popup/show/${encodeURIComponent(String(args.id))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };