@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
|
@@ -1,31 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ConnectionIdPropertySchema, ConnectionPropertySchema, AuthenticationIdPropertySchema, AppKeyPropertySchema, AppPropertySchema, ActionTypePropertySchema, ActionKeyPropertySchema, ActionPropertySchema, InputFieldPropertySchema, InputsPropertySchema, } from "../../types/properties";
|
|
3
|
-
import { withFormatter } from "../../utils/schema-utils";
|
|
4
3
|
import { NeedChoicesSchema } from "../../api/schemas";
|
|
5
4
|
// ============================================================================
|
|
6
5
|
// Input Field Choice Item Schema
|
|
7
6
|
// ============================================================================
|
|
8
|
-
export const InputFieldChoiceItemSchema =
|
|
9
|
-
format: (item) => {
|
|
10
|
-
const title = item.label || item.key || "Choice";
|
|
11
|
-
const details = [];
|
|
12
|
-
// Show key as detail if different from label
|
|
13
|
-
if (item.label && item.key && item.label !== item.key) {
|
|
14
|
-
details.push({ text: `Key: ${item.key}`, style: "dim" });
|
|
15
|
-
}
|
|
16
|
-
if (item.sample && item.sample !== item.key) {
|
|
17
|
-
details.push({ text: `Sample: ${item.sample}`, style: "dim" });
|
|
18
|
-
}
|
|
19
|
-
if (item.value && item.value !== item.key) {
|
|
20
|
-
details.push({ text: `Value: ${item.value}`, style: "normal" });
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
title,
|
|
24
|
-
key: item.key,
|
|
25
|
-
details,
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
});
|
|
7
|
+
export const InputFieldChoiceItemSchema = NeedChoicesSchema;
|
|
29
8
|
// ============================================================================
|
|
30
9
|
// Plugin Schema Definition
|
|
31
10
|
// ============================================================================
|
|
@@ -65,7 +65,7 @@ export declare const listActionInputFieldsPlugin: (sdk: {
|
|
|
65
65
|
} & {
|
|
66
66
|
context: {
|
|
67
67
|
meta: {
|
|
68
|
-
getApp: import("
|
|
68
|
+
getApp: import("kitcore").PluginMeta<unknown>;
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
} & {
|
|
@@ -94,7 +94,170 @@ export declare const listActionInputFieldsPlugin: (sdk: {
|
|
|
94
94
|
} & {
|
|
95
95
|
context: {
|
|
96
96
|
meta: {
|
|
97
|
-
getAction: import("
|
|
97
|
+
getAction: import("kitcore").PluginMeta<unknown>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
} & {
|
|
101
|
+
listApps: (options?: ({
|
|
102
|
+
search?: string | undefined;
|
|
103
|
+
apps?: string[] | undefined;
|
|
104
|
+
appKeys?: string[] | undefined;
|
|
105
|
+
pageSize?: number | undefined;
|
|
106
|
+
maxItems?: number | undefined;
|
|
107
|
+
cursor?: string | undefined;
|
|
108
|
+
} & {
|
|
109
|
+
cursor?: string;
|
|
110
|
+
pageSize?: number;
|
|
111
|
+
maxItems?: number;
|
|
112
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
113
|
+
slug: string;
|
|
114
|
+
title: string;
|
|
115
|
+
key: string;
|
|
116
|
+
implementation_id: string;
|
|
117
|
+
description?: string | undefined;
|
|
118
|
+
is_hidden?: boolean | undefined;
|
|
119
|
+
auth_type?: string | undefined;
|
|
120
|
+
actions?: {
|
|
121
|
+
read?: number | undefined;
|
|
122
|
+
read_bulk?: number | undefined;
|
|
123
|
+
write?: number | undefined;
|
|
124
|
+
search?: number | undefined;
|
|
125
|
+
search_or_write?: number | undefined;
|
|
126
|
+
search_and_write?: number | undefined;
|
|
127
|
+
filter?: number | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
is_deprecated?: boolean | undefined;
|
|
130
|
+
is_beta?: boolean | undefined;
|
|
131
|
+
is_premium?: boolean | undefined;
|
|
132
|
+
age_in_days?: number | undefined;
|
|
133
|
+
banner?: string | undefined;
|
|
134
|
+
categories?: {
|
|
135
|
+
id: number;
|
|
136
|
+
name: string;
|
|
137
|
+
slug: string;
|
|
138
|
+
}[] | undefined;
|
|
139
|
+
images?: {
|
|
140
|
+
url_16x16?: string | undefined;
|
|
141
|
+
url_32x32?: string | undefined;
|
|
142
|
+
url_64x64?: string | undefined;
|
|
143
|
+
url_128x128?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
popularity?: number | undefined;
|
|
146
|
+
has_filters?: boolean | undefined;
|
|
147
|
+
has_reads?: boolean | undefined;
|
|
148
|
+
has_searches?: boolean | undefined;
|
|
149
|
+
has_searches_or_writes?: boolean | undefined;
|
|
150
|
+
has_upfront_fields?: boolean | undefined;
|
|
151
|
+
has_writes?: boolean | undefined;
|
|
152
|
+
is_built_in?: boolean | undefined;
|
|
153
|
+
is_featured?: boolean | undefined;
|
|
154
|
+
is_invite?: boolean | undefined;
|
|
155
|
+
is_public?: boolean | undefined;
|
|
156
|
+
is_upcoming?: boolean | undefined;
|
|
157
|
+
visibility?: string | undefined;
|
|
158
|
+
primary_color?: string | undefined;
|
|
159
|
+
secondary_color?: string | undefined;
|
|
160
|
+
classification?: string | undefined;
|
|
161
|
+
api_docs_url?: string | undefined;
|
|
162
|
+
image?: string | undefined;
|
|
163
|
+
version?: string | undefined;
|
|
164
|
+
}>;
|
|
165
|
+
} & {
|
|
166
|
+
context: {
|
|
167
|
+
meta: {
|
|
168
|
+
listApps: import("kitcore").PluginMeta<unknown>;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
} & {
|
|
172
|
+
listActions: (options?: (({
|
|
173
|
+
app: string;
|
|
174
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
175
|
+
pageSize?: number | undefined;
|
|
176
|
+
maxItems?: number | undefined;
|
|
177
|
+
cursor?: string | undefined;
|
|
178
|
+
} | {
|
|
179
|
+
appKey: string;
|
|
180
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
181
|
+
pageSize?: number | undefined;
|
|
182
|
+
maxItems?: number | undefined;
|
|
183
|
+
cursor?: string | undefined;
|
|
184
|
+
}) & {
|
|
185
|
+
cursor?: string;
|
|
186
|
+
pageSize?: number;
|
|
187
|
+
maxItems?: number;
|
|
188
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
189
|
+
description: string;
|
|
190
|
+
key: string;
|
|
191
|
+
app_key: string;
|
|
192
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
193
|
+
title: string;
|
|
194
|
+
type: "action";
|
|
195
|
+
id?: string | undefined;
|
|
196
|
+
is_important?: boolean | undefined;
|
|
197
|
+
is_hidden?: boolean | undefined;
|
|
198
|
+
app_version?: string | undefined;
|
|
199
|
+
}>;
|
|
200
|
+
} & {
|
|
201
|
+
context: {
|
|
202
|
+
meta: {
|
|
203
|
+
listActions: import("kitcore").PluginMeta<unknown>;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
} & {
|
|
207
|
+
listConnections: (options?: ({
|
|
208
|
+
title?: string | undefined;
|
|
209
|
+
search?: string | undefined;
|
|
210
|
+
owner?: string | undefined;
|
|
211
|
+
app?: string | undefined;
|
|
212
|
+
appKey?: string | undefined;
|
|
213
|
+
connections?: string[] | undefined;
|
|
214
|
+
connectionIds?: string[] | undefined;
|
|
215
|
+
authenticationIds?: string[] | undefined;
|
|
216
|
+
account?: string | undefined;
|
|
217
|
+
accountId?: string | undefined;
|
|
218
|
+
includeShared?: boolean | undefined;
|
|
219
|
+
isExpired?: boolean | undefined;
|
|
220
|
+
expired?: boolean | undefined;
|
|
221
|
+
pageSize?: number | undefined;
|
|
222
|
+
maxItems?: number | undefined;
|
|
223
|
+
cursor?: string | undefined;
|
|
224
|
+
} & {
|
|
225
|
+
cursor?: string;
|
|
226
|
+
pageSize?: number;
|
|
227
|
+
maxItems?: number;
|
|
228
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
229
|
+
date: string;
|
|
230
|
+
is_invite_only: boolean;
|
|
231
|
+
is_private: boolean;
|
|
232
|
+
shared_with_all: boolean;
|
|
233
|
+
id: string;
|
|
234
|
+
account_id: string;
|
|
235
|
+
title?: string | null | undefined;
|
|
236
|
+
lastchanged?: string | undefined;
|
|
237
|
+
destination_selected_api?: string | null | undefined;
|
|
238
|
+
is_stale?: string | undefined;
|
|
239
|
+
is_shared?: string | undefined;
|
|
240
|
+
marked_stale_at?: string | null | undefined;
|
|
241
|
+
label?: string | null | undefined;
|
|
242
|
+
identifier?: string | null | undefined;
|
|
243
|
+
url?: string | undefined;
|
|
244
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
245
|
+
members?: string | undefined;
|
|
246
|
+
permissions?: Record<string, boolean> | undefined;
|
|
247
|
+
public_id?: string | undefined;
|
|
248
|
+
account_public_id?: string | undefined;
|
|
249
|
+
customuser_public_id?: string | undefined;
|
|
250
|
+
implementation_id?: string | undefined;
|
|
251
|
+
profile_id?: string | undefined;
|
|
252
|
+
is_expired?: string | undefined;
|
|
253
|
+
expired_at?: string | null | undefined;
|
|
254
|
+
app_key?: string | undefined;
|
|
255
|
+
app_version?: string | undefined;
|
|
256
|
+
}>;
|
|
257
|
+
} & {
|
|
258
|
+
context: {
|
|
259
|
+
meta: {
|
|
260
|
+
listConnections: import("kitcore").PluginMeta<unknown>;
|
|
98
261
|
};
|
|
99
262
|
};
|
|
100
263
|
} & {
|
|
@@ -106,7 +269,7 @@ export declare const listActionInputFieldsPlugin: (sdk: {
|
|
|
106
269
|
context: import("../eventEmission").EventEmissionContext;
|
|
107
270
|
} & {
|
|
108
271
|
context: {
|
|
109
|
-
meta: Record<string, import("
|
|
272
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
110
273
|
};
|
|
111
274
|
}) => {
|
|
112
275
|
listActionInputFields: (options?: (({
|
|
@@ -135,7 +298,7 @@ export declare const listActionInputFieldsPlugin: (sdk: {
|
|
|
135
298
|
cursor?: string;
|
|
136
299
|
pageSize?: number;
|
|
137
300
|
maxItems?: number;
|
|
138
|
-
}) | undefined) => import("
|
|
301
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
139
302
|
key: string;
|
|
140
303
|
type: "input_field";
|
|
141
304
|
default_value: string;
|
|
@@ -159,7 +322,7 @@ export declare const listActionInputFieldsPlugin: (sdk: {
|
|
|
159
322
|
} & {
|
|
160
323
|
context: {
|
|
161
324
|
meta: {
|
|
162
|
-
listActionInputFields: import("
|
|
325
|
+
listActionInputFields: import("kitcore").PluginMeta<unknown>;
|
|
163
326
|
};
|
|
164
327
|
};
|
|
165
328
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listActionInputFields/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAGV,YAAY,EAEb,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listActionInputFields/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAGV,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAS5B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAaxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AA4JhE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAOvB;QACP,GAAG,EAAE,SAAS,CAAC;QACf,4BAA4B,EAAE,4BAA4B,CAAC;KAC5D,GAAG,yBAAyB,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6E/C,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPaginatedPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPaginatedPluginMethod } from "kitcore";
|
|
3
3
|
import { ListActionInputFieldsInputSchema } from "./schemas";
|
|
4
4
|
import { ZapierConfigurationError } from "../../types/errors";
|
|
5
5
|
import { DEFAULT_PAGE_SIZE } from "../../constants";
|
|
6
6
|
import { appKeyResolver, actionTypeResolver, actionKeyResolver, connectionIdResolver, inputsAllOptionalResolver, } from "../../resolvers";
|
|
7
7
|
import { RootFieldItemSchema } from "../../schemas/Field";
|
|
8
|
-
import {
|
|
8
|
+
import { rootFieldItemFormatter } from "../../formatters/field";
|
|
9
|
+
import { toTitleCase } from "kitcore";
|
|
9
10
|
import { fetchImplementationNeeds } from "../../services/implementations";
|
|
10
11
|
import { resolveConnectionId } from "../../utils/domain-utils";
|
|
11
|
-
import { setMethodMetadata } from "
|
|
12
|
+
import { setMethodMetadata } from "../eventEmission/method-metadata";
|
|
12
13
|
// Enums for input field transformation
|
|
13
14
|
var InputFieldType;
|
|
14
15
|
(function (InputFieldType) {
|
|
@@ -154,6 +155,7 @@ export const listActionInputFieldsPlugin = definePlugin((sdk) => createPaginated
|
|
|
154
155
|
itemType: "RootField",
|
|
155
156
|
inputSchema: ListActionInputFieldsInputSchema,
|
|
156
157
|
outputSchema: RootFieldItemSchema,
|
|
158
|
+
formatter: rootFieldItemFormatter,
|
|
157
159
|
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
158
160
|
resolvers: {
|
|
159
161
|
app: appKeyResolver,
|
|
@@ -162,7 +164,7 @@ export const listActionInputFieldsPlugin = definePlugin((sdk) => createPaginated
|
|
|
162
164
|
connection: connectionIdResolver,
|
|
163
165
|
inputs: inputsAllOptionalResolver,
|
|
164
166
|
},
|
|
165
|
-
handler: async ({ sdk, options
|
|
167
|
+
handler: async ({ sdk, options }) => {
|
|
166
168
|
// pageSize/cursor ignored — this endpoint is single-page; pagination
|
|
167
169
|
// helpers around it just yield the one page.
|
|
168
170
|
const { api, getVersionedImplementationId } = sdk.context;
|
|
@@ -3,7 +3,7 @@ import type { RootFieldItem } from "../../types/domain";
|
|
|
3
3
|
import type { PaginatedSdkFunction } from "../../types/functions";
|
|
4
4
|
export declare const ListActionInputFieldsSchema: z.ZodObject<{
|
|
5
5
|
app: z.ZodString & {
|
|
6
|
-
_def: z.core.$ZodStringDef & import("
|
|
6
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
7
7
|
};
|
|
8
8
|
actionType: z.ZodEnum<{
|
|
9
9
|
filter: "filter";
|
|
@@ -16,7 +16,7 @@ export declare const ListActionInputFieldsSchema: z.ZodObject<{
|
|
|
16
16
|
search_or_write: "search_or_write";
|
|
17
17
|
}>;
|
|
18
18
|
action: z.ZodString & {
|
|
19
|
-
_def: z.core.$ZodStringDef & import("
|
|
19
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
20
20
|
};
|
|
21
21
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
22
22
|
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -28,7 +28,7 @@ export declare const ListActionInputFieldsSchema: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
declare const ListActionInputFieldsSchemaDeprecated: z.ZodObject<{
|
|
30
30
|
appKey: z.ZodString & {
|
|
31
|
-
_def: z.core.$ZodStringDef & import("
|
|
31
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
32
32
|
};
|
|
33
33
|
actionType: z.ZodEnum<{
|
|
34
34
|
filter: "filter";
|
|
@@ -51,7 +51,7 @@ declare const ListActionInputFieldsSchemaDeprecated: z.ZodObject<{
|
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
export declare const ListActionInputFieldsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
53
53
|
app: z.ZodString & {
|
|
54
|
-
_def: z.core.$ZodStringDef & import("
|
|
54
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
55
55
|
};
|
|
56
56
|
actionType: z.ZodEnum<{
|
|
57
57
|
filter: "filter";
|
|
@@ -64,7 +64,7 @@ export declare const ListActionInputFieldsInputSchema: z.ZodUnion<readonly [z.Zo
|
|
|
64
64
|
search_or_write: "search_or_write";
|
|
65
65
|
}>;
|
|
66
66
|
action: z.ZodString & {
|
|
67
|
-
_def: z.core.$ZodStringDef & import("
|
|
67
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
68
68
|
};
|
|
69
69
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
70
70
|
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -75,7 +75,7 @@ export declare const ListActionInputFieldsInputSchema: z.ZodUnion<readonly [z.Zo
|
|
|
75
75
|
cursor: z.ZodOptional<z.ZodString>;
|
|
76
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
77
|
appKey: z.ZodString & {
|
|
78
|
-
_def: z.core.$ZodStringDef & import("
|
|
78
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
79
79
|
};
|
|
80
80
|
actionType: z.ZodEnum<{
|
|
81
81
|
filter: "filter";
|
|
@@ -38,9 +38,146 @@ export declare const listActionsPlugin: (sdk: {
|
|
|
38
38
|
};
|
|
39
39
|
} & {
|
|
40
40
|
context: import("../eventEmission").EventEmissionContext;
|
|
41
|
+
} & {
|
|
42
|
+
getApp: (options?: {
|
|
43
|
+
app: string;
|
|
44
|
+
} | {
|
|
45
|
+
appKey: string;
|
|
46
|
+
} | undefined) => Promise<{
|
|
47
|
+
data: {
|
|
48
|
+
slug: string;
|
|
49
|
+
title: string;
|
|
50
|
+
key: string;
|
|
51
|
+
implementation_id: string;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
is_hidden?: boolean | undefined;
|
|
54
|
+
auth_type?: string | undefined;
|
|
55
|
+
actions?: {
|
|
56
|
+
read?: number | undefined;
|
|
57
|
+
read_bulk?: number | undefined;
|
|
58
|
+
write?: number | undefined;
|
|
59
|
+
search?: number | undefined;
|
|
60
|
+
search_or_write?: number | undefined;
|
|
61
|
+
search_and_write?: number | undefined;
|
|
62
|
+
filter?: number | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
is_deprecated?: boolean | undefined;
|
|
65
|
+
is_beta?: boolean | undefined;
|
|
66
|
+
is_premium?: boolean | undefined;
|
|
67
|
+
age_in_days?: number | undefined;
|
|
68
|
+
banner?: string | undefined;
|
|
69
|
+
categories?: {
|
|
70
|
+
id: number;
|
|
71
|
+
name: string;
|
|
72
|
+
slug: string;
|
|
73
|
+
}[] | undefined;
|
|
74
|
+
images?: {
|
|
75
|
+
url_16x16?: string | undefined;
|
|
76
|
+
url_32x32?: string | undefined;
|
|
77
|
+
url_64x64?: string | undefined;
|
|
78
|
+
url_128x128?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
popularity?: number | undefined;
|
|
81
|
+
has_filters?: boolean | undefined;
|
|
82
|
+
has_reads?: boolean | undefined;
|
|
83
|
+
has_searches?: boolean | undefined;
|
|
84
|
+
has_searches_or_writes?: boolean | undefined;
|
|
85
|
+
has_upfront_fields?: boolean | undefined;
|
|
86
|
+
has_writes?: boolean | undefined;
|
|
87
|
+
is_built_in?: boolean | undefined;
|
|
88
|
+
is_featured?: boolean | undefined;
|
|
89
|
+
is_invite?: boolean | undefined;
|
|
90
|
+
is_public?: boolean | undefined;
|
|
91
|
+
is_upcoming?: boolean | undefined;
|
|
92
|
+
visibility?: string | undefined;
|
|
93
|
+
primary_color?: string | undefined;
|
|
94
|
+
secondary_color?: string | undefined;
|
|
95
|
+
classification?: string | undefined;
|
|
96
|
+
api_docs_url?: string | undefined;
|
|
97
|
+
image?: string | undefined;
|
|
98
|
+
version?: string | undefined;
|
|
99
|
+
};
|
|
100
|
+
}>;
|
|
101
|
+
} & {
|
|
102
|
+
context: {
|
|
103
|
+
meta: {
|
|
104
|
+
getApp: import("kitcore").PluginMeta<unknown>;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
} & {
|
|
108
|
+
listApps: (options?: ({
|
|
109
|
+
search?: string | undefined;
|
|
110
|
+
apps?: string[] | undefined;
|
|
111
|
+
appKeys?: string[] | undefined;
|
|
112
|
+
pageSize?: number | undefined;
|
|
113
|
+
maxItems?: number | undefined;
|
|
114
|
+
cursor?: string | undefined;
|
|
115
|
+
} & {
|
|
116
|
+
cursor?: string;
|
|
117
|
+
pageSize?: number;
|
|
118
|
+
maxItems?: number;
|
|
119
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
120
|
+
slug: string;
|
|
121
|
+
title: string;
|
|
122
|
+
key: string;
|
|
123
|
+
implementation_id: string;
|
|
124
|
+
description?: string | undefined;
|
|
125
|
+
is_hidden?: boolean | undefined;
|
|
126
|
+
auth_type?: string | undefined;
|
|
127
|
+
actions?: {
|
|
128
|
+
read?: number | undefined;
|
|
129
|
+
read_bulk?: number | undefined;
|
|
130
|
+
write?: number | undefined;
|
|
131
|
+
search?: number | undefined;
|
|
132
|
+
search_or_write?: number | undefined;
|
|
133
|
+
search_and_write?: number | undefined;
|
|
134
|
+
filter?: number | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
is_deprecated?: boolean | undefined;
|
|
137
|
+
is_beta?: boolean | undefined;
|
|
138
|
+
is_premium?: boolean | undefined;
|
|
139
|
+
age_in_days?: number | undefined;
|
|
140
|
+
banner?: string | undefined;
|
|
141
|
+
categories?: {
|
|
142
|
+
id: number;
|
|
143
|
+
name: string;
|
|
144
|
+
slug: string;
|
|
145
|
+
}[] | undefined;
|
|
146
|
+
images?: {
|
|
147
|
+
url_16x16?: string | undefined;
|
|
148
|
+
url_32x32?: string | undefined;
|
|
149
|
+
url_64x64?: string | undefined;
|
|
150
|
+
url_128x128?: string | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
popularity?: number | undefined;
|
|
153
|
+
has_filters?: boolean | undefined;
|
|
154
|
+
has_reads?: boolean | undefined;
|
|
155
|
+
has_searches?: boolean | undefined;
|
|
156
|
+
has_searches_or_writes?: boolean | undefined;
|
|
157
|
+
has_upfront_fields?: boolean | undefined;
|
|
158
|
+
has_writes?: boolean | undefined;
|
|
159
|
+
is_built_in?: boolean | undefined;
|
|
160
|
+
is_featured?: boolean | undefined;
|
|
161
|
+
is_invite?: boolean | undefined;
|
|
162
|
+
is_public?: boolean | undefined;
|
|
163
|
+
is_upcoming?: boolean | undefined;
|
|
164
|
+
visibility?: string | undefined;
|
|
165
|
+
primary_color?: string | undefined;
|
|
166
|
+
secondary_color?: string | undefined;
|
|
167
|
+
classification?: string | undefined;
|
|
168
|
+
api_docs_url?: string | undefined;
|
|
169
|
+
image?: string | undefined;
|
|
170
|
+
version?: string | undefined;
|
|
171
|
+
}>;
|
|
172
|
+
} & {
|
|
173
|
+
context: {
|
|
174
|
+
meta: {
|
|
175
|
+
listApps: import("kitcore").PluginMeta<unknown>;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
41
178
|
} & {
|
|
42
179
|
context: {
|
|
43
|
-
meta: Record<string, import("
|
|
180
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
44
181
|
};
|
|
45
182
|
}) => {
|
|
46
183
|
listActions: (options?: (({
|
|
@@ -59,7 +196,7 @@ export declare const listActionsPlugin: (sdk: {
|
|
|
59
196
|
cursor?: string;
|
|
60
197
|
pageSize?: number;
|
|
61
198
|
maxItems?: number;
|
|
62
|
-
}) | undefined) => import("
|
|
199
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
63
200
|
description: string;
|
|
64
201
|
key: string;
|
|
65
202
|
app_key: string;
|
|
@@ -74,7 +211,7 @@ export declare const listActionsPlugin: (sdk: {
|
|
|
74
211
|
} & {
|
|
75
212
|
context: {
|
|
76
213
|
meta: {
|
|
77
|
-
listActions: import("
|
|
214
|
+
listActions: import("kitcore").PluginMeta<unknown>;
|
|
78
215
|
};
|
|
79
216
|
};
|
|
80
217
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listActions/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listActions/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,WAAW,CAAC;AAS3D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAOxE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;sBA8EqlW,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC;;;;;;;;;;;;;aA3Ej/W;QACP,GAAG,EAAE,SAAS,CAAC;QACf,4BAA4B,EAAE,4BAA4B,CAAC;KAC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEN,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPaginatedPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPaginatedPluginMethod } from "kitcore";
|
|
3
3
|
import { normalizeActionItem } from "../../utils/domain-utils";
|
|
4
4
|
import { ListActionsInputSchema } from "./schemas";
|
|
5
5
|
import { ActionItemSchema } from "../../schemas/Action";
|
|
6
|
+
import { actionItemFormatter } from "../../formatters/action";
|
|
6
7
|
import { ZapierConfigurationError } from "../../types/errors";
|
|
7
8
|
import { DEFAULT_PAGE_SIZE } from "../../constants";
|
|
8
9
|
import { appKeyResolver, actionTypeResolver } from "../../resolvers";
|
|
9
|
-
import { setMethodMetadata } from "
|
|
10
|
+
import { setMethodMetadata } from "../eventEmission/method-metadata";
|
|
10
11
|
export const listActionsPlugin = definePlugin((sdk) => createPaginatedPluginMethod(sdk, {
|
|
11
12
|
name: "listActions",
|
|
12
13
|
categories: ["action"],
|
|
@@ -14,9 +15,10 @@ export const listActionsPlugin = definePlugin((sdk) => createPaginatedPluginMeth
|
|
|
14
15
|
itemType: "Action",
|
|
15
16
|
inputSchema: ListActionsInputSchema,
|
|
16
17
|
outputSchema: ActionItemSchema,
|
|
18
|
+
formatter: actionItemFormatter,
|
|
17
19
|
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
18
20
|
resolvers: { app: appKeyResolver, actionType: actionTypeResolver },
|
|
19
|
-
handler: async ({ sdk, options
|
|
21
|
+
handler: async ({ sdk, options }) => {
|
|
20
22
|
const { api, getVersionedImplementationId } = sdk.context;
|
|
21
23
|
const appKey = "app" in options ? options.app : options.appKey;
|
|
22
24
|
const selectedApi = await getVersionedImplementationId(appKey);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ListActionsSchema: 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
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
7
7
|
filter: "filter";
|
|
@@ -19,7 +19,7 @@ export declare const ListActionsSchema: z.ZodObject<{
|
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
declare const ListActionsSchemaDeprecated: z.ZodObject<{
|
|
21
21
|
appKey: z.ZodString & {
|
|
22
|
-
_def: z.core.$ZodStringDef & import("
|
|
22
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
23
23
|
};
|
|
24
24
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
25
25
|
filter: "filter";
|
|
@@ -37,7 +37,7 @@ declare const ListActionsSchemaDeprecated: z.ZodObject<{
|
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export declare const ListActionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
39
39
|
app: z.ZodString & {
|
|
40
|
-
_def: z.core.$ZodStringDef & import("
|
|
40
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
41
41
|
};
|
|
42
42
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
43
43
|
filter: "filter";
|
|
@@ -54,7 +54,7 @@ export declare const ListActionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
54
54
|
cursor: z.ZodOptional<z.ZodString>;
|
|
55
55
|
}, z.core.$strip>, z.ZodObject<{
|
|
56
56
|
appKey: z.ZodString & {
|
|
57
|
-
_def: z.core.$ZodStringDef & import("
|
|
57
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
58
58
|
};
|
|
59
59
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
60
60
|
filter: "filter";
|
|
@@ -49,7 +49,7 @@ export declare const listAppsPlugin: (sdk: {
|
|
|
49
49
|
context: import("../eventEmission").EventEmissionContext;
|
|
50
50
|
} & {
|
|
51
51
|
context: {
|
|
52
|
-
meta: Record<string, import("
|
|
52
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
53
53
|
};
|
|
54
54
|
}) => {
|
|
55
55
|
listApps: (options?: ({
|
|
@@ -63,7 +63,7 @@ export declare const listAppsPlugin: (sdk: {
|
|
|
63
63
|
cursor?: string;
|
|
64
64
|
pageSize?: number;
|
|
65
65
|
maxItems?: number;
|
|
66
|
-
}) | undefined) => import("
|
|
66
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
67
67
|
slug: string;
|
|
68
68
|
title: string;
|
|
69
69
|
key: string;
|
|
@@ -119,7 +119,7 @@ export declare const listAppsPlugin: (sdk: {
|
|
|
119
119
|
} & {
|
|
120
120
|
context: {
|
|
121
121
|
meta: {
|
|
122
|
-
listApps: import("
|
|
122
|
+
listApps: import("kitcore").PluginMeta<unknown>;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
125
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listApps/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listApps/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAqEg0W,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAHvuX,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPaginatedPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPaginatedPluginMethod } from "kitcore";
|
|
3
3
|
import { DEFAULT_PAGE_SIZE } from "../../constants";
|
|
4
|
+
import { zapierPagination } from "../../utils/pagination";
|
|
4
5
|
import { ListAppsSchema } from "./schemas";
|
|
5
6
|
import { AppItemSchema } from "../../schemas/App";
|
|
6
|
-
import {
|
|
7
|
+
import { appItemFormatter } from "../../formatters/app";
|
|
7
8
|
export const listAppsPlugin = definePlugin((sdk) => createPaginatedPluginMethod(sdk, {
|
|
9
|
+
...zapierPagination,
|
|
8
10
|
name: "listApps",
|
|
9
11
|
categories: ["app"],
|
|
10
12
|
type: "list",
|
|
11
13
|
itemType: "App",
|
|
12
14
|
inputSchema: ListAppsSchema,
|
|
13
15
|
outputSchema: AppItemSchema,
|
|
16
|
+
formatter: appItemFormatter,
|
|
14
17
|
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
15
18
|
handler: async ({ sdk, options }) => {
|
|
16
19
|
const { api, resolveAppKeys } = sdk.context;
|
|
@@ -57,5 +60,4 @@ export const listAppsPlugin = definePlugin((sdk) => createPaginatedPluginMethod(
|
|
|
57
60
|
},
|
|
58
61
|
});
|
|
59
62
|
},
|
|
60
|
-
extractCursor: (response) => extractCursor(response.links),
|
|
61
63
|
}));
|
|
@@ -7,7 +7,7 @@ export declare const listClientCredentialsPlugin: (sdk: {
|
|
|
7
7
|
context: import("../eventEmission").EventEmissionContext;
|
|
8
8
|
} & {
|
|
9
9
|
context: {
|
|
10
|
-
meta: Record<string, import("
|
|
10
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
11
11
|
};
|
|
12
12
|
}) => {
|
|
13
13
|
listClientCredentials: (options?: ({
|
|
@@ -18,7 +18,7 @@ export declare const listClientCredentialsPlugin: (sdk: {
|
|
|
18
18
|
cursor?: string;
|
|
19
19
|
pageSize?: number;
|
|
20
20
|
maxItems?: number;
|
|
21
|
-
}) | undefined) => import("
|
|
21
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
22
22
|
client_id: string;
|
|
23
23
|
name: string;
|
|
24
24
|
allowed_scopes: ("external" | "credentials")[];
|
|
@@ -28,7 +28,7 @@ export declare const listClientCredentialsPlugin: (sdk: {
|
|
|
28
28
|
} & {
|
|
29
29
|
context: {
|
|
30
30
|
meta: {
|
|
31
|
-
listClientCredentials: import("
|
|
31
|
+
listClientCredentials: import("kitcore").PluginMeta<unknown>;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listClientCredentials/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listClientCredentials/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAS3C,eAAO,MAAM,2BAA2B;aACrB;QAAE,GAAG,EAAE,SAAS,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCpC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,2BAA2B,CACnC,CAAC"}
|