export type BetConstructSSOAuthAPIViewModelsCreateViewModelsClientFrontEndDomainConfigCreationViewModel = {domain: string, frontEndConfigurationId: number}; export type UpdateApiV1ClientsFrontEndConfigurationsIdArgs = {id: number, body: BetConstructSSOAuthAPIViewModelsCreateViewModelsClientFrontEndDomainConfigCreationViewModel}; export type UpdateApiV1ClientsFrontEndConfigurationsIdOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * PUT /V1/clients/frontEndConfigurations/{id} */ export const updateApiV1ClientsFrontEndConfigurationsId = async (args: UpdateApiV1ClientsFrontEndConfigurationsIdArgs, options: UpdateApiV1ClientsFrontEndConfigurationsIdOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/V1/clients/frontEndConfigurations/${encodeURIComponent(String(args.id))}${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 undefined };