import type { ApiClient } from "@promobase/sdk-runtime"; import type { BusinessFields } from "./business.ts"; export interface BusinessImageFields { business: BusinessFields; creation_time: string; hash: string; height: number; id: string; media_library_url: string; name: string; url: string; url_128: string; width: number; } export function businessImageNode(client: ApiClient, id: string) { return { __path: id, __brand: undefined as unknown as BusinessImageFields, get: (opts: { fields: F; params?: Record }) => client.get>(`${id}`, opts), }; }