export type GetApiWorkManagementTenantLocatorQualificationsUserLocatorArgs = {tenantLocator: string, userLocator: string}; export type GetApiWorkManagementTenantLocatorQualificationsUserLocatorOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * GET /work-management/{tenantLocator}/qualifications/{userLocator} */ export const getApiWorkManagementTenantLocatorQualificationsUserLocator = async (args: GetApiWorkManagementTenantLocatorQualificationsUserLocatorArgs, options: GetApiWorkManagementTenantLocatorQualificationsUserLocatorOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/work-management/${encodeURIComponent(String(args.tenantLocator))}/qualifications/${encodeURIComponent(String(args.userLocator))}${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 res.blob() };