export type captureType = "Image" | "Video"; export type sourceType = "DeviceCamera" | "IPCamera" | "Ricoh"; /** * @interface Configuration * @description * represents the base `Configuration` interface consumed by the `capture-sdk` */ export interface Configuration { title: string; steps: Step[]; } /** * @interface Step * @description * represents the `Step` component */ export interface Step { /** * @param {string} title * represents title of step * @description * used to display the title as a item in the step list */ title: string; /** * @param {Slot[]} slots * represents slots present in each step * @description * used for working through each slot of a step */ slots: Slot[]; } export interface Slot { /** * @param {string} title * represents title of slot * @description * used to display the title as a item in the slot list */ title: string; /** * action to be executed */ action?: Action; /** * @param {string} key * key to be used for s20 viewer and gallery */ key?: string; /** * @param {ServiceAction[]} postprocessingServices * a list of post processing services to be run on the given data */ refKey?: string; lock?: boolean; postprocessingServices?: ServiceAction[]; slotItems?: SlotItem[]; slotType?: "DEFAULT" | "FEATURE" | "IMPERFECTION"; imperfectionMetaData?: { hotspotCategoryGroup?: string; hotspotCategory?: string; hotspotPart?: string; hotspotCondition?: string; }; } export interface SlotItem { /** * @param {string} title * represents title of slotItem */ title: string; availableActions: Action[]; } export interface ServiceAction { service_id: string; } export interface Action { /** * @param {boolean} vision * flag to use vision camera */ vision?: boolean; guide?: { url: string; }; title: string; captureType: captureType; sourceType: sourceType; }