@membranehq/sdk 0.2.1 → 0.4.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/LICENSE +1 -1
- package/README.md +5 -8
- package/dist/bundle.d.ts +2734 -1678
- package/dist/bundle.js +9242 -18948
- 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} +22 -18
- 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/{integrations/accessors.d.ts → accessors/integrations-accessors.d.ts} +12 -14
- 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 +5 -5
- 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 +2 -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 +1 -2
- package/dist/dts/data-schema/schemas.d.ts +4 -0
- package/dist/dts/data-schema/types.d.ts +1 -1
- package/dist/dts/{data-schema/utils.d.ts → data-schema-utils/index.d.ts} +3 -6
- package/dist/dts/error-tools/index.d.ts +3 -0
- package/dist/dts/errors/index.d.ts +6 -20
- 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/index.d.ts +5 -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/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/{actions/types.d.ts → workspace-elements/api/actions-api.d.ts} +12 -40
- 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 +49 -0
- package/dist/dts/{users/api.d.ts → workspace-elements/api/customers-api.d.ts} +5 -1
- 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/{data-sources/api.d.ts → workspace-elements/api/data-sources-api.d.ts} +14 -5
- 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 +73 -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 +39 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +50 -0
- package/dist/dts/{flows/api.d.ts → workspace-elements/api/flows-api.d.ts} +21 -5
- package/dist/dts/workspace-elements/api/index.d.ts +25 -0
- package/dist/dts/{integrations/api.d.ts → workspace-elements/api/integrations-api.d.ts} +10 -3
- package/dist/dts/{scenarios/types.d.ts → workspace-elements/api/scenarios-api.d.ts} +24 -46
- package/dist/dts/{screens/types.d.ts → workspace-elements/api/screens-api.d.ts} +4 -6
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +30 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +19 -0
- package/dist/dts/{actions → workspace-elements/base/actions}/index.d.ts +0 -1
- package/dist/dts/workspace-elements/base/actions/types.d.ts +25 -0
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +12 -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 +7 -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 +15 -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 +12 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +1 -0
- package/dist/dts/{connections → workspace-elements/base/connections}/types.d.ts +8 -24
- package/dist/dts/{connectors → workspace-elements/base/connectors}/auth.d.ts +8 -5
- 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 +3 -14
- package/dist/dts/{connectors → workspace-elements/base/connectors}/udm.d.ts +1 -1
- package/dist/dts/{users → workspace-elements/base/customers}/index.d.ts +1 -4
- package/dist/dts/workspace-elements/base/data-collections/data-locations/base.d.ts +10 -0
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/connector-event.d.ts +3 -3
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/custom-pull.d.ts +3 -3
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/pull-latest-records.d.ts +3 -3
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/events/implementation-types/webhook.d.ts +3 -3
- 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 +25 -25
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/collections/methods/base.d.ts +6 -6
- package/dist/dts/{connectors → workspace-elements/base/data-collections}/data-locations/index.d.ts +0 -3
- package/dist/dts/workspace-elements/base/data-collections/data-locations/methods.d.ts +6 -0
- 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/workspace-elements/base/data-collections/schemas.d.ts +1829 -0
- 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 +6 -3
- 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 +20 -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 +9 -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 +25 -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 +27 -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 +18 -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 +21 -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 +42 -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 +17 -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 +27 -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 +38 -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 +37 -0
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +374 -0
- package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +31 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/flows/types.d.ts +33 -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/{integrations → workspace-elements/base/integrations}/types.d.ts +5 -11
- package/dist/dts/workspace-elements/base/scenarios/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +27 -0
- package/dist/dts/workspace-elements/base/screens/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/screens/types.d.ts +7 -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 +5215 -3171
- package/dist/index.js +10471 -10327
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +5215 -3171
- package/dist/index.module.mjs +10418 -10316
- package/dist/index.module.mjs.map +1 -1
- package/package.json +9 -4
- package/dist/dts/actions/accessors.d.ts +0 -49
- 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/connectors/data-locations/base.d.ts +0 -10
- package/dist/dts/connectors/data-locations/directories/index.d.ts +0 -17
- package/dist/dts/connectors/data-locations/directories/methods/base.d.ts +0 -18
- package/dist/dts/connectors/data-locations/directories/methods/list.d.ts +0 -2
- package/dist/dts/connectors/data-locations/methods.d.ts +0 -6
- package/dist/dts/connectors/data-locations/types.d.ts +0 -258
- 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/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/flow-node-runs.d.ts +0 -42
- package/dist/dts/flow-runs/index.d.ts +0 -78
- package/dist/dts/flows/index.d.ts +0 -6
- package/dist/dts/flows/types.d.ts +0 -76
- package/dist/dts/integrations/index.d.ts +0 -3
- package/dist/dts/scenarios/index.d.ts +0 -2
- package/dist/dts/screens/index.d.ts +0 -2
- package/dist/dts/users/accessors.d.ts +0 -10
- 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 +18 -18
- /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,374 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ErrorData } from '../../../errors';
|
|
3
|
+
export declare enum FlowNodeRunStatus {
|
|
4
|
+
COMPLETED = "completed",
|
|
5
|
+
FAILED = "failed",
|
|
6
|
+
SKIPPED = "skipped"
|
|
7
|
+
}
|
|
8
|
+
export interface FlowNodeHandlerRunResponse {
|
|
9
|
+
status?: FlowNodeRunStatus;
|
|
10
|
+
output?: any;
|
|
11
|
+
errors?: ErrorData[];
|
|
12
|
+
}
|
|
13
|
+
export declare const UpstreamFlowNodeRunSchema: z.ZodObject<{
|
|
14
|
+
nodeKey: z.ZodString;
|
|
15
|
+
runId: z.ZodString;
|
|
16
|
+
outputId: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
nodeKey: string;
|
|
19
|
+
runId: string;
|
|
20
|
+
outputId: string;
|
|
21
|
+
}, {
|
|
22
|
+
nodeKey: string;
|
|
23
|
+
runId: string;
|
|
24
|
+
outputId: string;
|
|
25
|
+
}>;
|
|
26
|
+
export interface UpstreamFlowNodeRun extends z.infer<typeof UpstreamFlowNodeRunSchema> {
|
|
27
|
+
}
|
|
28
|
+
export declare const DownstreamFlowNodeRunSchema: z.ZodObject<{
|
|
29
|
+
runId: z.ZodString;
|
|
30
|
+
nodeKey: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
nodeKey: string;
|
|
33
|
+
runId: string;
|
|
34
|
+
}, {
|
|
35
|
+
nodeKey: string;
|
|
36
|
+
runId: string;
|
|
37
|
+
}>;
|
|
38
|
+
export interface DownstreamFlowNodeRun extends z.infer<typeof DownstreamFlowNodeRunSchema> {
|
|
39
|
+
}
|
|
40
|
+
export declare const FlowNodeRunParametersSchema: z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
upstreamRuns: z.ZodArray<z.ZodObject<{
|
|
43
|
+
nodeKey: z.ZodString;
|
|
44
|
+
runId: z.ZodString;
|
|
45
|
+
outputId: z.ZodString;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
nodeKey: string;
|
|
48
|
+
runId: string;
|
|
49
|
+
outputId: string;
|
|
50
|
+
}, {
|
|
51
|
+
nodeKey: string;
|
|
52
|
+
runId: string;
|
|
53
|
+
outputId: string;
|
|
54
|
+
}>, "many">;
|
|
55
|
+
input: z.ZodAny;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
id: string;
|
|
58
|
+
upstreamRuns: {
|
|
59
|
+
nodeKey: string;
|
|
60
|
+
runId: string;
|
|
61
|
+
outputId: string;
|
|
62
|
+
}[];
|
|
63
|
+
input?: any;
|
|
64
|
+
}, {
|
|
65
|
+
id: string;
|
|
66
|
+
upstreamRuns: {
|
|
67
|
+
nodeKey: string;
|
|
68
|
+
runId: string;
|
|
69
|
+
outputId: string;
|
|
70
|
+
}[];
|
|
71
|
+
input?: any;
|
|
72
|
+
}>;
|
|
73
|
+
export interface FlowNodeRunParameters extends z.infer<typeof FlowNodeRunParametersSchema> {
|
|
74
|
+
}
|
|
75
|
+
export declare const FlowNodeRunOutputSchema: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
data: z.ZodString;
|
|
78
|
+
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
79
|
+
runId: z.ZodString;
|
|
80
|
+
nodeKey: z.ZodString;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
nodeKey: string;
|
|
83
|
+
runId: string;
|
|
84
|
+
}, {
|
|
85
|
+
nodeKey: string;
|
|
86
|
+
runId: string;
|
|
87
|
+
}>, "many">;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
data: string;
|
|
90
|
+
id: string;
|
|
91
|
+
downstreamRuns: {
|
|
92
|
+
nodeKey: string;
|
|
93
|
+
runId: string;
|
|
94
|
+
}[];
|
|
95
|
+
}, {
|
|
96
|
+
data: string;
|
|
97
|
+
id: string;
|
|
98
|
+
downstreamRuns: {
|
|
99
|
+
nodeKey: string;
|
|
100
|
+
runId: string;
|
|
101
|
+
}[];
|
|
102
|
+
}>;
|
|
103
|
+
export interface FlowNodeRunOutput extends z.infer<typeof FlowNodeRunOutputSchema> {
|
|
104
|
+
}
|
|
105
|
+
export declare const FlowNodeRunResultSchema: z.ZodObject<{
|
|
106
|
+
status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
|
|
107
|
+
logs: z.ZodArray<z.ZodAny, "many">;
|
|
108
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
data: z.ZodString;
|
|
111
|
+
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
112
|
+
runId: z.ZodString;
|
|
113
|
+
nodeKey: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
nodeKey: string;
|
|
116
|
+
runId: string;
|
|
117
|
+
}, {
|
|
118
|
+
nodeKey: string;
|
|
119
|
+
runId: string;
|
|
120
|
+
}>, "many">;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
data: string;
|
|
123
|
+
id: string;
|
|
124
|
+
downstreamRuns: {
|
|
125
|
+
nodeKey: string;
|
|
126
|
+
runId: string;
|
|
127
|
+
}[];
|
|
128
|
+
}, {
|
|
129
|
+
data: string;
|
|
130
|
+
id: string;
|
|
131
|
+
downstreamRuns: {
|
|
132
|
+
nodeKey: string;
|
|
133
|
+
runId: string;
|
|
134
|
+
}[];
|
|
135
|
+
}>, "many">;
|
|
136
|
+
errors: z.ZodArray<any, "many">;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
logs: any[];
|
|
139
|
+
status: FlowNodeRunStatus;
|
|
140
|
+
errors: any[];
|
|
141
|
+
outputs: {
|
|
142
|
+
data: string;
|
|
143
|
+
id: string;
|
|
144
|
+
downstreamRuns: {
|
|
145
|
+
nodeKey: string;
|
|
146
|
+
runId: string;
|
|
147
|
+
}[];
|
|
148
|
+
}[];
|
|
149
|
+
}, {
|
|
150
|
+
logs: any[];
|
|
151
|
+
status: FlowNodeRunStatus;
|
|
152
|
+
errors: any[];
|
|
153
|
+
outputs: {
|
|
154
|
+
data: string;
|
|
155
|
+
id: string;
|
|
156
|
+
downstreamRuns: {
|
|
157
|
+
nodeKey: string;
|
|
158
|
+
runId: string;
|
|
159
|
+
}[];
|
|
160
|
+
}[];
|
|
161
|
+
}>;
|
|
162
|
+
export interface FlowNodeRunResult extends z.infer<typeof FlowNodeRunResultSchema> {
|
|
163
|
+
}
|
|
164
|
+
export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
upstreamRuns: z.ZodArray<z.ZodObject<{
|
|
167
|
+
nodeKey: z.ZodString;
|
|
168
|
+
runId: z.ZodString;
|
|
169
|
+
outputId: z.ZodString;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
nodeKey: string;
|
|
172
|
+
runId: string;
|
|
173
|
+
outputId: string;
|
|
174
|
+
}, {
|
|
175
|
+
nodeKey: string;
|
|
176
|
+
runId: string;
|
|
177
|
+
outputId: string;
|
|
178
|
+
}>, "many">;
|
|
179
|
+
input: z.ZodAny;
|
|
180
|
+
} & {
|
|
181
|
+
status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
|
|
182
|
+
logs: z.ZodArray<z.ZodAny, "many">;
|
|
183
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
data: z.ZodString;
|
|
186
|
+
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
187
|
+
runId: z.ZodString;
|
|
188
|
+
nodeKey: z.ZodString;
|
|
189
|
+
}, "strip", z.ZodTypeAny, {
|
|
190
|
+
nodeKey: string;
|
|
191
|
+
runId: string;
|
|
192
|
+
}, {
|
|
193
|
+
nodeKey: string;
|
|
194
|
+
runId: string;
|
|
195
|
+
}>, "many">;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
data: string;
|
|
198
|
+
id: string;
|
|
199
|
+
downstreamRuns: {
|
|
200
|
+
nodeKey: string;
|
|
201
|
+
runId: string;
|
|
202
|
+
}[];
|
|
203
|
+
}, {
|
|
204
|
+
data: string;
|
|
205
|
+
id: string;
|
|
206
|
+
downstreamRuns: {
|
|
207
|
+
nodeKey: string;
|
|
208
|
+
runId: string;
|
|
209
|
+
}[];
|
|
210
|
+
}>, "many">;
|
|
211
|
+
errors: z.ZodArray<any, "many">;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
logs: any[];
|
|
214
|
+
status: FlowNodeRunStatus;
|
|
215
|
+
id: string;
|
|
216
|
+
errors: any[];
|
|
217
|
+
upstreamRuns: {
|
|
218
|
+
nodeKey: string;
|
|
219
|
+
runId: string;
|
|
220
|
+
outputId: string;
|
|
221
|
+
}[];
|
|
222
|
+
outputs: {
|
|
223
|
+
data: string;
|
|
224
|
+
id: string;
|
|
225
|
+
downstreamRuns: {
|
|
226
|
+
nodeKey: string;
|
|
227
|
+
runId: string;
|
|
228
|
+
}[];
|
|
229
|
+
}[];
|
|
230
|
+
input?: any;
|
|
231
|
+
}, {
|
|
232
|
+
logs: any[];
|
|
233
|
+
status: FlowNodeRunStatus;
|
|
234
|
+
id: string;
|
|
235
|
+
errors: any[];
|
|
236
|
+
upstreamRuns: {
|
|
237
|
+
nodeKey: string;
|
|
238
|
+
runId: string;
|
|
239
|
+
outputId: string;
|
|
240
|
+
}[];
|
|
241
|
+
outputs: {
|
|
242
|
+
data: string;
|
|
243
|
+
id: string;
|
|
244
|
+
downstreamRuns: {
|
|
245
|
+
nodeKey: string;
|
|
246
|
+
runId: string;
|
|
247
|
+
}[];
|
|
248
|
+
}[];
|
|
249
|
+
input?: any;
|
|
250
|
+
}>;
|
|
251
|
+
export interface FlowNodeRunRecord extends z.infer<typeof FlowNodeRunRecordSchema> {
|
|
252
|
+
}
|
|
253
|
+
export declare const FlowNodeRunOutputWithoutDownstreamRunsSchema: z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
data: z.ZodString;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
data: string;
|
|
258
|
+
id: string;
|
|
259
|
+
}, {
|
|
260
|
+
data: string;
|
|
261
|
+
id: string;
|
|
262
|
+
}>;
|
|
263
|
+
export interface FlowNodeRunOutputWithoutDownstreamRuns extends z.infer<typeof FlowNodeRunOutputWithoutDownstreamRunsSchema> {
|
|
264
|
+
}
|
|
265
|
+
export declare const FlowNodeRunOutputMetadataSchema: z.ZodObject<{
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
268
|
+
runId: z.ZodString;
|
|
269
|
+
nodeKey: z.ZodString;
|
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
nodeKey: string;
|
|
272
|
+
runId: string;
|
|
273
|
+
}, {
|
|
274
|
+
nodeKey: string;
|
|
275
|
+
runId: string;
|
|
276
|
+
}>, "many">;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
id: string;
|
|
279
|
+
downstreamRuns: {
|
|
280
|
+
nodeKey: string;
|
|
281
|
+
runId: string;
|
|
282
|
+
}[];
|
|
283
|
+
}, {
|
|
284
|
+
id: string;
|
|
285
|
+
downstreamRuns: {
|
|
286
|
+
nodeKey: string;
|
|
287
|
+
runId: string;
|
|
288
|
+
}[];
|
|
289
|
+
}>;
|
|
290
|
+
export interface FlowNodeRunOutputMetadata extends z.infer<typeof FlowNodeRunOutputMetadataSchema> {
|
|
291
|
+
}
|
|
292
|
+
export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
293
|
+
id: z.ZodString;
|
|
294
|
+
upstreamRuns: z.ZodArray<z.ZodObject<{
|
|
295
|
+
nodeKey: z.ZodString;
|
|
296
|
+
runId: z.ZodString;
|
|
297
|
+
outputId: z.ZodString;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
nodeKey: string;
|
|
300
|
+
runId: string;
|
|
301
|
+
outputId: string;
|
|
302
|
+
}, {
|
|
303
|
+
nodeKey: string;
|
|
304
|
+
runId: string;
|
|
305
|
+
outputId: string;
|
|
306
|
+
}>, "many">;
|
|
307
|
+
input: z.ZodAny;
|
|
308
|
+
status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
|
|
309
|
+
logs: z.ZodArray<z.ZodAny, "many">;
|
|
310
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
downstreamRuns: z.ZodArray<z.ZodObject<{
|
|
313
|
+
runId: z.ZodString;
|
|
314
|
+
nodeKey: z.ZodString;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
nodeKey: string;
|
|
317
|
+
runId: string;
|
|
318
|
+
}, {
|
|
319
|
+
nodeKey: string;
|
|
320
|
+
runId: string;
|
|
321
|
+
}>, "many">;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
id: string;
|
|
324
|
+
downstreamRuns: {
|
|
325
|
+
nodeKey: string;
|
|
326
|
+
runId: string;
|
|
327
|
+
}[];
|
|
328
|
+
}, {
|
|
329
|
+
id: string;
|
|
330
|
+
downstreamRuns: {
|
|
331
|
+
nodeKey: string;
|
|
332
|
+
runId: string;
|
|
333
|
+
}[];
|
|
334
|
+
}>, "many">;
|
|
335
|
+
errors: z.ZodArray<any, "many">;
|
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
logs: any[];
|
|
338
|
+
status: FlowNodeRunStatus;
|
|
339
|
+
id: string;
|
|
340
|
+
errors: any[];
|
|
341
|
+
upstreamRuns: {
|
|
342
|
+
nodeKey: string;
|
|
343
|
+
runId: string;
|
|
344
|
+
outputId: string;
|
|
345
|
+
}[];
|
|
346
|
+
outputs: {
|
|
347
|
+
id: string;
|
|
348
|
+
downstreamRuns: {
|
|
349
|
+
nodeKey: string;
|
|
350
|
+
runId: string;
|
|
351
|
+
}[];
|
|
352
|
+
}[];
|
|
353
|
+
input?: any;
|
|
354
|
+
}, {
|
|
355
|
+
logs: any[];
|
|
356
|
+
status: FlowNodeRunStatus;
|
|
357
|
+
id: string;
|
|
358
|
+
errors: any[];
|
|
359
|
+
upstreamRuns: {
|
|
360
|
+
nodeKey: string;
|
|
361
|
+
runId: string;
|
|
362
|
+
outputId: string;
|
|
363
|
+
}[];
|
|
364
|
+
outputs: {
|
|
365
|
+
id: string;
|
|
366
|
+
downstreamRuns: {
|
|
367
|
+
nodeKey: string;
|
|
368
|
+
runId: string;
|
|
369
|
+
}[];
|
|
370
|
+
}[];
|
|
371
|
+
input?: any;
|
|
372
|
+
}>;
|
|
373
|
+
export interface FlowNodeRunRecordWithoutOutputsData extends z.infer<typeof FlowNodeRunRecordWithoutOutputsDataSchema> {
|
|
374
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ErrorData } from '../../../errors';
|
|
2
|
+
import { FlowRunState, FlowRunLaunchedBy } 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 interface BaseFlowRun {
|
|
10
|
+
id: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
flowInstanceId: string;
|
|
13
|
+
universalFlowId?: string;
|
|
14
|
+
connectionId?: string;
|
|
15
|
+
integrationId?: string;
|
|
16
|
+
startNodeKey: string;
|
|
17
|
+
userId: string;
|
|
18
|
+
input?: any;
|
|
19
|
+
state: FlowRunState;
|
|
20
|
+
startTime: string;
|
|
21
|
+
endTime?: string;
|
|
22
|
+
errors?: ErrorData[];
|
|
23
|
+
nodes?: Record<string, FlowRunNode>;
|
|
24
|
+
launchedBy?: FlowRunLaunchedBy;
|
|
25
|
+
}
|
|
26
|
+
export interface FlowRunNode {
|
|
27
|
+
state: FlowRunNodeState;
|
|
28
|
+
runs?: number;
|
|
29
|
+
erroredRuns?: number;
|
|
30
|
+
outputs?: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DataSchema } from '../../../data-schema';
|
|
2
|
+
import { BaseMembraneInterface } from '../../types';
|
|
3
|
+
export interface FlowNode {
|
|
4
|
+
type?: string;
|
|
5
|
+
version?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
config?: any;
|
|
9
|
+
concurrency?: number;
|
|
10
|
+
onError?: 'stop' | 'continue';
|
|
11
|
+
ui?: any;
|
|
12
|
+
inputSchema?: any;
|
|
13
|
+
outputSchema?: any;
|
|
14
|
+
outputExample?: any;
|
|
15
|
+
links?: FlowNodeLink[];
|
|
16
|
+
isCustomized?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface BaseFlow extends BaseMembraneInterface {
|
|
19
|
+
integrationId?: string;
|
|
20
|
+
universalFlowId?: string;
|
|
21
|
+
universalFlowRevision?: string;
|
|
22
|
+
parametersSchema?: DataSchema;
|
|
23
|
+
nodes?: Record<string, FlowNode>;
|
|
24
|
+
autoCreateInstances?: boolean;
|
|
25
|
+
archivedAt?: string;
|
|
26
|
+
revision: string;
|
|
27
|
+
customized?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface FlowNodeLink {
|
|
30
|
+
key?: string;
|
|
31
|
+
filter?: any;
|
|
32
|
+
name?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './actions';
|
|
2
|
+
export * from './connections';
|
|
3
|
+
export * from './connectors';
|
|
4
|
+
export * from './data-collections';
|
|
5
|
+
export * from './data-sources';
|
|
6
|
+
export * from './data-source-instances';
|
|
7
|
+
export * from './external-events';
|
|
8
|
+
export * from './flow-runs';
|
|
9
|
+
export * from './flows';
|
|
10
|
+
export * from './integrations';
|
|
11
|
+
export * from './scenarios';
|
|
12
|
+
export * from './screens';
|
|
13
|
+
export * from './customers';
|
|
14
|
+
export * from './flow-instances';
|
|
15
|
+
export * from './action-instances';
|
|
16
|
+
export * from './field-mappings';
|
|
17
|
+
export * from './field-mapping-instances';
|
|
18
|
+
export * from './data-link-tables';
|
|
19
|
+
export * from './data-link-table-instances';
|
|
20
|
+
export * from './app-event-types';
|
|
21
|
+
export * from './app-event-subscriptions';
|
|
22
|
+
export * from './app-data-schemas';
|
|
23
|
+
export * from './app-data-schema-instances';
|
|
24
|
+
export * from './external-event-subscriptions';
|
|
25
|
+
export * from './external-event-log-records';
|
|
26
|
+
export * from './external-event-pulls';
|
|
27
|
+
export * from './action-run-log-records';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { WorkspaceElement, WorkspaceElementState } from '../workspace-elements';
|
|
6
|
-
export interface Integration extends WorkspaceElement {
|
|
7
|
-
state?: WorkspaceElementState;
|
|
8
|
-
errors?: ErrorData[];
|
|
1
|
+
import { BaseMembraneInterface } from '../..';
|
|
2
|
+
import { DataSchema } from '../../../data-schema';
|
|
3
|
+
import { ConnectorAuthSpec, ConnectorAuthType } from '../connectors';
|
|
4
|
+
export interface BaseIntegration extends BaseMembraneInterface {
|
|
9
5
|
logoUri: string;
|
|
10
6
|
connectorId?: string;
|
|
11
7
|
connectorVersion?: string;
|
|
@@ -14,9 +10,7 @@ export interface Integration extends WorkspaceElement {
|
|
|
14
10
|
parametersSchema?: DataSchema;
|
|
15
11
|
parameters?: any;
|
|
16
12
|
baseUri: string;
|
|
17
|
-
connection?: Connection;
|
|
18
13
|
archivedAt?: string;
|
|
19
|
-
spec?: ConnectorSpec;
|
|
20
14
|
hasMissingParameters?: boolean;
|
|
21
15
|
hasDocumentation?: boolean;
|
|
22
16
|
hasOperations?: boolean;
|
|
@@ -34,5 +28,5 @@ export type IntegrationAuthOption = ConnectorAuthSpec & {
|
|
|
34
28
|
};
|
|
35
29
|
export type AppliedToIntegrations<Element> = {
|
|
36
30
|
element: Element;
|
|
37
|
-
integration:
|
|
31
|
+
integration: BaseIntegration;
|
|
38
32
|
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseMembraneInterface } from '../..';
|
|
2
|
+
import { ScenarioElement, ScenarioToDo, ScenarioTemplateElements, HandyScenarioTemplateElement, ScenarioTemplateCategory } from '../../api/scenarios-api';
|
|
3
|
+
import { MinimalConnector } from '../connectors';
|
|
4
|
+
export interface BaseScenario extends BaseMembraneInterface {
|
|
5
|
+
appId: string;
|
|
6
|
+
scenarioTemplateId?: string;
|
|
7
|
+
elements?: ScenarioElement[];
|
|
8
|
+
connectors?: MinimalConnector[];
|
|
9
|
+
todos?: ScenarioToDo[];
|
|
10
|
+
archivedAt?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ScenarioTemplate {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
key: string;
|
|
16
|
+
shortDescription?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
demoWorkspaceKey?: string;
|
|
19
|
+
demoAppUri?: string;
|
|
20
|
+
demoGithubRepo?: string;
|
|
21
|
+
demoVideoYoutubeUri?: string;
|
|
22
|
+
tags?: ScenarioTemplateCategory[];
|
|
23
|
+
elements?: ScenarioTemplateElements;
|
|
24
|
+
todos?: Omit<ScenarioToDo, 'isComplete'>[];
|
|
25
|
+
connectors?: MinimalConnector[];
|
|
26
|
+
handyElements?: HandyScenarioTemplateElement[];
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ErrorConstructorArg, IntegrationAppError } from '../errors';
|
|
2
|
+
import { WorkspaceElementReference } from './types';
|
|
3
|
+
export declare class DependencyError extends IntegrationAppError {
|
|
4
|
+
constructor(arg: ErrorConstructorArg, workspaceElementReference?: WorkspaceElementReference);
|
|
5
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { ErrorData } from '../errors';
|
|
2
3
|
export interface ConfigurationStateResult {
|
|
3
4
|
state: ConfigurationState;
|
|
@@ -60,13 +61,38 @@ export interface WorkspaceElementCalculateStateResult {
|
|
|
60
61
|
state: WorkspaceElementState;
|
|
61
62
|
errors?: ErrorData[];
|
|
62
63
|
}
|
|
63
|
-
export
|
|
64
|
+
export declare const BaseWorkspaceElement: z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
68
|
id: string;
|
|
65
69
|
name: string;
|
|
70
|
+
}, {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
}>;
|
|
74
|
+
export type BaseWorkspaceElement = z.infer<typeof BaseWorkspaceElement>;
|
|
75
|
+
export declare const BaseMembraneInterface: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
} & {
|
|
79
|
+
key: z.ZodString;
|
|
80
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
81
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
83
|
key: string;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
state?: WorkspaceElementState | undefined;
|
|
87
|
+
errors?: any[] | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
key: string;
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
state?: WorkspaceElementState | undefined;
|
|
93
|
+
errors?: any[] | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
export type BaseMembraneInterface = z.infer<typeof BaseMembraneInterface>;
|
|
70
96
|
export interface WorkspaceElementReference {
|
|
71
97
|
type: WorkspaceElementType;
|
|
72
98
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { IntegrationElementType, IntegrationElementInstance } from '../../integration-elements';
|
|
2
|
+
import { Flow, FlowInstance } from '../api';
|
|
3
|
+
import { FlowNode, FlowNodeSpec, FlowInstanceNode } from '../base';
|
|
4
4
|
export declare function getFlowNode(flow: Flow | FlowInstance, nodeKey: string): FlowNode;
|
|
5
5
|
export declare function getFlowNodeTitle(flow: Flow | FlowInstance, nodeKey: string): string | undefined;
|
|
6
6
|
export declare function getFlowNodeDescription(flow: Flow | FlowInstance, nodeKey: string): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './flow-utils';
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { CreateDataLinkTableRequest } from '../data-links';
|
|
6
|
-
import { CreateDataSourceRequest } from '../data-sources';
|
|
7
|
-
import { CreateFieldMappingRequest } from '../field-mappings';
|
|
8
|
-
import { CreateFlowRequest } from '../flows';
|
|
9
|
-
import { WorkspaceElementType } from '../workspace-elements';
|
|
2
|
+
import { CreateAppDataSchemaRequest, CreateAppEventTypeRequest, CreateDataLinkTableRequest, CreateFieldMappingRequest } from '../workspace-elements';
|
|
3
|
+
import { CreateActionRequest, CreateDataSourceRequest, CreateFlowRequest } from '../workspace-elements/api';
|
|
4
|
+
import { WorkspaceElementType } from '../workspace-elements/types';
|
|
10
5
|
export interface WorkspaceElementSpec {
|
|
11
6
|
type: WorkspaceElementType;
|
|
12
7
|
apiPath: string;
|