@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,115 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DataSchema } from '../../../data-schema';
|
|
3
|
+
export declare enum FieldMappingDirection {
|
|
4
|
+
IMPORT = "import",
|
|
5
|
+
EXPORT = "export",
|
|
6
|
+
BOTH = "both"
|
|
7
|
+
}
|
|
8
|
+
export declare const BaseFieldMapping: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
} & {
|
|
12
|
+
key: z.ZodString;
|
|
13
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
14
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
15
|
+
} & {
|
|
16
|
+
revision: z.ZodString;
|
|
17
|
+
publishedRevision: z.ZodOptional<z.ZodString>;
|
|
18
|
+
universalFieldMappingId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
|
|
20
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dataSourceId: z.ZodString;
|
|
22
|
+
dataSourceKey: z.ZodString;
|
|
23
|
+
appSchema: z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>;
|
|
24
|
+
direction: z.ZodNativeEnum<typeof FieldMappingDirection>;
|
|
25
|
+
defaultImportValue: z.ZodOptional<z.ZodAny>;
|
|
26
|
+
defaultExportValue: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
importValue: z.ZodOptional<z.ZodAny>;
|
|
28
|
+
exportValue: z.ZodOptional<z.ZodAny>;
|
|
29
|
+
frozenImportFields: z.ZodOptional<z.ZodAny>;
|
|
30
|
+
frozenExportFields: z.ZodOptional<z.ZodAny>;
|
|
31
|
+
frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
|
|
32
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
33
|
+
customized: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
key: string;
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
revision: string;
|
|
39
|
+
dataSourceId: string;
|
|
40
|
+
dataSourceKey: string;
|
|
41
|
+
appSchema: DataSchema;
|
|
42
|
+
direction: FieldMappingDirection;
|
|
43
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
44
|
+
errors?: any[] | undefined;
|
|
45
|
+
integrationId?: string | undefined;
|
|
46
|
+
archivedAt?: string | undefined;
|
|
47
|
+
publishedRevision?: string | undefined;
|
|
48
|
+
universalFieldMappingId?: string | undefined;
|
|
49
|
+
universalFieldMappingRevision?: string | undefined;
|
|
50
|
+
defaultImportValue?: any;
|
|
51
|
+
defaultExportValue?: any;
|
|
52
|
+
importValue?: any;
|
|
53
|
+
exportValue?: any;
|
|
54
|
+
frozenImportFields?: any;
|
|
55
|
+
frozenExportFields?: any;
|
|
56
|
+
frozenUnifiedExportFields?: any;
|
|
57
|
+
customized?: boolean | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
key: string;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
revision: string;
|
|
63
|
+
dataSourceId: string;
|
|
64
|
+
dataSourceKey: string;
|
|
65
|
+
appSchema: DataSchema;
|
|
66
|
+
direction: FieldMappingDirection;
|
|
67
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
68
|
+
errors?: any[] | undefined;
|
|
69
|
+
integrationId?: string | undefined;
|
|
70
|
+
archivedAt?: string | undefined;
|
|
71
|
+
publishedRevision?: string | undefined;
|
|
72
|
+
universalFieldMappingId?: string | undefined;
|
|
73
|
+
universalFieldMappingRevision?: string | undefined;
|
|
74
|
+
defaultImportValue?: any;
|
|
75
|
+
defaultExportValue?: any;
|
|
76
|
+
importValue?: any;
|
|
77
|
+
exportValue?: any;
|
|
78
|
+
frozenImportFields?: any;
|
|
79
|
+
frozenExportFields?: any;
|
|
80
|
+
frozenUnifiedExportFields?: any;
|
|
81
|
+
customized?: boolean | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
export type BaseFieldMapping = z.infer<typeof BaseFieldMapping>;
|
|
84
|
+
export declare const FieldMappingUnitConfig: z.ZodObject<{
|
|
85
|
+
key: z.ZodOptional<z.ZodString>;
|
|
86
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
87
|
+
includeRawFields: z.ZodOptional<z.ZodAny>;
|
|
88
|
+
importValue: z.ZodOptional<z.ZodAny>;
|
|
89
|
+
exportValue: z.ZodOptional<z.ZodAny>;
|
|
90
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
91
|
+
defaultUnifiedValue: z.ZodOptional<z.ZodAny>;
|
|
92
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
93
|
+
appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
key?: string | undefined;
|
|
96
|
+
default?: any;
|
|
97
|
+
input?: any;
|
|
98
|
+
appSchema?: DataSchema | undefined;
|
|
99
|
+
importValue?: any;
|
|
100
|
+
exportValue?: any;
|
|
101
|
+
includeRawFields?: any;
|
|
102
|
+
defaultUnifiedValue?: any;
|
|
103
|
+
defaultValue?: any;
|
|
104
|
+
}, {
|
|
105
|
+
key?: string | undefined;
|
|
106
|
+
default?: any;
|
|
107
|
+
input?: any;
|
|
108
|
+
appSchema?: DataSchema | undefined;
|
|
109
|
+
importValue?: any;
|
|
110
|
+
exportValue?: any;
|
|
111
|
+
includeRawFields?: any;
|
|
112
|
+
defaultUnifiedValue?: any;
|
|
113
|
+
defaultValue?: any;
|
|
114
|
+
}>;
|
|
115
|
+
export type FieldMappingUnitConfig = z.infer<typeof FieldMappingUnitConfig>;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DataSchema } from '../../../data-schema';
|
|
3
|
+
import { WorkspaceElementState } from '../../types';
|
|
4
|
+
export declare const BaseFlowInstance: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
9
|
+
} & {
|
|
10
|
+
userId: z.ZodString;
|
|
11
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
integrationId: z.ZodString;
|
|
15
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
16
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
17
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
18
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
19
|
+
enabled: z.ZodBoolean;
|
|
20
|
+
createdAt: z.ZodString;
|
|
21
|
+
updatedAt: z.ZodString;
|
|
22
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
23
|
+
outdated: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
customized: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
nodes: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
name?: boolean | undefined;
|
|
29
|
+
nodes?: boolean | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
name?: boolean | undefined;
|
|
32
|
+
nodes?: boolean | undefined;
|
|
33
|
+
}>>;
|
|
34
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
key: string;
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
userId: string;
|
|
40
|
+
integrationId: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
state?: WorkspaceElementState | undefined;
|
|
45
|
+
errors?: any[] | undefined;
|
|
46
|
+
instanceKey?: string | undefined;
|
|
47
|
+
connectionId?: string | undefined;
|
|
48
|
+
parameters?: any;
|
|
49
|
+
parametersSchema?: DataSchema | undefined;
|
|
50
|
+
customized?: {
|
|
51
|
+
name?: boolean | undefined;
|
|
52
|
+
nodes?: boolean | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
dependencies?: any[] | undefined;
|
|
55
|
+
universalFlowId?: string | undefined;
|
|
56
|
+
nodes?: Record<string, any> | undefined;
|
|
57
|
+
flowId?: string | undefined;
|
|
58
|
+
outdated?: boolean | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
key: string;
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
userId: string;
|
|
64
|
+
integrationId: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
state?: WorkspaceElementState | undefined;
|
|
69
|
+
errors?: any[] | undefined;
|
|
70
|
+
instanceKey?: string | undefined;
|
|
71
|
+
connectionId?: string | undefined;
|
|
72
|
+
parameters?: any;
|
|
73
|
+
parametersSchema?: DataSchema | undefined;
|
|
74
|
+
customized?: {
|
|
75
|
+
name?: boolean | undefined;
|
|
76
|
+
nodes?: boolean | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
dependencies?: any[] | undefined;
|
|
79
|
+
universalFlowId?: string | undefined;
|
|
80
|
+
nodes?: Record<string, any> | undefined;
|
|
81
|
+
flowId?: string | undefined;
|
|
82
|
+
outdated?: boolean | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
export type BaseFlowInstance = z.infer<typeof BaseFlowInstance>;
|
|
85
|
+
export declare enum FlowInstanceNodeState {
|
|
86
|
+
SETUP_FAILED = "SETUP_FAILED",
|
|
87
|
+
READY = "READY"
|
|
88
|
+
}
|
|
89
|
+
export declare const FlowInstanceNode: z.ZodObject<{
|
|
90
|
+
type: z.ZodOptional<z.ZodString>;
|
|
91
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
name: z.ZodOptional<z.ZodString>;
|
|
93
|
+
description: z.ZodOptional<z.ZodString>;
|
|
94
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
95
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
|
|
97
|
+
ui: z.ZodOptional<z.ZodAny>;
|
|
98
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
99
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
100
|
+
outputExample: z.ZodOptional<z.ZodAny>;
|
|
101
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
key: z.ZodOptional<z.ZodString>;
|
|
103
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
104
|
+
name: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
key?: string | undefined;
|
|
107
|
+
filter?: any;
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
key?: string | undefined;
|
|
111
|
+
filter?: any;
|
|
112
|
+
name?: string | undefined;
|
|
113
|
+
}>, "many">>;
|
|
114
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
} & {
|
|
116
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof FlowInstanceNodeState>>;
|
|
117
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
118
|
+
userConfig: z.ZodOptional<z.ZodAny>;
|
|
119
|
+
testInput: z.ZodOptional<z.ZodAny>;
|
|
120
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
concurrency?: number | undefined;
|
|
123
|
+
type?: string | undefined;
|
|
124
|
+
name?: string | undefined;
|
|
125
|
+
state?: FlowInstanceNodeState | undefined;
|
|
126
|
+
errors?: any[] | undefined;
|
|
127
|
+
description?: string | undefined;
|
|
128
|
+
isCustomized?: boolean | undefined;
|
|
129
|
+
inputSchema?: any;
|
|
130
|
+
config?: any;
|
|
131
|
+
outputSchema?: any;
|
|
132
|
+
dependencies?: any[] | undefined;
|
|
133
|
+
version?: number | undefined;
|
|
134
|
+
onError?: "stop" | "continue" | undefined;
|
|
135
|
+
ui?: any;
|
|
136
|
+
outputExample?: any;
|
|
137
|
+
links?: {
|
|
138
|
+
key?: string | undefined;
|
|
139
|
+
filter?: any;
|
|
140
|
+
name?: string | undefined;
|
|
141
|
+
}[] | undefined;
|
|
142
|
+
userConfig?: any;
|
|
143
|
+
testInput?: any;
|
|
144
|
+
}, {
|
|
145
|
+
concurrency?: number | undefined;
|
|
146
|
+
type?: string | undefined;
|
|
147
|
+
name?: string | undefined;
|
|
148
|
+
state?: FlowInstanceNodeState | undefined;
|
|
149
|
+
errors?: any[] | undefined;
|
|
150
|
+
description?: string | undefined;
|
|
151
|
+
isCustomized?: boolean | undefined;
|
|
152
|
+
inputSchema?: any;
|
|
153
|
+
config?: any;
|
|
154
|
+
outputSchema?: any;
|
|
155
|
+
dependencies?: any[] | undefined;
|
|
156
|
+
version?: number | undefined;
|
|
157
|
+
onError?: "stop" | "continue" | undefined;
|
|
158
|
+
ui?: any;
|
|
159
|
+
outputExample?: any;
|
|
160
|
+
links?: {
|
|
161
|
+
key?: string | undefined;
|
|
162
|
+
filter?: any;
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
userConfig?: any;
|
|
166
|
+
testInput?: any;
|
|
167
|
+
}>;
|
|
168
|
+
export type FlowInstanceNode = z.infer<typeof FlowInstanceNode>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ErrorData } from '
|
|
2
|
+
import { ErrorData } from '../../../errors';
|
|
3
3
|
export declare enum FlowNodeRunStatus {
|
|
4
4
|
COMPLETED = "completed",
|
|
5
5
|
FAILED = "failed",
|
|
@@ -137,6 +137,7 @@ export declare const FlowNodeRunResultSchema: z.ZodObject<{
|
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
logs: any[];
|
|
139
139
|
status: FlowNodeRunStatus;
|
|
140
|
+
errors: any[];
|
|
140
141
|
outputs: {
|
|
141
142
|
data: string;
|
|
142
143
|
id: string;
|
|
@@ -145,10 +146,10 @@ export declare const FlowNodeRunResultSchema: z.ZodObject<{
|
|
|
145
146
|
runId: string;
|
|
146
147
|
}[];
|
|
147
148
|
}[];
|
|
148
|
-
errors: any[];
|
|
149
149
|
}, {
|
|
150
150
|
logs: any[];
|
|
151
151
|
status: FlowNodeRunStatus;
|
|
152
|
+
errors: any[];
|
|
152
153
|
outputs: {
|
|
153
154
|
data: string;
|
|
154
155
|
id: string;
|
|
@@ -157,7 +158,6 @@ export declare const FlowNodeRunResultSchema: z.ZodObject<{
|
|
|
157
158
|
runId: string;
|
|
158
159
|
}[];
|
|
159
160
|
}[];
|
|
160
|
-
errors: any[];
|
|
161
161
|
}>;
|
|
162
162
|
export interface FlowNodeRunResult extends z.infer<typeof FlowNodeRunResultSchema> {
|
|
163
163
|
}
|
|
@@ -213,11 +213,7 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
213
213
|
logs: any[];
|
|
214
214
|
status: FlowNodeRunStatus;
|
|
215
215
|
id: string;
|
|
216
|
-
|
|
217
|
-
nodeKey: string;
|
|
218
|
-
runId: string;
|
|
219
|
-
outputId: string;
|
|
220
|
-
}[];
|
|
216
|
+
errors: any[];
|
|
221
217
|
outputs: {
|
|
222
218
|
data: string;
|
|
223
219
|
id: string;
|
|
@@ -226,17 +222,17 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
226
222
|
runId: string;
|
|
227
223
|
}[];
|
|
228
224
|
}[];
|
|
229
|
-
errors: any[];
|
|
230
|
-
input?: any;
|
|
231
|
-
}, {
|
|
232
|
-
logs: any[];
|
|
233
|
-
status: FlowNodeRunStatus;
|
|
234
|
-
id: string;
|
|
235
225
|
upstreamRuns: {
|
|
236
226
|
nodeKey: string;
|
|
237
227
|
runId: string;
|
|
238
228
|
outputId: string;
|
|
239
229
|
}[];
|
|
230
|
+
input?: any;
|
|
231
|
+
}, {
|
|
232
|
+
logs: any[];
|
|
233
|
+
status: FlowNodeRunStatus;
|
|
234
|
+
id: string;
|
|
235
|
+
errors: any[];
|
|
240
236
|
outputs: {
|
|
241
237
|
data: string;
|
|
242
238
|
id: string;
|
|
@@ -245,7 +241,11 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
245
241
|
runId: string;
|
|
246
242
|
}[];
|
|
247
243
|
}[];
|
|
248
|
-
|
|
244
|
+
upstreamRuns: {
|
|
245
|
+
nodeKey: string;
|
|
246
|
+
runId: string;
|
|
247
|
+
outputId: string;
|
|
248
|
+
}[];
|
|
249
249
|
input?: any;
|
|
250
250
|
}>;
|
|
251
251
|
export interface FlowNodeRunRecord extends z.infer<typeof FlowNodeRunRecordSchema> {
|
|
@@ -337,11 +337,7 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
337
337
|
logs: any[];
|
|
338
338
|
status: FlowNodeRunStatus;
|
|
339
339
|
id: string;
|
|
340
|
-
|
|
341
|
-
nodeKey: string;
|
|
342
|
-
runId: string;
|
|
343
|
-
outputId: string;
|
|
344
|
-
}[];
|
|
340
|
+
errors: any[];
|
|
345
341
|
outputs: {
|
|
346
342
|
id: string;
|
|
347
343
|
downstreamRuns: {
|
|
@@ -349,17 +345,17 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
349
345
|
runId: string;
|
|
350
346
|
}[];
|
|
351
347
|
}[];
|
|
352
|
-
errors: any[];
|
|
353
|
-
input?: any;
|
|
354
|
-
}, {
|
|
355
|
-
logs: any[];
|
|
356
|
-
status: FlowNodeRunStatus;
|
|
357
|
-
id: string;
|
|
358
348
|
upstreamRuns: {
|
|
359
349
|
nodeKey: string;
|
|
360
350
|
runId: string;
|
|
361
351
|
outputId: string;
|
|
362
352
|
}[];
|
|
353
|
+
input?: any;
|
|
354
|
+
}, {
|
|
355
|
+
logs: any[];
|
|
356
|
+
status: FlowNodeRunStatus;
|
|
357
|
+
id: string;
|
|
358
|
+
errors: any[];
|
|
363
359
|
outputs: {
|
|
364
360
|
id: string;
|
|
365
361
|
downstreamRuns: {
|
|
@@ -367,7 +363,11 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
367
363
|
runId: string;
|
|
368
364
|
}[];
|
|
369
365
|
}[];
|
|
370
|
-
|
|
366
|
+
upstreamRuns: {
|
|
367
|
+
nodeKey: string;
|
|
368
|
+
runId: string;
|
|
369
|
+
outputId: string;
|
|
370
|
+
}[];
|
|
371
371
|
input?: any;
|
|
372
372
|
}>;
|
|
373
373
|
export interface FlowNodeRunRecordWithoutOutputsData extends z.infer<typeof FlowNodeRunRecordWithoutOutputsDataSchema> {
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FlowRunState, FlowRunLaunchedByTrigger } from '../../api/flow-runs-api';
|
|
3
|
+
export declare enum FlowRunNodeState {
|
|
4
|
+
RUNNING = "running",
|
|
5
|
+
COMPLETED = "completed",
|
|
6
|
+
STOPPED = "stopped",
|
|
7
|
+
FAILED = "failed"
|
|
8
|
+
}
|
|
9
|
+
export declare const FlowRunLaunchedBy: z.ZodObject<{
|
|
10
|
+
type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
|
|
11
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
type: FlowRunLaunchedByTrigger;
|
|
14
|
+
ids?: string[] | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
type: FlowRunLaunchedByTrigger;
|
|
17
|
+
ids?: string[] | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type FlowRunLaunchedBy = z.infer<typeof FlowRunLaunchedBy>;
|
|
20
|
+
export declare const FlowRunNode: z.ZodObject<{
|
|
21
|
+
state: z.ZodNativeEnum<typeof FlowRunNodeState>;
|
|
22
|
+
runs: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
erroredRuns: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
outputs: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
state: FlowRunNodeState;
|
|
27
|
+
runs?: number | undefined;
|
|
28
|
+
erroredRuns?: number | undefined;
|
|
29
|
+
outputs?: number | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
state: FlowRunNodeState;
|
|
32
|
+
runs?: number | undefined;
|
|
33
|
+
erroredRuns?: number | undefined;
|
|
34
|
+
outputs?: number | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
export type FlowRunNode = z.infer<typeof FlowRunNode>;
|
|
37
|
+
export declare const BaseFlowRun: z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
name: z.ZodOptional<z.ZodString>;
|
|
40
|
+
flowInstanceId: z.ZodString;
|
|
41
|
+
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
43
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
startNodeKey: z.ZodString;
|
|
45
|
+
userId: z.ZodString;
|
|
46
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
47
|
+
state: z.ZodNativeEnum<typeof FlowRunState>;
|
|
48
|
+
startTime: z.ZodString;
|
|
49
|
+
endTime: z.ZodOptional<z.ZodString>;
|
|
50
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
51
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
52
|
+
state: z.ZodNativeEnum<typeof FlowRunNodeState>;
|
|
53
|
+
runs: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
erroredRuns: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
outputs: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
state: FlowRunNodeState;
|
|
58
|
+
runs?: number | undefined;
|
|
59
|
+
erroredRuns?: number | undefined;
|
|
60
|
+
outputs?: number | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
state: FlowRunNodeState;
|
|
63
|
+
runs?: number | undefined;
|
|
64
|
+
erroredRuns?: number | undefined;
|
|
65
|
+
outputs?: number | undefined;
|
|
66
|
+
}>>>;
|
|
67
|
+
launchedBy: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
|
|
69
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
type: FlowRunLaunchedByTrigger;
|
|
72
|
+
ids?: string[] | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
type: FlowRunLaunchedByTrigger;
|
|
75
|
+
ids?: string[] | undefined;
|
|
76
|
+
}>>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
id: string;
|
|
79
|
+
state: FlowRunState;
|
|
80
|
+
userId: string;
|
|
81
|
+
startTime: string;
|
|
82
|
+
flowInstanceId: string;
|
|
83
|
+
startNodeKey: string;
|
|
84
|
+
name?: string | undefined;
|
|
85
|
+
errors?: any[] | undefined;
|
|
86
|
+
connectionId?: string | undefined;
|
|
87
|
+
integrationId?: string | undefined;
|
|
88
|
+
endTime?: string | undefined;
|
|
89
|
+
input?: any;
|
|
90
|
+
universalFlowId?: string | undefined;
|
|
91
|
+
nodes?: Record<string, {
|
|
92
|
+
state: FlowRunNodeState;
|
|
93
|
+
runs?: number | undefined;
|
|
94
|
+
erroredRuns?: number | undefined;
|
|
95
|
+
outputs?: number | undefined;
|
|
96
|
+
}> | undefined;
|
|
97
|
+
launchedBy?: {
|
|
98
|
+
type: FlowRunLaunchedByTrigger;
|
|
99
|
+
ids?: string[] | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
id: string;
|
|
103
|
+
state: FlowRunState;
|
|
104
|
+
userId: string;
|
|
105
|
+
startTime: string;
|
|
106
|
+
flowInstanceId: string;
|
|
107
|
+
startNodeKey: string;
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
errors?: any[] | undefined;
|
|
110
|
+
connectionId?: string | undefined;
|
|
111
|
+
integrationId?: string | undefined;
|
|
112
|
+
endTime?: string | undefined;
|
|
113
|
+
input?: any;
|
|
114
|
+
universalFlowId?: string | undefined;
|
|
115
|
+
nodes?: Record<string, {
|
|
116
|
+
state: FlowRunNodeState;
|
|
117
|
+
runs?: number | undefined;
|
|
118
|
+
erroredRuns?: number | undefined;
|
|
119
|
+
outputs?: number | undefined;
|
|
120
|
+
}> | undefined;
|
|
121
|
+
launchedBy?: {
|
|
122
|
+
type: FlowRunLaunchedByTrigger;
|
|
123
|
+
ids?: string[] | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
export type BaseFlowRun = z.infer<typeof BaseFlowRun>;
|