import type { ApiClient } from "@promobase/sdk-runtime"; export interface IGUpcomingEventFields { end_time: string; id: string; notification_subtypes: string[]; notification_target_time: string; start_time: string; title: string; } export interface IGUpcomingEventUpdateParams { end_time?: string; notification_subtypes?: string[]; notification_target_time?: string; start_time?: string; title?: string; [key: string]: unknown; } export function iGUpcomingEventNode(client: ApiClient, id: string) { return { __path: id, __brand: undefined as unknown as IGUpcomingEventFields, get: (opts: { fields: F; params?: Record }) => client.get>(`${id}`, opts), update: (params: IGUpcomingEventUpdateParams) => client.post(`${id}`, params as Record), }; }