import { RpcMethod } from './commonTypes'; export type CustomerJourneyService_GetDeviceEntries = RpcMethod; export type CustomerJourneyService_GetCampaignPreset = RpcMethod; export interface CustomerJourneyService { /** Lists the customer journeys a single device (by HWID) has entered in an application, with each entry's status, enter/leave times and campaign type, paged. Use to reconstruct one device's journey participation history. */ GetDeviceEntries: CustomerJourneyService_GetDeviceEntries; /** Returns the message preset code and point type of the first send point of a journey campaign, looked up by campaign code. Use to find which push/email/SMS/WhatsApp preset a single-message journey campaign delivers. */ GetCampaignPreset: CustomerJourneyService_GetCampaignPreset; } export type GetDeviceEntriesRequest = { /** Device hardware id (HWID) whose journey entries to list. */ hwid?: string; /** Free-text search over journey title. */ searchByName?: string; page?: number; perPage?: number; /** Application code (format XXXXX-XXXXX) whose journeys to search. */ application?: string; }; export type GetDeviceEntriesResponse_JourneyEntry_Status = 'EXITED' | 'ERROR' | 'STILL_IN_JOURNEY'; export type GetDeviceEntriesResponse_JourneyEntry_CampaignType = 'UNKNOWN' | 'MIXED' | 'TRIGGER_BASED' | 'AUDIENCE_BASED' | 'API_BASED'; export type GetDeviceEntriesResponse_JourneyEntry = { journeyUuid: string; title: string; status: GetDeviceEntriesResponse_JourneyEntry_Status; type: GetDeviceEntriesResponse_JourneyEntry_CampaignType; state: number; enterTime: Date; leaveTime: Date; }; export type GetDeviceEntriesResponse = { entries: GetDeviceEntriesResponse_JourneyEntry[]; page: number; perPage: number; totalPages: number; totalJourneys: number; }; export type GetCampaignPresetRequest = { /** Campaign code of the journey campaign whose first send point's preset to return. */ campaign?: string; }; export type PointType = 'MessageBus' | 'Delay' | 'Terminator' | 'SendPush' | 'GoalEvent' | 'SendEmail' | 'BooleanSplitter' | 'WaitEvent' | 'InApp' | 'StartBySegment' | 'ABSplitter' | 'SetTags' | 'WebHook' | 'Filter' | 'SendSms' | 'APIStart' | 'SendWhatsApp' | 'SendData'; export type GetCampaignPresetResponse = { preset: string; type: PointType; };