@membranehq/sdk 0.1.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 +21 -0
- package/README.md +32 -0
- package/dist/bundle.d.ts +2543 -0
- package/dist/bundle.js +26089 -0
- package/dist/bundle.js.map +1 -0
- package/dist/dts/__mocks__/axios.d.ts +4 -0
- package/dist/dts/_helper.d.ts +7 -0
- package/dist/dts/_helper.test.d.ts +1 -0
- package/dist/dts/accessors.d.ts +85 -0
- package/dist/dts/accessors.test.d.ts +1 -0
- package/dist/dts/actions/accessors.d.ts +49 -0
- package/dist/dts/actions/action-types.d.ts +26 -0
- package/dist/dts/actions/index.d.ts +3 -0
- package/dist/dts/actions/types.d.ts +95 -0
- package/dist/dts/alerts/index.d.ts +1 -0
- package/dist/dts/alerts/types.d.ts +24 -0
- package/dist/dts/api-client.d.ts +32 -0
- package/dist/dts/api-client.test.d.ts +1 -0
- package/dist/dts/app-data-schemas/accessors.d.ts +18 -0
- package/dist/dts/app-data-schemas/api.d.ts +33 -0
- package/dist/dts/app-data-schemas/index.d.ts +23 -0
- package/dist/dts/app-events/accessors.d.ts +20 -0
- package/dist/dts/app-events/api.d.ts +44 -0
- package/dist/dts/app-events/index.d.ts +42 -0
- package/dist/dts/apps/index.d.ts +1 -0
- package/dist/dts/apps/types.d.ts +18 -0
- package/dist/dts/auth/accessors.d.ts +10 -0
- package/dist/dts/auth/index.d.ts +7 -0
- package/dist/dts/client.d.ts +70 -0
- package/dist/dts/connections/accessors.d.ts +88 -0
- package/dist/dts/connections/api.d.ts +27 -0
- package/dist/dts/connections/create-or-update-connection.d.ts +14 -0
- package/dist/dts/connections/index.d.ts +3 -0
- package/dist/dts/connections/types.d.ts +52 -0
- package/dist/dts/connector-copilot/index.d.ts +1 -0
- package/dist/dts/connector-copilot/types.d.ts +160 -0
- package/dist/dts/connectors/auth.d.ts +171 -0
- package/dist/dts/connectors/constants.d.ts +5 -0
- package/dist/dts/connectors/data-locations/base.d.ts +10 -0
- package/dist/dts/connectors/data-locations/collections/events/implementation-types/connector-event.d.ts +14 -0
- package/dist/dts/connectors/data-locations/collections/events/implementation-types/custom-pull.d.ts +14 -0
- package/dist/dts/connectors/data-locations/collections/events/implementation-types/full-scan.d.ts +7 -0
- package/dist/dts/connectors/data-locations/collections/events/implementation-types/pull-latest-records.d.ts +17 -0
- package/dist/dts/connectors/data-locations/collections/events/implementation-types/webhook.d.ts +18 -0
- package/dist/dts/connectors/data-locations/collections/events/index.d.ts +50 -0
- package/dist/dts/connectors/data-locations/collections/events/methods.d.ts +15 -0
- package/dist/dts/connectors/data-locations/collections/index.d.ts +70 -0
- package/dist/dts/connectors/data-locations/collections/methods/base.d.ts +24 -0
- package/dist/dts/connectors/data-locations/collections/methods/create.d.ts +7 -0
- package/dist/dts/connectors/data-locations/collections/methods/delete.d.ts +2 -0
- package/dist/dts/connectors/data-locations/collections/methods/find-by-id.d.ts +2 -0
- package/dist/dts/connectors/data-locations/collections/methods/find.d.ts +6 -0
- package/dist/dts/connectors/data-locations/collections/methods/list.d.ts +5 -0
- package/dist/dts/connectors/data-locations/collections/methods/match.d.ts +5 -0
- package/dist/dts/connectors/data-locations/collections/methods/search.d.ts +2 -0
- package/dist/dts/connectors/data-locations/collections/methods/update.d.ts +6 -0
- package/dist/dts/connectors/data-locations/directories/index.d.ts +17 -0
- package/dist/dts/connectors/data-locations/directories/methods/base.d.ts +18 -0
- package/dist/dts/connectors/data-locations/directories/methods/list.d.ts +2 -0
- package/dist/dts/connectors/data-locations/index.d.ts +6 -0
- package/dist/dts/connectors/data-locations/methods.d.ts +6 -0
- package/dist/dts/connectors/data-locations/types.d.ts +258 -0
- package/dist/dts/connectors/data-locations/utils.d.ts +17 -0
- package/dist/dts/connectors/data-locations/utils.test.d.ts +1 -0
- package/dist/dts/connectors/data-records.d.ts +7 -0
- package/dist/dts/connectors/events/index.d.ts +1 -0
- package/dist/dts/connectors/events/types.d.ts +36 -0
- package/dist/dts/connectors/global-webhooks/index.d.ts +1 -0
- package/dist/dts/connectors/global-webhooks/types.d.ts +33 -0
- package/dist/dts/connectors/graphql-api.d.ts +17 -0
- package/dist/dts/connectors/index.d.ts +13 -0
- package/dist/dts/connectors/methods.d.ts +44 -0
- package/dist/dts/connectors/openapi.d.ts +11 -0
- package/dist/dts/connectors/operations/handlers.d.ts +9 -0
- package/dist/dts/connectors/operations/index.d.ts +2 -0
- package/dist/dts/connectors/operations/types.d.ts +26 -0
- package/dist/dts/connectors/rest-api.d.ts +67 -0
- package/dist/dts/connectors/types.d.ts +75 -0
- package/dist/dts/connectors/udm.d.ts +14 -0
- package/dist/dts/data-builder/formula-processors.d.ts +13 -0
- package/dist/dts/data-builder/formula-processors.test.d.ts +1 -0
- package/dist/dts/data-builder/formula-types.d.ts +4 -0
- package/dist/dts/data-builder/formulas/and.d.ts +9 -0
- package/dist/dts/data-builder/formulas/and.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/base.d.ts +47 -0
- package/dist/dts/data-builder/formulas/case.d.ts +18 -0
- package/dist/dts/data-builder/formulas/case.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/concat.d.ts +19 -0
- package/dist/dts/data-builder/formulas/concat.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/copy.d.ts +10 -0
- package/dist/dts/data-builder/formulas/copy.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/dataSchemaRef.d.ts +22 -0
- package/dist/dts/data-builder/formulas/dataSchemaRef.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/domainFromEmail.d.ts +10 -0
- package/dist/dts/data-builder/formulas/domainFromEmail.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/eval.d.ts +28 -0
- package/dist/dts/data-builder/formulas/eval.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/extractDate.d.ts +11 -0
- package/dist/dts/data-builder/formulas/extractDate.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/extractTime.d.ts +11 -0
- package/dist/dts/data-builder/formulas/extractTime.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/findAppRecordId.d.ts +17 -0
- package/dist/dts/data-builder/formulas/findAppRecordId.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/findExternalRecordId.d.ts +17 -0
- package/dist/dts/data-builder/formulas/findExternalRecordId.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/first-name.d.ts +10 -0
- package/dist/dts/data-builder/formulas/first-name.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/firstNotEmpty.d.ts +7 -0
- package/dist/dts/data-builder/formulas/firstNotEmpty.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/formula.d.ts +8 -0
- package/dist/dts/data-builder/formulas/formula.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/index.d.ts +26 -0
- package/dist/dts/data-builder/formulas/index.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/iterate.d.ts +19 -0
- package/dist/dts/data-builder/formulas/iterate.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/jsonata.d.ts +8 -0
- package/dist/dts/data-builder/formulas/jsonata.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/last-name.d.ts +11 -0
- package/dist/dts/data-builder/formulas/last-name.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/lookup.d.ts +12 -0
- package/dist/dts/data-builder/formulas/lookup.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/map.d.ts +17 -0
- package/dist/dts/data-builder/formulas/map.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/mergeObjects.d.ts +12 -0
- package/dist/dts/data-builder/formulas/mergeObjects.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/or.d.ts +9 -0
- package/dist/dts/data-builder/formulas/or.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/plain.d.ts +8 -0
- package/dist/dts/data-builder/formulas/plain.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/record.d.ts +11 -0
- package/dist/dts/data-builder/formulas/record.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/tpl.d.ts +15 -0
- package/dist/dts/data-builder/formulas/tpl.test.d.ts +1 -0
- package/dist/dts/data-builder/formulas/types.d.ts +27 -0
- package/dist/dts/data-builder/formulas/var.d.ts +11 -0
- package/dist/dts/data-builder/formulas/var.test.d.ts +1 -0
- package/dist/dts/data-builder/index.d.ts +9 -0
- package/dist/dts/data-builder/index.test.d.ts +1 -0
- package/dist/dts/data-builder/locators.d.ts +44 -0
- package/dist/dts/data-builder/locators.test.d.ts +1 -0
- package/dist/dts/data-collections/index.d.ts +1 -0
- package/dist/dts/data-collections/types.d.ts +24 -0
- package/dist/dts/data-filter/index.d.ts +13 -0
- package/dist/dts/data-filter/index.test.d.ts +1 -0
- package/dist/dts/data-filter/operators.d.ts +13 -0
- package/dist/dts/data-filter/operators.test.d.ts +1 -0
- package/dist/dts/data-form/data-field.d.ts +7 -0
- package/dist/dts/data-form/index.d.ts +21 -0
- package/dist/dts/data-links/accessors.d.ts +20 -0
- package/dist/dts/data-links/api.d.ts +56 -0
- package/dist/dts/data-links/index.d.ts +36 -0
- package/dist/dts/data-schema/create.d.ts +2 -0
- package/dist/dts/data-schema/create.test.d.ts +1 -0
- package/dist/dts/data-schema/data-field.d.ts +14 -0
- package/dist/dts/data-schema/index.d.ts +5 -0
- package/dist/dts/data-schema/merge.d.ts +10 -0
- package/dist/dts/data-schema/merge.test.d.ts +1 -0
- package/dist/dts/data-schema/types.d.ts +35 -0
- package/dist/dts/data-schema/utils.d.ts +47 -0
- package/dist/dts/data-schema/utils.test.d.ts +1 -0
- package/dist/dts/data-sources/accessors.d.ts +64 -0
- package/dist/dts/data-sources/api.d.ts +90 -0
- package/dist/dts/data-sources/constants.d.ts +4 -0
- package/dist/dts/data-sources/index.d.ts +4 -0
- package/dist/dts/data-sources/types.d.ts +63 -0
- package/dist/dts/date-time/index.d.ts +1 -0
- package/dist/dts/date-time/parse.d.ts +1 -0
- package/dist/dts/date-time/parse.test.d.ts +1 -0
- package/dist/dts/datetime.d.ts +1 -0
- package/dist/dts/entity-repository.d.ts +24 -0
- package/dist/dts/errors/error-doc-enum.d.ts +7 -0
- package/dist/dts/errors/index.d.ts +105 -0
- package/dist/dts/external-events/accessors.d.ts +19 -0
- package/dist/dts/external-events/api.d.ts +22 -0
- package/dist/dts/external-events/index.d.ts +8 -0
- package/dist/dts/external-events/types.d.ts +157 -0
- package/dist/dts/field-mappings/accessors.d.ts +54 -0
- package/dist/dts/field-mappings/api.d.ts +58 -0
- package/dist/dts/field-mappings/index.d.ts +66 -0
- package/dist/dts/field-mappings/merge/is-object.test.d.ts +1 -0
- package/dist/dts/field-mappings/merge/merge-with-formulas.d.ts +2 -0
- package/dist/dts/field-mappings/merge/merge-with-formulas.test.d.ts +1 -0
- package/dist/dts/field-mappings/types.d.ts +12 -0
- package/dist/dts/flow-runs/accessors.d.ts +33 -0
- package/dist/dts/flow-runs/flow-node-runs.d.ts +42 -0
- package/dist/dts/flow-runs/index.d.ts +78 -0
- package/dist/dts/flows/accessors.d.ts +75 -0
- package/dist/dts/flows/api.d.ts +54 -0
- package/dist/dts/flows/index.d.ts +6 -0
- package/dist/dts/flows/nodes/api-request-to-external-app.d.ts +3 -0
- package/dist/dts/flows/nodes/api-request-to-your-app.d.ts +3 -0
- package/dist/dts/flows/nodes/api-trigger.d.ts +3 -0
- package/dist/dts/flows/nodes/app-event-trigger.d.ts +3 -0
- package/dist/dts/flows/nodes/base.d.ts +17 -0
- package/dist/dts/flows/nodes/connector-event-trigger.d.ts +3 -0
- package/dist/dts/flows/nodes/create-data-link.d.ts +3 -0
- package/dist/dts/flows/nodes/create-data-record.d.ts +3 -0
- package/dist/dts/flows/nodes/custom-http-request.d.ts +3 -0
- package/dist/dts/flows/nodes/data-record-created-trigger.d.ts +3 -0
- package/dist/dts/flows/nodes/data-record-deleted-trigger.d.ts +3 -0
- package/dist/dts/flows/nodes/data-record-updated-trigger.d.ts +3 -0
- package/dist/dts/flows/nodes/delete-data-link.d.ts +3 -0
- package/dist/dts/flows/nodes/delete-data-record.d.ts +3 -0
- package/dist/dts/flows/nodes/filter.d.ts +3 -0
- package/dist/dts/flows/nodes/find-data-link.d.ts +3 -0
- package/dist/dts/flows/nodes/find-data-record-by-id.d.ts +3 -0
- package/dist/dts/flows/nodes/find-data-records.d.ts +3 -0
- package/dist/dts/flows/nodes/find-or-create-data-record.d.ts +3 -0
- package/dist/dts/flows/nodes/for-each-v2.d.ts +3 -0
- package/dist/dts/flows/nodes/for-each.d.ts +3 -0
- package/dist/dts/flows/nodes/index.d.ts +37 -0
- package/dist/dts/flows/nodes/integration-specific-operation.d.ts +3 -0
- package/dist/dts/flows/nodes/list-data-records.d.ts +3 -0
- package/dist/dts/flows/nodes/lookup-data-record.d.ts +3 -0
- package/dist/dts/flows/nodes/run-action.d.ts +3 -0
- package/dist/dts/flows/nodes/run-javascript.d.ts +3 -0
- package/dist/dts/flows/nodes/schedule-trigger.d.ts +3 -0
- package/dist/dts/flows/nodes/search-data-records.d.ts +3 -0
- package/dist/dts/flows/nodes/transform-data.d.ts +3 -0
- package/dist/dts/flows/nodes/update-data-record.d.ts +3 -0
- package/dist/dts/flows/schemas.d.ts +240 -0
- package/dist/dts/flows/types.d.ts +77 -0
- package/dist/dts/flows/utils.d.ts +16 -0
- package/dist/dts/flows/utils.test.d.ts +1 -0
- package/dist/dts/http-requests.d.ts +37 -0
- package/dist/dts/iframe.d.ts +11 -0
- package/dist/dts/index.d.ts +41 -0
- package/dist/dts/index.umd.d.ts +2 -0
- package/dist/dts/integration-elements/common.d.ts +3 -0
- package/dist/dts/integration-elements/connection-level-element.accessor.d.ts +29 -0
- package/dist/dts/integration-elements/index.d.ts +74 -0
- package/dist/dts/integration-elements/integration-level-element.accessor.d.ts +25 -0
- package/dist/dts/integrations/accessors.d.ts +58 -0
- package/dist/dts/integrations/api.d.ts +23 -0
- package/dist/dts/integrations/index.d.ts +3 -0
- package/dist/dts/integrations/types.d.ts +38 -0
- package/dist/dts/jwt.d.ts +1 -0
- package/dist/dts/jwt.test.d.ts +1 -0
- package/dist/dts/logging/index.d.ts +8 -0
- package/dist/dts/logging/index.test.d.ts +1 -0
- package/dist/dts/logging/types.d.ts +13 -0
- package/dist/dts/orgs/index.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +59 -0
- package/dist/dts/scenarios/accessors.d.ts +9 -0
- package/dist/dts/scenarios/index.d.ts +2 -0
- package/dist/dts/scenarios/types.d.ts +145 -0
- package/dist/dts/screens/accessors.d.ts +9 -0
- package/dist/dts/screens/index.d.ts +2 -0
- package/dist/dts/screens/types.d.ts +37 -0
- package/dist/dts/udm/activities.d.ts +143 -0
- package/dist/dts/udm/activities.test.d.ts +1 -0
- package/dist/dts/udm/base.d.ts +62 -0
- package/dist/dts/udm/bills.d.ts +3 -0
- package/dist/dts/udm/campaign-members.d.ts +3 -0
- package/dist/dts/udm/campaigns.d.ts +3 -0
- package/dist/dts/udm/companies.d.ts +3 -0
- package/dist/dts/udm/contact-lists.d.ts +3 -0
- package/dist/dts/udm/contacts.d.ts +3 -0
- package/dist/dts/udm/credit-notes.d.ts +3 -0
- package/dist/dts/udm/customers.d.ts +3 -0
- package/dist/dts/udm/deal-products.d.ts +3 -0
- package/dist/dts/udm/deal-stages.d.ts +3 -0
- package/dist/dts/udm/deals.d.ts +3 -0
- package/dist/dts/udm/documents.d.ts +59 -0
- package/dist/dts/udm/drive-items.d.ts +78 -0
- package/dist/dts/udm/drives.d.ts +46 -0
- package/dist/dts/udm/eeocs.d.ts +3 -0
- package/dist/dts/udm/emails.d.ts +115 -0
- package/dist/dts/udm/employees.d.ts +3 -0
- package/dist/dts/udm/files.d.ts +73 -0
- package/dist/dts/udm/folders.d.ts +66 -0
- package/dist/dts/udm/index.d.ts +53 -0
- package/dist/dts/udm/invoices.d.ts +3 -0
- package/dist/dts/udm/job-applications.d.ts +3 -0
- package/dist/dts/udm/job-candidates.d.ts +3 -0
- package/dist/dts/udm/job-interviews.d.ts +3 -0
- package/dist/dts/udm/job-offers.d.ts +3 -0
- package/dist/dts/udm/jobs.d.ts +3 -0
- package/dist/dts/udm/journal-entries.d.ts +3 -0
- package/dist/dts/udm/leads.d.ts +3 -0
- package/dist/dts/udm/ledger-accounts.d.ts +3 -0
- package/dist/dts/udm/meetings.d.ts +98 -0
- package/dist/dts/udm/messages.d.ts +51 -0
- package/dist/dts/udm/notes.d.ts +61 -0
- package/dist/dts/udm/orders.d.ts +3 -0
- package/dist/dts/udm/payments.d.ts +3 -0
- package/dist/dts/udm/payrolls.d.ts +3 -0
- package/dist/dts/udm/products.d.ts +3 -0
- package/dist/dts/udm/projects.d.ts +3 -0
- package/dist/dts/udm/suppliers.d.ts +3 -0
- package/dist/dts/udm/tasks.d.ts +104 -0
- package/dist/dts/udm/tax-rates.d.ts +3 -0
- package/dist/dts/udm/timeoff-balances.d.ts +3 -0
- package/dist/dts/udm/timeoff-requests.d.ts +3 -0
- package/dist/dts/udm/users.d.ts +3 -0
- package/dist/dts/usage/index.d.ts +1 -0
- package/dist/dts/usage/types.d.ts +33 -0
- package/dist/dts/users/accessors.d.ts +10 -0
- package/dist/dts/users/api.d.ts +23 -0
- package/dist/dts/users/index.d.ts +13 -0
- package/dist/dts/variables.d.ts +27 -0
- package/dist/dts/webhooks/index.d.ts +1 -0
- package/dist/dts/webhooks/types.d.ts +11 -0
- package/dist/dts/workspace-elements/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +77 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +27 -0
- package/dist/dts/workspace-updates/index.d.ts +1 -0
- package/dist/dts/workspace-updates/types.d.ts +6 -0
- package/dist/dts/workspaces/api.d.ts +5 -0
- package/dist/dts/workspaces/constants.d.ts +4 -0
- package/dist/dts/workspaces/index.d.ts +3 -0
- package/dist/dts/workspaces/types.d.ts +175 -0
- package/dist/index.d.ts +5022 -0
- package/dist/index.js +11815 -0
- package/dist/index.js.map +1 -0
- package/dist/index.module.d.mts +5022 -0
- package/dist/index.module.mjs +11551 -0
- package/dist/index.module.mjs.map +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ElementInstanceSelector, IntegrationSpecificElementSelector } from '../accessors';
|
|
2
|
+
import { ConnectionSelector } from '../connections/api';
|
|
3
|
+
import { DataSchema } from '../data-schema';
|
|
4
|
+
import { CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery } from '../entity-repository';
|
|
5
|
+
import { FlowInstanceSelector } from '../flows/api';
|
|
6
|
+
import { FieldMappingDirection } from '.';
|
|
7
|
+
export interface ListFieldMappingsForIntegrationQuery extends CommonListElementsQuery {
|
|
8
|
+
universalFieldMappingId?: string | 'null';
|
|
9
|
+
}
|
|
10
|
+
export interface FindFieldMappingsQuery extends ListFieldMappingsForIntegrationQuery {
|
|
11
|
+
integrationId?: string | 'null';
|
|
12
|
+
}
|
|
13
|
+
export type ListFieldMappingInstancesForConnectionQuery = CommonInstancesListQuery & {
|
|
14
|
+
fieldMappingId?: string;
|
|
15
|
+
universalFieldMappingId?: string;
|
|
16
|
+
dataSourceInstanceId?: string;
|
|
17
|
+
};
|
|
18
|
+
export type FindFieldMappingInstancesQuery = ListFieldMappingInstancesForConnectionQuery & CommonIntegrationOrConnectionQuery;
|
|
19
|
+
export interface UpdateFieldMappingRequest {
|
|
20
|
+
key?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
dataSourceKey?: string;
|
|
23
|
+
dataSourceId?: string;
|
|
24
|
+
appSchema?: DataSchema;
|
|
25
|
+
direction?: FieldMappingDirection;
|
|
26
|
+
defaultImportValue?: any;
|
|
27
|
+
exportValue?: any;
|
|
28
|
+
importValue?: any;
|
|
29
|
+
defaultExportValue?: any;
|
|
30
|
+
frozenImportFields?: any;
|
|
31
|
+
frozenExportFields?: any;
|
|
32
|
+
frozenUnifiedExportFields?: any;
|
|
33
|
+
archivedAt?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CreateFieldMappingRequest extends UpdateFieldMappingRequest {
|
|
36
|
+
key: string;
|
|
37
|
+
name: string;
|
|
38
|
+
integrationId?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface CreateFieldMappingInstanceRequest {
|
|
41
|
+
connectionId: string;
|
|
42
|
+
fieldMappingId?: string;
|
|
43
|
+
instanceKey?: string;
|
|
44
|
+
importValue?: any;
|
|
45
|
+
exportValue?: any;
|
|
46
|
+
}
|
|
47
|
+
export interface UpdateFieldMappingInstanceRequest {
|
|
48
|
+
importValue?: any;
|
|
49
|
+
exportValue?: any;
|
|
50
|
+
}
|
|
51
|
+
export interface FieldMappingInstanceSelector extends ConnectionSelector, FlowInstanceSelector, ElementInstanceSelector {
|
|
52
|
+
fieldMappingKey?: string;
|
|
53
|
+
fieldMappingId?: string;
|
|
54
|
+
instanceKey?: string;
|
|
55
|
+
nodeKey?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface FieldMappingSelector extends IntegrationSpecificElementSelector {
|
|
58
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Connection } from '../connections';
|
|
2
|
+
import { DataSchema } from '../data-schema';
|
|
3
|
+
import { DataSourceInstance } from '../data-sources';
|
|
4
|
+
import { ErrorData } from '../errors';
|
|
5
|
+
import { AppliedToIntegrations, Integration } from '../integrations';
|
|
6
|
+
import { User } from '../users';
|
|
7
|
+
import { WorkspaceElement, WorkspaceElementState } from '../workspace-elements';
|
|
8
|
+
export * from './accessors';
|
|
9
|
+
export * from './api';
|
|
10
|
+
export * from './merge/merge-with-formulas';
|
|
11
|
+
export * from './types';
|
|
12
|
+
export declare enum FieldMappingDirection {
|
|
13
|
+
IMPORT = "import",
|
|
14
|
+
EXPORT = "export",
|
|
15
|
+
BOTH = "both"
|
|
16
|
+
}
|
|
17
|
+
export interface FieldMapping extends WorkspaceElement {
|
|
18
|
+
revision: string;
|
|
19
|
+
publishedRevision?: string;
|
|
20
|
+
universalFieldMappingId?: string;
|
|
21
|
+
universalFieldMappingRevision?: string;
|
|
22
|
+
integrationId?: string;
|
|
23
|
+
integration?: Integration;
|
|
24
|
+
dataSourceId: string;
|
|
25
|
+
dataSourceKey: string;
|
|
26
|
+
appSchema: DataSchema;
|
|
27
|
+
direction: FieldMappingDirection;
|
|
28
|
+
defaultImportValue?: any;
|
|
29
|
+
defaultExportValue?: any;
|
|
30
|
+
importValue?: any;
|
|
31
|
+
exportValue?: any;
|
|
32
|
+
frozenImportFields?: any;
|
|
33
|
+
frozenExportFields?: any;
|
|
34
|
+
frozenUnifiedExportFields?: any;
|
|
35
|
+
archivedAt?: string;
|
|
36
|
+
customized?: boolean;
|
|
37
|
+
appliedToIntegrations?: AppliedToIntegrations<FieldMapping>;
|
|
38
|
+
}
|
|
39
|
+
export interface FieldMappingInstance extends WorkspaceElement {
|
|
40
|
+
userId: string;
|
|
41
|
+
revision: string;
|
|
42
|
+
user?: User;
|
|
43
|
+
connectionId: string;
|
|
44
|
+
connection?: Connection;
|
|
45
|
+
integrationId: string;
|
|
46
|
+
integration?: Integration;
|
|
47
|
+
fieldMappingRevision?: string;
|
|
48
|
+
fieldMappingId?: string;
|
|
49
|
+
fieldMapping?: FieldMapping;
|
|
50
|
+
instanceKey?: string;
|
|
51
|
+
dataSourceInstanceId?: string;
|
|
52
|
+
dataSourceInstance?: DataSourceInstance;
|
|
53
|
+
dataSourceSchema?: DataSchema;
|
|
54
|
+
direction?: FieldMappingDirection;
|
|
55
|
+
appSchema?: DataSchema;
|
|
56
|
+
importValue?: any;
|
|
57
|
+
exportValue?: any;
|
|
58
|
+
isCustomized?: boolean;
|
|
59
|
+
unifiedExportValue?: any;
|
|
60
|
+
unifiedImportValue?: any;
|
|
61
|
+
frozenImportFields?: string[];
|
|
62
|
+
frozenExportFields?: string[];
|
|
63
|
+
state?: WorkspaceElementState;
|
|
64
|
+
error?: ErrorData;
|
|
65
|
+
externalSchema?: any;
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DataSchema } from '../data-schema';
|
|
2
|
+
export interface FieldMappingUnitConfig {
|
|
3
|
+
key?: string;
|
|
4
|
+
input?: any;
|
|
5
|
+
includeRawFields?: any;
|
|
6
|
+
importValue?: any;
|
|
7
|
+
exportValue?: any;
|
|
8
|
+
default?: any;
|
|
9
|
+
defaultUnifiedValue?: any;
|
|
10
|
+
defaultValue?: any;
|
|
11
|
+
appSchema?: DataSchema;
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IntegrationAppApiClient } from '../api-client';
|
|
2
|
+
import { OpenConfigurationOptions } from '../iframe';
|
|
3
|
+
import { FindFlowRunsQuery, FindFlowRunsResponse, CreateFlowRunRequest, FlowRun } from '.';
|
|
4
|
+
export interface OpenFlowRunEditorOptions extends OpenConfigurationOptions {
|
|
5
|
+
}
|
|
6
|
+
export declare class FlowRunsAccessor {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: IntegrationAppApiClient);
|
|
9
|
+
find(query: FindFlowRunsQuery): Promise<FindFlowRunsResponse>;
|
|
10
|
+
create(request: CreateFlowRunRequest): Promise<FlowRun>;
|
|
11
|
+
}
|
|
12
|
+
export declare class FlowRunAccessor {
|
|
13
|
+
private readonly client;
|
|
14
|
+
id: string;
|
|
15
|
+
private baseUri;
|
|
16
|
+
constructor(client: IntegrationAppApiClient, id: string);
|
|
17
|
+
get(): Promise<FlowRun>;
|
|
18
|
+
stop(): Promise<void>;
|
|
19
|
+
getOutput(): Promise<any>;
|
|
20
|
+
getNodeRuns(nodeKey: string, parameters?: {
|
|
21
|
+
cursor?: string;
|
|
22
|
+
}): Promise<any>;
|
|
23
|
+
getNodeRun(nodeKey: string, runId: string): Promise<any>;
|
|
24
|
+
getNodeOutputs(nodeKey: string, parameters?: {
|
|
25
|
+
cursor?: string;
|
|
26
|
+
}): Promise<any>;
|
|
27
|
+
getNodeOutput(nodeKey: string, outputId: string): Promise<any>;
|
|
28
|
+
repeat(): Promise<FlowRun>;
|
|
29
|
+
openEditor({ onClose }?: OpenFlowRunEditorOptions): Promise<void>;
|
|
30
|
+
embedEditor({ mountTargetSelector, onClose, }?: {
|
|
31
|
+
mountTargetSelector?: string;
|
|
32
|
+
} & OpenFlowRunEditorOptions): Promise<void>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ErrorData } from '../errors';
|
|
2
|
+
export declare enum FlowNodeRunStatus {
|
|
3
|
+
COMPLETED = "completed",
|
|
4
|
+
FAILED = "failed",
|
|
5
|
+
SKIPPED = "skipped"
|
|
6
|
+
}
|
|
7
|
+
export interface FlowNodeHandlerRunResponse {
|
|
8
|
+
status?: FlowNodeRunStatus;
|
|
9
|
+
output?: any;
|
|
10
|
+
errors?: ErrorData[];
|
|
11
|
+
}
|
|
12
|
+
export interface UpstreamFlowNodeRun {
|
|
13
|
+
nodeKey: string;
|
|
14
|
+
runId: string;
|
|
15
|
+
outputId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface DownstreamFlowNodeRun {
|
|
18
|
+
runId: string;
|
|
19
|
+
nodeKey: string;
|
|
20
|
+
}
|
|
21
|
+
export interface FlowNodeRunParameters {
|
|
22
|
+
id: string;
|
|
23
|
+
upstreamRuns: UpstreamFlowNodeRun[];
|
|
24
|
+
input: any;
|
|
25
|
+
}
|
|
26
|
+
export interface FlowNodeRunOutput {
|
|
27
|
+
id: string;
|
|
28
|
+
data: string;
|
|
29
|
+
downstreamRuns: DownstreamFlowNodeRun[];
|
|
30
|
+
}
|
|
31
|
+
export interface FlowNodeRunResult {
|
|
32
|
+
status: FlowNodeRunStatus;
|
|
33
|
+
logs: any[];
|
|
34
|
+
outputs: FlowNodeRunOutput[];
|
|
35
|
+
errors: ErrorData[];
|
|
36
|
+
}
|
|
37
|
+
export interface FlowNodeRunRecord extends FlowNodeRunParameters, FlowNodeRunResult {
|
|
38
|
+
}
|
|
39
|
+
export type FlowNodeRunRecordWithoutOutputsData = FlowNodeRunRecord & {
|
|
40
|
+
outputs: Omit<FlowNodeRunOutput, 'data'>[];
|
|
41
|
+
};
|
|
42
|
+
export type FlowNodeRunOutputWithoutDownstreamRuns = Omit<FlowNodeRunOutput, 'downstreamRuns'>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Connection } from '../connections';
|
|
2
|
+
import { PaginationResponse, PaginationQuery } from '../entity-repository';
|
|
3
|
+
import { ErrorData } from '../errors';
|
|
4
|
+
import { FlowInstance } from '../flows';
|
|
5
|
+
import { Integration } from '../integrations';
|
|
6
|
+
import { Customer } from '../users';
|
|
7
|
+
export * from './flow-node-runs';
|
|
8
|
+
export * from './accessors';
|
|
9
|
+
export declare enum FlowRunState {
|
|
10
|
+
QUEUED = "queued",
|
|
11
|
+
RUNNING = "running",
|
|
12
|
+
COMPLETED = "completed",
|
|
13
|
+
STOPPED = "stopped",
|
|
14
|
+
FAILED = "failed"
|
|
15
|
+
}
|
|
16
|
+
export declare enum FlowRunNodeState {
|
|
17
|
+
RUNNING = "running",
|
|
18
|
+
COMPLETED = "completed",
|
|
19
|
+
STOPPED = "stopped",
|
|
20
|
+
FAILED = "failed"
|
|
21
|
+
}
|
|
22
|
+
export declare enum FlowRunLaunchedByTrigger {
|
|
23
|
+
ApiTrigger = "api-trigger",
|
|
24
|
+
ScheduleTrigger = "schedule-trigger",
|
|
25
|
+
AppEventTrigger = "app-event-trigger",
|
|
26
|
+
DataSourceTrigger = "data-source-trigger",
|
|
27
|
+
ExternalEvent = "external-event"
|
|
28
|
+
}
|
|
29
|
+
export interface FlowRun {
|
|
30
|
+
id: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
flowInstanceId: string;
|
|
33
|
+
flowInstance?: FlowInstance;
|
|
34
|
+
universalFlowId?: string;
|
|
35
|
+
connectionId?: string;
|
|
36
|
+
connection?: Connection;
|
|
37
|
+
integrationId?: string;
|
|
38
|
+
integration?: Integration;
|
|
39
|
+
startNodeKey: string;
|
|
40
|
+
userId: string;
|
|
41
|
+
user?: Customer;
|
|
42
|
+
input?: any;
|
|
43
|
+
state: FlowRunState;
|
|
44
|
+
startTime: string;
|
|
45
|
+
endTime?: string;
|
|
46
|
+
errors?: ErrorData[];
|
|
47
|
+
nodes?: Record<string, FlowRunNode>;
|
|
48
|
+
launchedBy?: FlowRunLaunchedBy;
|
|
49
|
+
}
|
|
50
|
+
export interface FlowRunNode {
|
|
51
|
+
state: FlowRunNodeState;
|
|
52
|
+
runs?: number;
|
|
53
|
+
erroredRuns?: number;
|
|
54
|
+
outputs?: number;
|
|
55
|
+
}
|
|
56
|
+
export interface FlowRunLaunchedBy {
|
|
57
|
+
type: FlowRunLaunchedByTrigger;
|
|
58
|
+
ids?: string[];
|
|
59
|
+
}
|
|
60
|
+
export interface CreateFlowRunRequest {
|
|
61
|
+
flowInstanceId: string;
|
|
62
|
+
nodeKey?: string;
|
|
63
|
+
input?: any;
|
|
64
|
+
}
|
|
65
|
+
export interface FindFlowRunsQuery extends PaginationQuery {
|
|
66
|
+
id?: string;
|
|
67
|
+
flowInstanceId?: string;
|
|
68
|
+
startNodeKey?: string;
|
|
69
|
+
flowId?: string;
|
|
70
|
+
universalFlowId?: string;
|
|
71
|
+
userId?: string;
|
|
72
|
+
state?: FlowRunState;
|
|
73
|
+
integrationId?: string;
|
|
74
|
+
connectionId?: string;
|
|
75
|
+
startedAfter?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface FindFlowRunsResponse extends PaginationResponse<FlowRun> {
|
|
78
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor } from '../accessors';
|
|
2
|
+
import { IntegrationAppApiClient } from '../api-client';
|
|
3
|
+
import { FlowRun } from '../flow-runs';
|
|
4
|
+
import { OpenConfigurationOptions } from '../iframe';
|
|
5
|
+
import { CreateFlowRequest, FindFlowInstancesQuery, FindFlowsQuery, FlowInstanceSelector, FlowSelector, ListFlowInstancesForConnectionQuery, ListFlowsForIntegrationQuery, ResetFlowInstanceOptions, RunFlowOptions, UpdateFlowRequest } from './api';
|
|
6
|
+
import { CreateFlowInstanceRequest, UpdateFlowInstanceRequest } from './schemas';
|
|
7
|
+
import { Flow, FlowInstance } from './types';
|
|
8
|
+
import { InstanceKeyQuery } from '../integration-elements/common';
|
|
9
|
+
import { ConnectionLevelElementAccessor, ConnectionLevelElementsListAccessor } from '../integration-elements/connection-level-element.accessor';
|
|
10
|
+
import { IntegrationLevelElementAccessor, IntegrationLevelElementsListAccessor } from '../integration-elements/integration-level-element.accessor';
|
|
11
|
+
export interface OpenFlowInstanceConfigurationOptions extends OpenConfigurationOptions {
|
|
12
|
+
nodeKey?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface OpenFlowInstanceEditorOptions extends OpenConfigurationOptions {
|
|
15
|
+
}
|
|
16
|
+
export declare class FlowsAccessor extends ElementListAccessor<Flow, FindFlowsQuery, CreateFlowRequest> {
|
|
17
|
+
constructor(client: IntegrationAppApiClient);
|
|
18
|
+
}
|
|
19
|
+
export declare class FlowAccessor extends ElementAccessor<Flow, UpdateFlowRequest, FlowSelector> {
|
|
20
|
+
constructor(client: IntegrationAppApiClient, selector: FlowSelector | string);
|
|
21
|
+
apply(integrationKeys: string[]): Promise<Flow[]>;
|
|
22
|
+
reset(): Promise<Flow>;
|
|
23
|
+
}
|
|
24
|
+
export declare class FlowInstancesAccessor extends ElementInstanceListAccessor<FlowInstance, FindFlowInstancesQuery> {
|
|
25
|
+
constructor(client: IntegrationAppApiClient);
|
|
26
|
+
create(data: CreateFlowInstanceRequest): Promise<FlowInstance>;
|
|
27
|
+
}
|
|
28
|
+
export declare class FlowInstanceAccessor extends ElementInstanceAccessor<FlowInstance, FlowInstanceSelector, CreateFlowInstanceRequest, UpdateFlowInstanceRequest> {
|
|
29
|
+
protected client: IntegrationAppApiClient;
|
|
30
|
+
protected selector: FlowInstanceSelector | string;
|
|
31
|
+
constructor(client: IntegrationAppApiClient, selector: FlowInstanceSelector | string);
|
|
32
|
+
enable(): Promise<FlowInstance>;
|
|
33
|
+
disable(): Promise<FlowInstance>;
|
|
34
|
+
updateToLatestFlow(): Promise<FlowInstance>;
|
|
35
|
+
setup(): Promise<FlowInstance>;
|
|
36
|
+
reset(options?: ResetFlowInstanceOptions): Promise<FlowInstance>;
|
|
37
|
+
openConfiguration({ nodeKey, onClose }?: OpenFlowInstanceConfigurationOptions): Promise<void>;
|
|
38
|
+
openEditor({ onClose }?: OpenFlowInstanceEditorOptions): Promise<void>;
|
|
39
|
+
embedEditor({ mountTargetSelector, onClose, }?: {
|
|
40
|
+
mountTargetSelector?: string;
|
|
41
|
+
} & OpenFlowInstanceEditorOptions): Promise<void>;
|
|
42
|
+
startRun(options?: RunFlowOptions): Promise<FlowRun>;
|
|
43
|
+
run(options?: RunFlowOptions): Promise<FlowRun>;
|
|
44
|
+
}
|
|
45
|
+
export declare class IntegrationLevelFlowAccessor extends IntegrationLevelElementAccessor<Flow, UpdateFlowRequest> {
|
|
46
|
+
client: IntegrationAppApiClient;
|
|
47
|
+
integrationSelector: string;
|
|
48
|
+
flowSelector: string;
|
|
49
|
+
constructor(client: IntegrationAppApiClient, integrationSelector: string, flowSelector: string);
|
|
50
|
+
}
|
|
51
|
+
export declare class IntegrationLevelFlowsListAccessor extends IntegrationLevelElementsListAccessor<Flow, ListFlowsForIntegrationQuery, Omit<CreateFlowRequest, 'integrationId'>> {
|
|
52
|
+
client: IntegrationAppApiClient;
|
|
53
|
+
integrationSelector: string;
|
|
54
|
+
constructor(client: IntegrationAppApiClient, integrationSelector: string);
|
|
55
|
+
}
|
|
56
|
+
export declare class ConnectionLevelFlowAccessor extends ConnectionLevelElementAccessor<FlowInstance, UpdateFlowInstanceRequest> {
|
|
57
|
+
client: IntegrationAppApiClient;
|
|
58
|
+
connectionSelector: string;
|
|
59
|
+
flowSelector: string;
|
|
60
|
+
query: InstanceKeyQuery;
|
|
61
|
+
constructor(client: IntegrationAppApiClient, connectionSelector: string, flowSelector: string, query: InstanceKeyQuery);
|
|
62
|
+
enable(): Promise<FlowInstance>;
|
|
63
|
+
disable(): Promise<FlowInstance>;
|
|
64
|
+
run(options: {
|
|
65
|
+
nodeKey?: string;
|
|
66
|
+
input?: any;
|
|
67
|
+
}): Promise<FlowRun>;
|
|
68
|
+
openConfiguration(options?: OpenFlowInstanceConfigurationOptions): Promise<void>;
|
|
69
|
+
openEditor(options?: OpenFlowInstanceEditorOptions): Promise<void>;
|
|
70
|
+
}
|
|
71
|
+
export declare class ConnectionLevelFlowsAccessor extends ConnectionLevelElementsListAccessor<Flow, ListFlowInstancesForConnectionQuery> {
|
|
72
|
+
client: IntegrationAppApiClient;
|
|
73
|
+
connectionSelector: string;
|
|
74
|
+
constructor(client: IntegrationAppApiClient, connectionSelector: string);
|
|
75
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ElementInstanceSelector, IntegrationSpecificElementSelector } from '../accessors';
|
|
2
|
+
import { ConnectionSelector } from '../connections';
|
|
3
|
+
import { DataSchema } from '../data-schema';
|
|
4
|
+
import { CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery } from '../entity-repository';
|
|
5
|
+
import { FlowNodeLink } from '.';
|
|
6
|
+
export interface ListFlowsForIntegrationQuery extends CommonListElementsQuery {
|
|
7
|
+
universalFlowId?: string | 'null';
|
|
8
|
+
}
|
|
9
|
+
export interface FindFlowsQuery extends ListFlowsForIntegrationQuery {
|
|
10
|
+
integrationId?: string | 'null';
|
|
11
|
+
}
|
|
12
|
+
export interface CreateFlowNodeRequest {
|
|
13
|
+
type: string;
|
|
14
|
+
config?: any;
|
|
15
|
+
ui?: any;
|
|
16
|
+
links?: FlowNodeLink[];
|
|
17
|
+
}
|
|
18
|
+
export interface CreateFlowRequest {
|
|
19
|
+
key: string;
|
|
20
|
+
name: string;
|
|
21
|
+
integrationId?: string;
|
|
22
|
+
nodes?: Record<string, CreateFlowNodeRequest>;
|
|
23
|
+
parametersSchema?: DataSchema;
|
|
24
|
+
autoCreateInstances?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface UpdateFlowRequest extends CreateFlowRequest {
|
|
27
|
+
archivedAt?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface FlowSelector extends IntegrationSpecificElementSelector {
|
|
30
|
+
autoCreate?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export type ListFlowInstancesForConnectionQuery = CommonInstancesListQuery & {
|
|
33
|
+
flowId?: string;
|
|
34
|
+
flowKey?: string;
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type FindFlowInstancesQuery = ListFlowInstancesForConnectionQuery & CommonIntegrationOrConnectionQuery;
|
|
38
|
+
export interface FlowInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
|
|
39
|
+
flowId?: string;
|
|
40
|
+
flowKey?: string;
|
|
41
|
+
instanceKey?: string;
|
|
42
|
+
autoUpdate?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface ResetFlowInstanceOptions {
|
|
45
|
+
name?: boolean;
|
|
46
|
+
nodes?: Record<string, boolean>;
|
|
47
|
+
allNodes?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface RunFlowOptions {
|
|
50
|
+
nodeKey?: string;
|
|
51
|
+
input?: any;
|
|
52
|
+
returnImmediately?: boolean;
|
|
53
|
+
onUpdate?: (...args: any) => void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FieldMappingDirection } from '../../field-mappings';
|
|
2
|
+
import { FlowNode } from '../types';
|
|
3
|
+
export interface FlowNodeSpec {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
isTrigger?: boolean;
|
|
7
|
+
requiresIntegration?: boolean;
|
|
8
|
+
requiresDataSpec?: boolean;
|
|
9
|
+
isDeprecated?: boolean;
|
|
10
|
+
isHidden?: boolean;
|
|
11
|
+
direction?: FieldMappingDirection;
|
|
12
|
+
version?: number;
|
|
13
|
+
getSubFlowRootNodeKey?: (node: FlowNode) => string;
|
|
14
|
+
}
|
|
15
|
+
export declare class FlowNodeSpec implements FlowNodeSpec {
|
|
16
|
+
constructor(args: FlowNodeSpec);
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FlowNodeSpec } from './base';
|
|
2
|
+
export { FlowNodeSpec } from './base';
|
|
3
|
+
export declare enum FlowNodeType {
|
|
4
|
+
ApiTrigger = "api-trigger",
|
|
5
|
+
ScheduleTrigger = "schedule-trigger",
|
|
6
|
+
AppEventTrigger = "app-event-trigger",
|
|
7
|
+
DataRecordCreatedTrigger = "data-record-created-trigger",
|
|
8
|
+
DataRecordUpdatedTrigger = "data-record-updated-trigger",
|
|
9
|
+
DataRecordDeletedTrigger = "data-record-deleted-trigger",
|
|
10
|
+
ConnectorEventTrigger = "connector-event-trigger",
|
|
11
|
+
SearchDataRecords = "search-data-records",
|
|
12
|
+
ListDataRecords = "list-data-records",
|
|
13
|
+
FindOrCreateDataRecord = "find-or-create-data-record",
|
|
14
|
+
LookupDataRecord = "lookup-data-record",
|
|
15
|
+
FindDataRecordById = "find-data-record-by-id",
|
|
16
|
+
CreateDataRecord = "create-data-record",
|
|
17
|
+
UpdateDataRecord = "update-data-record",
|
|
18
|
+
DeleteDataRecord = "delete-data-record",
|
|
19
|
+
CreateDataLink = "create-data-link",
|
|
20
|
+
FindDataLink = "find-data-link",
|
|
21
|
+
DeleteDataLink = "delete-data-link",
|
|
22
|
+
TransformData = "transform-data",
|
|
23
|
+
Filter = "filter",
|
|
24
|
+
ForEachV2 = "for-each-v2",
|
|
25
|
+
RunJavascript = "run-javascript",
|
|
26
|
+
IntegrationSpecificOperation = "integration-specific-operation",
|
|
27
|
+
ApiRequestToYourApp = "api-request-to-your-app",
|
|
28
|
+
ApiRequestToExernalApp = "api-request-to-external-app",
|
|
29
|
+
CustomHttpRequest = "custom-http-request",
|
|
30
|
+
RunAction = "run-action",
|
|
31
|
+
ApiRequest = "api-request",
|
|
32
|
+
CustomApiRequest = "custom-api-request",
|
|
33
|
+
HttpRequest = "http-request",
|
|
34
|
+
ForEach = "for-each",
|
|
35
|
+
FindDataRecords = "find-data-records"
|
|
36
|
+
}
|
|
37
|
+
export declare const FLOW_NODE_SPECS: Record<FlowNodeType, FlowNodeSpec>;
|