export type GroupTransferMemberDTO = {id?: number | undefined, memberLogin?: string | undefined, memberName?: string | undefined, mobile?: string | undefined, templateId?: number | undefined, templateName?: string | undefined}; export type GroupTransferTemplateDTO = {id?: number | undefined, members?: Array | undefined, name: string, order?: number | undefined, ownerLogin?: string | undefined, owneraAcceptorName?: string | undefined, owneraCode?: string | undefined, receiverDescription?: string | undefined, senderDescription?: string | undefined}; export type UpdateApiApiGroupTransferTemplatesArgs = {body: GroupTransferTemplateDTO}; export type UpdateApiApiGroupTransferTemplatesOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * updateGroupTransferTemplate * * PUT /api/group-transfer-templates */ export const updateApiApiGroupTransferTemplates = async (args: UpdateApiApiGroupTransferTemplatesArgs, options: UpdateApiApiGroupTransferTemplatesOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/api/group-transfer-templates${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() };