import { CFProduct, CFCustomer } from "./CommonTypes"; export interface ExampleFunctionParams { param1?: string; param2?: string; param3?: string; } export interface ExampleFunctionResponse { receivedParams: ExampleFunctionParams; responsePayload: { field1: string; field2: string; field3: string; }; timestamp: string; processed: boolean; } export type ExampleFunction = (params?: ExampleFunctionParams) => Promise; export interface GetProductsParams { query?: Record; } export interface GetProductsResponse { products: CFProduct[]; timestamp: string; } export type GetProducts = (params?: GetProductsParams) => Promise; export interface AddCustomSaleParams { label: string; price: number | string; applyTaxes?: boolean; } export interface AddCustomSaleResponse { success: boolean; label: string; price: number; applyTaxes: boolean; timestamp: string; } export type AddCustomSale = (params?: AddCustomSaleParams) => Promise; export interface GetCustomersParams { query?: Record; } export interface GetCustomersResponse { customers: CFCustomer[]; total?: number; timestamp: string; } export type GetCustomers = (params?: GetCustomersParams) => Promise; export interface AssignCustomerParams { customerId: string; } export interface AssignCustomerResponse { success: boolean; customer: CFCustomer; timestamp: string; } export type AssignCustomer = (params: AssignCustomerParams) => Promise; export interface AddCustomerParams { customer: Partial; } export interface AddCustomerResponse { success: boolean; customer: CFCustomer; timestamp: string; } export type AddCustomer = (params: AddCustomerParams) => Promise;