import type { ApiClient } from "@promobase/sdk-runtime"; import type { AdAccountFields } from "./ad-account.ts"; export interface AdsCreationSavedStateFields { ad_account: AdAccountFields; id: string; serialized_store_data: string; time_updated: string; user: Record; } export function adsCreationSavedStateNode(client: ApiClient, id: string) { return { __path: id, __brand: undefined as unknown as AdsCreationSavedStateFields, get: (opts: { fields: F; params?: Record }) => client.get>(`${id}`, opts), }; }