import type { ApiClient } from "@promobase/sdk-runtime"; export interface ProductFeedRuleFields { attribute: string; id: string; params: Record[]; rule_type: string; } export interface ProductFeedRuleUpdateParams { params?: Record; [key: string]: unknown; } export function productFeedRuleNode(client: ApiClient, id: string) { return { __path: id, __brand: undefined as unknown as ProductFeedRuleFields, get: (opts: { fields: F; params?: Record }) => client.get>(`${id}`, opts), update: (params: ProductFeedRuleUpdateParams) => client.post(`${id}`, params as Record), delete: () => client.delete(`${id}`, {}), }; }