Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
1 change: 1 addition & 0 deletions makecomapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions modules/watchNewSubmissions/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
6 changes: 4 additions & 2 deletions tests/contracts.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
Loading