@membranehq/sdk 0.3.0 → 0.5.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/README.md +2 -0
- package/dist/bundle.d.ts +9397 -1740
- package/dist/bundle.js +8027 -17721
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +30 -0
- package/dist/dts/accessors/actions-accessors.d.ts +23 -0
- package/dist/dts/accessors/app-data-schema-instances-accessors.d.ts +12 -0
- package/dist/dts/accessors/app-data-schemas-accessors.d.ts +10 -0
- package/dist/dts/accessors/app-event-subscriptions-accessors.d.ts +11 -0
- package/dist/dts/accessors/app-event-types-accessors.d.ts +10 -0
- package/dist/dts/{accessors.d.ts → accessors/base-accessors.d.ts} +3 -3
- package/dist/dts/{connections/accessors.d.ts → accessors/connections-accessors.d.ts} +79 -10
- package/dist/dts/accessors/customers-accessors.d.ts +15 -0
- package/dist/dts/accessors/data-link-table-instances-accessors.d.ts +14 -0
- package/dist/dts/accessors/data-link-tables-accessors.d.ts +10 -0
- package/dist/dts/{data-sources/accessors.d.ts → accessors/data-sources-accessors.d.ts} +4 -4
- package/dist/dts/{external-events/accessors.d.ts → accessors/external-event-subscriptions-accessors.d.ts} +3 -3
- package/dist/dts/accessors/field-mapping-instances-accessors.d.ts +31 -0
- package/dist/dts/accessors/field-mappings-accessors.d.ts +25 -0
- package/dist/dts/{flows/accessors.d.ts → accessors/flow-instances-accessors.d.ts} +5 -26
- package/dist/dts/{flow-runs/accessors.d.ts → accessors/flow-runs-accessors.d.ts} +1 -1
- package/dist/dts/accessors/flows-accessors.d.ts +23 -0
- package/dist/dts/accessors/index.d.ts +21 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +113 -0
- package/dist/dts/{scenarios/accessors.d.ts → accessors/scenarios-accessors.d.ts} +2 -2
- package/dist/dts/{screens/accessors.d.ts → accessors/screens-accessors.d.ts} +2 -2
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/apps/types.d.ts +2 -0
- package/dist/dts/auth/accessors.d.ts +1 -1
- package/dist/dts/auth/index.d.ts +1 -1
- package/dist/dts/client.d.ts +3 -16
- package/dist/dts/data-builder/index.d.ts +19 -9
- package/dist/dts/data-filter/index.d.ts +1 -1
- package/dist/dts/data-schema/index.d.ts +0 -2
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/{data-schema/utils.d.ts → data-schema-utils/index.d.ts} +3 -6
- package/dist/dts/entity-repository.d.ts +87 -20
- package/dist/dts/error-tools/index.d.ts +3 -0
- package/dist/dts/errors/index.d.ts +2 -9
- package/dist/dts/{data-builder/formulas → formulas}/base.d.ts +2 -2
- package/dist/dts/{data-builder/formulas → formulas}/dataSchemaRef.d.ts +3 -3
- package/dist/dts/{data-builder/formulas → formulas}/eval.d.ts +1 -1
- package/dist/dts/{data-builder/formulas → formulas}/findAppRecordId.d.ts +1 -1
- package/dist/dts/{data-builder/formulas → formulas}/findExternalRecordId.d.ts +1 -1
- package/dist/dts/formulas/index.d.ts +91 -0
- package/dist/dts/{data-builder/formulas → formulas}/record.d.ts +1 -1
- package/dist/dts/{data-builder/formulas → formulas}/types.d.ts +1 -0
- package/dist/dts/http-requests.d.ts +20 -6
- package/dist/dts/iframe.d.ts +12 -4
- package/dist/dts/index.d.ts +6 -18
- package/dist/dts/integration-elements/index.d.ts +3 -3
- package/dist/dts/{data-builder/locators.d.ts → locators/index.d.ts} +3 -3
- package/dist/dts/sse/index.d.ts +1 -0
- package/dist/dts/sse/workspace-elements.d.ts +9 -0
- package/dist/dts/variables.d.ts +1 -1
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +8 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +728 -0
- package/dist/dts/{app-data-schemas/api.d.ts → workspace-elements/api/app-data-schema-instances-api.d.ts} +13 -20
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +30 -0
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +30 -0
- package/dist/dts/workspace-elements/api/app-events-api.d.ts +17 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +710 -0
- package/dist/dts/workspace-elements/api/customers-api.d.ts +70 -0
- package/dist/dts/{data-links/api.d.ts → workspace-elements/api/data-link-table-instances-api.d.ts} +15 -8
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +8 -0
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +12 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +856 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +19 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +19 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +507 -0
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +41 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +619 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +50 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2437 -0
- package/dist/dts/workspace-elements/api/index.d.ts +25 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +260 -0
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +486 -0
- package/dist/dts/{screens/types.d.ts → workspace-elements/api/screens-api.d.ts} +6 -8
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +77 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +42 -0
- package/dist/dts/{actions → workspace-elements/base/actions}/index.d.ts +0 -1
- package/dist/dts/workspace-elements/base/actions/types.d.ts +68 -0
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +47 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +35 -0
- package/dist/dts/workspace-elements/base/app-event-subscriptions/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +84 -0
- package/dist/dts/workspace-elements/base/app-event-types/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +75 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connections/types.d.ts +92 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/auth.d.ts +2 -2
- package/dist/dts/workspace-elements/base/connectors/events/index.d.ts +1 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/events/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connectors/global-webhooks/index.d.ts +1 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/graphql-api.d.ts +1 -1
- package/dist/dts/{connectors → workspace-elements/base/connectors}/index.d.ts +0 -2
- package/dist/dts/{connectors → workspace-elements/base/connectors}/methods.d.ts +1 -1
- package/dist/dts/{connectors → workspace-elements/base/connectors}/rest-api.d.ts +1 -1
- package/dist/dts/{connectors → workspace-elements/base/connectors}/types.d.ts +16 -4
- package/dist/dts/{connectors → workspace-elements/base/connectors}/udm.d.ts +1 -1
- package/dist/dts/workspace-elements/base/customers/index.d.ts +30 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/base.d.ts +2 -2
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/connector-event.d.ts +1 -1
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/custom-pull.d.ts +1 -1
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/pull-latest-records.d.ts +1 -1
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/webhook.d.ts +1 -1
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/methods.d.ts +2 -2
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/index.d.ts +1 -1
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/base.d.ts +4 -4
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/index.d.ts +0 -2
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/methods.d.ts +2 -2
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-records.d.ts +1 -1
- package/dist/dts/workspace-elements/base/data-collections/index.d.ts +6 -0
- package/dist/dts/{connectors/data-locations → workspace-elements/base/data-collections}/schemas.d.ts +762 -261
- package/dist/dts/workspace-elements/base/data-collections/types.d.ts +54 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/base.d.ts +2 -2
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/index.d.ts +2 -2
- package/dist/dts/{connectors/data-locations → workspace-elements/base/data-collections}/utils.d.ts +5 -2
- package/dist/dts/workspace-elements/base/data-link-table-instances/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +70 -0
- package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +31 -0
- package/dist/dts/workspace-elements/base/data-source-instances/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1036 -0
- package/dist/dts/{data-sources → workspace-elements/base/data-sources}/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +94 -0
- package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +41 -0
- package/dist/dts/workspace-elements/base/external-event-pulls/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +48 -0
- package/dist/dts/workspace-elements/base/external-event-subscriptions/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +218 -0
- package/dist/dts/{external-events → workspace-elements/base/external-events}/api.d.ts +2 -2
- package/dist/dts/{external-events → workspace-elements/base/external-events}/index.d.ts +1 -4
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +157 -0
- package/dist/dts/workspace-elements/base/field-mapping-instances/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +85 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +115 -0
- package/dist/dts/workspace-elements/base/flow-instances/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +168 -0
- package/dist/dts/{flow-runs → workspace-elements/base/flow-runs}/flow-node-runs.d.ts +27 -27
- package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +126 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/flows/types.d.ts +227 -0
- package/dist/dts/workspace-elements/base/index.d.ts +27 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +505 -0
- package/dist/dts/workspace-elements/base/scenarios/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +727 -0
- package/dist/dts/workspace-elements/base/screens/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/screens/types.d.ts +41 -0
- package/dist/dts/workspace-elements/errors.d.ts +5 -0
- package/dist/dts/workspace-elements/index.d.ts +4 -0
- package/dist/dts/workspace-elements/types.d.ts +30 -4
- package/dist/dts/{flows/utils.d.ts → workspace-elements/utils/flow-utils.d.ts} +3 -3
- package/dist/dts/workspace-elements/utils/index.d.ts +1 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +3 -8
- package/dist/dts/workspaces/types.d.ts +6 -42
- package/dist/index.d.ts +13896 -3203
- package/dist/index.js +10508 -9435
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +13896 -3203
- package/dist/index.module.mjs +10358 -9413
- package/dist/index.module.mjs.map +1 -1
- package/package.json +7 -2
- package/dist/dts/actions/accessors.d.ts +0 -49
- package/dist/dts/actions/types.d.ts +0 -94
- package/dist/dts/app-data-schemas/accessors.d.ts +0 -18
- package/dist/dts/app-data-schemas/index.d.ts +0 -23
- package/dist/dts/app-events/accessors.d.ts +0 -20
- package/dist/dts/app-events/api.d.ts +0 -44
- package/dist/dts/app-events/index.d.ts +0 -42
- package/dist/dts/connections/api.d.ts +0 -27
- package/dist/dts/connections/create-or-update-connection.d.ts +0 -15
- package/dist/dts/connections/index.d.ts +0 -3
- package/dist/dts/connections/types.d.ts +0 -50
- package/dist/dts/data-builder/formula-processors.d.ts +0 -13
- package/dist/dts/data-builder/formula-types.d.ts +0 -4
- package/dist/dts/data-builder/formulas/index.d.ts +0 -26
- package/dist/dts/data-collections/types.d.ts +0 -24
- package/dist/dts/data-links/accessors.d.ts +0 -20
- package/dist/dts/data-links/index.d.ts +0 -36
- package/dist/dts/data-schema/data-field.d.ts +0 -14
- package/dist/dts/data-sources/api.d.ts +0 -90
- package/dist/dts/data-sources/types.d.ts +0 -63
- package/dist/dts/errors/error-doc-enum.d.ts +0 -7
- package/dist/dts/external-events/types.d.ts +0 -157
- package/dist/dts/field-mappings/accessors.d.ts +0 -54
- package/dist/dts/field-mappings/api.d.ts +0 -58
- package/dist/dts/field-mappings/index.d.ts +0 -66
- package/dist/dts/field-mappings/types.d.ts +0 -12
- package/dist/dts/flow-runs/index.d.ts +0 -78
- package/dist/dts/flows/api.d.ts +0 -54
- package/dist/dts/flows/index.d.ts +0 -6
- package/dist/dts/flows/types.d.ts +0 -76
- package/dist/dts/integrations/accessors.d.ts +0 -57
- package/dist/dts/integrations/api.d.ts +0 -24
- package/dist/dts/integrations/index.d.ts +0 -3
- package/dist/dts/integrations/types.d.ts +0 -38
- package/dist/dts/scenarios/index.d.ts +0 -2
- package/dist/dts/scenarios/types.d.ts +0 -145
- package/dist/dts/screens/index.d.ts +0 -2
- package/dist/dts/users/accessors.d.ts +0 -10
- package/dist/dts/users/api.d.ts +0 -23
- package/dist/dts/users/index.d.ts +0 -13
- package/dist/dts/{accessors.test.d.ts → accessors/base-accessors.test.d.ts} +0 -0
- package/dist/dts/{connectors/data-locations/utils.test.d.ts → data-builder/data-builder.test.d.ts} +0 -0
- package/dist/dts/{data-builder/formulas → data-schema-utils}/index.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/and.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/and.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/case.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/case.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/concat.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/concat.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/copy.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/copy.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/dataSchemaRef.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/domainFromEmail.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/domainFromEmail.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/eval.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/extractDate.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/extractDate.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/extractTime.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/extractTime.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/findAppRecordId.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/findExternalRecordId.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/first-name.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/first-name.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/firstNotEmpty.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/firstNotEmpty.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/formula.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/formula.test.d.ts +0 -0
- package/dist/dts/{data-builder → formulas}/index.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/iterate.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/iterate.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/jsonata.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/jsonata.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/last-name.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/last-name.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/lookup.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/lookup.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/map.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/map.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/mergeObjects.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/mergeObjects.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/or.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/or.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/plain.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/plain.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/record.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/tpl.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/tpl.test.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/var.d.ts +0 -0
- package/dist/dts/{data-builder/formulas → formulas}/var.test.d.ts +0 -0
- package/dist/dts/{data-builder → locators}/locators.test.d.ts +0 -0
- package/dist/dts/{data-builder/formula-processors.test.d.ts → setupTests.d.ts} +0 -0
- package/dist/dts/{connectors/events → workspace-elements/base/action-instances}/index.d.ts +0 -0
- package/dist/dts/{connectors/global-webhooks → workspace-elements/base/action-run-log-records}/index.d.ts +0 -0
- package/dist/dts/{actions → workspace-elements/base/actions}/action-types.d.ts +0 -0
- package/dist/dts/{data-collections → workspace-elements/base/app-data-schema-instances}/index.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/constants.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/global-webhooks/types.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/openapi.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/operations/handlers.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/operations/index.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/connectors}/operations/types.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/full-scan.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/index.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/create.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/delete.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/find-by-id.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/find.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/list.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/match.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/search.d.ts +0 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/update.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/activities.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/activities.test.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/bills.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/campaign-members.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/campaigns.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/companies.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/contact-lists.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/contacts.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/credit-notes.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/customers.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/deal-products.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/deal-stages.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/deals.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/documents.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/drive-items.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/drives.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/eeocs.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/emails.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/employees.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/files.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/folders.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/invoices.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/job-applications.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/job-candidates.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/job-interviews.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/job-offers.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/jobs.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/journal-entries.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/leads.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/ledger-accounts.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/meetings.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/messages.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/notes.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/orders.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/payments.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/payrolls.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/products.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/projects.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/suppliers.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/tasks.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/tax-rates.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/timeoff-balances.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/timeoff-requests.d.ts +0 -0
- package/dist/dts/{udm → workspace-elements/base/data-collections/udm}/users.d.ts +0 -0
- package/dist/dts/{data-schema → workspace-elements/base/data-collections}/utils.test.d.ts +0 -0
- package/dist/dts/{data-sources → workspace-elements/base/data-sources}/constants.d.ts +0 -0
- package/dist/dts/{field-mappings → workspace-elements/base/field-mappings}/merge/is-object.test.d.ts +0 -0
- package/dist/dts/{field-mappings → workspace-elements/base/field-mappings}/merge/merge-with-formulas.d.ts +0 -0
- package/dist/dts/{field-mappings → workspace-elements/base/field-mappings}/merge/merge-with-formulas.test.d.ts +0 -0
- package/dist/dts/{flows → workspace-elements/base/flow-instances}/schemas.d.ts +39 -39
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/api-request-to-external-app.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/api-request-to-your-app.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/api-trigger.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/app-event-trigger.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/base.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/connector-event-trigger.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/create-data-link.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/create-data-record.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/custom-http-request.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/data-record-created-trigger.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/data-record-deleted-trigger.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/data-record-updated-trigger.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/delete-data-link.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/delete-data-record.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/filter.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/find-data-link.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/find-data-record-by-id.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/find-data-records.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/find-or-create-data-record.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/for-each-v2.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/for-each.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/index.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/integration-specific-operation.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/list-data-records.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/lookup-data-record.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/run-action.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/run-javascript.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/schedule-trigger.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/search-data-records.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/transform-data.d.ts +0 -0
- /package/dist/dts/{flows → workspace-elements/base/flows}/nodes/update-data-record.d.ts +0 -0
- /package/dist/dts/{flows/utils.test.d.ts → workspace-elements/utils/flow-utils.test.d.ts} +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ActionType } from './action-types';
|
|
3
|
+
import { DataSchema } from '../../../data-schema';
|
|
4
|
+
export declare const BaseAction: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
revision: z.ZodString;
|
|
9
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
parentRevision: z.ZodOptional<z.ZodString>;
|
|
12
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
15
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
16
|
+
type: z.ZodNativeEnum<typeof ActionType>;
|
|
17
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
18
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
21
|
+
defaultOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
22
|
+
transformedOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
23
|
+
outputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
24
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
key: string;
|
|
27
|
+
type: ActionType;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
revision: string;
|
|
31
|
+
integrationId?: string | undefined;
|
|
32
|
+
createdAt?: string | undefined;
|
|
33
|
+
updatedAt?: string | undefined;
|
|
34
|
+
archivedAt?: string | undefined;
|
|
35
|
+
parentId?: string | undefined;
|
|
36
|
+
parentRevision?: string | undefined;
|
|
37
|
+
isCustomized?: boolean | undefined;
|
|
38
|
+
inputSchema?: DataSchema | undefined;
|
|
39
|
+
config?: any;
|
|
40
|
+
outputMapping?: any;
|
|
41
|
+
customOutputSchema?: DataSchema | undefined;
|
|
42
|
+
defaultOutputSchema?: DataSchema | undefined;
|
|
43
|
+
transformedOutputSchema?: DataSchema | undefined;
|
|
44
|
+
outputSchema?: DataSchema | undefined;
|
|
45
|
+
dependencies?: any[] | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
key: string;
|
|
48
|
+
type: ActionType;
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
revision: string;
|
|
52
|
+
integrationId?: string | undefined;
|
|
53
|
+
createdAt?: string | undefined;
|
|
54
|
+
updatedAt?: string | undefined;
|
|
55
|
+
archivedAt?: string | undefined;
|
|
56
|
+
parentId?: string | undefined;
|
|
57
|
+
parentRevision?: string | undefined;
|
|
58
|
+
isCustomized?: boolean | undefined;
|
|
59
|
+
inputSchema?: DataSchema | undefined;
|
|
60
|
+
config?: any;
|
|
61
|
+
outputMapping?: any;
|
|
62
|
+
customOutputSchema?: DataSchema | undefined;
|
|
63
|
+
defaultOutputSchema?: DataSchema | undefined;
|
|
64
|
+
transformedOutputSchema?: DataSchema | undefined;
|
|
65
|
+
outputSchema?: DataSchema | undefined;
|
|
66
|
+
dependencies?: any[] | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
export type BaseAction = z.infer<typeof BaseAction>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BaseAppDataSchemaInstance: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
} & {
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
8
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
9
|
+
} & {
|
|
10
|
+
appId: z.ZodString;
|
|
11
|
+
userId: z.ZodString;
|
|
12
|
+
appDataSchemaId: z.ZodString;
|
|
13
|
+
appDataSchemaRevision: z.ZodString;
|
|
14
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
schema: z.ZodOptional<z.ZodAny>;
|
|
16
|
+
error: any;
|
|
17
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
key: string;
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
appId: string;
|
|
24
|
+
appDataSchemaId: string;
|
|
25
|
+
appDataSchemaRevision: string;
|
|
26
|
+
error?: any;
|
|
27
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
28
|
+
errors?: any[] | undefined;
|
|
29
|
+
instanceKey?: string | undefined;
|
|
30
|
+
schema?: any;
|
|
31
|
+
archivedAt?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
key: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
userId: string;
|
|
37
|
+
appId: string;
|
|
38
|
+
appDataSchemaId: string;
|
|
39
|
+
appDataSchemaRevision: string;
|
|
40
|
+
error?: any;
|
|
41
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
42
|
+
errors?: any[] | undefined;
|
|
43
|
+
instanceKey?: string | undefined;
|
|
44
|
+
schema?: any;
|
|
45
|
+
archivedAt?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export type BaseAppDataSchemaInstance = z.infer<typeof BaseAppDataSchemaInstance>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BaseAppDataSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
} & {
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
8
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
9
|
+
} & {
|
|
10
|
+
schema: z.ZodAny;
|
|
11
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
key: string;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
code?: string | undefined;
|
|
19
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
20
|
+
errors?: any[] | undefined;
|
|
21
|
+
schema?: any;
|
|
22
|
+
archivedAt?: string | undefined;
|
|
23
|
+
revision?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
key: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
code?: string | undefined;
|
|
29
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
30
|
+
errors?: any[] | undefined;
|
|
31
|
+
schema?: any;
|
|
32
|
+
archivedAt?: string | undefined;
|
|
33
|
+
revision?: string | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
export type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DataSchema } from '../../../data-schema';
|
|
3
|
+
export declare const BaseAppEventSubscription: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
} & {
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
} & {
|
|
11
|
+
revision: z.ZodString;
|
|
12
|
+
appEventTypeId: z.ZodString;
|
|
13
|
+
userId: z.ZodString;
|
|
14
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
isSubscribed: z.ZodBoolean;
|
|
16
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
17
|
+
webhookUri: z.ZodString;
|
|
18
|
+
subscriptionRequest: z.ZodObject<{
|
|
19
|
+
method: z.ZodOptional<z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>;
|
|
20
|
+
uri: z.ZodAny;
|
|
21
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
22
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
23
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
headers?: Record<string, any> | undefined;
|
|
26
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
27
|
+
body?: any;
|
|
28
|
+
uri?: any;
|
|
29
|
+
query?: Record<string, any> | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
headers?: Record<string, any> | undefined;
|
|
32
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
33
|
+
body?: any;
|
|
34
|
+
uri?: any;
|
|
35
|
+
query?: Record<string, any> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
subscriptionResponse: z.ZodOptional<z.ZodAny>;
|
|
38
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
key: string;
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
userId: string;
|
|
44
|
+
webhookUri: string;
|
|
45
|
+
revision: string;
|
|
46
|
+
appEventTypeId: string;
|
|
47
|
+
isSubscribed: boolean;
|
|
48
|
+
subscriptionRequest: {
|
|
49
|
+
headers?: Record<string, any> | undefined;
|
|
50
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
51
|
+
body?: any;
|
|
52
|
+
uri?: any;
|
|
53
|
+
query?: Record<string, any> | undefined;
|
|
54
|
+
};
|
|
55
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
56
|
+
errors?: any[] | undefined;
|
|
57
|
+
instanceKey?: string | undefined;
|
|
58
|
+
schema?: DataSchema | undefined;
|
|
59
|
+
archivedAt?: string | undefined;
|
|
60
|
+
subscriptionResponse?: any;
|
|
61
|
+
}, {
|
|
62
|
+
key: string;
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
userId: string;
|
|
66
|
+
webhookUri: string;
|
|
67
|
+
revision: string;
|
|
68
|
+
appEventTypeId: string;
|
|
69
|
+
isSubscribed: boolean;
|
|
70
|
+
subscriptionRequest: {
|
|
71
|
+
headers?: Record<string, any> | undefined;
|
|
72
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
73
|
+
body?: any;
|
|
74
|
+
uri?: any;
|
|
75
|
+
query?: Record<string, any> | undefined;
|
|
76
|
+
};
|
|
77
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
78
|
+
errors?: any[] | undefined;
|
|
79
|
+
instanceKey?: string | undefined;
|
|
80
|
+
schema?: DataSchema | undefined;
|
|
81
|
+
archivedAt?: string | undefined;
|
|
82
|
+
subscriptionResponse?: any;
|
|
83
|
+
}>;
|
|
84
|
+
export type BaseAppEventSubscription = z.infer<typeof BaseAppEventSubscription>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DataSchema } from '../../../data-schema';
|
|
3
|
+
export declare const BaseAppEventType: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
} & {
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
} & {
|
|
11
|
+
revision: z.ZodString;
|
|
12
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
subscribeRequest: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
method: z.ZodOptional<z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>;
|
|
15
|
+
uri: z.ZodAny;
|
|
16
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
17
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
18
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
headers?: Record<string, any> | undefined;
|
|
21
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
22
|
+
body?: any;
|
|
23
|
+
uri?: any;
|
|
24
|
+
query?: Record<string, any> | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
headers?: Record<string, any> | undefined;
|
|
27
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
28
|
+
body?: any;
|
|
29
|
+
uri?: any;
|
|
30
|
+
query?: Record<string, any> | undefined;
|
|
31
|
+
}>>;
|
|
32
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
33
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
34
|
+
globalWebhookUri: z.ZodString;
|
|
35
|
+
userIdFormula: z.ZodOptional<z.ZodAny>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
key: string;
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
revision: string;
|
|
41
|
+
globalWebhookUri: string;
|
|
42
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
43
|
+
errors?: any[] | undefined;
|
|
44
|
+
schema?: DataSchema | undefined;
|
|
45
|
+
archivedAt?: string | undefined;
|
|
46
|
+
subscribeRequest?: {
|
|
47
|
+
headers?: Record<string, any> | undefined;
|
|
48
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
49
|
+
body?: any;
|
|
50
|
+
uri?: any;
|
|
51
|
+
query?: Record<string, any> | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
example?: any;
|
|
54
|
+
userIdFormula?: any;
|
|
55
|
+
}, {
|
|
56
|
+
key: string;
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
revision: string;
|
|
60
|
+
globalWebhookUri: string;
|
|
61
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
62
|
+
errors?: any[] | undefined;
|
|
63
|
+
schema?: DataSchema | undefined;
|
|
64
|
+
archivedAt?: string | undefined;
|
|
65
|
+
subscribeRequest?: {
|
|
66
|
+
headers?: Record<string, any> | undefined;
|
|
67
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
68
|
+
body?: any;
|
|
69
|
+
uri?: any;
|
|
70
|
+
query?: Record<string, any> | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
example?: any;
|
|
73
|
+
userIdFormula?: any;
|
|
74
|
+
}>;
|
|
75
|
+
export type BaseAppEventType = z.infer<typeof BaseAppEventType>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WorkspaceElementState } from '../../types';
|
|
3
|
+
import { ConnectorUiSpec, ConnectorSpec } from '../connectors/types';
|
|
4
|
+
export declare const ConnectionRequest: z.ZodObject<{
|
|
5
|
+
path: z.ZodAny;
|
|
6
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>;
|
|
7
|
+
pathParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
headers?: Record<string, string> | undefined;
|
|
13
|
+
method?: "GET" | "POST" | "DELETE" | "PUT" | "PATCH" | undefined;
|
|
14
|
+
data?: any;
|
|
15
|
+
path?: any;
|
|
16
|
+
query?: Record<string, string> | undefined;
|
|
17
|
+
pathParameters?: Record<string, string> | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
headers?: Record<string, string> | undefined;
|
|
20
|
+
method?: "GET" | "POST" | "DELETE" | "PUT" | "PATCH" | undefined;
|
|
21
|
+
data?: any;
|
|
22
|
+
path?: any;
|
|
23
|
+
query?: Record<string, string> | undefined;
|
|
24
|
+
pathParameters?: Record<string, string> | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export type ConnectionRequest = z.infer<typeof ConnectionRequest>;
|
|
27
|
+
export declare const BaseConnection: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
} & {
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
userId: z.ZodString;
|
|
32
|
+
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
error: any;
|
|
34
|
+
integrationId: z.ZodString;
|
|
35
|
+
credentials: z.ZodOptional<z.ZodUnknown>;
|
|
36
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
37
|
+
connectorParameters: z.ZodOptional<z.ZodUnknown>;
|
|
38
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
39
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
40
|
+
createdAt: z.ZodString;
|
|
41
|
+
updatedAt: z.ZodString;
|
|
42
|
+
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
43
|
+
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
44
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
45
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
46
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
userId: string;
|
|
51
|
+
integrationId: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
error?: any;
|
|
55
|
+
state?: WorkspaceElementState | undefined;
|
|
56
|
+
errors?: any[] | undefined;
|
|
57
|
+
accessToken?: string | undefined;
|
|
58
|
+
credentials?: unknown;
|
|
59
|
+
parameters?: unknown;
|
|
60
|
+
connectorParameters?: unknown;
|
|
61
|
+
disconnected?: boolean | undefined;
|
|
62
|
+
refreshToken?: string | undefined;
|
|
63
|
+
lastActiveAt?: string | undefined;
|
|
64
|
+
nextCredentialsRefreshAt?: string | undefined;
|
|
65
|
+
archivedAt?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
userId: string;
|
|
70
|
+
integrationId: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
error?: any;
|
|
74
|
+
state?: WorkspaceElementState | undefined;
|
|
75
|
+
errors?: any[] | undefined;
|
|
76
|
+
accessToken?: string | undefined;
|
|
77
|
+
credentials?: unknown;
|
|
78
|
+
parameters?: unknown;
|
|
79
|
+
connectorParameters?: unknown;
|
|
80
|
+
disconnected?: boolean | undefined;
|
|
81
|
+
refreshToken?: string | undefined;
|
|
82
|
+
lastActiveAt?: string | undefined;
|
|
83
|
+
nextCredentialsRefreshAt?: string | undefined;
|
|
84
|
+
archivedAt?: string | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
export type BaseConnection = z.infer<typeof BaseConnection>;
|
|
87
|
+
export interface ConnectionSpec extends ConnectorSpec {
|
|
88
|
+
}
|
|
89
|
+
export type ConnectionUiSpec = ConnectorUiSpec;
|
|
90
|
+
export declare class ConnectionSpec {
|
|
91
|
+
constructor(opts: ConnectionSpec);
|
|
92
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConnectorSpec } from './types';
|
|
2
|
-
import { DataSchema } from '../data-schema';
|
|
3
1
|
import { ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationType } from './methods';
|
|
2
|
+
import { ConnectorSpec } from './types';
|
|
3
|
+
import { DataSchema } from '../../../data-schema';
|
|
4
4
|
export declare const CONNECTOR_AUTH_TYPES: readonly ["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"];
|
|
5
5
|
export type ConnectorAuthType = (typeof CONNECTOR_AUTH_TYPES)[number];
|
|
6
6
|
export type ConnectorAuthSpec = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSchema } from '
|
|
1
|
+
import { DataSchema } from '../../../../data-schema';
|
|
2
2
|
import { ConnectorMethodImplementation, ConnectorMethodImplementationType } from '../methods';
|
|
3
3
|
export declare enum ConnectorEventImplementationType {
|
|
4
4
|
GlobalWebhook = "global-webhook",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphQLApiMapping } from './graphql-api';
|
|
2
2
|
import { OperationMapping } from './operations';
|
|
3
3
|
import { RestApiMapping } from './rest-api';
|
|
4
|
-
import { DataSchema } from '
|
|
4
|
+
import { DataSchema } from '../../../data-schema';
|
|
5
5
|
export declare enum ConnectorMethodImplementationType {
|
|
6
6
|
mapping = "mapping",
|
|
7
7
|
operationMapping = "operation-mapping",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
import { ConnectorAuth } from './auth';
|
|
3
3
|
import { ConnectorMethodImplementation } from './methods';
|
|
4
4
|
import { ConnectorOperationHandler } from './operations';
|
|
5
5
|
import { ConnectorUdmSpec } from './udm';
|
|
6
|
+
import { DataSchema } from '../../../data-schema';
|
|
6
7
|
export declare const CONNECTOR_CATEGORIES: readonly ["Accounting", "Ads", "Analytics", "ATS", "Communication", "CRM", "Customer Success", "Document Management", "E-Commerce", "E-Signature", "ERP", "File Storage", "HRIS", "Legal", "Marketing Automation", "Payments", "Project Management", "Sales", "Ticketing"];
|
|
7
|
-
export type
|
|
8
|
+
export type BaseConnector = ConnectorSpec & {
|
|
8
9
|
id: string;
|
|
9
10
|
uuid: string;
|
|
10
11
|
key: string;
|
|
@@ -56,9 +57,20 @@ export interface ConnectorSpec {
|
|
|
56
57
|
workspaceId?: string;
|
|
57
58
|
data?: any;
|
|
58
59
|
}
|
|
59
|
-
export
|
|
60
|
+
export declare const MinimalConnector: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
key: z.ZodString;
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
logoUri: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
key: string;
|
|
60
67
|
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
logoUri: string;
|
|
70
|
+
}, {
|
|
61
71
|
key: string;
|
|
72
|
+
id: string;
|
|
62
73
|
name: string;
|
|
63
74
|
logoUri: string;
|
|
64
|
-
}
|
|
75
|
+
}>;
|
|
76
|
+
export type MinimalConnector = z.infer<typeof MinimalConnector>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BaseCustomer: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
internalId: z.ZodString;
|
|
6
|
+
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7
|
+
credentials: z.ZodOptional<z.ZodAny>;
|
|
8
|
+
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
9
|
+
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
isBillable: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
internalId: string;
|
|
15
|
+
credentials?: any;
|
|
16
|
+
fields?: Record<string, any> | undefined;
|
|
17
|
+
lastActiveAt?: string | undefined;
|
|
18
|
+
isTest?: boolean | undefined;
|
|
19
|
+
isBillable?: boolean | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
internalId: string;
|
|
24
|
+
credentials?: any;
|
|
25
|
+
fields?: Record<string, any> | undefined;
|
|
26
|
+
lastActiveAt?: string | undefined;
|
|
27
|
+
isTest?: boolean | undefined;
|
|
28
|
+
isBillable?: boolean | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type BaseCustomer = z.infer<typeof BaseCustomer>;
|
package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/base.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DataSchema } from '../../../../data-schema';
|
|
2
|
+
import { DataCollectionMixin } from '../schemas';
|
|
3
3
|
export interface ConnectorDataCollectionBase {
|
|
4
4
|
type: 'collection' | 'directory';
|
|
5
5
|
key: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSchema } from '
|
|
1
|
+
import { DataSchema } from '../../../../../../../data-schema';
|
|
2
2
|
import { ConnectorDataCollectionMethod } from '../../../methods';
|
|
3
3
|
import { ConnectorDataCollectionEventMethodType } from '../methods';
|
|
4
4
|
export interface ConnectorEventImplementationFields {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSchema } from '
|
|
1
|
+
import { DataSchema } from '../../../../../../../data-schema';
|
|
2
2
|
import { ConnectorDataCollectionMethod } from '../../../methods';
|
|
3
3
|
import { ConnectorDataCollectionEventMethodType } from '../methods';
|
|
4
4
|
export interface CustomPullEventImplementationFields {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataRecord } from '
|
|
1
|
+
import { DataRecord } from '../../../..';
|
|
2
2
|
import { ConnectorDataCollectionMethod } from '../../../methods';
|
|
3
3
|
import { ConnectorDataCollectionEventMethodType } from '../methods';
|
|
4
4
|
export interface PullLatestRecordsEventImplementationFields {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSchema } from '
|
|
1
|
+
import { DataSchema } from '../../../../../../../data-schema';
|
|
2
2
|
import { ConnectorDataCollectionMethod } from '../../../methods';
|
|
3
3
|
import { ConnectorDataCollectionEventMethodType } from '../methods';
|
|
4
4
|
export interface WebhookEventImplementationFields {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConnectorDataCollection } from '..';
|
|
2
|
-
import { DataSchema } from '
|
|
3
|
-
import { ConnectorMethodImplementationType } from '
|
|
2
|
+
import { DataSchema } from '../../../../../../data-schema';
|
|
3
|
+
import { ConnectorMethodImplementationType } from '../../../../connectors/methods';
|
|
4
4
|
import { ConnectorDataCollectionEvent } from '.';
|
|
5
5
|
interface ConnectorDataCollectionEventMethodTypeArgs<ImplementationFields = unknown> {
|
|
6
6
|
event: ConnectorDataCollectionEvent<ImplementationFields>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSchema } from '
|
|
1
|
+
import { DataSchema } from '../../../../../data-schema';
|
|
2
2
|
import { ConnectorDataCollectionBase } from '../base';
|
|
3
3
|
import { ConnectorDataCollectionMethod } from '../methods';
|
|
4
4
|
import { ConnectorDataCollectionEvent } from './events';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ConnectorDataCollection } from '..';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { DataSchema } from '../../../../../../data-schema';
|
|
3
|
+
import { ConnectorMethodImplementationType } from '../../../../connectors/methods';
|
|
4
|
+
import { ConnectorSpec } from '../../../../connectors/types';
|
|
5
|
+
import { DataCollectionSpec } from '../../../schemas';
|
|
6
6
|
import { ConnectorDataCollectionMethod } from '../../methods';
|
|
7
7
|
export interface ConnectorDataCollectionMethodType<ConfigFields = unknown> {
|
|
8
8
|
name?: string;
|
package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/methods.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationType } from '
|
|
2
|
-
import { ApiRequestSpec } from '
|
|
1
|
+
import { ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationType } from '../../connectors/methods';
|
|
2
|
+
import { ApiRequestSpec } from '../schemas';
|
|
3
3
|
export type ConnectorDataCollectionMethod<ConfigFields = unknown, ImplementationFields extends ConnectorMethodImplementation | ConnectorMethodImplementationBase = ConnectorMethodImplementationBase> = {
|
|
4
4
|
apiRequests?: ApiRequestSpec[];
|
|
5
5
|
} & ImplementationFields & ConfigFields;
|