Class: DocumentrequestitemsResource

DocumentrequestitemsResource(client)

Documentrequestitems Resource Generated: 2025-04-01T19:44:53.323Z

Constructor

new DocumentrequestitemsResource(client)

Create a new Documentrequestitems resource

Parameters:
Name Type Description
client ApiClient

API client instance

Source:

Classes

DocumentrequestitemsResource
DocumentrequestitemsResource

Methods

(async) create(data) → {Promise.<Object>}

Create a new record

Parameters:
Name Type Description
data Object

Record data

Source:
Returns:
  • Created record with data and headers
Type
Promise.<Object>

(async) create(data) → {Promise.<Object>}

Create a new record

Parameters:
Name Type Description
data Object

Record data

Source:
Returns:
  • Created record with data and headers
Type
Promise.<Object>

(async) deleteDocumentrequestitemsId() → {Promise.<documentrequestitem>}

Delete DocumentRequestItem (destroy) Delete the DocumentRequestItem record with the specified ID.

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) deleteDocumentrequestitemsId() → {Promise.<documentrequestitem>}

Delete DocumentRequestItem (destroy) Delete the DocumentRequestItem record with the specified ID.

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) deleteDocumentrequestitemsIdAssociationChildid(association, childid) → {Promise.<documentrequestitem>}

Remove from for DocumentRequestItem Remove a foreign record from one of this DocumentRequestItem record's collections.

Parameters:
Name Type Description
association string

Path parameter

childid string

Path parameter

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) deleteDocumentrequestitemsIdAssociationChildid(association, childid) → {Promise.<documentrequestitem>}

Remove from for DocumentRequestItem Remove a foreign record from one of this DocumentRequestItem record's collections.

Parameters:
Name Type Description
association string

Path parameter

childid string

Path parameter

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) destroy(id) → {Promise.<Object>}

Delete a record by id

Parameters:
Name Type Description
id string | number

Record id

Source:
Returns:
  • Deletion result with data and headers
Type
Promise.<Object>

(async) destroy(id) → {Promise.<Object>}

Delete a record by id

Parameters:
Name Type Description
id string | number

Record id

Source:
Returns:
  • Deletion result with data and headers
Type
Promise.<Object>

find(criteria) → {QueryChain}

Starts a new query chain with the given criteria

Parameters:
Name Type Description
criteria Object

Filter criteria

Source:
Returns:
  • Query chain for further operations
Type
QueryChain

find(criteria) → {QueryChain}

Starts a new query chain with the given criteria

Parameters:
Name Type Description
criteria Object

Filter criteria

Source:
Returns:
  • Query chain for further operations
Type
QueryChain

findOne(id, populateopt) → {QueryChain|Promise.<Object>}

Find a single record by id

Parameters:
Name Type Attributes Description
id string | number

Record id

populate string | Array.<string> <optional>

Fields to populate

Source:
Returns:
  • Query chain for further operations or found record with data and headers
Type
QueryChain | Promise.<Object>

findOne(id, populateopt) → {QueryChain|Promise.<Object>}

Find a single record by id

Parameters:
Name Type Attributes Description
id string | number

Record id

populate string | Array.<string> <optional>

Fields to populate

Source:
Returns:
  • Query chain for further operations or found record with data and headers
Type
QueryChain | Promise.<Object>

(async) getDocumentrequestitems(queryopt) → {Promise.<Array.<documentrequestitem>>}

List DocumentRequestItem (find where) Find a list of DocumentRequestItem records that match the specified criteria.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<Array.<documentrequestitem>>

(async) getDocumentrequestitems(queryopt) → {Promise.<Array.<documentrequestitem>>}

List DocumentRequestItem (find where) Find a list of DocumentRequestItem records that match the specified criteria.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<Array.<documentrequestitem>>

(async) getDocumentrequestitemsCount(queryopt) → {Promise.<any>}

Count records Count the number of records that match the specified criteria.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<any>

