Classes
Methods
# contactInfo(companyId) → {CompaniesContactInfos}
Returns company contact informations.
Parameters:
Name | Type | Description |
---|---|---|
companyId |
String
|
The id of the company. |
# async create(company) → {Promise.<Company>}
Creates a new company.
Parameters:
Name | Type | Description |
---|---|---|
company |
CompaniesCreateModel
|
The model to create a new company. |
Promise.<Company>
# async delete(companyId, optionsopt) → {Promise.<void>}
There are several ways to delete a company. Look into the property description of the post model to get detailed information. If the post is executed without a model, the default process 'delete-only-company' will be executed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
companyId |
String
|
The id of the company. | |
options |
DeleteCompanyOptions
|
<optional> |
The model to delete a company. |
Promise.<void>
# entityTags(companyId)
Returns the EntityTags Endpoint with the specified company Id and name.
Parameters:
Name | Type | Description |
---|---|---|
companyId |
String
|
The id of the company. |
- Deprecated:
- Yes
# files(companyId) → {EntityFiles}
Returns the EntityFiles Endpoint with the specified company Id and entityType 'companies'.
Parameters:
Name | Type | Description |
---|---|---|
companyId |
String
|
The id of the company. |
# async get(companyId) → {Promise.<Company>}
Returns the company with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
companyId |
String
|
The id of the company. |
Promise.<Company>
# images(projectId) → {EntityImages}
Returns the EntityImages Endpoint with the specified company Id.
Parameters:
Name | Type | Description |
---|---|---|
projectId |
String
|
The id of the company. |
# async list(optionsopt) → {Promise.<Array.<Company>>}
Returns all companies.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options |
Promise.<Array.<Company>>
# tags(companyId)
Returns the EntityTags Endpoint with the specified company Id and name.
Parameters:
Name | Type | Description |
---|---|---|
companyId |
String
|
The id of the company. |
# async update(companyId, company) → {Promise.<Company>}
Updates the company with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
companyId |
String
|
The id of the company. |
company |
CompaniesUpdateModel
|
The model to update a company. |
Promise.<Company>