export type OptionsApiCaseMetaDocketNumberUnsealAddressContactIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * OPTIONS /case-meta/{docketNumber}/unseal-address/{contactId} */ export const optionsApiCaseMetaDocketNumberUnsealAddressContactId = async (options?: OptionsApiCaseMetaDocketNumberUnsealAddressContactIdOptions) => { const {baseUrl = "https://efcms-dev.ustc-case-mgmt.flexion.us", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/case-meta/${encodeURIComponent(String(args.docketNumber))}/unseal-address/${encodeURIComponent(String(args.contactId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "OPTIONS", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };