@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
|
@@ -16,9 +16,91 @@ export declare const getTableRecordPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTables: (options?: ({
|
|
21
|
+
tables?: string[] | undefined;
|
|
22
|
+
tableIds?: string[] | undefined;
|
|
23
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
owner?: string | undefined;
|
|
26
|
+
includeShared?: boolean | undefined;
|
|
27
|
+
pageSize?: number | undefined;
|
|
28
|
+
maxItems?: number | undefined;
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
cursor?: string;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
edited_at: string;
|
|
39
|
+
kind: "table" | "virtual_table";
|
|
40
|
+
account_id: string;
|
|
41
|
+
profile_id: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
parent_table_id?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
} & {
|
|
46
|
+
context: {
|
|
47
|
+
meta: {
|
|
48
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
listTableRecords: (options?: (({
|
|
53
|
+
table: string;
|
|
54
|
+
keyMode: "names" | "ids";
|
|
55
|
+
filters?: {
|
|
56
|
+
fieldKey: string;
|
|
57
|
+
operator: "in" | "contains" | "gt" | "gte" | "lt" | "lte" | "search" | "exact" | "different" | "icontains" | "range" | "isnull" | "startswith" | "is_within";
|
|
58
|
+
value?: unknown;
|
|
59
|
+
}[] | undefined;
|
|
60
|
+
sort?: {
|
|
61
|
+
fieldKey: string;
|
|
62
|
+
direction: "asc" | "desc";
|
|
63
|
+
} | undefined;
|
|
64
|
+
pageSize?: number | undefined;
|
|
65
|
+
maxItems?: number | undefined;
|
|
66
|
+
cursor?: string | undefined;
|
|
67
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
68
|
+
} | {
|
|
69
|
+
tableId: string;
|
|
70
|
+
keyMode: "names" | "ids";
|
|
71
|
+
filters?: {
|
|
72
|
+
fieldKey: string;
|
|
73
|
+
operator: "in" | "contains" | "gt" | "gte" | "lt" | "lte" | "search" | "exact" | "different" | "icontains" | "range" | "isnull" | "startswith" | "is_within";
|
|
74
|
+
value?: unknown;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
sort?: {
|
|
77
|
+
fieldKey: string;
|
|
78
|
+
direction: "asc" | "desc";
|
|
79
|
+
} | undefined;
|
|
80
|
+
pageSize?: number | undefined;
|
|
81
|
+
maxItems?: number | undefined;
|
|
82
|
+
cursor?: string | undefined;
|
|
83
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
84
|
+
}) & {
|
|
85
|
+
cursor?: string;
|
|
86
|
+
pageSize?: number;
|
|
87
|
+
maxItems?: number;
|
|
88
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
89
|
+
data: Record<string, unknown>;
|
|
90
|
+
id: string;
|
|
91
|
+
created_at: string;
|
|
92
|
+
edited_at: string;
|
|
93
|
+
deleted_at?: string | null | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
} & {
|
|
96
|
+
context: {
|
|
97
|
+
meta: {
|
|
98
|
+
listTableRecords: import("kitcore").PluginMeta<unknown>;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
19
101
|
} & {
|
|
20
102
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
103
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
104
|
};
|
|
23
105
|
}) => {
|
|
24
106
|
getTableRecord: (options?: {
|
|
@@ -41,7 +123,7 @@ export declare const getTableRecordPlugin: (sdk: {
|
|
|
41
123
|
} & {
|
|
42
124
|
context: {
|
|
43
125
|
meta: {
|
|
44
|
-
getTableRecord: import("
|
|
126
|
+
getTableRecord: import("kitcore").PluginMeta<unknown>;
|
|
45
127
|
};
|
|
46
128
|
};
|
|
47
129
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/getTableRecord/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/getTableRecord/index.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ChC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { GetTableRecordOptionsInputSchema, GetTableRecordApiResponseSchema, RecordItemSchema, } from "./schemas";
|
|
4
4
|
import { tableIdResolver, tableRecordIdResolver } from "../../../resolvers";
|
|
5
5
|
import { tableRecordFormatter } from "../../../formatters";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
export declare const RecordApiItemSchema: z.ZodObject<{
|
|
4
3
|
id: z.ZodString;
|
|
5
4
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -36,10 +35,10 @@ export declare const GetTableRecordApiResponseSchema: z.ZodObject<{
|
|
|
36
35
|
export type GetTableRecordApiResponse = z.infer<typeof GetTableRecordApiResponseSchema>;
|
|
37
36
|
export declare const GetTableRecordOptionsSchema: z.ZodObject<{
|
|
38
37
|
table: z.ZodString & {
|
|
39
|
-
_def: z.core.$ZodStringDef & import("
|
|
38
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
40
39
|
};
|
|
41
40
|
record: z.ZodString & {
|
|
42
|
-
_def: z.core.$ZodStringDef & import("
|
|
41
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
43
42
|
};
|
|
44
43
|
keyMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
45
44
|
names: "names";
|
|
@@ -56,10 +55,10 @@ declare const GetTableRecordOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
56
55
|
}, z.core.$strip>;
|
|
57
56
|
export declare const GetTableRecordOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
58
57
|
table: z.ZodString & {
|
|
59
|
-
_def: z.core.$ZodStringDef & import("
|
|
58
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
60
59
|
};
|
|
61
60
|
record: z.ZodString & {
|
|
62
|
-
_def: z.core.$ZodStringDef & import("
|
|
61
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
63
62
|
};
|
|
64
63
|
keyMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
65
64
|
names: "names";
|
|
@@ -73,12 +72,12 @@ export declare const GetTableRecordOptionsInputSchema: z.ZodUnion<readonly [z.Zo
|
|
|
73
72
|
ids: "ids";
|
|
74
73
|
}>>>;
|
|
75
74
|
}, z.core.$strip>]>;
|
|
76
|
-
export type GetTableRecordOptions =
|
|
75
|
+
export type GetTableRecordOptions = z.infer<typeof GetTableRecordOptionsSchema> | (Omit<z.infer<typeof GetTableRecordOptionsSchemaDeprecated>, "tableId" | "recordId"> & {
|
|
77
76
|
/** @deprecated Use `table` instead. */
|
|
78
77
|
tableId: z.infer<typeof GetTableRecordOptionsSchemaDeprecated>["tableId"];
|
|
79
78
|
/** @deprecated Use `record` instead. */
|
|
80
79
|
recordId: z.infer<typeof GetTableRecordOptionsSchemaDeprecated>["recordId"];
|
|
81
|
-
}
|
|
80
|
+
});
|
|
82
81
|
export interface GetTableRecordResult {
|
|
83
82
|
data: RecordItem;
|
|
84
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/getTableRecord/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/getTableRecord/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAU9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGhE,eAAO,MAAM,gBAAgB;;;;;;iBAM3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;iBAE1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAUF,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAOsB,CAAC;AAG/D,QAAA,MAAM,qCAAqC;;;;;;;iBAWF,CAAC;AAG1C,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;mBAEP,CAAC;AAGvC,MAAM,MAAM,qBAAqB,GAC7B,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,GAC3C,CAAC,IAAI,CACH,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,EACrD,SAAS,GAAG,UAAU,CACvB,GAAG;IACF,uCAAuC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1E,wCAAwC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,OAAO,qCAAqC,CAC7C,CAAC,UAAU,CAAC,CAAC;CACf,CAAC,CAAC;AAEP,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,CACd,OAAO,EAAE,qBAAqB,KAC3B,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACpC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { withFormatter } from "../../../utils/schema-utils";
|
|
3
2
|
import { KeyModeSchema } from "../utils";
|
|
4
3
|
import { TablePropertySchema, RecordPropertySchema, } from "../../../types/properties";
|
|
5
4
|
export const RecordApiItemSchema = z.object({
|
|
@@ -14,21 +13,13 @@ export const RecordApiItemSchema = z.object({
|
|
|
14
13
|
deleted_at: z.string().nullable().optional(),
|
|
15
14
|
});
|
|
16
15
|
// SDK output schema (simplified)
|
|
17
|
-
const
|
|
16
|
+
export const RecordItemSchema = z.object({
|
|
18
17
|
id: z.string(),
|
|
19
18
|
data: z.record(z.string(), z.unknown()),
|
|
20
19
|
created_at: z.string(),
|
|
21
20
|
edited_at: z.string(),
|
|
22
21
|
deleted_at: z.string().nullable().optional(),
|
|
23
22
|
});
|
|
24
|
-
export const RecordItemSchema = withFormatter(RecordItemSchemaBase, {
|
|
25
|
-
format: (item) => ({
|
|
26
|
-
title: `Record ${item.id}`,
|
|
27
|
-
id: item.id,
|
|
28
|
-
data: item.data,
|
|
29
|
-
details: [],
|
|
30
|
-
}),
|
|
31
|
-
});
|
|
32
23
|
export const GetTableRecordApiResponseSchema = z.object({
|
|
33
24
|
data: RecordApiItemSchema,
|
|
34
25
|
});
|
|
@@ -16,9 +16,41 @@ export declare const listTableFieldsPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTables: (options?: ({
|
|
21
|
+
tables?: string[] | undefined;
|
|
22
|
+
tableIds?: string[] | undefined;
|
|
23
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
owner?: string | undefined;
|
|
26
|
+
includeShared?: boolean | undefined;
|
|
27
|
+
pageSize?: number | undefined;
|
|
28
|
+
maxItems?: number | undefined;
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
cursor?: string;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
edited_at: string;
|
|
39
|
+
kind: "table" | "virtual_table";
|
|
40
|
+
account_id: string;
|
|
41
|
+
profile_id: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
parent_table_id?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
} & {
|
|
46
|
+
context: {
|
|
47
|
+
meta: {
|
|
48
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
19
51
|
} & {
|
|
20
52
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
53
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
54
|
};
|
|
23
55
|
}) => {
|
|
24
56
|
listTableFields: (options?: {
|
|
@@ -46,7 +78,7 @@ export declare const listTableFieldsPlugin: (sdk: {
|
|
|
46
78
|
} & {
|
|
47
79
|
context: {
|
|
48
80
|
meta: {
|
|
49
|
-
listTableFields: import("
|
|
81
|
+
listTableFields: import("kitcore").PluginMeta<unknown>;
|
|
50
82
|
};
|
|
51
83
|
};
|
|
52
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTableFields/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTableFields/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CjC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,qBAAqB,CAC7B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { ListTableFieldsOptionsInputSchema, ListTableFieldsApiResponseSchema, FieldItemSchema, } from "./schemas";
|
|
4
|
+
import { tableFieldItemFormatter } from "../../../formatters/tableField";
|
|
4
5
|
import { tableIdResolver } from "../../../resolvers";
|
|
5
6
|
import { resolveFieldKeys, transformFieldItem } from "../utils";
|
|
6
7
|
import { tablesDefaults } from "../shared";
|
|
@@ -11,6 +12,7 @@ export const listTableFieldsPlugin = definePlugin((sdk) => createPluginMethod(sd
|
|
|
11
12
|
itemType: "Field",
|
|
12
13
|
inputSchema: ListTableFieldsOptionsInputSchema,
|
|
13
14
|
outputSchema: FieldItemSchema,
|
|
15
|
+
formatter: tableFieldItemFormatter,
|
|
14
16
|
resolvers: { table: tableIdResolver },
|
|
15
17
|
handler: async ({ sdk, options }) => {
|
|
16
18
|
const { api } = sdk.context;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
export declare const FieldTypeSchema: z.ZodEnum<{
|
|
4
3
|
string: "string";
|
|
5
4
|
number: "number";
|
|
@@ -169,7 +168,7 @@ export declare const FieldItemSchema: z.ZodObject<{
|
|
|
169
168
|
export type FieldItem = z.infer<typeof FieldItemSchema>;
|
|
170
169
|
export declare const ListTableFieldsOptionsSchema: z.ZodObject<{
|
|
171
170
|
table: z.ZodString & {
|
|
172
|
-
_def: z.core.$ZodStringDef & import("
|
|
171
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
173
172
|
};
|
|
174
173
|
fields: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
175
174
|
fieldKeys: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -191,7 +190,7 @@ declare const ListTableFieldsOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
191
190
|
}, z.core.$strip>;
|
|
192
191
|
export declare const ListTableFieldsOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
193
192
|
table: z.ZodString & {
|
|
194
|
-
_def: z.core.$ZodStringDef & import("
|
|
193
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
195
194
|
};
|
|
196
195
|
fields: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
197
196
|
fieldKeys: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -210,12 +209,12 @@ export declare const ListTableFieldsOptionsInputSchema: z.ZodUnion<readonly [z.Z
|
|
|
210
209
|
exclude: "exclude";
|
|
211
210
|
}>>;
|
|
212
211
|
}, z.core.$strip>]>;
|
|
213
|
-
export type ListTableFieldsOptions =
|
|
212
|
+
export type ListTableFieldsOptions = z.infer<typeof ListTableFieldsOptionsSchema> | (Omit<z.infer<typeof ListTableFieldsOptionsSchemaDeprecated>, "tableId" | "fieldKeys"> & {
|
|
214
213
|
/** @deprecated Use `table` instead. */
|
|
215
214
|
tableId: z.infer<typeof ListTableFieldsOptionsSchemaDeprecated>["tableId"];
|
|
216
215
|
/** @deprecated Use `fields` instead. */
|
|
217
216
|
fieldKeys?: z.infer<typeof ListTableFieldsOptionsSchemaDeprecated>["fieldKeys"];
|
|
218
|
-
}
|
|
217
|
+
});
|
|
219
218
|
export interface ListTableFieldsResult {
|
|
220
219
|
data: FieldItem[];
|
|
221
220
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTableFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTableFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAY7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAkBxD,eAAO,MAAM,4BAA4B;;;;;;;;;;;iBAMsB,CAAC;AAGhE,QAAA,MAAM,sCAAsC;;;;;;;;;iBAOF,CAAC;AAG3C,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;mBAEP,CAAC;AAGxC,MAAM,MAAM,sBAAsB,GAC9B,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,GAC5C,CAAC,IAAI,CACH,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,EACtD,SAAS,GAAG,WAAW,CACxB,GAAG;IACF,uCAAuC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,OAAO,sCAAsC,CAC9C,CAAC,SAAS,CAAC,CAAC;IACb,wCAAwC;IACxC,SAAS,CAAC,EAAE,CAAC,CAAC,KAAK,CACjB,OAAO,sCAAsC,CAC9C,CAAC,WAAW,CAAC,CAAC;CAChB,CAAC,CAAC;AAGP,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAGD,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,CACf,OAAO,EAAE,sBAAsB,KAC5B,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACrC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { withFormatter } from "../../../utils/schema-utils";
|
|
3
2
|
import { TablePropertySchema, FieldsPropertySchema, } from "../../../types/properties";
|
|
4
3
|
import { TrashSchema } from "../utils";
|
|
5
4
|
export const FieldTypeSchema = z.enum([
|
|
@@ -50,7 +49,7 @@ export const FieldApiItemSchema = z.object({
|
|
|
50
49
|
export const ListTableFieldsApiResponseSchema = z.object({
|
|
51
50
|
data: z.array(FieldApiItemSchema),
|
|
52
51
|
});
|
|
53
|
-
const
|
|
52
|
+
export const FieldItemSchema = z.object({
|
|
54
53
|
id: z.string(),
|
|
55
54
|
type: FieldTypeSchema,
|
|
56
55
|
name: z.string(),
|
|
@@ -60,13 +59,6 @@ const FieldItemSchemaBase = z.object({
|
|
|
60
59
|
config: z.record(z.string(), z.unknown()).optional(),
|
|
61
60
|
deleted_at: z.string().nullable().optional(),
|
|
62
61
|
});
|
|
63
|
-
export const FieldItemSchema = withFormatter(FieldItemSchemaBase, {
|
|
64
|
-
format: (item) => ({
|
|
65
|
-
title: item.name,
|
|
66
|
-
id: item.id,
|
|
67
|
-
details: [{ text: `Type: ${item.type}`, style: "dim" }],
|
|
68
|
-
}),
|
|
69
|
-
});
|
|
70
62
|
const ListTableFieldsDescription = "List fields for a table";
|
|
71
63
|
// Base schema with optional fields (new + deprecated)
|
|
72
64
|
const ListTableFieldsOptionsBaseSchema = z.object({
|
|
@@ -16,9 +16,70 @@ export declare const listTableRecordsPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTables: (options?: ({
|
|
21
|
+
tables?: string[] | undefined;
|
|
22
|
+
tableIds?: string[] | undefined;
|
|
23
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
owner?: string | undefined;
|
|
26
|
+
includeShared?: boolean | undefined;
|
|
27
|
+
pageSize?: number | undefined;
|
|
28
|
+
maxItems?: number | undefined;
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
cursor?: string;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
edited_at: string;
|
|
39
|
+
kind: "table" | "virtual_table";
|
|
40
|
+
account_id: string;
|
|
41
|
+
profile_id: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
parent_table_id?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
} & {
|
|
46
|
+
context: {
|
|
47
|
+
meta: {
|
|
48
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
listTableFields: (options?: {
|
|
53
|
+
table: string;
|
|
54
|
+
fields?: (string | number)[] | undefined;
|
|
55
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
56
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
tableId: string;
|
|
59
|
+
fields?: (string | number)[] | undefined;
|
|
60
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
61
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
62
|
+
} | undefined) => Promise<{
|
|
63
|
+
data: {
|
|
64
|
+
id: string;
|
|
65
|
+
type: "string" | "number" | "boolean" | "text" | "datetime" | "decimal" | "json" | "email" | "link" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
66
|
+
name: string;
|
|
67
|
+
created_at?: string | undefined;
|
|
68
|
+
edited_at?: string | undefined;
|
|
69
|
+
options?: Record<string, unknown> | undefined;
|
|
70
|
+
config?: Record<string, unknown> | undefined;
|
|
71
|
+
deleted_at?: string | null | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
}>;
|
|
19
74
|
} & {
|
|
20
75
|
context: {
|
|
21
|
-
meta:
|
|
76
|
+
meta: {
|
|
77
|
+
listTableFields: import("kitcore").PluginMeta<unknown>;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
} & {
|
|
81
|
+
context: {
|
|
82
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
83
|
};
|
|
23
84
|
}) => {
|
|
24
85
|
listTableRecords: (options?: (({
|
|
@@ -57,9 +118,9 @@ export declare const listTableRecordsPlugin: (sdk: {
|
|
|
57
118
|
cursor?: string;
|
|
58
119
|
pageSize?: number;
|
|
59
120
|
maxItems?: number;
|
|
60
|
-
}) | undefined) => import("
|
|
61
|
-
id: string;
|
|
121
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
62
122
|
data: Record<string, unknown>;
|
|
123
|
+
id: string;
|
|
63
124
|
created_at: string;
|
|
64
125
|
edited_at: string;
|
|
65
126
|
deleted_at?: string | null | undefined;
|
|
@@ -67,7 +128,7 @@ export declare const listTableRecordsPlugin: (sdk: {
|
|
|
67
128
|
} & {
|
|
68
129
|
context: {
|
|
69
130
|
meta: {
|
|
70
|
-
listTableRecords: import("
|
|
131
|
+
listTableRecords: import("kitcore").PluginMeta<unknown>;
|
|
71
132
|
};
|
|
72
133
|
};
|
|
73
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTableRecords/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTableRecords/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FlC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,sBAAsB,CAC9B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPaginatedPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPaginatedPluginMethod } from "kitcore";
|
|
3
3
|
import { ListTableRecordsApiResponseSchema, ListTableRecordsOptionsInputSchema, RecordItemSchema, } from "./schemas";
|
|
4
4
|
import { tableIdResolver, tableFiltersResolver, tableSortResolver, } from "../../../resolvers";
|
|
5
5
|
import { tableRecordFormatter } from "../../../formatters";
|
|
@@ -20,7 +20,7 @@ export const listTableRecordsPlugin = definePlugin((sdk) => createPaginatedPlugi
|
|
|
20
20
|
sort: tableSortResolver,
|
|
21
21
|
},
|
|
22
22
|
formatter: tableRecordFormatter,
|
|
23
|
-
handler: async ({ sdk, options
|
|
23
|
+
handler: async ({ sdk, options }) => {
|
|
24
24
|
const { api } = sdk.context;
|
|
25
25
|
const tableId = "table" in options ? options.table : options.tableId;
|
|
26
26
|
const translator = await createFieldKeyTranslator({
|
|
@@ -73,7 +73,7 @@ export declare const SortConditionSchema: z.ZodObject<{
|
|
|
73
73
|
export type SortCondition = z.infer<typeof SortConditionSchema>;
|
|
74
74
|
export declare const ListTableRecordsOptionsSchema: z.ZodObject<{
|
|
75
75
|
table: z.ZodString & {
|
|
76
|
-
_def: z.core.$ZodStringDef & import("
|
|
76
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
77
77
|
};
|
|
78
78
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
79
79
|
fieldKey: z.ZodString;
|
|
@@ -159,7 +159,7 @@ declare const ListTableRecordsOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
159
159
|
}, z.core.$strip>;
|
|
160
160
|
export declare const ListTableRecordsOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
161
161
|
table: z.ZodString & {
|
|
162
|
-
_def: z.core.$ZodStringDef & import("
|
|
162
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
163
163
|
};
|
|
164
164
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
165
|
fieldKey: z.ZodString;
|
|
@@ -21,7 +21,7 @@ export declare const listTablesPlugin: (sdk: {
|
|
|
21
21
|
context: CapabilitiesContext;
|
|
22
22
|
} & {
|
|
23
23
|
context: {
|
|
24
|
-
meta: Record<string, import("
|
|
24
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
25
25
|
};
|
|
26
26
|
}) => {
|
|
27
27
|
listTables: (options?: ({
|
|
@@ -38,7 +38,7 @@ export declare const listTablesPlugin: (sdk: {
|
|
|
38
38
|
cursor?: string;
|
|
39
39
|
pageSize?: number;
|
|
40
40
|
maxItems?: number;
|
|
41
|
-
}) | undefined) => import("
|
|
41
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
44
|
created_at: string;
|
|
@@ -52,7 +52,7 @@ export declare const listTablesPlugin: (sdk: {
|
|
|
52
52
|
} & {
|
|
53
53
|
context: {
|
|
54
54
|
meta: {
|
|
55
|
-
listTables: import("
|
|
55
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTables/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/listTables/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAM9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;aAGY,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoE3D,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPaginatedPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPaginatedPluginMethod } from "kitcore";
|
|
3
3
|
import { ListTablesApiResponseSchema, ListTablesOptionsSchema, TableItemSchema, } from "./schemas";
|
|
4
|
-
import { extractCursor } from "../../../utils/function-utils";
|
|
5
4
|
import { ZapierValidationError } from "../../../types/errors";
|
|
6
5
|
import { transformTableItem } from "../utils";
|
|
7
6
|
import { DEFAULT_PAGE_SIZE } from "../../../constants";
|
|
8
7
|
import { tablesDefaults } from "../shared";
|
|
8
|
+
import { zapierPagination } from "../../../utils/pagination";
|
|
9
9
|
export const listTablesPlugin = definePlugin((sdk) => createPaginatedPluginMethod(sdk, {
|
|
10
10
|
...tablesDefaults,
|
|
11
|
+
...zapierPagination,
|
|
11
12
|
name: "listTables",
|
|
12
13
|
type: "list",
|
|
13
14
|
itemType: "Table",
|
|
@@ -63,5 +64,4 @@ export const listTablesPlugin = definePlugin((sdk) => createPaginatedPluginMetho
|
|
|
63
64
|
links: response.links,
|
|
64
65
|
};
|
|
65
66
|
},
|
|
66
|
-
extractCursor: (response) => extractCursor(response.links),
|
|
67
67
|
}));
|
|
@@ -16,9 +16,70 @@ export declare const updateTableRecordsPlugin: (sdk: {
|
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
listTables: (options?: ({
|
|
21
|
+
tables?: string[] | undefined;
|
|
22
|
+
tableIds?: string[] | undefined;
|
|
23
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
owner?: string | undefined;
|
|
26
|
+
includeShared?: boolean | undefined;
|
|
27
|
+
pageSize?: number | undefined;
|
|
28
|
+
maxItems?: number | undefined;
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
cursor?: string;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
edited_at: string;
|
|
39
|
+
kind: "table" | "virtual_table";
|
|
40
|
+
account_id: string;
|
|
41
|
+
profile_id: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
parent_table_id?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
} & {
|
|
46
|
+
context: {
|
|
47
|
+
meta: {
|
|
48
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
listTableFields: (options?: {
|
|
53
|
+
table: string;
|
|
54
|
+
fields?: (string | number)[] | undefined;
|
|
55
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
56
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
tableId: string;
|
|
59
|
+
fields?: (string | number)[] | undefined;
|
|
60
|
+
fieldKeys?: (string | number)[] | undefined;
|
|
61
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
62
|
+
} | undefined) => Promise<{
|
|
63
|
+
data: {
|
|
64
|
+
id: string;
|
|
65
|
+
type: "string" | "number" | "boolean" | "text" | "datetime" | "decimal" | "json" | "email" | "link" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "multiple_decimal" | "multiple_datetime" | "uuid" | "multiple_uuid" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
|
|
66
|
+
name: string;
|
|
67
|
+
created_at?: string | undefined;
|
|
68
|
+
edited_at?: string | undefined;
|
|
69
|
+
options?: Record<string, unknown> | undefined;
|
|
70
|
+
config?: Record<string, unknown> | undefined;
|
|
71
|
+
deleted_at?: string | null | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
}>;
|
|
74
|
+
} & {
|
|
75
|
+
context: {
|
|
76
|
+
meta: {
|
|
77
|
+
listTableFields: import("kitcore").PluginMeta<unknown>;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
19
80
|
} & {
|
|
20
81
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
82
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
83
|
};
|
|
23
84
|
}) => {
|
|
24
85
|
updateTableRecords: (options?: {
|
|
@@ -47,7 +108,7 @@ export declare const updateTableRecordsPlugin: (sdk: {
|
|
|
47
108
|
} & {
|
|
48
109
|
context: {
|
|
49
110
|
meta: {
|
|
50
|
-
updateTableRecords: import("
|
|
111
|
+
updateTableRecords: import("kitcore").PluginMeta<unknown>;
|
|
51
112
|
};
|
|
52
113
|
};
|
|
53
114
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/updateTableRecords/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/updateTableRecords/index.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDpC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,wBAAwB,CAChC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { definePlugin } from "
|
|
2
|
-
import { createPluginMethod } from "
|
|
1
|
+
import { definePlugin } from "kitcore";
|
|
2
|
+
import { createPluginMethod } from "kitcore";
|
|
3
3
|
import { UpdateTableRecordsOptionsInputSchema, UpdateTableRecordsApiResponseSchema, RecordItemSchema, } from "./schemas";
|
|
4
4
|
import { tableIdResolver, tableUpdateRecordsResolver, } from "../../../resolvers";
|
|
5
5
|
import { tableRecordFormatter } from "../../../formatters";
|