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

Retrieve spam submissions from listSiteSubmissions and listFormSubmissions functions #508

@aidanm1999

Description

@aidanm1999

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions