export type GetApiTenantCustomizationGetTenantLogoSkinTenantIdExtensionArgs = {skin: string, tenantId?: number | undefined, extension?: string | undefined}; export type GetApiTenantCustomizationGetTenantLogoSkinTenantIdExtensionOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * GET /TenantCustomization/GetTenantLogo/{skin}/{tenantId}/{extension} */ export const getApiTenantCustomizationGetTenantLogoSkinTenantIdExtension = async (args: GetApiTenantCustomizationGetTenantLogoSkinTenantIdExtensionArgs, options: GetApiTenantCustomizationGetTenantLogoSkinTenantIdExtensionOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.tenantId != null) query.append("tenantId", String(args.tenantId)) if (args.extension != null) query.append("extension", String(args.extension)) const url = `${baseUrl.replace(/\/+$/, '')}/TenantCustomization/GetTenantLogo/${encodeURIComponent(String(args.skin))}/${encodeURIComponent(String(args.tenantId))}/${encodeURIComponent(String(args.extension))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };