@zapier/zapier-sdk 0.64.0 → 0.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +165 -6
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +2 -0
- package/dist/api/debug.d.ts.map +1 -1
- package/dist/api/debug.js +6 -4
- package/dist/api/polling.d.ts +2 -0
- package/dist/api/polling.d.ts.map +1 -1
- package/dist/api/polling.js +10 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +8 -5
- package/dist/core-stack.d.ts +24 -0
- package/dist/core-stack.d.ts.map +1 -0
- package/dist/core-stack.js +32 -0
- package/dist/experimental.cjs +1803 -1332
- package/dist/experimental.d.mts +3508 -182
- package/dist/experimental.d.ts +3578 -252
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +120 -84
- package/dist/experimental.mjs +1789 -1331
- package/dist/formatters/action.d.ts +4 -0
- package/dist/formatters/action.d.ts.map +1 -0
- package/dist/formatters/action.js +18 -0
- package/dist/formatters/actionResult.d.ts +3 -0
- package/dist/formatters/actionResult.d.ts.map +1 -0
- package/dist/formatters/actionResult.js +25 -0
- package/dist/formatters/app.d.ts +4 -0
- package/dist/formatters/app.d.ts.map +1 -0
- package/dist/formatters/app.js +10 -0
- package/dist/formatters/clientCredentials.d.ts +5 -0
- package/dist/formatters/clientCredentials.d.ts.map +1 -0
- package/dist/formatters/clientCredentials.js +27 -0
- package/dist/formatters/connection.d.ts +4 -0
- package/dist/formatters/connection.d.ts.map +1 -0
- package/dist/formatters/connection.js +26 -0
- package/dist/formatters/field.d.ts +4 -0
- package/dist/formatters/field.d.ts.map +1 -0
- package/dist/formatters/field.js +51 -0
- package/dist/formatters/inputFieldChoice.d.ts +4 -0
- package/dist/formatters/inputFieldChoice.d.ts.map +1 -0
- package/dist/formatters/inputFieldChoice.js +16 -0
- package/dist/formatters/tableField.d.ts +4 -0
- package/dist/formatters/tableField.d.ts.map +1 -0
- package/dist/formatters/tableField.js +7 -0
- package/dist/formatters/tableRecord.d.ts +5 -3
- package/dist/formatters/tableRecord.d.ts.map +1 -1
- package/dist/formatters/tableRecord.js +4 -3
- package/dist/formatters/triggerInbox.d.ts +4 -0
- package/dist/formatters/triggerInbox.d.ts.map +1 -0
- package/dist/formatters/triggerInbox.js +31 -0
- package/dist/formatters/triggerMessage.d.ts +5 -0
- package/dist/formatters/triggerMessage.d.ts.map +1 -0
- package/dist/formatters/triggerMessage.js +34 -0
- package/dist/formatters/userProfile.d.ts +4 -0
- package/dist/formatters/userProfile.d.ts.map +1 -0
- package/dist/formatters/userProfile.js +19 -0
- package/dist/{index-Bfvj0KLi.d.mts → index-Dh0b5NAY.d.mts} +13058 -7731
- package/dist/{index-Bfvj0KLi.d.ts → index-Dh0b5NAY.d.ts} +13058 -7731
- package/dist/index.cjs +1745 -1464
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +12 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -7
- package/dist/index.mjs +1731 -1463
- package/dist/plugins/api/index.d.ts +1 -1
- package/dist/plugins/api/index.js +1 -1
- package/dist/plugins/apps/index.d.ts +8 -5
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/apps/index.js +1 -1
- package/dist/plugins/capabilities/index.d.ts +1 -1
- package/dist/plugins/capabilities/index.js +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts +32 -2
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/createWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts +32 -2
- package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/index.js +1 -1
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts +47 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.js +23 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +24 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.js +30 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.js +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +102 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.js +25 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +26 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.js +43 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +51 -2
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.js +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listDurableRuns/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +78 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.js +34 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +65 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.js +69 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +28 -3
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.js +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.js +2 -3
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.js +1 -1
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts +2 -2
- package/dist/plugins/codeSubstrate/runDurable/index.js +1 -1
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +73 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.js +52 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.d.ts +16 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/schemas.js +31 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +27 -2
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.js +1 -1
- package/dist/plugins/connections/index.d.ts +1 -1
- package/dist/plugins/connections/index.js +1 -1
- package/dist/plugins/createClientCredentials/index.d.ts +2 -2
- package/dist/plugins/createClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/createClientCredentials/index.js +4 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts +1 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.d.ts +24 -2
- package/dist/plugins/deleteClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.js +2 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts +1 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.d.ts +144 -16
- package/dist/plugins/deprecated/authentications.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.js +14 -5
- package/dist/plugins/deprecated/inputFields.d.ts +58 -23
- package/dist/plugins/deprecated/inputFields.d.ts.map +1 -1
- package/dist/plugins/deprecated/inputFields.js +15 -7
- package/dist/plugins/eventEmission/event-emission-hook.d.ts +10 -0
- package/dist/plugins/eventEmission/event-emission-hook.d.ts.map +1 -0
- package/dist/plugins/eventEmission/event-emission-hook.js +47 -0
- package/dist/plugins/eventEmission/index.d.ts +5 -3
- package/dist/plugins/eventEmission/index.d.ts.map +1 -1
- package/dist/plugins/eventEmission/index.js +16 -9
- package/dist/plugins/eventEmission/method-metadata.d.ts +16 -0
- package/dist/plugins/eventEmission/method-metadata.d.ts.map +1 -0
- package/dist/plugins/eventEmission/method-metadata.js +20 -0
- package/dist/plugins/eventEmission/transport.d.ts.map +1 -1
- package/dist/plugins/eventEmission/transport.js +2 -1
- package/dist/plugins/fetch/index.d.ts +11 -5
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +42 -32
- package/dist/plugins/fetch/schemas.d.ts +1 -1
- package/dist/plugins/findFirstConnection/index.d.ts +4 -4
- package/dist/plugins/findFirstConnection/index.d.ts.map +1 -1
- package/dist/plugins/findFirstConnection/index.js +4 -2
- package/dist/plugins/findFirstConnection/schemas.d.ts +2 -2
- package/dist/plugins/findUniqueConnection/index.d.ts +4 -4
- package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/index.js +4 -2
- package/dist/plugins/findUniqueConnection/schemas.d.ts +2 -2
- package/dist/plugins/getAction/index.d.ts +141 -4
- package/dist/plugins/getAction/index.d.ts.map +1 -1
- package/dist/plugins/getAction/index.js +5 -3
- package/dist/plugins/getAction/schemas.d.ts +6 -6
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts +232 -3
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/getActionInputFieldsSchema/index.js +3 -3
- package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts +6 -6
- package/dist/plugins/getApp/index.d.ts +4 -4
- package/dist/plugins/getApp/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.js +3 -1
- package/dist/plugins/getApp/schemas.d.ts +4 -4
- package/dist/plugins/getConnection/index.d.ts +125 -2
- package/dist/plugins/getConnection/index.d.ts.map +1 -1
- package/dist/plugins/getConnection/index.js +4 -2
- package/dist/plugins/getProfile/index.d.ts +2 -2
- package/dist/plugins/getProfile/index.d.ts.map +1 -1
- package/dist/plugins/getProfile/index.js +4 -2
- package/dist/plugins/getProfile/schemas.d.ts +1 -2
- package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/index.d.ts +287 -4
- package/dist/plugins/listActionInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/index.js +6 -4
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts +8 -8
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listActionInputFieldChoices/schemas.js +1 -22
- package/dist/plugins/listActionInputFields/index.d.ts +168 -5
- package/dist/plugins/listActionInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listActionInputFields/index.js +7 -5
- package/dist/plugins/listActionInputFields/schemas.d.ts +6 -6
- package/dist/plugins/listActions/index.d.ts +140 -3
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/index.js +6 -4
- package/dist/plugins/listActions/schemas.d.ts +4 -4
- package/dist/plugins/listApps/index.d.ts +3 -3
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +6 -4
- package/dist/plugins/listClientCredentials/index.d.ts +3 -3
- package/dist/plugins/listClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/listClientCredentials/index.js +6 -4
- package/dist/plugins/listConnections/index.d.ts +140 -3
- package/dist/plugins/listConnections/index.d.ts.map +1 -1
- package/dist/plugins/listConnections/index.js +7 -5
- package/dist/plugins/listConnections/schemas.d.ts +2 -2
- package/dist/plugins/manifest/index.d.ts +1 -1
- package/dist/plugins/manifest/index.d.ts.map +1 -1
- package/dist/plugins/manifest/index.js +6 -4
- package/dist/plugins/registry/index.d.ts +1 -1
- package/dist/plugins/registry/index.js +1 -1
- package/dist/plugins/request/index.d.ts +8 -5
- package/dist/plugins/request/index.d.ts.map +1 -1
- package/dist/plugins/request/index.js +4 -3
- package/dist/plugins/request/schemas.d.ts +2 -2
- package/dist/plugins/runAction/index.d.ts +168 -5
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/index.js +9 -5
- package/dist/plugins/runAction/schemas.d.ts +6 -6
- package/dist/plugins/tables/createTable/index.d.ts +2 -2
- package/dist/plugins/tables/createTable/index.js +2 -2
- package/dist/plugins/tables/createTable/schemas.d.ts +1 -2
- package/dist/plugins/tables/createTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.d.ts +34 -2
- package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.js +4 -2
- package/dist/plugins/tables/createTableFields/schemas.d.ts +3 -4
- package/dist/plugins/tables/createTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.d.ts +63 -2
- package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.js +2 -2
- package/dist/plugins/tables/createTableRecords/schemas.d.ts +3 -4
- package/dist/plugins/tables/createTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.d.ts +34 -2
- package/dist/plugins/tables/deleteTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.js +2 -2
- package/dist/plugins/tables/deleteTable/schemas.d.ts +3 -4
- package/dist/plugins/tables/deleteTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.d.ts +63 -2
- package/dist/plugins/tables/deleteTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.js +2 -2
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts +4 -5
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.d.ts +84 -2
- package/dist/plugins/tables/deleteTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.js +2 -2
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts +4 -5
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.d.ts +34 -2
- package/dist/plugins/tables/getTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.js +2 -2
- package/dist/plugins/tables/getTable/schemas.d.ts +2 -2
- package/dist/plugins/tables/getTableRecord/index.d.ts +84 -2
- package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/index.js +2 -2
- package/dist/plugins/tables/getTableRecord/schemas.d.ts +6 -7
- package/dist/plugins/tables/getTableRecord/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/schemas.js +1 -10
- package/dist/plugins/tables/listTableFields/index.d.ts +34 -2
- package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/index.js +4 -2
- package/dist/plugins/tables/listTableFields/schemas.d.ts +4 -5
- package/dist/plugins/tables/listTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/schemas.js +1 -9
- package/dist/plugins/tables/listTableRecords/index.d.ts +65 -4
- package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/index.js +3 -3
- package/dist/plugins/tables/listTableRecords/schemas.d.ts +2 -2
- package/dist/plugins/tables/listTables/index.d.ts +3 -3
- package/dist/plugins/tables/listTables/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTables/index.js +4 -4
- package/dist/plugins/tables/updateTableRecords/index.d.ts +63 -2
- package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/updateTableRecords/index.js +2 -2
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts +3 -4
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts +59 -2
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts +231 -2
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts +3 -4
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/deleteTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts +68 -6
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.js +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/schemas.d.ts +2 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts +231 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ensureTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts +3 -4
- package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/getTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +232 -3
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.js +1 -1
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.d.ts +2 -2
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts +33 -2
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts +34 -3
- package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInboxMessages/index.js +5 -13
- package/dist/plugins/triggers/listTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/listTriggerInboxes/index.d.ts +3 -3
- package/dist/plugins/triggers/listTriggerInboxes/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInboxes/index.js +5 -14
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +288 -5
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.js +7 -5
- package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.d.ts +3 -3
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +234 -5
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggerInputFields/index.js +6 -5
- package/dist/plugins/triggers/listTriggerInputFields/schemas.d.ts +2 -2
- package/dist/plugins/triggers/listTriggers/index.d.ts +142 -5
- package/dist/plugins/triggers/listTriggers/index.d.ts.map +1 -1
- package/dist/plugins/triggers/listTriggers/index.js +6 -5
- package/dist/plugins/triggers/listTriggers/schemas.d.ts +1 -1
- package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/pauseTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts +59 -2
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.d.ts +1 -1
- package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/resumeTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/updateTriggerInbox/index.d.ts +33 -2
- package/dist/plugins/triggers/updateTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/updateTriggerInbox/index.js +3 -1
- package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts +2 -3
- package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts +37 -6
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.js +1 -1
- package/dist/resolvers/actionKey.d.ts +3 -2
- package/dist/resolvers/actionKey.d.ts.map +1 -1
- package/dist/resolvers/actionType.d.ts +7 -2
- package/dist/resolvers/actionType.d.ts.map +1 -1
- package/dist/resolvers/actionType.js +3 -0
- package/dist/resolvers/appKey.d.ts +10 -5
- package/dist/resolvers/appKey.d.ts.map +1 -1
- package/dist/resolvers/appKey.js +3 -0
- package/dist/resolvers/clientCredentialsName.d.ts +1 -1
- package/dist/resolvers/clientCredentialsName.d.ts.map +1 -1
- package/dist/resolvers/clientId.d.ts +3 -2
- package/dist/resolvers/clientId.d.ts.map +1 -1
- package/dist/resolvers/clientId.js +1 -1
- package/dist/resolvers/connectionId.d.ts +5 -2
- package/dist/resolvers/connectionId.d.ts.map +1 -1
- package/dist/resolvers/connectionId.js +1 -1
- package/dist/resolvers/durableRunId.d.ts +3 -2
- package/dist/resolvers/durableRunId.d.ts.map +1 -1
- package/dist/resolvers/durableRunId.js +3 -2
- package/dist/resolvers/index.d.ts +1 -0
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +1 -0
- package/dist/resolvers/inputFieldKey.d.ts +3 -2
- package/dist/resolvers/inputFieldKey.d.ts.map +1 -1
- package/dist/resolvers/inputFieldKey.js +1 -1
- package/dist/resolvers/tableFieldIds.d.ts +3 -2
- package/dist/resolvers/tableFieldIds.d.ts.map +1 -1
- package/dist/resolvers/tableFields.d.ts +2 -2
- package/dist/resolvers/tableFields.d.ts.map +1 -1
- package/dist/resolvers/tableFilters.d.ts +3 -2
- package/dist/resolvers/tableFilters.d.ts.map +1 -1
- package/dist/resolvers/tableId.d.ts +3 -2
- package/dist/resolvers/tableId.d.ts.map +1 -1
- package/dist/resolvers/tableId.js +1 -1
- package/dist/resolvers/tableName.d.ts +1 -1
- package/dist/resolvers/tableName.d.ts.map +1 -1
- package/dist/resolvers/tableRecordId.d.ts +4 -3
- package/dist/resolvers/tableRecordId.d.ts.map +1 -1
- package/dist/resolvers/tableRecords.d.ts +4 -3
- package/dist/resolvers/tableRecords.d.ts.map +1 -1
- package/dist/resolvers/tableSort.d.ts +3 -2
- package/dist/resolvers/tableSort.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.d.ts +3 -2
- package/dist/resolvers/triggerInbox.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.js +1 -1
- package/dist/resolvers/triggerMessages.d.ts +3 -2
- package/dist/resolvers/triggerMessages.d.ts.map +1 -1
- package/dist/resolvers/triggerMessages.js +2 -4
- package/dist/resolvers/workflowId.d.ts +3 -2
- package/dist/resolvers/workflowId.d.ts.map +1 -1
- package/dist/resolvers/workflowId.js +3 -2
- package/dist/resolvers/workflowRunId.d.ts +7 -0
- package/dist/resolvers/workflowRunId.d.ts.map +1 -0
- package/dist/resolvers/workflowRunId.js +20 -0
- package/dist/resolvers/workflowVersionId.d.ts +3 -2
- package/dist/resolvers/workflowVersionId.d.ts.map +1 -1
- package/dist/resolvers/workflowVersionId.js +7 -7
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/Action.js +6 -30
- package/dist/schemas/App.d.ts +0 -1
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +2 -14
- package/dist/schemas/ClientCredentials.d.ts.map +1 -1
- package/dist/schemas/ClientCredentials.js +3 -41
- package/dist/schemas/Connection.d.ts.map +1 -1
- package/dist/schemas/Connection.js +2 -28
- package/dist/schemas/Field.d.ts.map +1 -1
- package/dist/schemas/Field.js +3 -70
- package/dist/schemas/Run.d.ts.map +1 -1
- package/dist/schemas/Run.js +3 -29
- package/dist/schemas/TriggerInbox.d.ts.map +1 -1
- package/dist/schemas/TriggerInbox.js +1 -33
- package/dist/schemas/TriggerMessage.d.ts.map +1 -1
- package/dist/schemas/TriggerMessage.js +2 -60
- package/dist/schemas/UserProfile.d.ts +0 -1
- package/dist/schemas/UserProfile.d.ts.map +1 -1
- package/dist/schemas/UserProfile.js +1 -20
- package/dist/sdk.d.ts +2761 -441
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +93 -129
- package/dist/types/errors.d.ts +44 -42
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +79 -33
- package/dist/types/functions.d.ts +1 -41
- package/dist/types/functions.d.ts.map +1 -1
- package/dist/types/properties.d.ts +7 -7
- package/dist/types/properties.js +1 -1
- package/dist/types/sdk.d.ts +1 -1
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +1 -1
- package/dist/utils/logging.d.ts +1 -12
- package/dist/utils/logging.d.ts.map +1 -1
- package/dist/utils/logging.js +2 -20
- package/dist/utils/pagination.d.ts +38 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/pagination.js +53 -0
- package/package.json +3 -2
- package/dist/registry.d.ts +0 -9
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -103
- package/dist/types/meta.d.ts +0 -9
- package/dist/types/meta.d.ts.map +0 -1
- package/dist/types/meta.js +0 -3
- package/dist/types/plugin.d.ts +0 -84
- package/dist/types/plugin.d.ts.map +0 -1
- package/dist/types/plugin.js +0 -13
- package/dist/types/registry.d.ts +0 -54
- package/dist/types/registry.d.ts.map +0 -1
- package/dist/types/registry.js +0 -1
- package/dist/utils/function-utils.d.ts +0 -59
- package/dist/utils/function-utils.d.ts.map +0 -1
- package/dist/utils/function-utils.js +0 -245
- package/dist/utils/pagination-utils.d.ts +0 -73
- package/dist/utils/pagination-utils.d.ts.map +0 -1
- package/dist/utils/pagination-utils.js +0 -308
- package/dist/utils/plugin-utils.d.ts +0 -245
- package/dist/utils/plugin-utils.d.ts.map +0 -1
- package/dist/utils/plugin-utils.js +0 -234
- package/dist/utils/schema-utils.d.ts +0 -211
- package/dist/utils/schema-utils.d.ts.map +0 -1
- package/dist/utils/schema-utils.js +0 -72
- package/dist/utils/string-utils.d.ts +0 -40
- package/dist/utils/string-utils.d.ts.map +0 -1
- package/dist/utils/string-utils.js +0 -69
- package/dist/utils/telemetry-context.d.ts +0 -15
- package/dist/utils/telemetry-context.d.ts.map +0 -1
- package/dist/utils/telemetry-context.js +0 -48
- package/dist/utils/telemetry-utils.d.ts +0 -44
- package/dist/utils/telemetry-utils.d.ts.map +0 -1
- package/dist/utils/telemetry-utils.js +0 -60
- package/dist/utils/validation.d.ts +0 -4
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -30
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const RunActionSchema: 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 RunActionSchema: 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]>>>;
|
|
@@ -27,7 +27,7 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
27
27
|
}, z.core.$strip>;
|
|
28
28
|
declare const RunActionSchemaDeprecated: z.ZodObject<{
|
|
29
29
|
appKey: z.ZodString & {
|
|
30
|
-
_def: z.core.$ZodStringDef & import("
|
|
30
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
31
31
|
};
|
|
32
32
|
actionType: z.ZodEnum<{
|
|
33
33
|
filter: "filter";
|
|
@@ -51,7 +51,7 @@ declare const RunActionSchemaDeprecated: z.ZodObject<{
|
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
53
53
|
app: z.ZodString & {
|
|
54
|
-
_def: z.core.$ZodStringDef & import("
|
|
54
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
55
55
|
};
|
|
56
56
|
actionType: z.ZodEnum<{
|
|
57
57
|
filter: "filter";
|
|
@@ -64,7 +64,7 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
64
64
|
search_or_write: "search_or_write";
|
|
65
65
|
}>;
|
|
66
66
|
action: z.ZodString & {
|
|
67
|
-
_def: z.core.$ZodStringDef & import("
|
|
67
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
68
68
|
};
|
|
69
69
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
70
70
|
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -76,7 +76,7 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
76
76
|
cursor: z.ZodOptional<z.ZodString>;
|
|
77
77
|
}, z.core.$strip>, z.ZodObject<{
|
|
78
78
|
appKey: z.ZodString & {
|
|
79
|
-
_def: z.core.$ZodStringDef & import("
|
|
79
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
80
80
|
};
|
|
81
81
|
actionType: z.ZodEnum<{
|
|
82
82
|
filter: "filter";
|
|
@@ -18,7 +18,7 @@ export declare const createTablePlugin: (sdk: {
|
|
|
18
18
|
context: import("../../eventEmission").EventEmissionContext;
|
|
19
19
|
} & {
|
|
20
20
|
context: {
|
|
21
|
-
meta: Record<string, import("
|
|
21
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
22
22
|
};
|
|
23
23
|
}) => {
|
|
24
24
|
createTable: (options?: {
|
|
@@ -40,7 +40,7 @@ export declare const createTablePlugin: (sdk: {
|
|
|
40
40
|
} & {
|
|
41
41
|
context: {
|
|
42
42
|
meta: {
|
|
43
|
-
createTable: import("
|
|
43
|
+
createTable: import("kitcore").PluginMeta<unknown>;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
};
|
|
@@ -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 { CreateTableOptionsSchema, CreateTableApiResponseSchema, TableItemSchema, } from "./schemas";
|
|
4
4
|
import { tableNameResolver } from "../../../resolvers";
|
|
5
5
|
import { transformTableItem } from "../utils";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
import { TableItemSchema, TableApiItemSchema, type TableItem, type TableApiItem } from "../listTables/schemas";
|
|
4
3
|
export { TableItemSchema, TableApiItemSchema };
|
|
5
4
|
export type { TableItem, TableApiItem };
|
|
@@ -27,7 +26,7 @@ export declare const CreateTableOptionsSchema: z.ZodObject<{
|
|
|
27
26
|
name: z.ZodString;
|
|
28
27
|
description: z.ZodOptional<z.ZodString>;
|
|
29
28
|
}, z.core.$strip>;
|
|
30
|
-
export type CreateTableOptions = z.infer<typeof CreateTableOptionsSchema
|
|
29
|
+
export type CreateTableOptions = z.infer<typeof CreateTableOptionsSchema>;
|
|
31
30
|
export interface CreateTableResult {
|
|
32
31
|
data: TableItem;
|
|
33
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAC;AAC/C,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAExC,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;iBAEvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;iBAQJ,CAAC;AAElC,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAG1E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;CACjB;AAGD,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC1E"}
|
|
@@ -16,9 +16,41 @@ export declare const createTableFieldsPlugin: (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
|
createTableFields: (options?: {
|
|
@@ -52,7 +84,7 @@ export declare const createTableFieldsPlugin: (sdk: {
|
|
|
52
84
|
} & {
|
|
53
85
|
context: {
|
|
54
86
|
meta: {
|
|
55
|
-
createTableFields: import("
|
|
87
|
+
createTableFields: import("kitcore").PluginMeta<unknown>;
|
|
56
88
|
};
|
|
57
89
|
};
|
|
58
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableFields/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableFields/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BnC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,uBAAuB,CAC/B,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 { CreateTableFieldsOptionsInputSchema, CreateTableFieldsApiResponseSchema, FieldItemSchema, } from "./schemas";
|
|
4
|
+
import { tableFieldItemFormatter } from "../../../formatters/tableField";
|
|
4
5
|
import { tableIdResolver, tableFieldsResolver } from "../../../resolvers";
|
|
5
6
|
import { transformFieldItem } from "../utils";
|
|
6
7
|
import { tablesDefaults } from "../shared";
|
|
@@ -12,6 +13,7 @@ export const createTableFieldsPlugin = definePlugin((sdk) => createPluginMethod(
|
|
|
12
13
|
returnType: "FieldItem[]",
|
|
13
14
|
inputSchema: CreateTableFieldsOptionsInputSchema,
|
|
14
15
|
outputSchema: FieldItemSchema,
|
|
16
|
+
formatter: tableFieldItemFormatter,
|
|
15
17
|
resolvers: { table: tableIdResolver, fields: tableFieldsResolver },
|
|
16
18
|
handler: async ({ sdk, options }) => {
|
|
17
19
|
const tableId = "table" in options ? options.table : options.tableId;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
import { FieldTypeSchema, FieldItemSchema, type FieldItem } from "../listTableFields/schemas";
|
|
4
3
|
export { FieldTypeSchema, FieldItemSchema };
|
|
5
4
|
export type { FieldItem };
|
|
@@ -144,7 +143,7 @@ export declare const NewFieldSchema: z.ZodObject<{
|
|
|
144
143
|
export type NewField = z.infer<typeof NewFieldSchema>;
|
|
145
144
|
export declare const CreateTableFieldsOptionsSchema: z.ZodObject<{
|
|
146
145
|
table: z.ZodString & {
|
|
147
|
-
_def: z.core.$ZodStringDef & import("
|
|
146
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
148
147
|
};
|
|
149
148
|
fields: z.ZodArray<z.ZodObject<{
|
|
150
149
|
type: z.ZodEnum<{
|
|
@@ -226,7 +225,7 @@ declare const CreateTableFieldsOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
226
225
|
}, z.core.$strip>;
|
|
227
226
|
export declare const CreateTableFieldsOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
228
227
|
table: z.ZodString & {
|
|
229
|
-
_def: z.core.$ZodStringDef & import("
|
|
228
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
230
229
|
};
|
|
231
230
|
fields: z.ZodArray<z.ZodObject<{
|
|
232
231
|
type: z.ZodEnum<{
|
|
@@ -305,7 +304,7 @@ export declare const CreateTableFieldsOptionsInputSchema: z.ZodUnion<readonly [z
|
|
|
305
304
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
306
305
|
}, z.core.$strip>>;
|
|
307
306
|
}, z.core.$strip>]>;
|
|
308
|
-
export type CreateTableFieldsOptions =
|
|
307
|
+
export type CreateTableFieldsOptions = z.infer<typeof CreateTableFieldsOptionsSchema> | (Omit<z.infer<typeof CreateTableFieldsOptionsSchemaDeprecated>, "tableId"> & {
|
|
309
308
|
/** @deprecated Use `table` instead. */
|
|
310
309
|
tableId: z.infer<typeof CreateTableFieldsOptionsSchemaDeprecated>["tableId"];
|
|
311
310
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,eAAe,EAEf,eAAe,EACf,KAAK,SAAS,EACf,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC;AAC5C,YAAY,EAAE,SAAS,EAAE,CAAC;AAS1B,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAYtD,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMD,CAAC;AAG3C,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOf,CAAC;AAGhC,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKP,CAAC;AAG1C,MAAM,MAAM,wBAAwB,GAChC,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,GAC9C,CAAC,IAAI,CACH,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,EACxD,SAAS,CACV,GAAG;IACF,uCAAuC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,OAAO,wCAAwC,CAChD,CAAC,SAAS,CAAC,CAAC;CACd,CAAC,CAAC;AAGP,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAGD,MAAM,WAAW,4BAA4B;IAC3C,iBAAiB,EAAE,CACjB,OAAO,EAAE,wBAAwB,KAC9B,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACvC"}
|
|
@@ -16,9 +16,70 @@ export declare const createTableRecordsPlugin: (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
|
createTableRecords: (options?: {
|
|
@@ -45,7 +106,7 @@ export declare const createTableRecordsPlugin: (sdk: {
|
|
|
45
106
|
} & {
|
|
46
107
|
context: {
|
|
47
108
|
meta: {
|
|
48
|
-
createTableRecords: import("
|
|
109
|
+
createTableRecords: import("kitcore").PluginMeta<unknown>;
|
|
49
110
|
};
|
|
50
111
|
};
|
|
51
112
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableRecords/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableRecords/index.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDpC,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 { CreateTableRecordsOptionsInputSchema, CreateTableRecordsApiResponseSchema, RecordItemSchema, } from "./schemas";
|
|
4
4
|
import { tableIdResolver, tableRecordsResolver } from "../../../resolvers";
|
|
5
5
|
import { tableRecordFormatter } from "../../../formatters";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
import { RecordItemSchema, type RecordItem } from "../getTableRecord/schemas";
|
|
4
3
|
export { RecordItemSchema };
|
|
5
4
|
export type { RecordItem };
|
|
@@ -39,7 +38,7 @@ export declare const NewRecordSchema: z.ZodObject<{
|
|
|
39
38
|
export type NewRecord = z.infer<typeof NewRecordSchema>;
|
|
40
39
|
export declare const CreateTableRecordsOptionsSchema: z.ZodObject<{
|
|
41
40
|
table: z.ZodString & {
|
|
42
|
-
_def: z.core.$ZodStringDef & import("
|
|
41
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
43
42
|
};
|
|
44
43
|
records: z.ZodArray<z.ZodObject<{
|
|
45
44
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -61,7 +60,7 @@ declare const CreateTableRecordsOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
61
60
|
}, z.core.$strip>;
|
|
62
61
|
export declare const CreateTableRecordsOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
63
62
|
table: z.ZodString & {
|
|
64
|
-
_def: z.core.$ZodStringDef & import("
|
|
63
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
65
64
|
};
|
|
66
65
|
records: z.ZodArray<z.ZodObject<{
|
|
67
66
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -80,7 +79,7 @@ export declare const CreateTableRecordsOptionsInputSchema: z.ZodUnion<readonly [
|
|
|
80
79
|
ids: "ids";
|
|
81
80
|
}>>>;
|
|
82
81
|
}, z.core.$strip>]>;
|
|
83
|
-
export type CreateTableRecordsOptions =
|
|
82
|
+
export type CreateTableRecordsOptions = z.infer<typeof CreateTableRecordsOptionsSchema> | (Omit<z.infer<typeof CreateTableRecordsOptionsSchemaDeprecated>, "tableId"> & {
|
|
84
83
|
/** @deprecated Use `table` instead. */
|
|
85
84
|
tableId: z.infer<typeof CreateTableRecordsOptionsSchemaDeprecated>["tableId"];
|
|
86
85
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableRecords/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/createTableRecords/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,gBAAgB,EAChB,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,CAAC;AAW3B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,eAAe;;iBAI1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAcxD,eAAO,MAAM,+BAA+B;;;;;;;;;;;iBAMF,CAAC;AAG3C,QAAA,MAAM,yCAAyC;;;;;;;;;iBAOf,CAAC;AAGjC,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;mBAKP,CAAC;AAG3C,MAAM,MAAM,yBAAyB,GACjC,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,GAC/C,CAAC,IAAI,CACH,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,EACzD,SAAS,CACV,GAAG;IACF,uCAAuC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,OAAO,yCAAyC,CACjD,CAAC,SAAS,CAAC,CAAC;CACd,CAAC,CAAC;AAEP,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,kBAAkB,EAAE,CAClB,OAAO,EAAE,yBAAyB,KAC/B,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACxC"}
|
|
@@ -17,11 +17,43 @@ export declare const deleteTablePlugin: (sdk: {
|
|
|
17
17
|
};
|
|
18
18
|
} & {
|
|
19
19
|
context: import("../../eventEmission").EventEmissionContext;
|
|
20
|
+
} & {
|
|
21
|
+
listTables: (options?: ({
|
|
22
|
+
tables?: string[] | undefined;
|
|
23
|
+
tableIds?: string[] | undefined;
|
|
24
|
+
kind?: "table" | "virtual_table" | "both" | undefined;
|
|
25
|
+
search?: string | undefined;
|
|
26
|
+
owner?: string | undefined;
|
|
27
|
+
includeShared?: boolean | undefined;
|
|
28
|
+
pageSize?: number | undefined;
|
|
29
|
+
maxItems?: number | undefined;
|
|
30
|
+
cursor?: string | undefined;
|
|
31
|
+
} & {
|
|
32
|
+
cursor?: string;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
maxItems?: number;
|
|
35
|
+
}) | undefined) => import("kitcore").PaginatedSdkResult<{
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
created_at: string;
|
|
39
|
+
edited_at: string;
|
|
40
|
+
kind: "table" | "virtual_table";
|
|
41
|
+
account_id: string;
|
|
42
|
+
profile_id: string;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
parent_table_id?: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
} & {
|
|
47
|
+
context: {
|
|
48
|
+
meta: {
|
|
49
|
+
listTables: import("kitcore").PluginMeta<unknown>;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
20
52
|
} & {
|
|
21
53
|
context: CapabilitiesContext;
|
|
22
54
|
} & {
|
|
23
55
|
context: {
|
|
24
|
-
meta: Record<string, import("
|
|
56
|
+
meta: Record<string, import("kitcore").PluginMeta>;
|
|
25
57
|
};
|
|
26
58
|
}) => {
|
|
27
59
|
deleteTable: (options?: {
|
|
@@ -34,7 +66,7 @@ export declare const deleteTablePlugin: (sdk: {
|
|
|
34
66
|
} & {
|
|
35
67
|
context: {
|
|
36
68
|
meta: {
|
|
37
|
-
deleteTable: import("
|
|
69
|
+
deleteTable: import("kitcore").PluginMeta<unknown>;
|
|
38
70
|
};
|
|
39
71
|
};
|
|
40
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/deleteTable/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/deleteTable/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAK9D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAIc,mBAAmB;;;;;;;;;;;;;;;;;;;CAwB9D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,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 { DeleteTableOptionsInputSchema } from "./schemas";
|
|
4
4
|
import { tableIdResolver } from "../../../resolvers";
|
|
5
5
|
import { tablesDefaults } from "../shared";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
export declare const DeleteTableOptionsSchema: z.ZodObject<{
|
|
4
3
|
table: z.ZodString & {
|
|
5
|
-
_def: z.core.$ZodStringDef & import("
|
|
4
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
6
5
|
};
|
|
7
6
|
}, z.core.$strip>;
|
|
8
7
|
declare const DeleteTableOptionsSchemaDeprecated: z.ZodObject<{
|
|
@@ -10,12 +9,12 @@ declare const DeleteTableOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
10
9
|
}, z.core.$strip>;
|
|
11
10
|
export declare const DeleteTableOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
12
11
|
table: z.ZodString & {
|
|
13
|
-
_def: z.core.$ZodStringDef & import("
|
|
12
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
14
13
|
};
|
|
15
14
|
}, z.core.$strip>, z.ZodObject<{
|
|
16
15
|
tableId: z.ZodString;
|
|
17
16
|
}, z.core.$strip>]>;
|
|
18
|
-
export type DeleteTableOptions =
|
|
17
|
+
export type DeleteTableOptions = z.infer<typeof DeleteTableOptionsSchema> | (Omit<z.infer<typeof DeleteTableOptionsSchemaDeprecated>, "tableId"> & {
|
|
19
18
|
/** @deprecated Use `table` instead. */
|
|
20
19
|
tableId: z.infer<typeof DeleteTableOptionsSchemaDeprecated>["tableId"];
|
|
21
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/deleteTable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/deleteTable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,wBAAwB;;;;iBAKK,CAAC;AAG3C,QAAA,MAAM,kCAAkC;;iBAKtC,CAAC;AAGH,eAAO,MAAM,6BAA6B;;;;;;mBAEP,CAAC;AAGpC,MAAM,MAAM,kBAAkB,GAC1B,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,GACxC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,EAAE,SAAS,CAAC,GAAG;IACrE,uCAAuC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC;CACxE,CAAC,CAAC;AAGP,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB;AAGD,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC1E"}
|
|
@@ -16,9 +16,70 @@ export declare const deleteTableFieldsPlugin: (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
|
deleteTableFields: (options?: {
|
|
@@ -33,7 +94,7 @@ export declare const deleteTableFieldsPlugin: (sdk: {
|
|
|
33
94
|
} & {
|
|
34
95
|
context: {
|
|
35
96
|
meta: {
|
|
36
|
-
deleteTableFields: import("
|
|
97
|
+
deleteTableFields: import("kitcore").PluginMeta<unknown>;
|
|
37
98
|
};
|
|
38
99
|
};
|
|
39
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/deleteTableFields/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/deleteTableFields/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCnC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,uBAAuB,CAC/B,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 { DeleteTableFieldsOptionsInputSchema } from "./schemas";
|
|
4
4
|
import { tableIdResolver, tableFieldIdsResolver } from "../../../resolvers";
|
|
5
5
|
import { resolveFieldKeys } from "../utils";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { FunctionOptions } from "../../../types/functions";
|
|
3
2
|
export declare const DeleteTableFieldsOptionsSchema: z.ZodObject<{
|
|
4
3
|
table: z.ZodString & {
|
|
5
|
-
_def: z.core.$ZodStringDef & import("
|
|
4
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
6
5
|
};
|
|
7
6
|
fields: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
8
7
|
}, z.core.$strip>;
|
|
@@ -12,19 +11,19 @@ declare const DeleteTableFieldsOptionsSchemaDeprecated: z.ZodObject<{
|
|
|
12
11
|
}, z.core.$strip>;
|
|
13
12
|
export declare const DeleteTableFieldsOptionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
13
|
table: z.ZodString & {
|
|
15
|
-
_def: z.core.$ZodStringDef & import("
|
|
14
|
+
_def: z.core.$ZodStringDef & import("kitcore").PositionalMetadata;
|
|
16
15
|
};
|
|
17
16
|
fields: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
18
17
|
}, z.core.$strip>, z.ZodObject<{
|
|
19
18
|
tableId: z.ZodString;
|
|
20
19
|
fieldKeys: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
21
20
|
}, z.core.$strip>]>;
|
|
22
|
-
export type DeleteTableFieldsOptions =
|
|
21
|
+
export type DeleteTableFieldsOptions = z.infer<typeof DeleteTableFieldsOptionsSchema> | (Omit<z.infer<typeof DeleteTableFieldsOptionsSchemaDeprecated>, "tableId" | "fieldKeys"> & {
|
|
23
22
|
/** @deprecated Use `table` instead. */
|
|
24
23
|
tableId: z.infer<typeof DeleteTableFieldsOptionsSchemaDeprecated>["tableId"];
|
|
25
24
|
/** @deprecated Use `fields` instead. */
|
|
26
25
|
fieldKeys: z.infer<typeof DeleteTableFieldsOptionsSchemaDeprecated>["fieldKeys"];
|
|
27
|
-
}
|
|
26
|
+
});
|
|
28
27
|
export interface DeleteTableFieldsResult {
|
|
29
28
|
success: boolean;
|
|
30
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/deleteTableFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tables/deleteTableFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,8BAA8B;;;;;iBAMoB,CAAC;AAGhE,QAAA,MAAM,wCAAwC;;;iBAW5C,CAAC;AAGH,eAAO,MAAM,mCAAmC;;;;;;;;mBAKP,CAAC;AAG1C,MAAM,MAAM,wBAAwB,GAChC,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,GAC9C,CAAC,IAAI,CACH,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,EACxD,SAAS,GAAG,WAAW,CACxB,GAAG;IACF,uCAAuC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,OAAO,wCAAwC,CAChD,CAAC,SAAS,CAAC,CAAC;IACb,wCAAwC;IACxC,SAAS,EAAE,CAAC,CAAC,KAAK,CAChB,OAAO,wCAAwC,CAChD,CAAC,WAAW,CAAC,CAAC;CAChB,CAAC,CAAC;AAGP,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB;AAGD,MAAM,WAAW,4BAA4B;IAC3C,iBAAiB,EAAE,CACjB,OAAO,EAAE,wBAAwB,KAC9B,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACvC"}
|