(async) getDocumentrequestitemsCount(queryopt) → {Promise.<any>}

Count records Count the number of records that match the specified criteria.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<any>

(async) getDocumentrequestitemsId(queryopt) → {Promise.<documentrequestitem>}

Get DocumentRequestItem (find one) Look up the DocumentRequestItem record with the specified ID.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) getDocumentrequestitemsId(queryopt) → {Promise.<documentrequestitem>}

Get DocumentRequestItem (find one) Look up the DocumentRequestItem record with the specified ID.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) getDocumentrequestitemsIdAssociation(association, queryopt) → {Promise.<Array.<any>>}

Populate association for DocumentRequestItem Populate and return foreign record(s) for the given association of this DocumentRequestItem record.

Parameters:
Name Type Attributes Description
association string

Path parameter

query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<Array.<any>>

(async) getDocumentrequestitemsIdAssociation(association, queryopt) → {Promise.<Array.<any>>}

Populate association for DocumentRequestItem Populate and return foreign record(s) for the given association of this DocumentRequestItem record.

Parameters:
Name Type Attributes Description
association string

Path parameter

query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<Array.<any>>

(async) getDocumentrequestitemsSum(queryopt) → {Promise.<any>}

Sum field values Calculate the sum of a specified numeric field across filtered records.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<any>

(async) getDocumentrequestitemsSum(queryopt) → {Promise.<any>}

Sum field values Calculate the sum of a specified numeric field across filtered records.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<any>

(async) patchDocumentrequestitemsId(data) → {Promise.<documentrequestitem>}

Update DocumentRequestItem Update an existing DocumentRequestItem record.

Parameters:
Name Type Description
data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) patchDocumentrequestitemsId(data) → {Promise.<documentrequestitem>}

Update DocumentRequestItem Update an existing DocumentRequestItem record.

Parameters:
Name Type Description
data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) postDocumentrequestitems(data) → {Promise.<documentrequestitem>}

Create DocumentRequestItem Create a new DocumentRequestItem record.

Parameters:
Name Type Description
data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) postDocumentrequestitems(data) → {Promise.<documentrequestitem>}

Create DocumentRequestItem Create a new DocumentRequestItem record.

Parameters:
Name Type Description
data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) putDocumentrequestitemsIdAssociation(association, data) → {Promise.<documentrequestitem>}

Replace for DocumentRequestItem Replace all of the child records in one of this DocumentRequestItem record's associations.

Parameters:
Name Type Description
association string

Path parameter

data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) putDocumentrequestitemsIdAssociation(association, data) → {Promise.<documentrequestitem>}

Replace for DocumentRequestItem Replace all of the child records in one of this DocumentRequestItem record's associations.

Parameters:
Name Type Description
association string

Path parameter

data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) putDocumentrequestitemsIdAssociationChildid(association, childid) → {Promise.<documentrequestitem>}

Add to for DocumentRequestItem Add a foreign record to one of this DocumentRequestItem record's collections.

Parameters:
Name Type Description
association string

Path parameter

childid string

Path parameter

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) putDocumentrequestitemsIdAssociationChildid(association, childid) → {Promise.<documentrequestitem>}

Add to for DocumentRequestItem Add a foreign record to one of this DocumentRequestItem record's collections.

Parameters:
Name Type Description
association string

Path parameter

childid string

Path parameter

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) update(id, data) → {Promise.<Object>}

Update a record by id

Parameters:
Name Type Description
id string | number

Record id

data Object

Update data

Source:
Returns:
  • Updated record with data and headers
Type
Promise.<Object>

(async) update(id, data) → {Promise.<Object>}

Update a record by id

Parameters:
Name Type Description
id string | number

Record id

data Object

Update data

Source:
Returns:
  • Updated record with data and headers
Type
Promise.<Object>

DocumentrequestitemsResourceDocumentrequestitemsResource(client)

Documentrequestitems Resource Generated: 2025-04-01T19:44:53.323Z

