import type { ApiClient } from "@promobase/sdk-runtime"; import type { ProfileFields } from "./profile.ts"; export interface AdsPivotRulesFields { creation_time: string; creator: ProfileFields; description: string; id: string; name: string; permission: string; rules: Record[]; scope: string; update_by: ProfileFields; update_time: string; } export function adsPivotRulesNode(client: ApiClient, id: string) { return { __path: id, __brand: undefined as unknown as AdsPivotRulesFields, get: (opts: { fields: F; params?: Record }) => client.get>(`${id}`, opts), }; }