Class: Raptor

Raptor

new Raptor(config)

Raptor SDK wrapper
Parameters:
Name Type Description
config Object configuration object
Author:
License:
  • Apache-2.0
Source:

Members

client

Return a API client instance
Source:

client

Return a API client instance
Source:

find

Search for Service Objects. Example parameters: 1) free-form query: { query: "some params" } 2) field params: { name: "Object Name", description: "optional description" customFields: { param1: "value" } }
Source:

find

Search for Service Objects. Example parameters: 1) free-form query: { query: "some params" } 2) field params: { name: "Object Name", description: "optional description" customFields: { param1: "value" } }
Source:

Methods

create(wo) → {Promise}

Create a Service Object from an object or a WebObject
Parameters:
Name Type Description
wo Object ServiceObject compatible definition object or WebObject
Source:
Returns:
Promise for the future ServiceObject created
Type
Promise

create(wo) → {Promise}

Create a Service Object from an object or a WebObject
Parameters:
Name Type Description
wo Object ServiceObject compatible definition object or WebObject
Source:
Returns:
Promise for the future ServiceObject created
Type
Promise

delete(objectId) → {Promise}

Delete a Service Object by id
Parameters:
Name Type Description
objectId String ServiceObject id
Source:
Returns:
Promise for the future result of the operation
Type
Promise

delete(objectId) → {Promise}

Delete a Service Object by id
Parameters:
Name Type Description
objectId String ServiceObject id
Source:
Returns:
Promise for the future result of the operation
Type
Promise

list() → {Promise}

Retrieve all the Service Objects from a given user (identified by the Authorization header).
Source:
Returns:
Type
Promise

list() → {Promise}

Retrieve all the Service Objects from a given user (identified by the Authorization header).
Source:
Returns:
Type
Promise

load(id) → {Promise}

Parameters:
Name Type Description
id String ServiceObject id
Source:
Returns:
A promise with the created SO
Type
Promise

load(id) → {Promise}

Parameters:
Name Type Description
id String ServiceObject id
Source:
Returns:
A promise with the created SO
Type
Promise

Raptor

new Raptor(config)

Raptor SDK wrapper
Parameters:
Name Type Description
config Object configuration object
Author:
License:
  • Apache-2.0
Source:

Members

client

Return a API client instance
Source:

client

Return a API client instance
Source:

find

Search for Service Objects. Example parameters: 1) free-form query: { query: "some params" } 2) field params: { name: "Object Name", description: "optional description" customFields: { param1: "value" } }
Source:

find

Search for Service Objects. Example parameters: 1) free-form query: { query: "some params" } 2) field params: { name: "Object Name", description: "optional description" customFields: { param1: "value" } }
Source:

Methods

create(wo) → {Promise}

Create a Service Object from an object or a WebObject
Parameters:
Name Type Description
wo Object ServiceObject compatible definition object or WebObject
Source:
Returns:
Promise for the future ServiceObject created
Type
Promise

create(wo) → {Promise}

Create a Service Object from an object or a WebObject
Parameters:
Name Type Description
wo Object ServiceObject compatible definition object or WebObject
Source:
Returns:
Promise for the future ServiceObject created
Type
Promise

delete(objectId) → {Promise}

Delete a Service Object by id
Parameters:
Name Type Description
objectId String ServiceObject id
Source:
Returns:
Promise for the future result of the operation
Type
Promise

delete(objectId) → {Promise}

Delete a Service Object by id
Parameters:
Name Type Description
objectId String ServiceObject id
Source:
Returns:
Promise for the future result of the operation
Type
Promise

list() → {Promise}

Retrieve all the Service Objects from a given user (identified by the Authorization header).
Source:
Returns:
Type
Promise

list() → {Promise}

Retrieve all the Service Objects from a given user (identified by the Authorization header).
Source:
Returns:
Type
Promise

load(id) → {Promise}

Parameters:
Name Type Description
id String ServiceObject id
Source:
Returns:
A promise with the created SO
Type
Promise

load(id) → {Promise}

Parameters:
Name Type Description
id String ServiceObject id
Source:
Returns:
A promise with the created SO
Type
Promise