@zapier/zapier-sdk 0.65.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 +41 -0
- package/README.md +64 -34
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +2 -0
- package/dist/api/debug.d.ts.map +1 -1
- package/dist/api/debug.js +6 -4
- package/dist/api/polling.d.ts +2 -0
- package/dist/api/polling.d.ts.map +1 -1
- package/dist/api/polling.js +10 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +8 -5
- package/dist/core-stack.d.ts +24 -0
- package/dist/core-stack.d.ts.map +1 -0
- package/dist/core-stack.js +32 -0
- package/dist/experimental.cjs +1598 -1323
- package/dist/experimental.d.mts +3476 -224
- package/dist/experimental.d.ts +3508 -256
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +117 -87
- package/dist/experimental.mjs +1585 -1322
- package/dist/formatters/action.d.ts +4 -0
- package/dist/formatters/action.d.ts.map +1 -0
- package/dist/formatters/action.js +18 -0
- package/dist/formatters/actionResult.d.ts +3 -0
- package/dist/formatters/actionResult.d.ts.map +1 -0
- package/dist/formatters/actionResult.js +25 -0
- package/dist/formatters/app.d.ts +4 -0
- package/dist/formatters/app.d.ts.map +1 -0
- package/dist/formatters/app.js +10 -0
- package/dist/formatters/clientCredentials.d.ts +5 -0
- package/dist/formatters/clientCredentials.d.ts.map +1 -0
- package/dist/formatters/clientCredentials.js +27 -0
- package/dist/formatters/connection.d.ts +4 -0
- package/dist/formatters/connection.d.ts.map +1 -0
- package/dist/formatters/connection.js +26 -0
- package/dist/formatters/field.d.ts +4 -0
- package/dist/formatters/field.d.ts.map +1 -0
- package/dist/formatters/field.js +51 -0
- package/dist/formatters/inputFieldChoice.d.ts +4 -0
- package/dist/formatters/inputFieldChoice.d.ts.map +1 -0
- package/dist/formatters/inputFieldChoice.js +16 -0
- package/dist/formatters/tableField.d.ts +4 -0
- package/dist/formatters/tableField.d.ts.map +1 -0
- package/dist/formatters/tableField.js +7 -0
- package/dist/formatters/tableRecord.d.ts +5 -3
- package/dist/formatters/tableRecord.d.ts.map +1 -1
- package/dist/formatters/tableRecord.js +4 -3
- package/dist/formatters/triggerInbox.d.ts +4 -0
- package/dist/formatters/triggerInbox.d.ts.map +1 -0
- package/dist/formatters/triggerInbox.js +31 -0
- package/dist/formatters/triggerMessage.d.ts +5 -0
- package/dist/formatters/triggerMessage.d.ts.map +1 -0
- package/dist/formatters/triggerMessage.js +34 -0
- package/dist/formatters/userProfile.d.ts +4 -0
- package/dist/formatters/userProfile.d.ts.map +1 -0
- package/dist/formatters/userProfile.js +19 -0
- package/dist/{index-JhNxS_mq.d.mts → index-Dh0b5NAY.d.mts} +13207 -7904
- package/dist/{index-JhNxS_mq.d.ts → index-Dh0b5NAY.d.ts} +13207 -7904
- package/dist/index.cjs +1729 -1469
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +12 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -7
- package/dist/index.mjs +1716 -1468
- package/dist/plugins/api/index.d.ts +1 -1
- package/dist/plugins/api/index.js +1 -1
- package/dist/plugins/apps/index.d.ts +8 -5
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/apps/index.js +1 -1
- package/dist/plugins/capabilities/index.d.ts +1 -1
- package/dist/plugins/capabilities/index.js +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts +32 -2
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/createWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts +32 -2
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/getTriggerRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +55 -2
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +51 -2
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.js +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +28 -3
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +28 -3
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.js +2 -3
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.js +1 -1
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/runDurable/index.js +1 -1
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +73 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.js +52 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.d.ts +16 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.js +31 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.js +1 -1
- package/dist/plugins/connections/index.d.ts +1 -1
- package/dist/plugins/connections/index.js +1 -1
- package/dist/plugins/createClientCredentials/index.d.ts +2 -2
- package/dist/plugins/createClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/createClientCredentials/index.js +4 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts +1 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.d.ts +24 -2
- package/dist/plugins/deleteClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.js +2 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts +1 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.d.ts +144 -16
- package/dist/plugins/deprecated/authentications.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.js +14 -5
- package/dist/plugins/deprecated/inputFields.d.ts +58 -23
- package/dist/plugins/deprecated/inputFields.d.ts.map +1 -1
- package/dist/plugins/deprecated/inputFields.js +15 -7
- package/dist/plugins/eventEmission/event-emission-hook.d.ts +10 -0
- package/dist/plugins/eventEmission/event-emission-hook.d.ts.map +1 -0
- package/dist/plugins/eventEmission/event-emission-hook.js +47 -0
- package/dist/plugins/eventEmission/index.d.ts +5 -3
- package/dist/plugins/eventEmission/index.d.ts.map +1 -1
- package/dist/plugins/eventEmission/index.js +16 -9
- package/dist/plugins/eventEmission/method-metadata.d.ts +16 -0
- package/dist/plugins/eventEmission/method-metadata.d.ts.map +1 -0
- package/dist/plugins/eventEmission/method-metadata.js +20 -0
- package/dist/plugins/eventEmission/transport.d.ts.map +1 -1
- package/dist/plugins/eventEmission/transport.js +2 -1
- package/dist/plugins/fetch/index.d.ts +11 -5
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +42 -32
- package/dist/plugins/fetch/schemas.d.ts +1 -1
- package/dist/plugins/findFirstConnection/index.d.ts +4 -4
- package/dist/plugins/findFirstConnection/index.d.ts.map +1 -1
- package/dist/plugins/findFirstConnection/index.js +4 -2
- package/dist/plugins/findFirstConnection/schemas.d.ts +2 -2
- package/dist/plugins/findUniqueConnection/index.d.ts +4 -4
- package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/index.js +4 -2
- package/dist/plugins/findUniqueConnection/schemas.d.ts +2 -2
- package/dist/plugins/getAction/index.d.ts +141 -4
- package/dist/plugins/getAction/index.d.ts.map +1 -1
- package/dist/plugins/getAction/index.js +5 -3
- package/dist/plugins/getAction/schemas.d.ts +6 -6
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts +232 -3
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/getActionInputFieldsSchema/index.js +3 -3
- package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts +6 -6
- package/dist/plugins/getApp/index.d.ts +4 -4
- package/dist/plugins/getApp/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.js +3 -1
- package/dist/plugins/getApp/schemas.d.ts +4 -4
- package/dist/plugins/getConnection/index.d.ts +125 -2
- package/dist/plugins/getConnection/index.d.ts.map +1 -1
- package/dist/plugins/getConnection/index.js +4 -2
- package/dist/plugins/getProfile/index.d.ts +2 -2
- package/dist/plugins/getProfile/index.d.ts.map +1 -1
- package/dist/plugins/getProfile/index.js +4 -2
- package/dist/plugins/getProfile/schemas.d.ts +1 -2
- package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/index.d.ts +287 -4
- package/dist/plugins/listActionInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/index.js +6 -4
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts +8 -8
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/schemas.js +1 -22
- package/dist/plugins/listActionInputFields/index.d.ts +168 -5
- package/dist/plugins/listActionInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listActionInputFields/index.js +7 -5
- package/dist/plugins/listActionInputFields/schemas.d.ts +6 -6
- package/dist/plugins/listActions/index.d.ts +140 -3
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/index.js +6 -4
- package/dist/plugins/listActions/schemas.d.ts +4 -4
- package/dist/plugins/listApps/index.d.ts +3 -3
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +6 -4
- package/dist/plugins/listClientCredentials/index.d.ts +3 -3
- package/dist/plugins/listClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/listClientCredentials/index.js +6 -4
- package/dist/plugins/listConnections/index.d.ts +140 -3
- package/dist/plugins/listConnections/index.d.ts.map +1 -1
- package/dist/plugins/listConnections/index.js +7 -5
- package/dist/plugins/listConnections/schemas.d.ts +2 -2
- package/dist/plugins/manifest/index.d.ts +1 -1
- package/dist/plugins/manifest/index.d.ts.map +1 -1
- package/dist/plugins/manifest/index.js +6 -4
- package/dist/plugins/registry/index.d.ts +1 -1
- package/dist/plugins/registry/index.js +1 -1
- package/dist/plugins/request/index.d.ts +8 -5
- package/dist/plugins/request/index.d.ts.map +1 -1
- package/dist/plugins/request/index.js +4 -3
- package/dist/plugins/request/schemas.d.ts +2 -2
- package/dist/plugins/runAction/index.d.ts +168 -5
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/index.js +9 -5
- package/dist/plugins/runAction/schemas.d.ts +6 -6
- package/dist/plugins/tables/createTable/index.d.ts +2 -2
- package/dist/plugins/tables/createTable/index.js +2 -2
- package/dist/plugins/tables/createTable/schemas.d.ts +1 -2
- package/dist/plugins/tables/createTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.d.ts +34 -2
- package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.js +4 -2
- package/dist/plugins/tables/createTableFields/schemas.d.ts +3 -4
- package/dist/plugins/tables/createTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.d.ts +63 -2
- package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.js +2 -2
- package/dist/plugins/tables/createTableRecords/schemas.d.ts +3 -4
- package/dist/plugins/tables/createTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.d.ts +34 -2
- package/dist/plugins/tables/deleteTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.js +2 -2
- package/dist/plugins/tables/deleteTable/schemas.d.ts +3 -4
- package/dist/plugins/tables/deleteTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.d.ts +63 -2
- package/dist/plugins/tables/deleteTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.js +2 -2
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts +4 -5
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.d.ts +84 -2
- package/dist/plugins/tables/deleteTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.js +2 -2
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts +4 -5
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.d.ts +34 -2
- package/dist/plugins/tables/getTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.js +2 -2
- package/dist/plugins/tables/getTable/schemas.d.ts +2 -2
- package/dist/plugins/tables/getTableRecord/index.d.ts +84 -2
- package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/index.js +2 -2
- package/dist/plugins/tables/getTableRecord/schemas.d.ts +6 -7
- package/dist/plugins/tables/getTableRecord/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/schemas.js +1 -10
- package/dist/plugins/tables/listTableFields/index.d.ts +34 -2
- package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/index.js +4 -2
- package/dist/plugins/tables/listTableFields/schemas.d.ts +4 -5
- package/dist/plugins/tables/listTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/schemas.js +1 -9
- package/dist/plugins/tables/listTableRecords/index.d.ts +65 -4
- package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/index.js +3 -3
- package/dist/plugins/tables/listTableRecords/schemas.d.ts +2 -2
- package/dist/plugins/tables/listTables/index.d.ts +3 -3
- package/dist/plugins/tables/listTables/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTables/index.js +4 -4
- package/dist/plugins/tables/updateTableRecords/index.d.ts +63 -2
- package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/updateTableRecords/index.js +2 -2
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts +3 -4
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts +59 -2
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts +231 -2
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts +3 -4
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/deleteTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts +68 -6
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.js +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/schemas.d.ts +2 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts +231 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ensureTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts +3 -4
- package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/getTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +232 -3
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.js +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.d.ts +2 -2
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts +33 -2
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts +34 -3
- package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInboxMessages/index.js +5 -13
- package/dist/plugins/triggers/listTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/listTriggerInboxes/index.d.ts +3 -3
- package/dist/plugins/triggers/listTriggerInboxes/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInboxes/index.js +5 -14
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +288 -5
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.js +7 -5
- package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.d.ts +3 -3
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +234 -5
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInputFields/index.js +6 -5
- package/dist/plugins/triggers/listTriggerInputFields/schemas.d.ts +2 -2
- package/dist/plugins/triggers/listTriggers/index.d.ts +142 -5
- package/dist/plugins/triggers/listTriggers/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggers/index.js +6 -5
- package/dist/plugins/triggers/listTriggers/schemas.d.ts +1 -1
- package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/pauseTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts +59 -2
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/resumeTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/updateTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/updateTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/updateTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts +37 -6
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.js +1 -1
- package/dist/resolvers/actionKey.d.ts +3 -2
- package/dist/resolvers/actionKey.d.ts.map +1 -1
- package/dist/resolvers/actionType.d.ts +7 -2
- package/dist/resolvers/actionType.d.ts.map +1 -1
- package/dist/resolvers/actionType.js +3 -0
- package/dist/resolvers/appKey.d.ts +10 -5
- package/dist/resolvers/appKey.d.ts.map +1 -1
- package/dist/resolvers/appKey.js +3 -0
- package/dist/resolvers/clientCredentialsName.d.ts +1 -1
- package/dist/resolvers/clientCredentialsName.d.ts.map +1 -1
- package/dist/resolvers/clientId.d.ts +3 -2
- package/dist/resolvers/clientId.d.ts.map +1 -1
- package/dist/resolvers/clientId.js +1 -1
- package/dist/resolvers/connectionId.d.ts +5 -2
- package/dist/resolvers/connectionId.d.ts.map +1 -1
- package/dist/resolvers/connectionId.js +1 -1
- package/dist/resolvers/durableRunId.d.ts +3 -2
- package/dist/resolvers/durableRunId.d.ts.map +1 -1
- package/dist/resolvers/durableRunId.js +3 -2
- package/dist/resolvers/inputFieldKey.d.ts +3 -2
- package/dist/resolvers/inputFieldKey.d.ts.map +1 -1
- package/dist/resolvers/inputFieldKey.js +1 -1
- package/dist/resolvers/tableFieldIds.d.ts +3 -2
- package/dist/resolvers/tableFieldIds.d.ts.map +1 -1
- package/dist/resolvers/tableFields.d.ts +2 -2
- package/dist/resolvers/tableFields.d.ts.map +1 -1
- package/dist/resolvers/tableFilters.d.ts +3 -2
- package/dist/resolvers/tableFilters.d.ts.map +1 -1
- package/dist/resolvers/tableId.d.ts +3 -2
- package/dist/resolvers/tableId.d.ts.map +1 -1
- package/dist/resolvers/tableId.js +1 -1
- package/dist/resolvers/tableName.d.ts +1 -1
- package/dist/resolvers/tableName.d.ts.map +1 -1
- package/dist/resolvers/tableRecordId.d.ts +4 -3
- package/dist/resolvers/tableRecordId.d.ts.map +1 -1
- package/dist/resolvers/tableRecords.d.ts +4 -3
- package/dist/resolvers/tableRecords.d.ts.map +1 -1
- package/dist/resolvers/tableSort.d.ts +3 -2
- package/dist/resolvers/tableSort.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.d.ts +3 -2
- package/dist/resolvers/triggerInbox.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.js +1 -1
- package/dist/resolvers/triggerMessages.d.ts +3 -2
- package/dist/resolvers/triggerMessages.d.ts.map +1 -1
- package/dist/resolvers/triggerMessages.js +2 -4
- package/dist/resolvers/workflowId.d.ts +3 -2
- package/dist/resolvers/workflowId.d.ts.map +1 -1
- package/dist/resolvers/workflowId.js +3 -2
- package/dist/resolvers/workflowRunId.d.ts +3 -2
- package/dist/resolvers/workflowRunId.d.ts.map +1 -1
- package/dist/resolvers/workflowRunId.js +5 -5
- package/dist/resolvers/workflowVersionId.d.ts +3 -2
- package/dist/resolvers/workflowVersionId.d.ts.map +1 -1
- package/dist/resolvers/workflowVersionId.js +7 -7
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/Action.js +6 -30
- package/dist/schemas/App.d.ts +0 -1
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +2 -14
- package/dist/schemas/ClientCredentials.d.ts.map +1 -1
- package/dist/schemas/ClientCredentials.js +3 -41
- package/dist/schemas/Connection.d.ts.map +1 -1
- package/dist/schemas/Connection.js +2 -28
- package/dist/schemas/Field.d.ts.map +1 -1
- package/dist/schemas/Field.js +3 -70
- package/dist/schemas/Run.d.ts.map +1 -1
- package/dist/schemas/Run.js +3 -29
- package/dist/schemas/TriggerInbox.d.ts.map +1 -1
- package/dist/schemas/TriggerInbox.js +1 -33
- package/dist/schemas/TriggerMessage.d.ts.map +1 -1
- package/dist/schemas/TriggerMessage.js +2 -60
- package/dist/schemas/UserProfile.d.ts +0 -1
- package/dist/schemas/UserProfile.d.ts.map +1 -1
- package/dist/schemas/UserProfile.js +1 -20
- package/dist/sdk.d.ts +2761 -441
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +93 -129
- package/dist/types/errors.d.ts +44 -42
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +79 -33
- package/dist/types/functions.d.ts +1 -41
- package/dist/types/functions.d.ts.map +1 -1
- package/dist/types/properties.d.ts +7 -7
- package/dist/types/properties.js +1 -1
- package/dist/types/sdk.d.ts +1 -1
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/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
|
@@ -27,7 +27,236 @@ export declare const getActionInputFieldsSchemaPlugin: (sdk: {
|
|
|
27
27
|
} & {
|
|
28
28
|
context: {
|
|
29
29
|
meta: {
|
|
30
|
-
getAction: import("
|
|
30
|
+
getAction: import("kitcore").PluginMeta<unknown>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
} & {
|
|
34
|
+
getApp: (options?: {
|
|
35
|
+
app: string;
|
|
36
|
+
} | {
|
|
37
|
+
appKey: string;
|
|
38
|
+
} | undefined) => Promise<{
|
|
39
|
+
data: {
|
|
40
|
+
slug: string;
|
|
41
|
+
title: string;
|
|
42
|
+
key: string;
|
|
43
|
+
implementation_id: string;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
is_hidden?: boolean | undefined;
|
|
46
|
+
auth_type?: string | undefined;
|
|
47
|
+
actions?: {
|
|
48
|
+
read?: number | undefined;
|
|
49
|
+
read_bulk?: number | undefined;
|
|
50
|
+
write?: number | undefined;
|
|
51
|
+
search?: number | undefined;
|
|
52
|
+
search_or_write?: number | undefined;
|
|
53
|
+
search_and_write?: number | undefined;
|
|
54
|
+
filter?: number | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
is_deprecated?: boolean | undefined;
|
|
57
|
+
is_beta?: boolean | undefined;
|
|
58
|
+
is_premium?: boolean | undefined;
|
|
59
|
+
age_in_days?: number | undefined;
|
|
60
|
+
banner?: string | undefined;
|
|
61
|
+
categories?: {
|
|
62
|
+
id: number;
|
|
63
|
+
name: string;
|
|
64
|
+
slug: string;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
images?: {
|
|
67
|
+
url_16x16?: string | undefined;
|
|
68
|
+
url_32x32?: string | undefined;
|
|
69
|
+
url_64x64?: string | undefined;
|
|
70
|
+
url_128x128?: string | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
popularity?: number | undefined;
|
|
73
|
+
has_filters?: boolean | undefined;
|
|
74
|
+
has_reads?: boolean | undefined;
|
|
75
|
+
has_searches?: boolean | undefined;
|
|
76
|
+
has_searches_or_writes?: boolean | undefined;
|
|
77
|
+
has_upfront_fields?: boolean | undefined;
|
|
78
|
+
has_writes?: boolean | undefined;
|
|
79
|
+
is_built_in?: boolean | undefined;
|
|
80
|
+
is_featured?: boolean | undefined;
|
|
81
|
+
is_invite?: boolean | undefined;
|
|
82
|
+
is_public?: boolean | undefined;
|
|
83
|
+
is_upcoming?: boolean | undefined;
|
|
84
|
+
visibility?: string | undefined;
|
|
85
|
+
primary_color?: string | undefined;
|
|
86
|
+
secondary_color?: string | undefined;
|
|
87
|
+
classification?: string | undefined;
|
|
88
|
+
api_docs_url?: string | undefined;
|
|
89
|
+
image?: string | undefined;
|
|
90
|
+
version?: string | undefined;
|
|
91
|
+
};
|
|
92
|
+
}>;
|
|
93
|
+
} & {
|
|
94
|
+
context: {
|
|
95
|
+
meta: {
|
|
96
|
+
getApp: import("kitcore").PluginMeta<unknown>;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
} & {
|
|
100
|
+
listApps: (options?: ({
|
|
101
|
+
search?: string | undefined;
|
|
102
|
+
apps?: string[] | undefined;
|
|
103
|
+
appKeys?: string[] | undefined;
|
|
104
|
+
pageSize?: number | undefined;
|
|
105
|
+
maxItems?: number | undefined;
|
|
106
|
+
cursor?: string | undefined;
|
|
107
|
+
} & {
|
|
108
|
+
cursor?: string;
|
|
109
|
+
pageSize?: number;
|
|
110
|
+
maxItems?: number;
|
|
111
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
112
|
+
slug: string;
|
|
113
|
+
title: string;
|
|
114
|
+
key: string;
|
|
115
|
+
implementation_id: string;
|
|
116
|
+
description?: string | undefined;
|
|
117
|
+
is_hidden?: boolean | undefined;
|
|
118
|
+
auth_type?: string | undefined;
|
|
119
|
+
actions?: {
|
|
120
|
+
read?: number | undefined;
|
|
121
|
+
read_bulk?: number | undefined;
|
|
122
|
+
write?: number | undefined;
|
|
123
|
+
search?: number | undefined;
|
|
124
|
+
search_or_write?: number | undefined;
|
|
125
|
+
search_and_write?: number | undefined;
|
|
126
|
+
filter?: number | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
is_deprecated?: boolean | undefined;
|
|
129
|
+
is_beta?: boolean | undefined;
|
|
130
|
+
is_premium?: boolean | undefined;
|
|
131
|
+
age_in_days?: number | undefined;
|
|
132
|
+
banner?: string | undefined;
|
|
133
|
+
categories?: {
|
|
134
|
+
id: number;
|
|
135
|
+
name: string;
|
|
136
|
+
slug: string;
|
|
137
|
+
}[] | undefined;
|
|
138
|
+
images?: {
|
|
139
|
+
url_16x16?: string | undefined;
|
|
140
|
+
url_32x32?: string | undefined;
|
|
141
|
+
url_64x64?: string | undefined;
|
|
142
|
+
url_128x128?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
popularity?: number | undefined;
|
|
145
|
+
has_filters?: boolean | undefined;
|
|
146
|
+
has_reads?: boolean | undefined;
|
|
147
|
+
has_searches?: boolean | undefined;
|
|
148
|
+
has_searches_or_writes?: boolean | undefined;
|
|
149
|
+
has_upfront_fields?: boolean | undefined;
|
|
150
|
+
has_writes?: boolean | undefined;
|
|
151
|
+
is_built_in?: boolean | undefined;
|
|
152
|
+
is_featured?: boolean | undefined;
|
|
153
|
+
is_invite?: boolean | undefined;
|
|
154
|
+
is_public?: boolean | undefined;
|
|
155
|
+
is_upcoming?: boolean | undefined;
|
|
156
|
+
visibility?: string | undefined;
|
|
157
|
+
primary_color?: string | undefined;
|
|
158
|
+
secondary_color?: string | undefined;
|
|
159
|
+
classification?: string | undefined;
|
|
160
|
+
api_docs_url?: string | undefined;
|
|
161
|
+
image?: string | undefined;
|
|
162
|
+
version?: string | undefined;
|
|
163
|
+
}>;
|
|
164
|
+
} & {
|
|
165
|
+
context: {
|
|
166
|
+
meta: {
|
|
167
|
+
listApps: import("kitcore").PluginMeta<unknown>;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
} & {
|
|
171
|
+
listActions: (options?: (({
|
|
172
|
+
app: string;
|
|
173
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
174
|
+
pageSize?: number | undefined;
|
|
175
|
+
maxItems?: number | undefined;
|
|
176
|
+
cursor?: string | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
appKey: string;
|
|
179
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
180
|
+
pageSize?: number | undefined;
|
|
181
|
+
maxItems?: number | undefined;
|
|
182
|
+
cursor?: string | undefined;
|
|
183
|
+
}) & {
|
|
184
|
+
cursor?: string;
|
|
185
|
+
pageSize?: number;
|
|
186
|
+
maxItems?: number;
|
|
187
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
188
|
+
description: string;
|
|
189
|
+
key: string;
|
|
190
|
+
app_key: string;
|
|
191
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
192
|
+
title: string;
|
|
193
|
+
type: "action";
|
|
194
|
+
id?: string | undefined;
|
|
195
|
+
is_important?: boolean | undefined;
|
|
196
|
+
is_hidden?: boolean | undefined;
|
|
197
|
+
app_version?: string | undefined;
|
|
198
|
+
}>;
|
|
199
|
+
} & {
|
|
200
|
+
context: {
|
|
201
|
+
meta: {
|
|
202
|
+
listActions: import("kitcore").PluginMeta<unknown>;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
} & {
|
|
206
|
+
listConnections: (options?: ({
|
|
207
|
+
title?: string | undefined;
|
|
208
|
+
search?: string | undefined;
|
|
209
|
+
owner?: string | undefined;
|
|
210
|
+
app?: string | undefined;
|
|
211
|
+
appKey?: string | undefined;
|
|
212
|
+
connections?: string[] | undefined;
|
|
213
|
+
connectionIds?: string[] | undefined;
|
|
214
|
+
authenticationIds?: string[] | undefined;
|
|
215
|
+
account?: string | undefined;
|
|
216
|
+
accountId?: string | undefined;
|
|
217
|
+
includeShared?: boolean | undefined;
|
|
218
|
+
isExpired?: boolean | undefined;
|
|
219
|
+
expired?: boolean | undefined;
|
|
220
|
+
pageSize?: number | undefined;
|
|
221
|
+
maxItems?: number | undefined;
|
|
222
|
+
cursor?: string | undefined;
|
|
223
|
+
} & {
|
|
224
|
+
cursor?: string;
|
|
225
|
+
pageSize?: number;
|
|
226
|
+
maxItems?: number;
|
|
227
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
228
|
+
date: string;
|
|
229
|
+
is_invite_only: boolean;
|
|
230
|
+
is_private: boolean;
|
|
231
|
+
shared_with_all: boolean;
|
|
232
|
+
id: string;
|
|
233
|
+
account_id: string;
|
|
234
|
+
title?: string | null | undefined;
|
|
235
|
+
lastchanged?: string | undefined;
|
|
236
|
+
destination_selected_api?: string | null | undefined;
|
|
237
|
+
is_stale?: string | undefined;
|
|
238
|
+
is_shared?: string | undefined;
|
|
239
|
+
marked_stale_at?: string | null | undefined;
|
|
240
|
+
label?: string | null | undefined;
|
|
241
|
+
identifier?: string | null | undefined;
|
|
242
|
+
url?: string | undefined;
|
|
243
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
244
|
+
members?: string | undefined;
|
|
245
|
+
permissions?: Record<string, boolean> | undefined;
|
|
246
|
+
public_id?: string | undefined;
|
|
247
|
+
account_public_id?: string | undefined;
|
|
248
|
+
customuser_public_id?: string | undefined;
|
|
249
|
+
implementation_id?: string | undefined;
|
|
250
|
+
profile_id?: string | undefined;
|
|
251
|
+
is_expired?: string | undefined;
|
|
252
|
+
expired_at?: string | null | undefined;
|
|
253
|
+
app_key?: string | undefined;
|
|
254
|
+
app_version?: string | undefined;
|
|
255
|
+
}>;
|
|
256
|
+
} & {
|
|
257
|
+
context: {
|
|
258
|
+
meta: {
|
|
259
|
+
listConnections: import("kitcore").PluginMeta<unknown>;
|
|
31
260
|
};
|
|
32
261
|
};
|
|
33
262
|
} & {
|
|
@@ -39,7 +268,7 @@ export declare const getActionInputFieldsSchemaPlugin: (sdk: {
|
|
|
39
268
|
context: import("../eventEmission").EventEmissionContext;
|
|
40
269
|
} & {
|
|
41
270
|
context: {
|
|
42
|
-
meta: Record<string, import("
|
|
271
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
43
272
|
};
|
|
44
273
|
}) => {
|
|
45
274
|
getActionInputFieldsSchema: (options?: {
|
|
@@ -64,7 +293,7 @@ export declare const getActionInputFieldsSchemaPlugin: (sdk: {
|
|
|
64
293
|
} & {
|
|
65
294
|
context: {
|
|
66
295
|
meta: {
|
|
67
|
-
getActionInputFieldsSchema: import("
|
|
296
|
+
getActionInputFieldsSchema: import("kitcore").PluginMeta<unknown>;
|
|
68
297
|
};
|
|
69
298
|
};
|
|
70
299
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/getActionInputFieldsSchema/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/getActionInputFieldsSchema/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAQ3C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAUxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAIhE,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAO5B;QACP,GAAG,EAAE,SAAS,CAAC;QACf,4BAA4B,EAAE,4BAA4B,CAAC;KAC5D,GAAG,yBAAyB,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;cAmBtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;CAoDhD,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG,UAAU,CAC/D,OAAO,gCAAgC,CACxC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { GetActionInputFieldsSchemaInputSchema } from "./schemas";
|
|
4
4
|
import { ZapierConfigurationError } from "../../types/errors";
|
|
5
5
|
import { appKeyResolver, actionTypeResolver, actionKeyResolver, connectionIdResolver, inputsAllOptionalResolver, } from "../../resolvers";
|
|
6
6
|
import { fetchImplementationNeeds } from "../../services/implementations";
|
|
7
7
|
import { resolveConnectionId } from "../../utils/domain-utils";
|
|
8
|
-
import { setMethodMetadata } from "
|
|
8
|
+
import { setMethodMetadata } from "../eventEmission/method-metadata";
|
|
9
9
|
export const getActionInputFieldsSchemaPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
10
10
|
name: "getActionInputFieldsSchema",
|
|
11
11
|
categories: ["action"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const GetActionInputFieldsSchemaSchema: 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.ZodEnum<{
|
|
7
7
|
filter: "filter";
|
|
@@ -14,7 +14,7 @@ export declare const GetActionInputFieldsSchemaSchema: z.ZodObject<{
|
|
|
14
14
|
search_or_write: "search_or_write";
|
|
15
15
|
}>;
|
|
16
16
|
action: z.ZodString & {
|
|
17
|
-
_def: z.core.$ZodStringDef & import("
|
|
17
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
18
18
|
};
|
|
19
19
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
20
20
|
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -23,7 +23,7 @@ export declare const GetActionInputFieldsSchemaSchema: z.ZodObject<{
|
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
declare const GetActionInputFieldsSchemaSchemaDeprecated: z.ZodObject<{
|
|
25
25
|
appKey: z.ZodString & {
|
|
26
|
-
_def: z.core.$ZodStringDef & import("
|
|
26
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
27
27
|
};
|
|
28
28
|
actionType: z.ZodEnum<{
|
|
29
29
|
filter: "filter";
|
|
@@ -43,7 +43,7 @@ declare const GetActionInputFieldsSchemaSchemaDeprecated: z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
export declare const GetActionInputFieldsSchemaInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
45
45
|
app: z.ZodString & {
|
|
46
|
-
_def: z.core.$ZodStringDef & import("
|
|
46
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
47
47
|
};
|
|
48
48
|
actionType: z.ZodEnum<{
|
|
49
49
|
filter: "filter";
|
|
@@ -56,7 +56,7 @@ export declare const GetActionInputFieldsSchemaInputSchema: z.ZodUnion<readonly
|
|
|
56
56
|
search_or_write: "search_or_write";
|
|
57
57
|
}>;
|
|
58
58
|
action: z.ZodString & {
|
|
59
|
-
_def: z.core.$ZodStringDef & import("
|
|
59
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
60
60
|
};
|
|
61
61
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
62
62
|
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -64,7 +64,7 @@ export declare const GetActionInputFieldsSchemaInputSchema: z.ZodUnion<readonly
|
|
|
64
64
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
65
|
}, z.core.$strip>, z.ZodObject<{
|
|
66
66
|
appKey: z.ZodString & {
|
|
67
|
-
_def: z.core.$ZodStringDef & import("
|
|
67
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
68
68
|
};
|
|
69
69
|
actionType: z.ZodEnum<{
|
|
70
70
|
filter: "filter";
|
|
@@ -10,7 +10,7 @@ export declare const getAppPlugin: (sdk: {
|
|
|
10
10
|
cursor?: string;
|
|
11
11
|
pageSize?: number;
|
|
12
12
|
maxItems?: number;
|
|
13
|
-
}) | undefined) => import("
|
|
13
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
14
14
|
slug: string;
|
|
15
15
|
title: string;
|
|
16
16
|
key: string;
|
|
@@ -66,14 +66,14 @@ export declare const getAppPlugin: (sdk: {
|
|
|
66
66
|
} & {
|
|
67
67
|
context: {
|
|
68
68
|
meta: {
|
|
69
|
-
listApps: import("
|
|
69
|
+
listApps: import("kitcore").PluginMeta<unknown>;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
} & {
|
|
73
73
|
context: import("../eventEmission").EventEmissionContext;
|
|
74
74
|
} & {
|
|
75
75
|
context: {
|
|
76
|
-
meta: Record<string, import("
|
|
76
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
77
77
|
};
|
|
78
78
|
}) => {
|
|
79
79
|
getApp: (options?: {
|
|
@@ -138,7 +138,7 @@ export declare const getAppPlugin: (sdk: {
|
|
|
138
138
|
} & {
|
|
139
139
|
context: {
|
|
140
140
|
meta: {
|
|
141
|
-
getApp: import("
|
|
141
|
+
getApp: import("kitcore").PluginMeta<unknown>;
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/getApp/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/getApp/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { definePlugin, createPluginMethod } from "
|
|
1
|
+
import { definePlugin, createPluginMethod } from "kitcore";
|
|
2
2
|
import { GetAppInputSchema } from "./schemas";
|
|
3
3
|
import { AppItemSchema } from "../../schemas/App";
|
|
4
|
+
import { appItemFormatter } from "../../formatters/app";
|
|
4
5
|
import { ZapierAppNotFoundError } from "../../types/errors";
|
|
5
6
|
import { appKeyResolver } from "../../resolvers";
|
|
6
7
|
export const getAppPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
@@ -10,6 +11,7 @@ export const getAppPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
|
10
11
|
itemType: "App",
|
|
11
12
|
inputSchema: GetAppInputSchema,
|
|
12
13
|
outputSchema: AppItemSchema,
|
|
14
|
+
formatter: appItemFormatter,
|
|
13
15
|
resolvers: { app: appKeyResolver },
|
|
14
16
|
handler: async ({ sdk, options }) => {
|
|
15
17
|
const appKey = "app" in options ? options.app : options.appKey;
|
|
@@ -2,21 +2,21 @@ import { z } from "zod";
|
|
|
2
2
|
import type { AppItem } from "../../types/domain";
|
|
3
3
|
export declare const GetAppSchema: z.ZodObject<{
|
|
4
4
|
app: z.ZodString & {
|
|
5
|
-
_def: z.core.$ZodStringDef & import("
|
|
5
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
6
6
|
};
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const GetAppSchemaDeprecated: z.ZodObject<{
|
|
9
9
|
appKey: z.ZodString & {
|
|
10
|
-
_def: z.core.$ZodStringDef & import("
|
|
10
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
11
11
|
};
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export declare const GetAppInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
14
|
app: z.ZodString & {
|
|
15
|
-
_def: z.core.$ZodStringDef & import("
|
|
15
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
16
16
|
};
|
|
17
17
|
}, z.core.$strip>, z.ZodObject<{
|
|
18
18
|
appKey: z.ZodString & {
|
|
19
|
-
_def: z.core.$ZodStringDef & import("
|
|
19
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
20
20
|
};
|
|
21
21
|
}, z.core.$strip>]>;
|
|
22
22
|
export type GetAppOptions = z.infer<typeof GetAppSchema> | (Omit<z.infer<typeof GetAppSchemaDeprecated>, "appKey"> & {
|
|
@@ -5,9 +5,132 @@ export declare const getConnectionPlugin: (sdk: {
|
|
|
5
5
|
};
|
|
6
6
|
} & {
|
|
7
7
|
context: import("../eventEmission").EventEmissionContext;
|
|
8
|
+
} & {
|
|
9
|
+
getApp: (options?: {
|
|
10
|
+
app: string;
|
|
11
|
+
} | {
|
|
12
|
+
appKey: string;
|
|
13
|
+
} | undefined) => Promise<{
|
|
14
|
+
data: {
|
|
15
|
+
slug: string;
|
|
16
|
+
title: string;
|
|
17
|
+
key: string;
|
|
18
|
+
implementation_id: string;
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
is_hidden?: boolean | undefined;
|
|
21
|
+
auth_type?: string | undefined;
|
|
22
|
+
actions?: {
|
|
23
|
+
read?: number | undefined;
|
|
24
|
+
read_bulk?: number | undefined;
|
|
25
|
+
write?: number | undefined;
|
|
26
|
+
search?: number | undefined;
|
|
27
|
+
search_or_write?: number | undefined;
|
|
28
|
+
search_and_write?: number | undefined;
|
|
29
|
+
filter?: number | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
is_deprecated?: boolean | undefined;
|
|
32
|
+
is_beta?: boolean | undefined;
|
|
33
|
+
is_premium?: boolean | undefined;
|
|
34
|
+
age_in_days?: number | undefined;
|
|
35
|
+
banner?: string | undefined;
|
|
36
|
+
categories?: {
|
|
37
|
+
id: number;
|
|
38
|
+
name: string;
|
|
39
|
+
slug: string;
|
|
40
|
+
}[] | undefined;
|
|
41
|
+
images?: {
|
|
42
|
+
url_16x16?: string | undefined;
|
|
43
|
+
url_32x32?: string | undefined;
|
|
44
|
+
url_64x64?: string | undefined;
|
|
45
|
+
url_128x128?: string | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
popularity?: number | undefined;
|
|
48
|
+
has_filters?: boolean | undefined;
|
|
49
|
+
has_reads?: boolean | undefined;
|
|
50
|
+
has_searches?: boolean | undefined;
|
|
51
|
+
has_searches_or_writes?: boolean | undefined;
|
|
52
|
+
has_upfront_fields?: boolean | undefined;
|
|
53
|
+
has_writes?: boolean | undefined;
|
|
54
|
+
is_built_in?: boolean | undefined;
|
|
55
|
+
is_featured?: boolean | undefined;
|
|
56
|
+
is_invite?: boolean | undefined;
|
|
57
|
+
is_public?: boolean | undefined;
|
|
58
|
+
is_upcoming?: boolean | undefined;
|
|
59
|
+
visibility?: string | undefined;
|
|
60
|
+
primary_color?: string | undefined;
|
|
61
|
+
secondary_color?: string | undefined;
|
|
62
|
+
classification?: string | undefined;
|
|
63
|
+
api_docs_url?: string | undefined;
|
|
64
|
+
image?: string | undefined;
|
|
65
|
+
version?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
} & {
|
|
69
|
+
context: {
|
|
70
|
+
meta: {
|
|
71
|
+
getApp: import("kitcore").PluginMeta<unknown>;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
} & {
|
|
75
|
+
listConnections: (options?: ({
|
|
76
|
+
title?: string | undefined;
|
|
77
|
+
search?: string | undefined;
|
|
78
|
+
owner?: string | undefined;
|
|
79
|
+
app?: string | undefined;
|
|
80
|
+
appKey?: string | undefined;
|
|
81
|
+
connections?: string[] | undefined;
|
|
82
|
+
connectionIds?: string[] | undefined;
|
|
83
|
+
authenticationIds?: string[] | undefined;
|
|
84
|
+
account?: string | undefined;
|
|
85
|
+
accountId?: string | undefined;
|
|
86
|
+
includeShared?: boolean | undefined;
|
|
87
|
+
isExpired?: boolean | undefined;
|
|
88
|
+
expired?: boolean | undefined;
|
|
89
|
+
pageSize?: number | undefined;
|
|
90
|
+
maxItems?: number | undefined;
|
|
91
|
+
cursor?: string | undefined;
|
|
92
|
+
} & {
|
|
93
|
+
cursor?: string;
|
|
94
|
+
pageSize?: number;
|
|
95
|
+
maxItems?: number;
|
|
96
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
97
|
+
date: string;
|
|
98
|
+
is_invite_only: boolean;
|
|
99
|
+
is_private: boolean;
|
|
100
|
+
shared_with_all: boolean;
|
|
101
|
+
id: string;
|
|
102
|
+
account_id: string;
|
|
103
|
+
title?: string | null | undefined;
|
|
104
|
+
lastchanged?: string | undefined;
|
|
105
|
+
destination_selected_api?: string | null | undefined;
|
|
106
|
+
is_stale?: string | undefined;
|
|
107
|
+
is_shared?: string | undefined;
|
|
108
|
+
marked_stale_at?: string | null | undefined;
|
|
109
|
+
label?: string | null | undefined;
|
|
110
|
+
identifier?: string | null | undefined;
|
|
111
|
+
url?: string | undefined;
|
|
112
|
+
groups?: Record<string, unknown>[] | undefined;
|
|
113
|
+
members?: string | undefined;
|
|
114
|
+
permissions?: Record<string, boolean> | undefined;
|
|
115
|
+
public_id?: string | undefined;
|
|
116
|
+
account_public_id?: string | undefined;
|
|
117
|
+
customuser_public_id?: string | undefined;
|
|
118
|
+
implementation_id?: string | undefined;
|
|
119
|
+
profile_id?: string | undefined;
|
|
120
|
+
is_expired?: string | undefined;
|
|
121
|
+
expired_at?: string | null | undefined;
|
|
122
|
+
app_key?: string | undefined;
|
|
123
|
+
app_version?: string | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
} & {
|
|
126
|
+
context: {
|
|
127
|
+
meta: {
|
|
128
|
+
listConnections: import("kitcore").PluginMeta<unknown>;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
8
131
|
} & {
|
|
9
132
|
context: {
|
|
10
|
-
meta: Record<string, import("
|
|
133
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
11
134
|
};
|
|
12
135
|
}) => {
|
|
13
136
|
getConnection: (options?: {
|
|
@@ -48,7 +171,7 @@ export declare const getConnectionPlugin: (sdk: {
|
|
|
48
171
|
} & {
|
|
49
172
|
context: {
|
|
50
173
|
meta: {
|
|
51
|
-
getConnection: import("
|
|
174
|
+
getConnection: import("kitcore").PluginMeta<unknown>;
|
|
52
175
|
};
|
|
53
176
|
};
|
|
54
177
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/getConnection/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/getConnection/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAW3C,eAAO,MAAM,mBAAmB;aAEZ;QAAE,GAAG,EAAE,SAAS,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCrC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,mBAAmB,CAC3B,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { connectionIdGenericResolver } from "../../resolvers";
|
|
4
4
|
import { transformConnectionItem } from "../../utils/domain-utils";
|
|
5
5
|
import { ConnectionItemSchema } from "../../schemas/Connection";
|
|
6
|
+
import { connectionItemFormatter } from "../../formatters/connection";
|
|
6
7
|
import { GetConnectionParamSchema } from "./schemas";
|
|
7
8
|
export const getConnectionPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
8
9
|
name: "getConnection",
|
|
@@ -11,6 +12,7 @@ export const getConnectionPlugin = definePlugin((sdk) => createPluginMethod(sdk,
|
|
|
11
12
|
itemType: "Connection",
|
|
12
13
|
inputSchema: GetConnectionParamSchema,
|
|
13
14
|
outputSchema: ConnectionItemSchema,
|
|
15
|
+
formatter: connectionItemFormatter,
|
|
14
16
|
resolvers: { connection: connectionIdGenericResolver },
|
|
15
17
|
handler: async ({ sdk, options }) => {
|
|
16
18
|
const { api } = sdk.context;
|
|
@@ -7,7 +7,7 @@ export declare const getProfilePlugin: (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
|
getProfile: (options?: Record<string, never> | undefined) => Promise<{
|
|
@@ -24,7 +24,7 @@ export declare const getProfilePlugin: (sdk: {
|
|
|
24
24
|
} & {
|
|
25
25
|
context: {
|
|
26
26
|
meta: {
|
|
27
|
-
getProfile: import("
|
|
27
|
+
getProfile: import("kitcore").PluginMeta<unknown>;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/getProfile/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/getProfile/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ9D,eAAO,MAAM,gBAAgB;aAGd;QAAE,GAAG,EAAE,SAAS,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { GetProfileSchema } from "./schemas";
|
|
4
4
|
import { UserProfileItemSchema } from "../../schemas/UserProfile";
|
|
5
|
+
import { userProfileItemFormatter } from "../../formatters/userProfile";
|
|
5
6
|
export const getProfilePlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
6
7
|
name: "getProfile",
|
|
7
8
|
categories: ["account"],
|
|
@@ -9,6 +10,7 @@ export const getProfilePlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
|
9
10
|
itemType: "Profile",
|
|
10
11
|
inputSchema: GetProfileSchema,
|
|
11
12
|
outputSchema: UserProfileItemSchema,
|
|
13
|
+
formatter: userProfileItemFormatter,
|
|
12
14
|
handler: async ({ sdk }) => {
|
|
13
15
|
const profile = await sdk.context.api.get("/zapier/api/v4/profile/", { authRequired: true });
|
|
14
16
|
return {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../types/functions";
|
|
3
2
|
export declare const GetProfileSchema: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
4
|
-
export type GetProfileOptions = z.infer<typeof GetProfileSchema
|
|
3
|
+
export type GetProfileOptions = z.infer<typeof GetProfileSchema>;
|
|
5
4
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getProfile/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getProfile/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,+CAGwB,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|