Constructor

new DocumentrequestitemsResource(client)

Create a new Documentrequestitems resource

Parameters:
Name Type Description
client ApiClient

API client instance

Source:

Classes

DocumentrequestitemsResource
DocumentrequestitemsResource

Methods

(async) create(data) → {Promise.<Object>}

Create a new record

Parameters:
Name Type Description
data Object

Record data

Source:
Returns:
  • Created record with data and headers
Type
Promise.<Object>

(async) create(data) → {Promise.<Object>}

Create a new record

Parameters:
Name Type Description
data Object

Record data

Source:
Returns:
  • Created record with data and headers
Type
Promise.<Object>

(async) deleteDocumentrequestitemsId() → {Promise.<documentrequestitem>}

Delete DocumentRequestItem (destroy) Delete the DocumentRequestItem record with the specified ID.

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) deleteDocumentrequestitemsId() → {Promise.<documentrequestitem>}

Delete DocumentRequestItem (destroy) Delete the DocumentRequestItem record with the specified ID.

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) deleteDocumentrequestitemsIdAssociationChildid(association, childid) → {Promise.<documentrequestitem>}

Remove from for DocumentRequestItem Remove a foreign record from one of this DocumentRequestItem record's collections.

Parameters:
Name Type Description
association string

Path parameter

childid string

Path parameter

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) deleteDocumentrequestitemsIdAssociationChildid(association, childid) → {Promise.<documentrequestitem>}

Remove from for DocumentRequestItem Remove a foreign record from one of this DocumentRequestItem record's collections.

Parameters:
Name Type Description
association string

Path parameter

childid string

Path parameter

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) destroy(id) → {Promise.<Object>}

Delete a record by id

Parameters:
Name Type Description
id string | number

Record id

Source:
Returns:
  • Deletion result with data and headers
Type
Promise.<Object>

(async) destroy(id) → {Promise.<Object>}

Delete a record by id

Parameters:
Name Type Description
id string | number

Record id

Source:
Returns:
  • Deletion result with data and headers
Type
Promise.<Object>

find(criteria) → {QueryChain}

Starts a new query chain with the given criteria

Parameters:
Name Type Description
criteria Object

Filter criteria

Source:
Returns:
  • Query chain for further operations
Type
QueryChain

find(criteria) → {QueryChain}

Starts a new query chain with the given criteria

Parameters:
Name Type Description
criteria Object

Filter criteria

Source:
Returns:
  • Query chain for further operations
Type
QueryChain

findOne(id, populateopt) → {QueryChain|Promise.<Object>}

Find a single record by id

Parameters:
Name Type Attributes Description
id string | number

Record id

populate string | Array.<string> <optional>

Fields to populate

Source:
Returns:
  • Query chain for further operations or found record with data and headers
Type
QueryChain | Promise.<Object>

findOne(id, populateopt) → {QueryChain|Promise.<Object>}

Find a single record by id

Parameters:
Name Type Attributes Description
id string | number

Record id

populate string | Array.<string> <optional>

Fields to populate

Source:
Returns:
  • Query chain for further operations or found record with data and headers
Type
QueryChain | Promise.<Object>

(async) getDocumentrequestitems(queryopt) → {Promise.<Array.<documentrequestitem>>}

List DocumentRequestItem (find where) Find a list of DocumentRequestItem records that match the specified criteria.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<Array.<documentrequestitem>>

(async) getDocumentrequestitems(queryopt) → {Promise.<Array.<documentrequestitem>>}

List DocumentRequestItem (find where) Find a list of DocumentRequestItem records that match the specified criteria.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<Array.<documentrequestitem>>

(async) getDocumentrequestitemsCount(queryopt) → {Promise.<any>}

Count records Count the number of records that match the specified criteria.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<any>

(async) getDocumentrequestitemsCount(queryopt) → {Promise.<any>}

Count records Count the number of records that match the specified criteria.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<any>

