Methods
(static) createNavigationEngagement(newEngagement, token) → {null}
Create a new engagement for the user navigation
Parameters:
| Name | Type | Description |
|---|---|---|
newEngagement |
any | Required for the action: The engagement to add |
token |
string | Required: the Authorization Bearer token passed in the Header of the request |
Listens to Events:
- event:HTTP POST /rest-api/corporateacademy-mediator/create-navigation-engagement
Returns:
- Type
- null
(static) hasUserACertificatedAssignedEngagement(stageItemId, token) → {boolean}
Retrieve a boolean that indicate if the logged user has the certificate_assigned engagement for the specified stage item
Parameters:
| Name | Type | Description |
|---|---|---|
stageItemId |
string | Required: The stage used for check if the logged user has the EVENT_CERTIFICATE_ASSIGNED engagement |
token |
string | Required: the Authorization Bearer token passed in the Header of the request |
Listens to Events:
- event:HTTP GET /rest-api/corporateacademy-mediator/has-user-a-certificated-assigned-engagement
Returns:
- Type
- boolean