Class: xFrameDriver
This class represents the SDK driver used by external applications. This class extends the EventEmitter and implements the JsSDK interface.
Implements
JsSDK
Hierarchy
EventEmitter
↳
xFrameDriver
Implements
Table of contents
Constructors
Properties
- agent
- projects
- annotations
- items
- settings
- recipes
- ontologies
- labels
- attributes
- structures
- tasks
- contributors
- datasets
- executions
- drivers
- integrations
- pipelines
- navigator
Methods
Accessors
Constructors
constructor
• new xFrameDriver()
Inherited from
EventEmitter.constructor
Properties
agent
• agent: PeerAgent
The application's agent.
projects
• projects: Projects
The Projects repository. It is used to access Project related CRUD methods.
Implementation of
annotations
• annotations: Annotations
The Annotations repository. It is used to access Annotation related CRUD methods.
Implementation of
items
• items: Items
The Items repository. It is used to access Item related CRUD methods.
Implementation of
settings
• settings: AppSettings
The Settings repository. It is used to access Settings related CRUD methods.
Implementation of
recipes
• recipes: Recipes
The Recipes repository. It is used to access Recipe related CRUD methods.
Implementation of
ontologies
• ontologies: Ontologies
The Ontologies repository. It is used to access Ontology related CRUD methods.
Implementation of
labels
• labels: Labels
The Labels repository. It is used to access Label related CRUD methods.
Implementation of
attributes
• attributes: Attributes
The Attributes repository. It is used to access Attribute related CRUD methods.
Implementation of
structures
• structures: Structures
The Structures repository. It is used to access Structure related CRUD methods.
Implementation of
tasks
• tasks: Tasks
The Tasks repository. It is used to access Task related CRUD methods.
Implementation of
contributors
• contributors: Contributors
The Contributors repository. It is used to access Contributor related CRUD methods.
Implementation of
datasets
• datasets: Datasets
The Datasets repository. It is used to access Dataset related CRUD methods.
Implementation of
executions
• executions: Executions
The Executions repository. It is used to access Execution related CRUD methods.
Implementation of
drivers
• drivers: Drivers
The Drivers repository. It is used to access Driver related CRUD methods.
Implementation of
integrations
• integrations: Integrations
The Integrations repository. It is used to access Integration related CRUD methods.
Implementation of
pipelines
• pipelines: Pipelines
The Pipelines repository. It is used to access Pipeline related CRUD methods.
Implementation of
navigator
• navigator: SDKNavigator
The Navigator. It is used to navigate to different routes within the platform.
Implementation of
Methods
init
▸ init(): Promise
<void
>
Initializes the xFrame SDK Driver with an agent and all the existing repositories. Initializes agent events.
Returns
Promise
<void
>
- A promise that resolves once the xFrameDriver instance has been initialized.
Implementation of
JsSDK.init
sendEvent
▸ sendEvent(data
): void
Sends an event from the app.
Parameters
Name | Type | Description |
---|---|---|
data | EventPayload | The event payload. |
Returns
void
Accessors
logger
• get
logger(): Logger
Returns the logger object.
Returns
Logger