export type CustomerUserModel = {Ad?: string | undefined, Soyad?: string | undefined, Email?: string | undefined, Tel?: string | undefined, DiplomaNo?: string | undefined, Il?: string | undefined, Ilce?: string | undefined, Adres?: string | undefined, KullaniciAdi?: string | undefined, Sifre?: string | undefined, AppKey?: string | undefined, BayiID: number, FromTo?: string | undefined}; export type CreateApiMusteriMusteriKullaniciEkleArgs = {body: CustomerUserModel}; export type CreateApiMusteriMusteriKullaniciEkleOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * POST /musteri/musteri-kullanici-ekle */ export const createApiMusteriMusteriKullaniciEkle = async (args: CreateApiMusteriMusteriKullaniciEkleArgs, options?: CreateApiMusteriMusteriKullaniciEkleOptions) => { const {baseUrl = "https://demo.poskobi.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "application/octet-stream") const url = `${baseUrl.replace(/\/+$/, '')}/musteri/musteri-kullanici-ekle${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", 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() };