diff --git a/README.md b/README.md index a1e75eb..29ea7fb 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ This integration follows the same lightweight pattern as OpnForm's Activepieces ├── modules/ │ ├── watchNewSubmissions/ │ │ ├── communication.json # Empty: the paired webhook already produces the bundle +│ │ ├── parameters.json # Empty: form/workspace selectors belong to the webhook │ │ └── expect.json # Empty: form/workspace selectors belong to the webhook │ └── makeAnApiCall/ # Authorized REST universal module using relative API paths └── rpcs/ diff --git a/makecomapp.json b/makecomapp.json index 0f4ea61..93bcc07 100644 --- a/makecomapp.json +++ b/makecomapp.json @@ -39,6 +39,7 @@ "webhook": "newSubmission", "codeFiles": { "communication": "modules/watchNewSubmissions/communication.json", + "parameters": "modules/watchNewSubmissions/parameters.json", "mappableParams": "modules/watchNewSubmissions/expect.json", "interface": "modules/watchNewSubmissions/interface.json", "samples": "modules/watchNewSubmissions/samples.json" diff --git a/modules/watchNewSubmissions/parameters.json b/modules/watchNewSubmissions/parameters.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/modules/watchNewSubmissions/parameters.json @@ -0,0 +1 @@ +[] diff --git a/tests/contracts.test.mjs b/tests/contracts.test.mjs index c40a58c..a086d3b 100644 --- a/tests/contracts.test.mjs +++ b/tests/contracts.test.mjs @@ -39,11 +39,13 @@ test('attached webhook persists and reuses the remote integration id', async () }) test('instant trigger preserves the bundle produced by its webhook', async () => { + const staticParameters = await readJson('modules/watchNewSubmissions/parameters.json') const communication = await readJson('modules/watchNewSubmissions/communication.json') - const parameters = await readJson('modules/watchNewSubmissions/expect.json') + const mappableParameters = await readJson('modules/watchNewSubmissions/expect.json') assert.deepEqual(communication, {}) - assert.deepEqual(parameters, []) + assert.deepEqual(staticParameters, []) + assert.deepEqual(mappableParameters, []) }) test('form RPC follows the Laravel resource pagination envelope', async () => {