@zapier/zapier-sdk 0.65.0 → 0.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/README.md +64 -34
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +2 -0
- package/dist/api/debug.d.ts.map +1 -1
- package/dist/api/debug.js +6 -4
- package/dist/api/polling.d.ts +2 -0
- package/dist/api/polling.d.ts.map +1 -1
- package/dist/api/polling.js +10 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +8 -5
- package/dist/core-stack.d.ts +24 -0
- package/dist/core-stack.d.ts.map +1 -0
- package/dist/core-stack.js +32 -0
- package/dist/experimental.cjs +1598 -1323
- package/dist/experimental.d.mts +3476 -224
- package/dist/experimental.d.ts +3508 -256
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +117 -87
- package/dist/experimental.mjs +1585 -1322
- package/dist/formatters/action.d.ts +4 -0
- package/dist/formatters/action.d.ts.map +1 -0
- package/dist/formatters/action.js +18 -0
- package/dist/formatters/actionResult.d.ts +3 -0
- package/dist/formatters/actionResult.d.ts.map +1 -0
- package/dist/formatters/actionResult.js +25 -0
- package/dist/formatters/app.d.ts +4 -0
- package/dist/formatters/app.d.ts.map +1 -0
- package/dist/formatters/app.js +10 -0
- package/dist/formatters/clientCredentials.d.ts +5 -0
- package/dist/formatters/clientCredentials.d.ts.map +1 -0
- package/dist/formatters/clientCredentials.js +27 -0
- package/dist/formatters/connection.d.ts +4 -0
- package/dist/formatters/connection.d.ts.map +1 -0
- package/dist/formatters/connection.js +26 -0
- package/dist/formatters/field.d.ts +4 -0
- package/dist/formatters/field.d.ts.map +1 -0
- package/dist/formatters/field.js +51 -0
- package/dist/formatters/inputFieldChoice.d.ts +4 -0
- package/dist/formatters/inputFieldChoice.d.ts.map +1 -0
- package/dist/formatters/inputFieldChoice.js +16 -0
- package/dist/formatters/tableField.d.ts +4 -0
- package/dist/formatters/tableField.d.ts.map +1 -0
- package/dist/formatters/tableField.js +7 -0
- package/dist/formatters/tableRecord.d.ts +5 -3
- package/dist/formatters/tableRecord.d.ts.map +1 -1
- package/dist/formatters/tableRecord.js +4 -3
- package/dist/formatters/triggerInbox.d.ts +4 -0
- package/dist/formatters/triggerInbox.d.ts.map +1 -0
- package/dist/formatters/triggerInbox.js +31 -0
- package/dist/formatters/triggerMessage.d.ts +5 -0
- package/dist/formatters/triggerMessage.d.ts.map +1 -0
- package/dist/formatters/triggerMessage.js +34 -0
- package/dist/formatters/userProfile.d.ts +4 -0
- package/dist/formatters/userProfile.d.ts.map +1 -0
- package/dist/formatters/userProfile.js +19 -0
- package/dist/{index-JhNxS_mq.d.mts → index-oRnHsPn5.d.mts} +12906 -7603
- package/dist/{index-JhNxS_mq.d.ts → index-oRnHsPn5.d.ts} +12906 -7603
- package/dist/index.cjs +1729 -1469
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +12 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -7
- package/dist/index.mjs +1716 -1468
- package/dist/plugins/api/index.d.ts +1 -1
- package/dist/plugins/api/index.js +1 -1
- package/dist/plugins/apps/index.d.ts +8 -5
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/apps/index.js +1 -1
- package/dist/plugins/capabilities/index.d.ts +1 -1
- package/dist/plugins/capabilities/index.js +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts +32 -2
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/createWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts +32 -2
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/getTriggerRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +55 -2
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +51 -2
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.js +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +28 -3
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +28 -3
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.js +2 -3
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.js +1 -1
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/runDurable/index.js +1 -1
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +73 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.js +52 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.d.ts +16 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.js +31 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.js +1 -1
- package/dist/plugins/connections/index.d.ts +1 -1
- package/dist/plugins/connections/index.js +1 -1
- package/dist/plugins/createClientCredentials/index.d.ts +2 -2
- package/dist/plugins/createClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/createClientCredentials/index.js +4 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts +1 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.d.ts +24 -2
- package/dist/plugins/deleteClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.js +2 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts +1 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.d.ts +144 -16
- package/dist/plugins/deprecated/authentications.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.js +14 -5
- package/dist/plugins/deprecated/inputFields.d.ts +58 -23
- package/dist/plugins/deprecated/inputFields.d.ts.map +1 -1
- package/dist/plugins/deprecated/inputFields.js +15 -7
- package/dist/plugins/eventEmission/event-emission-hook.d.ts +10 -0
- package/dist/plugins/eventEmission/event-emission-hook.d.ts.map +1 -0
- package/dist/plugins/eventEmission/event-emission-hook.js +47 -0
- package/dist/plugins/eventEmission/index.d.ts +5 -3
- package/dist/plugins/eventEmission/index.d.ts.map +1 -1
- package/dist/plugins/eventEmission/index.js +16 -9
- package/dist/plugins/eventEmission/method-metadata.d.ts +16 -0
- package/dist/plugins/eventEmission/method-metadata.d.ts.map +1 -0
- package/dist/plugins/eventEmission/method-metadata.js +20 -0
- package/dist/plugins/eventEmission/transport.d.ts.map +1 -1
- package/dist/plugins/eventEmission/transport.js +2 -1
- package/dist/plugins/eventEmission/types.d.ts +1 -1
- package/dist/plugins/eventEmission/types.d.ts.map +1 -1
- package/dist/plugins/fetch/index.d.ts +11 -5
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +42 -32
- package/dist/plugins/fetch/schemas.d.ts +1 -1
- package/dist/plugins/findFirstConnection/index.d.ts +4 -4
- package/dist/plugins/findFirstConnection/index.d.ts.map +1 -1
- package/dist/plugins/findFirstConnection/index.js +4 -2
- package/dist/plugins/findFirstConnection/schemas.d.ts +2 -2
- package/dist/plugins/findUniqueConnection/index.d.ts +4 -4
- package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/index.js +4 -2
- package/dist/plugins/findUniqueConnection/schemas.d.ts +2 -2
- package/dist/plugins/getAction/index.d.ts +141 -4
- package/dist/plugins/getAction/index.d.ts.map +1 -1
- package/dist/plugins/getAction/index.js +5 -3
- package/dist/plugins/getAction/schemas.d.ts +6 -6
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts +232 -3
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/getActionInputFieldsSchema/index.js +3 -3
- package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts +6 -6
- package/dist/plugins/getApp/index.d.ts +4 -4
- package/dist/plugins/getApp/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.js +3 -1
- package/dist/plugins/getApp/schemas.d.ts +4 -4
- package/dist/plugins/getConnection/index.d.ts +125 -2
- package/dist/plugins/getConnection/index.d.ts.map +1 -1
- package/dist/plugins/getConnection/index.js +4 -2
- package/dist/plugins/getProfile/index.d.ts +2 -2
- package/dist/plugins/getProfile/index.d.ts.map +1 -1
- package/dist/plugins/getProfile/index.js +4 -2
- package/dist/plugins/getProfile/schemas.d.ts +1 -2
- package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/index.d.ts +287 -4
- package/dist/plugins/listActionInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/index.js +6 -4
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts +8 -8
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/schemas.js +1 -22
- package/dist/plugins/listActionInputFields/index.d.ts +168 -5
- package/dist/plugins/listActionInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listActionInputFields/index.js +7 -5
- package/dist/plugins/listActionInputFields/schemas.d.ts +6 -6
- package/dist/plugins/listActions/index.d.ts +140 -3
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/index.js +6 -4
- package/dist/plugins/listActions/schemas.d.ts +4 -4
- package/dist/plugins/listApps/index.d.ts +3 -3
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +6 -4
- package/dist/plugins/listClientCredentials/index.d.ts +3 -3
- package/dist/plugins/listClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/listClientCredentials/index.js +6 -4
- package/dist/plugins/listConnections/index.d.ts +140 -3
- package/dist/plugins/listConnections/index.d.ts.map +1 -1
- package/dist/plugins/listConnections/index.js +7 -5
- package/dist/plugins/listConnections/schemas.d.ts +2 -2
- package/dist/plugins/manifest/index.d.ts +1 -1
- package/dist/plugins/manifest/index.d.ts.map +1 -1
- package/dist/plugins/manifest/index.js +6 -4
- package/dist/plugins/registry/index.d.ts +1 -1
- package/dist/plugins/registry/index.js +1 -1
- package/dist/plugins/request/index.d.ts +8 -5
- package/dist/plugins/request/index.d.ts.map +1 -1
- package/dist/plugins/request/index.js +4 -3
- package/dist/plugins/request/schemas.d.ts +2 -2
- package/dist/plugins/runAction/index.d.ts +168 -5
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/index.js +9 -5
- package/dist/plugins/runAction/schemas.d.ts +6 -6
- package/dist/plugins/tables/createTable/index.d.ts +2 -2
- package/dist/plugins/tables/createTable/index.js +2 -2
- package/dist/plugins/tables/createTable/schemas.d.ts +1 -2
- package/dist/plugins/tables/createTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.d.ts +34 -2
- package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.js +4 -2
- package/dist/plugins/tables/createTableFields/schemas.d.ts +3 -4
- package/dist/plugins/tables/createTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.d.ts +63 -2
- package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.js +2 -2
- package/dist/plugins/tables/createTableRecords/schemas.d.ts +3 -4
- package/dist/plugins/tables/createTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.d.ts +34 -2
- package/dist/plugins/tables/deleteTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.js +2 -2
- package/dist/plugins/tables/deleteTable/schemas.d.ts +3 -4
- package/dist/plugins/tables/deleteTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.d.ts +63 -2
- package/dist/plugins/tables/deleteTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.js +2 -2
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts +4 -5
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.d.ts +84 -2
- package/dist/plugins/tables/deleteTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.js +2 -2
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts +4 -5
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.d.ts +34 -2
- package/dist/plugins/tables/getTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.js +2 -2
- package/dist/plugins/tables/getTable/schemas.d.ts +2 -2
- package/dist/plugins/tables/getTableRecord/index.d.ts +84 -2
- package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/index.js +2 -2
- package/dist/plugins/tables/getTableRecord/schemas.d.ts +6 -7
- package/dist/plugins/tables/getTableRecord/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/schemas.js +1 -10
- package/dist/plugins/tables/listTableFields/index.d.ts +34 -2
- package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/index.js +4 -2
- package/dist/plugins/tables/listTableFields/schemas.d.ts +4 -5
- package/dist/plugins/tables/listTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/schemas.js +1 -9
- package/dist/plugins/tables/listTableRecords/index.d.ts +65 -4
- package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/index.js +3 -3
- package/dist/plugins/tables/listTableRecords/schemas.d.ts +2 -2
- package/dist/plugins/tables/listTables/index.d.ts +3 -3
- package/dist/plugins/tables/listTables/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTables/index.js +4 -4
- package/dist/plugins/tables/updateTableRecords/index.d.ts +63 -2
- package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/updateTableRecords/index.js +2 -2
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts +3 -4
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts +59 -2
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts +231 -2
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts +3 -4
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/deleteTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts +68 -6
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.js +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/schemas.d.ts +2 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts +231 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ensureTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts +3 -4
- package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/getTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +232 -3
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.js +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.d.ts +2 -2
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts +33 -2
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts +34 -3
- package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInboxMessages/index.js +5 -13
- package/dist/plugins/triggers/listTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/listTriggerInboxes/index.d.ts +3 -3
- package/dist/plugins/triggers/listTriggerInboxes/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInboxes/index.js +5 -14
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +288 -5
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.js +7 -5
- package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.d.ts +3 -3
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +234 -5
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInputFields/index.js +6 -5
- package/dist/plugins/triggers/listTriggerInputFields/schemas.d.ts +2 -2
- package/dist/plugins/triggers/listTriggers/index.d.ts +142 -5
- package/dist/plugins/triggers/listTriggers/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggers/index.js +6 -5
- package/dist/plugins/triggers/listTriggers/schemas.d.ts +1 -1
- package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/pauseTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts +59 -2
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/resumeTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/updateTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/updateTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/updateTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts +37 -6
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.js +1 -1
- package/dist/resolvers/actionKey.d.ts +3 -2
- package/dist/resolvers/actionKey.d.ts.map +1 -1
- package/dist/resolvers/actionType.d.ts +7 -2
- package/dist/resolvers/actionType.d.ts.map +1 -1
- package/dist/resolvers/actionType.js +3 -0
- package/dist/resolvers/appKey.d.ts +10 -5
- package/dist/resolvers/appKey.d.ts.map +1 -1
- package/dist/resolvers/appKey.js +3 -0
- package/dist/resolvers/clientCredentialsName.d.ts +1 -1
- package/dist/resolvers/clientCredentialsName.d.ts.map +1 -1
- package/dist/resolvers/clientId.d.ts +3 -2
- package/dist/resolvers/clientId.d.ts.map +1 -1
- package/dist/resolvers/clientId.js +1 -1
- package/dist/resolvers/connectionId.d.ts +5 -2
- package/dist/resolvers/connectionId.d.ts.map +1 -1
- package/dist/resolvers/connectionId.js +1 -1
- package/dist/resolvers/durableRunId.d.ts +3 -2
- package/dist/resolvers/durableRunId.d.ts.map +1 -1
- package/dist/resolvers/durableRunId.js +3 -2
- package/dist/resolvers/inputFieldKey.d.ts +3 -2
- package/dist/resolvers/inputFieldKey.d.ts.map +1 -1
- package/dist/resolvers/inputFieldKey.js +1 -1
- package/dist/resolvers/tableFieldIds.d.ts +3 -2
- package/dist/resolvers/tableFieldIds.d.ts.map +1 -1
- package/dist/resolvers/tableFields.d.ts +2 -2
- package/dist/resolvers/tableFields.d.ts.map +1 -1
- package/dist/resolvers/tableFilters.d.ts +3 -2
- package/dist/resolvers/tableFilters.d.ts.map +1 -1
- package/dist/resolvers/tableId.d.ts +3 -2
- package/dist/resolvers/tableId.d.ts.map +1 -1
- package/dist/resolvers/tableId.js +1 -1
- package/dist/resolvers/tableName.d.ts +1 -1
- package/dist/resolvers/tableName.d.ts.map +1 -1
- package/dist/resolvers/tableRecordId.d.ts +4 -3
- package/dist/resolvers/tableRecordId.d.ts.map +1 -1
- package/dist/resolvers/tableRecords.d.ts +4 -3
- package/dist/resolvers/tableRecords.d.ts.map +1 -1
- package/dist/resolvers/tableSort.d.ts +3 -2
- package/dist/resolvers/tableSort.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.d.ts +3 -2
- package/dist/resolvers/triggerInbox.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.js +1 -1
- package/dist/resolvers/triggerMessages.d.ts +3 -2
- package/dist/resolvers/triggerMessages.d.ts.map +1 -1
- package/dist/resolvers/triggerMessages.js +2 -4
- package/dist/resolvers/workflowId.d.ts +3 -2
- package/dist/resolvers/workflowId.d.ts.map +1 -1
- package/dist/resolvers/workflowId.js +3 -2
- package/dist/resolvers/workflowRunId.d.ts +3 -2
- package/dist/resolvers/workflowRunId.d.ts.map +1 -1
- package/dist/resolvers/workflowRunId.js +5 -5
- package/dist/resolvers/workflowVersionId.d.ts +3 -2
- package/dist/resolvers/workflowVersionId.d.ts.map +1 -1
- package/dist/resolvers/workflowVersionId.js +7 -7
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/Action.js +6 -30
- package/dist/schemas/App.d.ts +0 -1
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +2 -14
- package/dist/schemas/ClientCredentials.d.ts.map +1 -1
- package/dist/schemas/ClientCredentials.js +3 -41
- package/dist/schemas/Connection.d.ts.map +1 -1
- package/dist/schemas/Connection.js +2 -28
- package/dist/schemas/Field.d.ts.map +1 -1
- package/dist/schemas/Field.js +3 -70
- package/dist/schemas/Run.d.ts.map +1 -1
- package/dist/schemas/Run.js +3 -29
- package/dist/schemas/TriggerInbox.d.ts.map +1 -1
- package/dist/schemas/TriggerInbox.js +1 -33
- package/dist/schemas/TriggerMessage.d.ts.map +1 -1
- package/dist/schemas/TriggerMessage.js +2 -60
- package/dist/schemas/UserProfile.d.ts +0 -1
- package/dist/schemas/UserProfile.d.ts.map +1 -1
- package/dist/schemas/UserProfile.js +1 -20
- package/dist/sdk.d.ts +2761 -441
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +93 -129
- package/dist/types/errors.d.ts +44 -42
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +79 -33
- package/dist/types/functions.d.ts +1 -41
- package/dist/types/functions.d.ts.map +1 -1
- package/dist/types/properties.d.ts +7 -7
- package/dist/types/properties.js +1 -1
- package/dist/types/sdk.d.ts +1 -1
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/telemetry-events.d.ts +1 -1
- package/dist/types/telemetry-events.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +1 -1
- package/dist/utils/logging.d.ts +1 -12
- package/dist/utils/logging.d.ts.map +1 -1
- package/dist/utils/logging.js +2 -20
- package/dist/utils/pagination.d.ts +38 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/pagination.js +53 -0
- package/package.json +3 -2
- package/dist/registry.d.ts +0 -9
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -103
- package/dist/types/meta.d.ts +0 -9
- package/dist/types/meta.d.ts.map +0 -1
- package/dist/types/meta.js +0 -3
- package/dist/types/plugin.d.ts +0 -84
- package/dist/types/plugin.d.ts.map +0 -1
- package/dist/types/plugin.js +0 -13
- package/dist/types/registry.d.ts +0 -54
- package/dist/types/registry.d.ts.map +0 -1
- package/dist/types/registry.js +0 -1
- package/dist/utils/function-utils.d.ts +0 -59
- package/dist/utils/function-utils.d.ts.map +0 -1
- package/dist/utils/function-utils.js +0 -245
- package/dist/utils/pagination-utils.d.ts +0 -73
- package/dist/utils/pagination-utils.d.ts.map +0 -1
- package/dist/utils/pagination-utils.js +0 -308
- package/dist/utils/plugin-utils.d.ts +0 -245
- package/dist/utils/plugin-utils.d.ts.map +0 -1
- package/dist/utils/plugin-utils.js +0 -234
- package/dist/utils/schema-utils.d.ts +0 -211
- package/dist/utils/schema-utils.d.ts.map +0 -1
- package/dist/utils/schema-utils.js +0 -72
- package/dist/utils/string-utils.d.ts +0 -40
- package/dist/utils/string-utils.d.ts.map +0 -1
- package/dist/utils/string-utils.js +0 -69
- package/dist/utils/telemetry-context.d.ts +0 -15
- package/dist/utils/telemetry-context.d.ts.map +0 -1
- package/dist/utils/telemetry-context.js +0 -48
- package/dist/utils/telemetry-utils.d.ts +0 -44
- package/dist/utils/telemetry-utils.d.ts.map +0 -1
- package/dist/utils/telemetry-utils.js +0 -60
- package/dist/utils/validation.d.ts +0 -4
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -30
|
@@ -21,12 +21,241 @@ export declare const getTriggerInputFieldsSchemaPlugin: (sdk: {
|
|
|
21
21
|
} & {
|
|
22
22
|
context: {
|
|
23
23
|
meta: {
|
|
24
|
-
getActionInputFieldsSchema: import("
|
|
24
|
+
getActionInputFieldsSchema: import("kitcore").PluginMeta<unknown>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
} & {
|
|
28
|
+
getApp: (options?: {
|
|
29
|
+
app: string;
|
|
30
|
+
} | {
|
|
31
|
+
appKey: string;
|
|
32
|
+
} | undefined) => Promise<{
|
|
33
|
+
data: {
|
|
34
|
+
slug: string;
|
|
35
|
+
title: string;
|
|
36
|
+
key: string;
|
|
37
|
+
implementation_id: string;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
is_hidden?: boolean | undefined;
|
|
40
|
+
auth_type?: string | undefined;
|
|
41
|
+
actions?: {
|
|
42
|
+
read?: number | undefined;
|
|
43
|
+
read_bulk?: number | undefined;
|
|
44
|
+
write?: number | undefined;
|
|
45
|
+
search?: number | undefined;
|
|
46
|
+
search_or_write?: number | undefined;
|
|
47
|
+
search_and_write?: number | undefined;
|
|
48
|
+
filter?: number | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
is_deprecated?: boolean | undefined;
|
|
51
|
+
is_beta?: boolean | undefined;
|
|
52
|
+
is_premium?: boolean | undefined;
|
|
53
|
+
age_in_days?: number | undefined;
|
|
54
|
+
banner?: string | undefined;
|
|
55
|
+
categories?: {
|
|
56
|
+
id: number;
|
|
57
|
+
name: string;
|
|
58
|
+
slug: string;
|
|
59
|
+
}[] | undefined;
|
|
60
|
+
images?: {
|
|
61
|
+
url_16x16?: string | undefined;
|
|
62
|
+
url_32x32?: string | undefined;
|
|
63
|
+
url_64x64?: string | undefined;
|
|
64
|
+
url_128x128?: string | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
popularity?: number | undefined;
|
|
67
|
+
has_filters?: boolean | undefined;
|
|
68
|
+
has_reads?: boolean | undefined;
|
|
69
|
+
has_searches?: boolean | undefined;
|
|
70
|
+
has_searches_or_writes?: boolean | undefined;
|
|
71
|
+
has_upfront_fields?: boolean | undefined;
|
|
72
|
+
has_writes?: boolean | undefined;
|
|
73
|
+
is_built_in?: boolean | undefined;
|
|
74
|
+
is_featured?: boolean | undefined;
|
|
75
|
+
is_invite?: boolean | undefined;
|
|
76
|
+
is_public?: boolean | undefined;
|
|
77
|
+
is_upcoming?: boolean | undefined;
|
|
78
|
+
visibility?: string | undefined;
|
|
79
|
+
primary_color?: string | undefined;
|
|
80
|
+
secondary_color?: string | undefined;
|
|
81
|
+
classification?: string | undefined;
|
|
82
|
+
api_docs_url?: string | undefined;
|
|
83
|
+
image?: string | undefined;
|
|
84
|
+
version?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
}>;
|
|
87
|
+
} & {
|
|
88
|
+
context: {
|
|
89
|
+
meta: {
|
|
90
|
+
getApp: import("kitcore").PluginMeta<unknown>;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
} & {
|
|
94
|
+
listApps: (options?: ({
|
|
95
|
+
search?: string | undefined;
|
|
96
|
+
apps?: string[] | undefined;
|
|
97
|
+
appKeys?: string[] | undefined;
|
|
98
|
+
pageSize?: number | undefined;
|
|
99
|
+
maxItems?: number | undefined;
|
|
100
|
+
cursor?: string | undefined;
|
|
101
|
+
} & {
|
|
102
|
+
cursor?: string;
|
|
103
|
+
pageSize?: number;
|
|
104
|
+
maxItems?: number;
|
|
105
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
106
|
+
slug: string;
|
|
107
|
+
title: string;
|
|
108
|
+
key: string;
|
|
109
|
+
implementation_id: string;
|
|
110
|
+
description?: string | undefined;
|
|
111
|
+
is_hidden?: boolean | undefined;
|
|
112
|
+
auth_type?: string | undefined;
|
|
113
|
+
actions?: {
|
|
114
|
+
read?: number | undefined;
|
|
115
|
+
read_bulk?: number | undefined;
|
|
116
|
+
write?: number | undefined;
|
|
117
|
+
search?: number | undefined;
|
|
118
|
+
search_or_write?: number | undefined;
|
|
119
|
+
search_and_write?: number | undefined;
|
|
120
|
+
filter?: number | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
is_deprecated?: boolean | undefined;
|
|
123
|
+
is_beta?: boolean | undefined;
|
|
124
|
+
is_premium?: boolean | undefined;
|
|
125
|
+
age_in_days?: number | undefined;
|
|
126
|
+
banner?: string | undefined;
|
|
127
|
+
categories?: {
|
|
128
|
+
id: number;
|
|
129
|
+
name: string;
|
|
130
|
+
slug: string;
|
|
131
|
+
}[] | undefined;
|
|
132
|
+
images?: {
|
|
133
|
+
url_16x16?: string | undefined;
|
|
134
|
+
url_32x32?: string | undefined;
|
|
135
|
+
url_64x64?: string | undefined;
|
|
136
|
+
url_128x128?: string | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
popularity?: number | undefined;
|
|
139
|
+
has_filters?: boolean | undefined;
|
|
140
|
+
has_reads?: boolean | undefined;
|
|
141
|
+
has_searches?: boolean | undefined;
|
|
142
|
+
has_searches_or_writes?: boolean | undefined;
|
|
143
|
+
has_upfront_fields?: boolean | undefined;
|
|
144
|
+
has_writes?: boolean | undefined;
|
|
145
|
+
is_built_in?: boolean | undefined;
|
|
146
|
+
is_featured?: boolean | undefined;
|
|
147
|
+
is_invite?: boolean | undefined;
|
|
148
|
+
is_public?: boolean | undefined;
|
|
149
|
+
is_upcoming?: boolean | undefined;
|
|
150
|
+
visibility?: string | undefined;
|
|
151
|
+
primary_color?: string | undefined;
|
|
152
|
+
secondary_color?: string | undefined;
|
|
153
|
+
classification?: string | undefined;
|
|
154
|
+
api_docs_url?: string | undefined;
|
|
155
|
+
image?: string | undefined;
|
|
156
|
+
version?: string | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
} & {
|
|
159
|
+
context: {
|
|
160
|
+
meta: {
|
|
161
|
+
listApps: import("kitcore").PluginMeta<unknown>;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
} & {
|
|
165
|
+
listActions: (options?: (({
|
|
166
|
+
app: string;
|
|
167
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
168
|
+
pageSize?: number | undefined;
|
|
169
|
+
maxItems?: number | undefined;
|
|
170
|
+
cursor?: string | undefined;
|
|
171
|
+
} | {
|
|
172
|
+
appKey: string;
|
|
173
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
174
|
+
pageSize?: number | undefined;
|
|
175
|
+
maxItems?: number | undefined;
|
|
176
|
+
cursor?: string | undefined;
|
|
177
|
+
}) & {
|
|
178
|
+
cursor?: string;
|
|
179
|
+
pageSize?: number;
|
|
180
|
+
maxItems?: number;
|
|
181
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
182
|
+
description: string;
|
|
183
|
+
key: string;
|
|
184
|
+
app_key: string;
|
|
185
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
186
|
+
title: string;
|
|
187
|
+
type: "action";
|
|
188
|
+
id?: string | undefined;
|
|
189
|
+
is_important?: boolean | undefined;
|
|
190
|
+
is_hidden?: boolean | undefined;
|
|
191
|
+
app_version?: string | undefined;
|
|
192
|
+
}>;
|
|
193
|
+
} & {
|
|
194
|
+
context: {
|
|
195
|
+
meta: {
|
|
196
|
+
listActions: import("kitcore").PluginMeta<unknown>;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
} & {
|
|
200
|
+
listConnections: (options?: ({
|
|
201
|
+
title?: string | undefined;
|
|
202
|
+
search?: string | undefined;
|
|
203
|
+
owner?: string | undefined;
|
|
204
|
+
app?: string | undefined;
|
|
205
|
+
appKey?: string | undefined;
|
|
206
|
+
connections?: string[] | undefined;
|
|
207
|
+
connectionIds?: string[] | undefined;
|
|
208
|
+
authenticationIds?: string[] | undefined;
|
|
209
|
+
account?: string | undefined;
|
|
210
|
+
accountId?: string | undefined;
|
|
211
|
+
includeShared?: boolean | undefined;
|
|
212
|
+
isExpired?: boolean | undefined;
|
|
213
|
+
expired?: boolean | undefined;
|
|
214
|
+
pageSize?: number | undefined;
|
|
215
|
+
maxItems?: number | undefined;
|
|
216
|
+
cursor?: string | undefined;
|
|
217
|
+
} & {
|
|
218
|
+
cursor?: string;
|
|
219
|
+
pageSize?: number;
|
|
220
|
+
maxItems?: number;
|
|
221
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
222
|
+
date: string;
|
|
223
|
+
is_invite_only: boolean;
|
|
224
|
+
is_private: boolean;
|
|
225
|
+
shared_with_all: boolean;
|
|
226
|
+
id: string;
|
|
227
|
+
account_id: string;
|
|
228
|
+
title?: string | null | undefined;
|
|
229
|
+
lastchanged?: string | undefined;
|
|
230
|
+
destination_selected_api?: string | null | undefined;
|
|
231
|
+
is_stale?: string | undefined;
|
|
232
|
+
is_shared?: string | undefined;
|
|
233
|
+
marked_stale_at?: string | null | undefined;
|
|
234
|
+
label?: string | null | undefined;
|
|
235
|
+
identifier?: string | null | undefined;
|
|
236
|
+
url?: string | undefined;
|
|
237
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
238
|
+
members?: string | undefined;
|
|
239
|
+
permissions?: Record<string, boolean> | undefined;
|
|
240
|
+
public_id?: string | undefined;
|
|
241
|
+
account_public_id?: string | undefined;
|
|
242
|
+
customuser_public_id?: string | undefined;
|
|
243
|
+
implementation_id?: string | undefined;
|
|
244
|
+
profile_id?: string | undefined;
|
|
245
|
+
is_expired?: string | undefined;
|
|
246
|
+
expired_at?: string | null | undefined;
|
|
247
|
+
app_key?: string | undefined;
|
|
248
|
+
app_version?: string | undefined;
|
|
249
|
+
}>;
|
|
250
|
+
} & {
|
|
251
|
+
context: {
|
|
252
|
+
meta: {
|
|
253
|
+
listConnections: import("kitcore").PluginMeta<unknown>;
|
|
25
254
|
};
|
|
26
255
|
};
|
|
27
256
|
} & {
|
|
28
257
|
context: {
|
|
29
|
-
meta: Record<string, import("
|
|
258
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
30
259
|
};
|
|
31
260
|
}) => {
|
|
32
261
|
getTriggerInputFieldsSchema: (options?: {
|
|
@@ -40,7 +269,7 @@ export declare const getTriggerInputFieldsSchemaPlugin: (sdk: {
|
|
|
40
269
|
} & {
|
|
41
270
|
context: {
|
|
42
271
|
meta: {
|
|
43
|
-
getTriggerInputFieldsSchema: import("
|
|
272
|
+
getTriggerInputFieldsSchema: import("kitcore").PluginMeta<unknown>;
|
|
44
273
|
};
|
|
45
274
|
};
|
|
46
275
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/getTriggerInputFieldsSchema/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/getTriggerInputFieldsSchema/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B7C,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG,UAAU,CAChE,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePlugin, createPluginMethod } from "
|
|
1
|
+
import { definePlugin, createPluginMethod } from "kitcore";
|
|
2
2
|
import { GetTriggerInputFieldsSchemaSchema } from "./schemas";
|
|
3
3
|
import { appKeyResolver, actionKeyResolver, connectionIdResolver, inputsAllOptionalResolver, } from "../../../resolvers";
|
|
4
4
|
import { triggersDefaults } from "../shared";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const GetTriggerInputFieldsSchemaSchema: z.ZodObject<{
|
|
3
3
|
app: z.ZodString & {
|
|
4
|
-
_def: z.core.$ZodStringDef & import("
|
|
4
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
5
5
|
};
|
|
6
6
|
action: z.ZodString & {
|
|
7
|
-
_def: z.core.$ZodStringDef & import("
|
|
7
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
8
8
|
};
|
|
9
9
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
10
10
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -16,9 +16,40 @@ export declare const leaseTriggerInboxMessagesPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTriggerInboxes: (options?: ({
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
status?: string | undefined;
|
|
23
|
+
pageSize?: number | undefined;
|
|
24
|
+
maxItems?: number | undefined;
|
|
25
|
+
cursor?: string | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
cursor?: string;
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
maxItems?: number;
|
|
30
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
31
|
+
id: string;
|
|
32
|
+
created_at: string;
|
|
33
|
+
name: string | null;
|
|
34
|
+
status: string;
|
|
35
|
+
paused_reason: string | null;
|
|
36
|
+
notification_url: string | null;
|
|
37
|
+
subscription: {
|
|
38
|
+
connection_id: string | number | null;
|
|
39
|
+
app_key: string;
|
|
40
|
+
action_key: string;
|
|
41
|
+
inputs: Record<string, unknown>;
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
44
|
+
} & {
|
|
45
|
+
context: {
|
|
46
|
+
meta: {
|
|
47
|
+
listTriggerInboxes: import("kitcore").PluginMeta<unknown>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
19
50
|
} & {
|
|
20
51
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
52
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
53
|
};
|
|
23
54
|
}) => {
|
|
24
55
|
leaseTriggerInboxMessages: (options?: {
|
|
@@ -50,7 +81,7 @@ export declare const leaseTriggerInboxMessagesPlugin: (sdk: {
|
|
|
50
81
|
} & {
|
|
51
82
|
context: {
|
|
52
83
|
meta: {
|
|
53
|
-
leaseTriggerInboxMessages: import("
|
|
84
|
+
leaseTriggerInboxMessages: import("kitcore").PluginMeta<unknown>;
|
|
54
85
|
};
|
|
55
86
|
};
|
|
56
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/leaseTriggerInboxMessages/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/leaseTriggerInboxMessages/index.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D3C,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,+BAA+B,CACvC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePlugin, createPluginMethod } from "
|
|
1
|
+
import { definePlugin, createPluginMethod } from "kitcore";
|
|
2
2
|
import { LeaseTriggerInboxMessagesSchema, LeaseTriggerInboxMessagesItemSchema, } from "./schemas";
|
|
3
3
|
import { ZapierConflictError } from "../../../types/errors";
|
|
4
4
|
import { triggerInboxResolver } from "../../../resolvers";
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { type LeasedTriggerMessageItem } from "../../../schemas/TriggerMessage";
|
|
3
3
|
export declare const LeaseTriggerInboxMessagesSchema: z.ZodObject<{
|
|
4
4
|
inbox: z.ZodString & {
|
|
5
|
-
_def: z.core.$ZodStringDef & import("
|
|
5
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
6
6
|
};
|
|
7
7
|
leaseLimit: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
leaseSeconds: z.ZodOptional<z.ZodNumber>;
|
|
@@ -16,9 +16,40 @@ export declare const listTriggerInboxMessagesPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTriggerInboxes: (options?: ({
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
status?: string | undefined;
|
|
23
|
+
pageSize?: number | undefined;
|
|
24
|
+
maxItems?: number | undefined;
|
|
25
|
+
cursor?: string | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
cursor?: string;
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
maxItems?: number;
|
|
30
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
31
|
+
id: string;
|
|
32
|
+
created_at: string;
|
|
33
|
+
name: string | null;
|
|
34
|
+
status: string;
|
|
35
|
+
paused_reason: string | null;
|
|
36
|
+
notification_url: string | null;
|
|
37
|
+
subscription: {
|
|
38
|
+
connection_id: string | number | null;
|
|
39
|
+
app_key: string;
|
|
40
|
+
action_key: string;
|
|
41
|
+
inputs: Record<string, unknown>;
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
44
|
+
} & {
|
|
45
|
+
context: {
|
|
46
|
+
meta: {
|
|
47
|
+
listTriggerInboxes: import("kitcore").PluginMeta<unknown>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
19
50
|
} & {
|
|
20
51
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
52
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
53
|
};
|
|
23
54
|
}) => {
|
|
24
55
|
listTriggerInboxMessages: (options?: ({
|
|
@@ -30,7 +61,7 @@ export declare const listTriggerInboxMessagesPlugin: (sdk: {
|
|
|
30
61
|
cursor?: string;
|
|
31
62
|
pageSize?: number;
|
|
32
63
|
maxItems?: number;
|
|
33
|
-
}) | undefined) => import("
|
|
64
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
34
65
|
id: string;
|
|
35
66
|
created_at: string;
|
|
36
67
|
status: string;
|
|
@@ -43,7 +74,7 @@ export declare const listTriggerInboxMessagesPlugin: (sdk: {
|
|
|
43
74
|
} & {
|
|
44
75
|
context: {
|
|
45
76
|
meta: {
|
|
46
|
-
listTriggerInboxMessages: import("
|
|
77
|
+
listTriggerInboxMessages: import("kitcore").PluginMeta<unknown>;
|
|
47
78
|
};
|
|
48
79
|
};
|
|
49
80
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/listTriggerInboxMessages/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/listTriggerInboxMessages/index.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4C1C,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG,UAAU,CAC7D,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
import { definePlugin, createPaginatedPluginMethod
|
|
1
|
+
import { definePlugin, createPaginatedPluginMethod } from "kitcore";
|
|
2
2
|
import { ListTriggerInboxMessagesSchema, ListTriggerInboxMessagesApiResponseSchema, TriggerMessageItemSchema, } from "./schemas";
|
|
3
|
+
import { triggerMessageItemFormatter } from "../../../formatters/triggerMessage";
|
|
3
4
|
import { triggerInboxResolver } from "../../../resolvers";
|
|
4
5
|
import { resolveTriggerInboxId } from "../utils";
|
|
5
6
|
import { DEFAULT_PAGE_SIZE } from "../../../constants";
|
|
6
7
|
import { triggersDefaults } from "../shared";
|
|
7
|
-
|
|
8
|
-
if (!next)
|
|
9
|
-
return undefined;
|
|
10
|
-
try {
|
|
11
|
-
const url = new URL(next);
|
|
12
|
-
return url.searchParams.get("cursor") ?? undefined;
|
|
13
|
-
}
|
|
14
|
-
catch {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
8
|
+
import { zapierPagination } from "../../../utils/pagination";
|
|
18
9
|
export const listTriggerInboxMessagesPlugin = definePlugin((sdk) => createPaginatedPluginMethod(sdk, {
|
|
19
10
|
...triggersDefaults,
|
|
11
|
+
...zapierPagination,
|
|
20
12
|
name: "listTriggerInboxMessages",
|
|
21
13
|
type: "list",
|
|
22
14
|
itemType: "TriggerMessage",
|
|
23
15
|
inputSchema: ListTriggerInboxMessagesSchema,
|
|
24
16
|
outputSchema: TriggerMessageItemSchema,
|
|
17
|
+
formatter: triggerMessageItemFormatter,
|
|
25
18
|
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
26
19
|
resolvers: { inbox: triggerInboxResolver },
|
|
27
20
|
handler: async ({ sdk, options }) => {
|
|
@@ -44,5 +37,4 @@ export const listTriggerInboxMessagesPlugin = definePlugin((sdk) => createPagina
|
|
|
44
37
|
next: response.next ?? null,
|
|
45
38
|
};
|
|
46
39
|
},
|
|
47
|
-
extractCursor: (response) => extractNextCursor(response.next),
|
|
48
40
|
}));
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { TriggerMessageItemSchema, type TriggerMessageItem } from "../../../schemas/TriggerMessage";
|
|
3
3
|
export declare const ListTriggerInboxMessagesSchema: z.ZodObject<{
|
|
4
4
|
inbox: z.ZodString & {
|
|
5
|
-
_def: z.core.$ZodStringDef & import("
|
|
5
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
6
6
|
};
|
|
7
7
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18,7 +18,7 @@ export declare const listTriggerInboxesPlugin: (sdk: {
|
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
19
|
} & {
|
|
20
20
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
21
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
22
|
};
|
|
23
23
|
}) => {
|
|
24
24
|
listTriggerInboxes: (options?: ({
|
|
@@ -31,7 +31,7 @@ export declare const listTriggerInboxesPlugin: (sdk: {
|
|
|
31
31
|
cursor?: string;
|
|
32
32
|
pageSize?: number;
|
|
33
33
|
maxItems?: number;
|
|
34
|
-
}) | undefined) => import("
|
|
34
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
35
35
|
id: string;
|
|
36
36
|
created_at: string;
|
|
37
37
|
name: string | null;
|
|
@@ -48,7 +48,7 @@ export declare const listTriggerInboxesPlugin: (sdk: {
|
|
|
48
48
|
} & {
|
|
49
49
|
context: {
|
|
50
50
|
meta: {
|
|
51
|
-
listTriggerInboxes: import("
|
|
51
|
+
listTriggerInboxes: import("kitcore").PluginMeta<unknown>;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/listTriggerInboxes/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/listTriggerInboxes/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCpC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,wBAAwB,CAChC,CAAC"}
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import { definePlugin, createPaginatedPluginMethod
|
|
1
|
+
import { definePlugin, createPaginatedPluginMethod } from "kitcore";
|
|
2
2
|
import { ListTriggerInboxesSchema, ListTriggerInboxesApiResponseSchema, TriggerInboxItemSchema, } from "./schemas";
|
|
3
|
+
import { triggerInboxItemFormatter } from "../../../formatters/triggerInbox";
|
|
3
4
|
import { DEFAULT_PAGE_SIZE } from "../../../constants";
|
|
4
5
|
import { triggersDefaults } from "../shared";
|
|
5
|
-
|
|
6
|
-
if (!next)
|
|
7
|
-
return undefined;
|
|
8
|
-
try {
|
|
9
|
-
const url = new URL(next);
|
|
10
|
-
const offset = url.searchParams.get("offset");
|
|
11
|
-
return offset || undefined;
|
|
12
|
-
}
|
|
13
|
-
catch {
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
6
|
+
import { zapierPagination } from "../../../utils/pagination";
|
|
17
7
|
export const listTriggerInboxesPlugin = definePlugin((sdk) => createPaginatedPluginMethod(sdk, {
|
|
18
8
|
...triggersDefaults,
|
|
9
|
+
...zapierPagination,
|
|
19
10
|
name: "listTriggerInboxes",
|
|
20
11
|
type: "list",
|
|
21
12
|
itemType: "TriggerInbox",
|
|
22
13
|
inputSchema: ListTriggerInboxesSchema,
|
|
23
14
|
outputSchema: TriggerInboxItemSchema,
|
|
15
|
+
formatter: triggerInboxItemFormatter,
|
|
24
16
|
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
25
17
|
handler: async ({ sdk, options }) => {
|
|
26
18
|
const { api } = sdk.context;
|
|
@@ -47,5 +39,4 @@ export const listTriggerInboxesPlugin = definePlugin((sdk) => createPaginatedPlu
|
|
|
47
39
|
next: response.next ?? null,
|
|
48
40
|
};
|
|
49
41
|
},
|
|
50
|
-
extractCursor: (response) => extractNextOffset(response.next),
|
|
51
42
|
}));
|