@adobe/genstudio-extensibility-sdk
@adobe/genstudio-extensibility-sdk / ValidationExtensionService
Manages experience data conversion and retrieval
new ValidationExtensionService():
ValidationExtensionService
staticgetExperiences(connection:any):Promise<Experience[]>
Fetches experiences from the connection
any
The guest connection to the host
Promise<Experience[]>
Promise<Experience[]> Array of converted experiences
Error if connection is missing
In non-HTML canvas, variants are flattened into Experience and returned. Use getExperiencesWithVariants instead.
staticgetGenerationContext(connection:any):Promise<GenerationContext>
Gets the generation context from the connection
any
The guest connection to the host
Promise<GenerationContext>
The generation context
Error if connection is missing
staticopen(connection:any,extensionId:string):void
Opens the validation extension
any
The guest connection to the host
string
The ID of the extension to open
void
Error if connection is missing
staticupdateField(connection:any,fieldUpdate:FieldUpdate):void
Updates a field value on the canvas.
any
The guest connection to the host
The field update payload describing which field to change and the new value
void
Error if connection is missing