@zapier/zapier-sdk 0.64.0 → 0.67.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 +47 -0
- package/README.md +165 -6
- 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 +1803 -1332
- package/dist/experimental.d.mts +3508 -182
- package/dist/experimental.d.ts +3578 -252
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +120 -84
- package/dist/experimental.mjs +1789 -1331
- 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-Bfvj0KLi.d.mts → index-Dh0b5NAY.d.mts} +13058 -7731
- package/dist/{index-Bfvj0KLi.d.ts → index-Dh0b5NAY.d.ts} +13058 -7731
- package/dist/index.cjs +1745 -1464
- 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 +1731 -1463
- 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 +47 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.js +23 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +24 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.js +30 -0
- 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 +102 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.js +25 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +26 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.js +43 -0
- 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 +78 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.js +34 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +65 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.js +69 -0
- 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/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/index.d.ts +1 -0
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +1 -0
- 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 +7 -0
- package/dist/resolvers/workflowRunId.d.ts.map +1 -0
- package/dist/resolvers/workflowRunId.js +20 -0
- 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/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
|
@@ -16,9 +16,70 @@ export declare const listTableRecordsPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTables: (options?: ({
|
|
21
|
+
tables?: string[] | undefined;
|
|
22
|
+
tableIds?: string[] | undefined;
|
|
23
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
owner?: string | undefined;
|
|
26
|
+
includeShared?: boolean | undefined;
|
|
27
|
+
pageSize?: number | undefined;
|
|
28
|
+
maxItems?: number | undefined;
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
cursor?: string;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
edited_at: string;
|
|
39
|
+
kind: "table" | "virtual_table";
|
|
40
|
+
account_id: string;
|
|
41
|
+
profile_id: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
parent_table_id?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
} & {
|
|
46
|
+
context: {
|
|
47
|
+
meta: {
|
|
48
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
listTableFields: (options?: {
|
|
53
|
+
table: string;
|
|
54
|
+
fields?: (string | number)[] | undefined;
|
|
55
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
56
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
tableId: string;
|
|
59
|
+
fields?: (string | number)[] | undefined;
|
|
60
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
61
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
62
|
+
} | undefined) => Promise<{
|
|
63
|
+
data: {
|
|
64
|
+
id: string;
|
|
65
|
+
type: "string" | "number" | "boolean" | "text" | "datetime" | "decimal" | "json" | "email" | "link" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
66
|
+
name: string;
|
|
67
|
+
created_at?: string | undefined;
|
|
68
|
+
edited_at?: string | undefined;
|
|
69
|
+
options?: Record<string, unknown> | undefined;
|
|
70
|
+
config?: Record<string, unknown> | undefined;
|
|
71
|
+
deleted_at?: string | null | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
}>;
|
|
19
74
|
} & {
|
|
20
75
|
context: {
|
|
21
|
-
meta:
|
|
76
|
+
meta: {
|
|
77
|
+
listTableFields: import("kitcore").PluginMeta<unknown>;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
} & {
|
|
81
|
+
context: {
|
|
82
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
83
|
};
|
|
23
84
|
}) => {
|
|
24
85
|
listTableRecords: (options?: (({
|
|
@@ -57,9 +118,9 @@ export declare const listTableRecordsPlugin: (sdk: {
|
|
|
57
118
|
cursor?: string;
|
|
58
119
|
pageSize?: number;
|
|
59
120
|
maxItems?: number;
|
|
60
|
-
}) | undefined) => import("
|
|
61
|
-
id: string;
|
|
121
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
62
122
|
data: Record<string, unknown>;
|
|
123
|
+
id: string;
|
|
63
124
|
created_at: string;
|
|
64
125
|
edited_at: string;
|
|
65
126
|
deleted_at?: string | null | undefined;
|
|
@@ -67,7 +128,7 @@ export declare const listTableRecordsPlugin: (sdk: {
|
|
|
67
128
|
} & {
|
|
68
129
|
context: {
|
|
69
130
|
meta: {
|
|
70
|
-
listTableRecords: import("
|
|
131
|
+
listTableRecords: import("kitcore").PluginMeta<unknown>;
|
|
71
132
|
};
|
|
72
133
|
};
|
|
73
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTableRecords/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTableRecords/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FlC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,sBAAsB,CAC9B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPaginatedPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPaginatedPluginMethod } from "kitcore";
|
|
3
3
|
import { ListTableRecordsApiResponseSchema, ListTableRecordsOptionsInputSchema, RecordItemSchema, } from "./schemas";
|
|
4
4
|
import { tableIdResolver, tableFiltersResolver, tableSortResolver, } from "../../../resolvers";
|
|
5
5
|
import { tableRecordFormatter } from "../../../formatters";
|
|
@@ -20,7 +20,7 @@ export const listTableRecordsPlugin = definePlugin((sdk) => createPaginatedPlugi
|
|
|
20
20
|
sort: tableSortResolver,
|
|
21
21
|
},
|
|
22
22
|
formatter: tableRecordFormatter,
|
|
23
|
-
handler: async ({ sdk, options
|
|
23
|
+
handler: async ({ sdk, options }) => {
|
|
24
24
|
const { api } = sdk.context;
|
|
25
25
|
const tableId = "table" in options ? options.table : options.tableId;
|
|
26
26
|
const translator = await createFieldKeyTranslator({
|
|
@@ -73,7 +73,7 @@ export declare const SortConditionSchema: z.ZodObject<{
|
|
|
73
73
|
export type SortCondition = z.infer<typeof SortConditionSchema>;
|
|
74
74
|
export declare const ListTableRecordsOptionsSchema: z.ZodObject<{
|
|
75
75
|
table: z.ZodString & {
|
|
76
|
-
_def: z.core.$ZodStringDef & import("
|
|
76
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
77
77
|
};
|
|
78
78
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
79
79
|
fieldKey: z.ZodString;
|
|
@@ -159,7 +159,7 @@ declare const ListTableRecordsOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
159
159
|
}, z.core.$strip>;
|
|
160
160
|
export declare const ListTableRecordsOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
161
161
|
table: z.ZodString & {
|
|
162
|
-
_def: z.core.$ZodStringDef & import("
|
|
162
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
163
163
|
};
|
|
164
164
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
165
|
fieldKey: z.ZodString;
|
|
@@ -21,7 +21,7 @@ export declare const listTablesPlugin: (sdk: {
|
|
|
21
21
|
context: CapabilitiesContext;
|
|
22
22
|
} & {
|
|
23
23
|
context: {
|
|
24
|
-
meta: Record<string, import("
|
|
24
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
25
25
|
};
|
|
26
26
|
}) => {
|
|
27
27
|
listTables: (options?: ({
|
|
@@ -38,7 +38,7 @@ export declare const listTablesPlugin: (sdk: {
|
|
|
38
38
|
cursor?: string;
|
|
39
39
|
pageSize?: number;
|
|
40
40
|
maxItems?: number;
|
|
41
|
-
}) | undefined) => import("
|
|
41
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
44
|
created_at: string;
|
|
@@ -52,7 +52,7 @@ export declare const listTablesPlugin: (sdk: {
|
|
|
52
52
|
} & {
|
|
53
53
|
context: {
|
|
54
54
|
meta: {
|
|
55
|
-
listTables: import("
|
|
55
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTables/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTables/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAM9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;aAGY,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoE3D,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPaginatedPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPaginatedPluginMethod } from "kitcore";
|
|
3
3
|
import { ListTablesApiResponseSchema, ListTablesOptionsSchema, TableItemSchema, } from "./schemas";
|
|
4
|
-
import { extractCursor } from "../../../utils/function-utils";
|
|
5
4
|
import { ZapierValidationError } from "../../../types/errors";
|
|
6
5
|
import { transformTableItem } from "../utils";
|
|
7
6
|
import { DEFAULT_PAGE_SIZE } from "../../../constants";
|
|
8
7
|
import { tablesDefaults } from "../shared";
|
|
8
|
+
import { zapierPagination } from "../../../utils/pagination";
|
|
9
9
|
export const listTablesPlugin = definePlugin((sdk) => createPaginatedPluginMethod(sdk, {
|
|
10
10
|
...tablesDefaults,
|
|
11
|
+
...zapierPagination,
|
|
11
12
|
name: "listTables",
|
|
12
13
|
type: "list",
|
|
13
14
|
itemType: "Table",
|
|
@@ -63,5 +64,4 @@ export const listTablesPlugin = definePlugin((sdk) => createPaginatedPluginMetho
|
|
|
63
64
|
links: response.links,
|
|
64
65
|
};
|
|
65
66
|
},
|
|
66
|
-
extractCursor: (response) => extractCursor(response.links),
|
|
67
67
|
}));
|
|
@@ -16,9 +16,70 @@ export declare const updateTableRecordsPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTables: (options?: ({
|
|
21
|
+
tables?: string[] | undefined;
|
|
22
|
+
tableIds?: string[] | undefined;
|
|
23
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
owner?: string | undefined;
|
|
26
|
+
includeShared?: boolean | undefined;
|
|
27
|
+
pageSize?: number | undefined;
|
|
28
|
+
maxItems?: number | undefined;
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
cursor?: string;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
edited_at: string;
|
|
39
|
+
kind: "table" | "virtual_table";
|
|
40
|
+
account_id: string;
|
|
41
|
+
profile_id: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
parent_table_id?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
} & {
|
|
46
|
+
context: {
|
|
47
|
+
meta: {
|
|
48
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
listTableFields: (options?: {
|
|
53
|
+
table: string;
|
|
54
|
+
fields?: (string | number)[] | undefined;
|
|
55
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
56
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
tableId: string;
|
|
59
|
+
fields?: (string | number)[] | undefined;
|
|
60
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
61
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
62
|
+
} | undefined) => Promise<{
|
|
63
|
+
data: {
|
|
64
|
+
id: string;
|
|
65
|
+
type: "string" | "number" | "boolean" | "text" | "datetime" | "decimal" | "json" | "email" | "link" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
66
|
+
name: string;
|
|
67
|
+
created_at?: string | undefined;
|
|
68
|
+
edited_at?: string | undefined;
|
|
69
|
+
options?: Record<string, unknown> | undefined;
|
|
70
|
+
config?: Record<string, unknown> | undefined;
|
|
71
|
+
deleted_at?: string | null | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
}>;
|
|
74
|
+
} & {
|
|
75
|
+
context: {
|
|
76
|
+
meta: {
|
|
77
|
+
listTableFields: import("kitcore").PluginMeta<unknown>;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
19
80
|
} & {
|
|
20
81
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
82
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
83
|
};
|
|
23
84
|
}) => {
|
|
24
85
|
updateTableRecords: (options?: {
|
|
@@ -47,7 +108,7 @@ export declare const updateTableRecordsPlugin: (sdk: {
|
|
|
47
108
|
} & {
|
|
48
109
|
context: {
|
|
49
110
|
meta: {
|
|
50
|
-
updateTableRecords: import("
|
|
111
|
+
updateTableRecords: import("kitcore").PluginMeta<unknown>;
|
|
51
112
|
};
|
|
52
113
|
};
|
|
53
114
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/updateTableRecords/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/updateTableRecords/index.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDpC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,wBAAwB,CAChC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { UpdateTableRecordsOptionsInputSchema, UpdateTableRecordsApiResponseSchema, RecordItemSchema, } from "./schemas";
|
|
4
4
|
import { tableIdResolver, tableUpdateRecordsResolver, } from "../../../resolvers";
|
|
5
5
|
import { tableRecordFormatter } from "../../../formatters";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
import { RecordItemSchema, type RecordItem } from "../getTableRecord/schemas";
|
|
4
3
|
export { RecordItemSchema };
|
|
5
4
|
export type { RecordItem };
|
|
@@ -40,7 +39,7 @@ export declare const UpdateRecordSchema: z.ZodObject<{
|
|
|
40
39
|
export type UpdateRecord = z.infer<typeof UpdateRecordSchema>;
|
|
41
40
|
export declare const UpdateTableRecordsOptionsSchema: z.ZodObject<{
|
|
42
41
|
table: z.ZodString & {
|
|
43
|
-
_def: z.core.$ZodStringDef & import("
|
|
42
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
44
43
|
};
|
|
45
44
|
records: z.ZodArray<z.ZodObject<{
|
|
46
45
|
id: z.ZodString;
|
|
@@ -64,7 +63,7 @@ declare const UpdateTableRecordsOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
64
63
|
}, z.core.$strip>;
|
|
65
64
|
export declare const UpdateTableRecordsOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
66
65
|
table: z.ZodString & {
|
|
67
|
-
_def: z.core.$ZodStringDef & import("
|
|
66
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
68
67
|
};
|
|
69
68
|
records: z.ZodArray<z.ZodObject<{
|
|
70
69
|
id: z.ZodString;
|
|
@@ -85,7 +84,7 @@ export declare const UpdateTableRecordsOptionsInputSchema: z.ZodUnion<readonly [
|
|
|
85
84
|
ids: "ids";
|
|
86
85
|
}>>>;
|
|
87
86
|
}, z.core.$strip>]>;
|
|
88
|
-
export type UpdateTableRecordsOptions =
|
|
87
|
+
export type UpdateTableRecordsOptions = z.infer<typeof UpdateTableRecordsOptionsSchema> | (Omit<z.infer<typeof UpdateTableRecordsOptionsSchemaDeprecated>, "tableId"> & {
|
|
89
88
|
/** @deprecated Use `table` instead. */
|
|
90
89
|
tableId: z.infer<typeof UpdateTableRecordsOptionsSchemaDeprecated>["tableId"];
|
|
91
90
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/updateTableRecords/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/updateTableRecords/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,gBAAgB,EAChB,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,CAAC;AAU3B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAc9D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;iBAMF,CAAC;AAG3C,QAAA,MAAM,yCAAyC;;;;;;;;;;iBAOf,CAAC;AAGjC,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;mBAKP,CAAC;AAG3C,MAAM,MAAM,yBAAyB,GACjC,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,GAC/C,CAAC,IAAI,CACH,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,EACzD,SAAS,CACV,GAAG;IACF,uCAAuC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,OAAO,yCAAyC,CACjD,CAAC,SAAS,CAAC,CAAC;CACd,CAAC,CAAC;AAEP,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,kBAAkB,EAAE,CAClB,OAAO,EAAE,yBAAyB,KAC/B,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACxC"}
|
|
@@ -16,9 +16,66 @@ export declare const ackTriggerInboxMessagesPlugin: (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
|
+
};
|
|
50
|
+
} & {
|
|
51
|
+
listTriggerInboxMessages: (options?: ({
|
|
52
|
+
inbox: string;
|
|
53
|
+
pageSize?: number | undefined;
|
|
54
|
+
maxItems?: number | undefined;
|
|
55
|
+
cursor?: string | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
cursor?: string;
|
|
58
|
+
pageSize?: number;
|
|
59
|
+
maxItems?: number;
|
|
60
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
61
|
+
id: string;
|
|
62
|
+
created_at: string;
|
|
63
|
+
status: string;
|
|
64
|
+
message_attributes: {
|
|
65
|
+
lease_count: number;
|
|
66
|
+
error_message: string | null;
|
|
67
|
+
possible_duplicate_data: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
} & {
|
|
71
|
+
context: {
|
|
72
|
+
meta: {
|
|
73
|
+
listTriggerInboxMessages: import("kitcore").PluginMeta<unknown>;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
19
76
|
} & {
|
|
20
77
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
78
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
79
|
};
|
|
23
80
|
}) => {
|
|
24
81
|
ackTriggerInboxMessages: (options?: {
|
|
@@ -43,7 +100,7 @@ export declare const ackTriggerInboxMessagesPlugin: (sdk: {
|
|
|
43
100
|
} & {
|
|
44
101
|
context: {
|
|
45
102
|
meta: {
|
|
46
|
-
ackTriggerInboxMessages: import("
|
|
103
|
+
ackTriggerInboxMessages: import("kitcore").PluginMeta<unknown>;
|
|
47
104
|
};
|
|
48
105
|
};
|
|
49
106
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/ackTriggerInboxMessages/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/triggers/ackTriggerInboxMessages/index.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CzC,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG,UAAU,CAC5D,OAAO,6BAA6B,CACrC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePlugin, createPluginMethod } from "
|
|
1
|
+
import { definePlugin, createPluginMethod } from "kitcore";
|
|
2
2
|
import { AckTriggerInboxMessagesSchema, AckTriggerInboxMessagesItemSchema, } from "./schemas";
|
|
3
3
|
import { triggerInboxResolver, triggerMessagesResolver, } from "../../../resolvers";
|
|
4
4
|
import { resolveTriggerInboxId } from "../utils";
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { type TriggerMessageItem } from "../../../schemas/TriggerMessage";
|
|
3
3
|
export declare const AckTriggerInboxMessagesSchema: 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
|
lease: z.ZodString;
|
|
8
8
|
messages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|