@adobe/genstudio-uix-sdk / ExperienceService
Manages experience data conversion and retrieval
new ExperienceService():
ExperienceService
static
convertRawExperiencesToExperiences(rawExperiences
:any
[]):Experience
[]
Converts an array of raw experiences to Experience format
any
[]
Array of raw experience data
Experience[] - Array of converted Experience objects
static
convertRawExperienceToExperience(rawExperience
: {fields
: {};id
:string
; }):Experience
Converts a raw experience object to Experience format
Raw experience data from the host
{}
string
Experience - Converted Experience object
static
getExperiences(connection
:GuestUI
<RightPanelApi
>):Promise
<Experience
[]>
Fetches experiences from the connection
GuestUI
<RightPanelApi
>
The guest connection to the host
Promise
<Experience
[]>
Promise<Experience[]> Array of converted experiences
Error if connection is missing
static
getGenerationContext(connection
:GuestUI
<RightPanelApi
>):Promise
<GenerationContext
>
Gets the generation context from the connection
GuestUI
<RightPanelApi
>
The guest connection to the host
Promise
<GenerationContext
>
The generation context
Error if connection is missing