diff --git a/src/Personalize/ParseInstructions.ts b/src/Personalize/ParseInstructions.ts index 4360f33..209efb0 100644 --- a/src/Personalize/ParseInstructions.ts +++ b/src/Personalize/ParseInstructions.ts @@ -1,6 +1,22 @@ import { PersonalizationData } from "./Personalize"; -export type Instruction = unknown; +export type Instruction = { + fragments: Array<{ + selector: string; + val: string; + action: string; + manifestId: string; + targetManifestId: string | undefined; + }>; + commands: Array<{ + action: string; + selector: string; + content: string; + selectorType: string; + manifestId: string; + targetManifestId: string | undefined; + }>; +}; export const parseInstructionsFrom = async ( personalizationData: PersonalizationData diff --git a/src/Personalize/Personalize.ts b/src/Personalize/Personalize.ts index 9566b32..66d52e6 100644 --- a/src/Personalize/Personalize.ts +++ b/src/Personalize/Personalize.ts @@ -1,6 +1,13 @@ import { AuthState } from "../Auth/Auth"; -export type PersonalizationData = unknown; +export type PersonalizationData = { + requestId: string; + handle: Array<{ + payload: any[]; + type: string; + [key: string]: any; + }>; +}; export const getPersonalizationData = async ( request: EW.ResponseProviderRequest,