Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Retrieve spam submissions from listSiteSubmissions and listFormSubmissions functions #508

Open
aidanm1999 opened this issue Oct 27, 2021 · 0 comments

Comments

@aidanm1999
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant