Methods
activityFromFolder(activity, folder) → {boolean}
Returns whether a record came from the specified folder when moving to another one.
Parameters:
Name | Type | Description |
---|---|---|
activity |
Object | |
folder |
number | Destination folder id. |
Returns:
- Type
- boolean
activityToFolder(activity, folder) → {boolean}
Returns whether a record went into the specified folder.
Parameters:
Name | Type | Description |
---|---|---|
activity |
Object | |
folder |
number | Destination folder id. |
Returns:
- Type
- boolean
setIdField(fieldName)
Sets the name of the field in settings where the webhook id will be stored.
Parameters:
Name | Type | Description |
---|---|---|
fieldName |
string |
setKeyField(fieldName)
Sets the name of the field in settings where the webhook secret key will be stored.
Parameters:
Name | Type | Description |
---|---|---|
fieldName |
string |
validateSecret(settings, request) → {boolean}
Validates whether a webhook secret matches the saved one.
Parameters:
Name | Type | Description |
---|---|---|
settings |
Object | Saved settings |
request |
Object | The HTTP Request |
Returns:
- Type
- boolean