UNPKG

@vincentt-sdks/campaign-sdk

Version:

Campaign SDK by Vincentt

46 lines (45 loc) 950 B
export type CreateEntryParams = { body: Record<string, any>; }; export type UpdateEntryParams = CreateEntryParams & { id: string; }; export type Entry = { id: string; formEntryId: string; campaignId: string; userId: string; body: Record<string, any>; createdAt: string; updatedAt: string; }; export type FormEntry = { id: string; entryId: string; campaignId: string; userId: string; body: Record<string, any>; createdAt: string; updatedAt: string; }; export type BaseFetchParams = { page?: number; pageSize?: number; }; export type FetchEntryParams = BaseFetchParams; export type CreateFormEntryParams = { formId: string; entry: Record<string, any>; }; export type UploadImageParams = { file: File; body: { contentType: string; options: { shorten: boolean; }; }; }; export type UploadImageResponse = { url: string; };