(async) getDocumentrequestitemsId(queryopt) → {Promise.<documentrequestitem>}

Get DocumentRequestItem (find one) Look up the DocumentRequestItem record with the specified ID.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) getDocumentrequestitemsId(queryopt) → {Promise.<documentrequestitem>}

Get DocumentRequestItem (find one) Look up the DocumentRequestItem record with the specified ID.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) getDocumentrequestitemsIdAssociation(association, queryopt) → {Promise.<Array.<any>>}

Populate association for DocumentRequestItem Populate and return foreign record(s) for the given association of this DocumentRequestItem record.

Parameters:
Name Type Attributes Description
association string

Path parameter

query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<Array.<any>>

(async) getDocumentrequestitemsIdAssociation(association, queryopt) → {Promise.<Array.<any>>}

Populate association for DocumentRequestItem Populate and return foreign record(s) for the given association of this DocumentRequestItem record.

Parameters:
Name Type Attributes Description
association string

Path parameter

query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<Array.<any>>

(async) getDocumentrequestitemsSum(queryopt) → {Promise.<any>}

Sum field values Calculate the sum of a specified numeric field across filtered records.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<any>

(async) getDocumentrequestitemsSum(queryopt) → {Promise.<any>}

Sum field values Calculate the sum of a specified numeric field across filtered records.

Parameters:
Name Type Attributes Description
query Object <optional>

Query parameters

Source:
Returns:
  • Response with data and headers
Type
Promise.<any>

(async) patchDocumentrequestitemsId(data) → {Promise.<documentrequestitem>}

Update DocumentRequestItem Update an existing DocumentRequestItem record.

Parameters:
Name Type Description
data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) patchDocumentrequestitemsId(data) → {Promise.<documentrequestitem>}

Update DocumentRequestItem Update an existing DocumentRequestItem record.

Parameters:
Name Type Description
data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) postDocumentrequestitems(data) → {Promise.<documentrequestitem>}

Create DocumentRequestItem Create a new DocumentRequestItem record.

Parameters:
Name Type Description
data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) postDocumentrequestitems(data) → {Promise.<documentrequestitem>}

Create DocumentRequestItem Create a new DocumentRequestItem record.

Parameters:
Name Type Description
data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) putDocumentrequestitemsIdAssociation(association, data) → {Promise.<documentrequestitem>}

Replace for DocumentRequestItem Replace all of the child records in one of this DocumentRequestItem record's associations.

Parameters:
Name Type Description
association string

Path parameter

data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) putDocumentrequestitemsIdAssociation(association, data) → {Promise.<documentrequestitem>}

Replace for DocumentRequestItem Replace all of the child records in one of this DocumentRequestItem record's associations.

Parameters:
Name Type Description
association string

Path parameter

data Object

Request body

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) putDocumentrequestitemsIdAssociationChildid(association, childid) → {Promise.<documentrequestitem>}

Add to for DocumentRequestItem Add a foreign record to one of this DocumentRequestItem record's collections.

Parameters:
Name Type Description
association string

Path parameter

childid string

Path parameter

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) putDocumentrequestitemsIdAssociationChildid(association, childid) → {Promise.<documentrequestitem>}

Add to for DocumentRequestItem Add a foreign record to one of this DocumentRequestItem record's collections.

Parameters:
Name Type Description
association string

Path parameter

childid string

Path parameter

Source:
Returns:
  • Response with data and headers
Type
Promise.<documentrequestitem>

(async) update(id, data) → {Promise.<Object>}

Update a record by id

Parameters:
Name Type Description
id string | number

Record id

data Object

Update data

Source:
Returns:
  • Updated record with data and headers
Type
Promise.<Object>

(async) update(id, data) → {Promise.<Object>}

Update a record by id

Parameters:
Name Type Description
id string | number

Record id

data Object

Update data

Source:
Returns:
  • Updated record with data and headers
Type
Promise.<Object>