js-client
js-client copied to clipboard
Retrieve spam submissions from `listSiteSubmissions` and `listFormSubmissions` functions
Feature Request
- What is the current behaviour?
The functions listSiteSubmissions()
and listFormSubmissions()
only returns valid submissions. In your docs, you can pass in a ?state=spam
path parameter, but when looking at the code in this repo:
{
"operationId": "listSiteSubmissions",
"parameters": {
"body": {},
"path": {
"site_id": {
"in": "path",
"name": "site_id",
"required": true,
"type": "string"
}
}
}
}
{
"operationId": "listFormSubmissions",
"parameters": {
"body": {},
"path": {
"form_id": {
"in": "path",
"name": "form_id",
"required": true,
"type": "string"
}
}
}
}
listSiteSubmissions()
and listFormSubmissions()
do not have the option to pass in the spam param.
- If the current behaviour is a bug, please provide the steps to reproduce.
- What is the expected behaviour? To enable spam submissions being returned in the client:
client.listSiteSubmissions({ site_id, spam: true });
or
client.listSiteSubmissions({ site_id, state: "spam" });
- Please mention your node.js, and operating system version. Node.js - v14.17.4 OS - macOS Monteray