@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,240 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
10
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
type: z.ZodOptional<z.ZodString>;
|
|
13
|
+
userConfig: z.ZodOptional<z.ZodAny>;
|
|
14
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
15
|
+
onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
|
|
16
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
ui: z.ZodOptional<z.ZodAny>;
|
|
18
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
|
+
key: z.ZodOptional<z.ZodString>;
|
|
20
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
key?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
filter?: any;
|
|
26
|
+
}, {
|
|
27
|
+
key?: string | undefined;
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
filter?: any;
|
|
30
|
+
}>, "many">>;
|
|
31
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
concurrency?: number | undefined;
|
|
34
|
+
type?: string | undefined;
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
userConfig?: any;
|
|
37
|
+
config?: any;
|
|
38
|
+
onError?: "stop" | "continue" | undefined;
|
|
39
|
+
ui?: any;
|
|
40
|
+
links?: {
|
|
41
|
+
key?: string | undefined;
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
filter?: any;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
isCustomized?: boolean | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
concurrency?: number | undefined;
|
|
48
|
+
type?: string | undefined;
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
userConfig?: any;
|
|
51
|
+
config?: any;
|
|
52
|
+
onError?: "stop" | "continue" | undefined;
|
|
53
|
+
ui?: any;
|
|
54
|
+
links?: {
|
|
55
|
+
key?: string | undefined;
|
|
56
|
+
name?: string | undefined;
|
|
57
|
+
filter?: any;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
isCustomized?: boolean | undefined;
|
|
60
|
+
}>>>;
|
|
61
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
customized: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
nodes: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
name?: boolean | undefined;
|
|
67
|
+
nodes?: boolean | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
name?: boolean | undefined;
|
|
70
|
+
nodes?: boolean | undefined;
|
|
71
|
+
}>>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
userId?: string | undefined;
|
|
75
|
+
integrationId?: string | undefined;
|
|
76
|
+
connectionId?: string | undefined;
|
|
77
|
+
parameters?: any;
|
|
78
|
+
flowId?: string | undefined;
|
|
79
|
+
instanceKey?: string | undefined;
|
|
80
|
+
nodes?: Record<string, {
|
|
81
|
+
concurrency?: number | undefined;
|
|
82
|
+
type?: string | undefined;
|
|
83
|
+
name?: string | undefined;
|
|
84
|
+
userConfig?: any;
|
|
85
|
+
config?: any;
|
|
86
|
+
onError?: "stop" | "continue" | undefined;
|
|
87
|
+
ui?: any;
|
|
88
|
+
links?: {
|
|
89
|
+
key?: string | undefined;
|
|
90
|
+
name?: string | undefined;
|
|
91
|
+
filter?: any;
|
|
92
|
+
}[] | undefined;
|
|
93
|
+
isCustomized?: boolean | undefined;
|
|
94
|
+
}> | undefined;
|
|
95
|
+
enabled?: boolean | undefined;
|
|
96
|
+
customized?: {
|
|
97
|
+
name?: boolean | undefined;
|
|
98
|
+
nodes?: boolean | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
name?: string | undefined;
|
|
102
|
+
userId?: string | undefined;
|
|
103
|
+
integrationId?: string | undefined;
|
|
104
|
+
connectionId?: string | undefined;
|
|
105
|
+
parameters?: any;
|
|
106
|
+
flowId?: string | undefined;
|
|
107
|
+
instanceKey?: string | undefined;
|
|
108
|
+
nodes?: Record<string, {
|
|
109
|
+
concurrency?: number | undefined;
|
|
110
|
+
type?: string | undefined;
|
|
111
|
+
name?: string | undefined;
|
|
112
|
+
userConfig?: any;
|
|
113
|
+
config?: any;
|
|
114
|
+
onError?: "stop" | "continue" | undefined;
|
|
115
|
+
ui?: any;
|
|
116
|
+
links?: {
|
|
117
|
+
key?: string | undefined;
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
filter?: any;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
isCustomized?: boolean | undefined;
|
|
122
|
+
}> | undefined;
|
|
123
|
+
enabled?: boolean | undefined;
|
|
124
|
+
customized?: {
|
|
125
|
+
name?: boolean | undefined;
|
|
126
|
+
nodes?: boolean | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
130
|
+
name: z.ZodOptional<z.ZodString>;
|
|
131
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
133
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
134
|
+
name: z.ZodOptional<z.ZodString>;
|
|
135
|
+
type: z.ZodOptional<z.ZodString>;
|
|
136
|
+
userConfig: z.ZodOptional<z.ZodAny>;
|
|
137
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
138
|
+
onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
|
|
139
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
+
key: z.ZodOptional<z.ZodString>;
|
|
141
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
142
|
+
name: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
key?: string | undefined;
|
|
145
|
+
name?: string | undefined;
|
|
146
|
+
filter?: any;
|
|
147
|
+
}, {
|
|
148
|
+
key?: string | undefined;
|
|
149
|
+
name?: string | undefined;
|
|
150
|
+
filter?: any;
|
|
151
|
+
}>, "many">>;
|
|
152
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
concurrency?: number | undefined;
|
|
156
|
+
type?: string | undefined;
|
|
157
|
+
name?: string | undefined;
|
|
158
|
+
userConfig?: any;
|
|
159
|
+
config?: any;
|
|
160
|
+
onError?: "stop" | "continue" | undefined;
|
|
161
|
+
links?: {
|
|
162
|
+
key?: string | undefined;
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
filter?: any;
|
|
165
|
+
}[] | undefined;
|
|
166
|
+
isCustomized?: boolean | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
concurrency?: number | undefined;
|
|
169
|
+
type?: string | undefined;
|
|
170
|
+
name?: string | undefined;
|
|
171
|
+
userConfig?: any;
|
|
172
|
+
config?: any;
|
|
173
|
+
onError?: "stop" | "continue" | undefined;
|
|
174
|
+
links?: {
|
|
175
|
+
key?: string | undefined;
|
|
176
|
+
name?: string | undefined;
|
|
177
|
+
filter?: any;
|
|
178
|
+
}[] | undefined;
|
|
179
|
+
isCustomized?: boolean | undefined;
|
|
180
|
+
}>>>;
|
|
181
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
182
|
+
customized: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
nodes: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
name?: boolean | undefined;
|
|
187
|
+
nodes?: boolean | undefined;
|
|
188
|
+
}, {
|
|
189
|
+
name?: boolean | undefined;
|
|
190
|
+
nodes?: boolean | undefined;
|
|
191
|
+
}>>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
name?: string | undefined;
|
|
194
|
+
parameters?: any;
|
|
195
|
+
nodes?: Record<string, {
|
|
196
|
+
concurrency?: number | undefined;
|
|
197
|
+
type?: string | undefined;
|
|
198
|
+
name?: string | undefined;
|
|
199
|
+
userConfig?: any;
|
|
200
|
+
config?: any;
|
|
201
|
+
onError?: "stop" | "continue" | undefined;
|
|
202
|
+
links?: {
|
|
203
|
+
key?: string | undefined;
|
|
204
|
+
name?: string | undefined;
|
|
205
|
+
filter?: any;
|
|
206
|
+
}[] | undefined;
|
|
207
|
+
isCustomized?: boolean | undefined;
|
|
208
|
+
}> | undefined;
|
|
209
|
+
enabled?: boolean | undefined;
|
|
210
|
+
customized?: {
|
|
211
|
+
name?: boolean | undefined;
|
|
212
|
+
nodes?: boolean | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
archivedAt?: string | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
name?: string | undefined;
|
|
217
|
+
parameters?: any;
|
|
218
|
+
nodes?: Record<string, {
|
|
219
|
+
concurrency?: number | undefined;
|
|
220
|
+
type?: string | undefined;
|
|
221
|
+
name?: string | undefined;
|
|
222
|
+
userConfig?: any;
|
|
223
|
+
config?: any;
|
|
224
|
+
onError?: "stop" | "continue" | undefined;
|
|
225
|
+
links?: {
|
|
226
|
+
key?: string | undefined;
|
|
227
|
+
name?: string | undefined;
|
|
228
|
+
filter?: any;
|
|
229
|
+
}[] | undefined;
|
|
230
|
+
isCustomized?: boolean | undefined;
|
|
231
|
+
}> | undefined;
|
|
232
|
+
enabled?: boolean | undefined;
|
|
233
|
+
customized?: {
|
|
234
|
+
name?: boolean | undefined;
|
|
235
|
+
nodes?: boolean | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
archivedAt?: string | undefined;
|
|
238
|
+
}>;
|
|
239
|
+
export type CreateFlowInstanceRequest = z.infer<typeof createFlowInstanceSchema>;
|
|
240
|
+
export type UpdateFlowInstanceRequest = z.infer<typeof updateFlowInstanceSchema>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Connection } from '../connections';
|
|
2
|
+
import { DataSchema } from '../data-schema';
|
|
3
|
+
import { ErrorData } from '../errors';
|
|
4
|
+
import { IntegrationElementInstance } from '../integration-elements';
|
|
5
|
+
import { AppliedToIntegrations, Integration } from '../integrations';
|
|
6
|
+
import { User } from '../users';
|
|
7
|
+
import { WorkspaceElement, WorkspaceElementState } from '../workspace-elements';
|
|
8
|
+
export interface FlowNode {
|
|
9
|
+
type?: string;
|
|
10
|
+
version?: number;
|
|
11
|
+
name?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
config?: any;
|
|
14
|
+
concurrency?: number;
|
|
15
|
+
onError?: 'stop' | 'continue';
|
|
16
|
+
ui?: any;
|
|
17
|
+
inputSchema?: any;
|
|
18
|
+
outputSchema?: any;
|
|
19
|
+
outputExample?: any;
|
|
20
|
+
links?: FlowNodeLink[];
|
|
21
|
+
isCustomized?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface Flow extends WorkspaceElement {
|
|
24
|
+
integrationId?: string;
|
|
25
|
+
integration?: Integration;
|
|
26
|
+
universalFlowId?: string;
|
|
27
|
+
universalFlowRevision?: string;
|
|
28
|
+
parametersSchema?: DataSchema;
|
|
29
|
+
nodes?: Record<string, FlowNode>;
|
|
30
|
+
autoCreateInstances?: boolean;
|
|
31
|
+
archivedAt?: string;
|
|
32
|
+
revision: string;
|
|
33
|
+
customized?: boolean;
|
|
34
|
+
appliedToIntegrations?: AppliedToIntegrations<Flow>;
|
|
35
|
+
isDeployed?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface FlowInstance extends WorkspaceElement {
|
|
38
|
+
userId: string;
|
|
39
|
+
user?: User;
|
|
40
|
+
connectionId?: string;
|
|
41
|
+
connection?: Connection;
|
|
42
|
+
flow?: Flow;
|
|
43
|
+
flowId?: string;
|
|
44
|
+
universalFlowId?: string;
|
|
45
|
+
integrationId: string;
|
|
46
|
+
integration?: Integration;
|
|
47
|
+
instanceKey?: string;
|
|
48
|
+
parameters?: any;
|
|
49
|
+
parametersSchema?: DataSchema;
|
|
50
|
+
nodes?: Record<string, FlowInstanceNode>;
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
state?: WorkspaceElementState;
|
|
55
|
+
outdated?: boolean;
|
|
56
|
+
customized?: {
|
|
57
|
+
name?: boolean;
|
|
58
|
+
nodes?: boolean;
|
|
59
|
+
};
|
|
60
|
+
dependencies?: IntegrationElementInstance[];
|
|
61
|
+
}
|
|
62
|
+
export declare enum FlowInstanceNodeState {
|
|
63
|
+
SETUP_FAILED = "SETUP_FAILED",
|
|
64
|
+
READY = "READY"
|
|
65
|
+
}
|
|
66
|
+
export interface FlowInstanceNode extends FlowNode {
|
|
67
|
+
state?: FlowInstanceNodeState;
|
|
68
|
+
errors?: ErrorData[];
|
|
69
|
+
userConfig?: any;
|
|
70
|
+
testInput?: any;
|
|
71
|
+
dependencies?: IntegrationElementInstance[];
|
|
72
|
+
}
|
|
73
|
+
export interface FlowNodeLink {
|
|
74
|
+
key?: string;
|
|
75
|
+
filter?: any;
|
|
76
|
+
name?: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FlowNodeSpec } from './nodes';
|
|
2
|
+
import { IntegrationElementInstance, IntegrationElementType } from '../integration-elements';
|
|
3
|
+
import { Flow, FlowInstance, FlowInstanceNode, FlowNode } from '.';
|
|
4
|
+
export declare function getFlowNode(flow: Flow | FlowInstance, nodeKey: string): FlowNode;
|
|
5
|
+
export declare function getFlowNodeTitle(flow: Flow | FlowInstance, nodeKey: string): string | undefined;
|
|
6
|
+
export declare function getFlowNodeDescription(flow: Flow | FlowInstance, nodeKey: string): string | undefined;
|
|
7
|
+
export declare function getFlowNodeSpec(node: FlowNode): FlowNodeSpec;
|
|
8
|
+
export declare function getFlowInstanceNodeDependency({ dependencies }: Omit<FlowInstanceNode, 'errors'>, type: IntegrationElementType): IntegrationElementInstance | undefined;
|
|
9
|
+
export declare function getRootNodeKeys({ nodes }: {
|
|
10
|
+
nodes?: Record<string, FlowNode>;
|
|
11
|
+
}): string[];
|
|
12
|
+
export declare function getChildNodeKeys(flow: Flow | FlowInstance, nodeKey: string): string[];
|
|
13
|
+
export declare function getDownstreamNodeKeys(flow: Flow | FlowInstance, nodeKey: string): string[];
|
|
14
|
+
export declare function getParentNodeKeys(flow: Flow | FlowInstance, nodeKey: string): string[];
|
|
15
|
+
export declare function getUpstreamNodeKeys(flow: Flow | FlowInstance, nodeKey: string): string[];
|
|
16
|
+
export declare function hasCycles(nodes?: Record<string, FlowNode>): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare enum HttpRequestMethod {
|
|
2
|
+
GET = "GET",
|
|
3
|
+
POST = "POST",
|
|
4
|
+
PATCH = "PATCH",
|
|
5
|
+
PUT = "PUT",
|
|
6
|
+
DELETE = "DELETE"
|
|
7
|
+
}
|
|
8
|
+
export interface HttpRequestSpec {
|
|
9
|
+
method?: HttpRequestMethod;
|
|
10
|
+
uri: any;
|
|
11
|
+
headers?: Record<string, any>;
|
|
12
|
+
query?: Record<string, any>;
|
|
13
|
+
body?: any;
|
|
14
|
+
}
|
|
15
|
+
export declare const HTTP_REQUEST_SCHEMA: {
|
|
16
|
+
type: string;
|
|
17
|
+
properties: {
|
|
18
|
+
uri: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
method: {
|
|
22
|
+
type: string;
|
|
23
|
+
enum: string[];
|
|
24
|
+
};
|
|
25
|
+
body: {};
|
|
26
|
+
query: {
|
|
27
|
+
type: string;
|
|
28
|
+
section: boolean;
|
|
29
|
+
additionalProperties: boolean;
|
|
30
|
+
};
|
|
31
|
+
headers: {
|
|
32
|
+
type: string;
|
|
33
|
+
section: boolean;
|
|
34
|
+
additionalProperties: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const POPUP_ELEMENT_ID = "__integration-app-popup";
|
|
2
|
+
export interface OpenConfigurationOptions {
|
|
3
|
+
onClose?: () => void;
|
|
4
|
+
showPoweredBy?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export type OpenIframeOptions = OpenConfigurationOptions & {
|
|
7
|
+
[key: string]: (...args: any[]) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function openIframe(uri: string, callbacks?: Omit<OpenIframeOptions, 'showPoweredBy'>, { mountTargetSelector }?: {
|
|
10
|
+
mountTargetSelector?: string;
|
|
11
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export * from './errors';
|
|
2
|
+
export * from './workspace-elements';
|
|
3
|
+
export * from './workspace-elements-catalog';
|
|
4
|
+
export * from './accessors';
|
|
5
|
+
export * from './actions';
|
|
6
|
+
export * from './app-data-schemas';
|
|
7
|
+
export * from './app-events';
|
|
8
|
+
export * from './auth';
|
|
9
|
+
export * from './connections';
|
|
10
|
+
export * from './connector-copilot';
|
|
11
|
+
export * from './connectors';
|
|
12
|
+
export * from './data-builder';
|
|
13
|
+
export * from './data-collections';
|
|
14
|
+
export * from './data-filter';
|
|
15
|
+
export * from './data-form';
|
|
16
|
+
export * from './data-links';
|
|
17
|
+
export * from './data-schema';
|
|
18
|
+
export * from './data-sources';
|
|
19
|
+
export * from './date-time';
|
|
20
|
+
export * from './entity-repository';
|
|
21
|
+
export * from './external-events';
|
|
22
|
+
export * from './field-mappings';
|
|
23
|
+
export * from './flow-runs';
|
|
24
|
+
export * from './flows';
|
|
25
|
+
export * from './http-requests';
|
|
26
|
+
export * from './integration-elements';
|
|
27
|
+
export * from './integrations';
|
|
28
|
+
export * from './logging';
|
|
29
|
+
export * from './screens';
|
|
30
|
+
export * from './udm';
|
|
31
|
+
export * from './usage';
|
|
32
|
+
export * from './users';
|
|
33
|
+
export * from './scenarios';
|
|
34
|
+
export * from './variables';
|
|
35
|
+
export * from './workspaces';
|
|
36
|
+
export * from './apps';
|
|
37
|
+
export * from './workspace-updates';
|
|
38
|
+
export * from './orgs';
|
|
39
|
+
export * from './webhooks';
|
|
40
|
+
export * from './alerts';
|
|
41
|
+
export { IntegrationAppClient } from './client';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IntegrationAppApiClient } from '../api-client';
|
|
2
|
+
import { PaginationResponse } from '../entity-repository';
|
|
3
|
+
export declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
|
|
4
|
+
protected client: IntegrationAppApiClient;
|
|
5
|
+
protected connectionSelector: string;
|
|
6
|
+
protected selector: string;
|
|
7
|
+
protected elementKey: string;
|
|
8
|
+
protected query: Record<string, any>;
|
|
9
|
+
protected endpoint: string;
|
|
10
|
+
constructor(client: IntegrationAppApiClient, connectionSelector: string, selector: string, elementKey: string, query: Record<string, any>);
|
|
11
|
+
protected uri(path?: string, query?: {}): string;
|
|
12
|
+
getUniqueIdentifier(): string;
|
|
13
|
+
get(query?: {
|
|
14
|
+
autoCreate?: boolean;
|
|
15
|
+
}): Promise<Element>;
|
|
16
|
+
create(): Promise<Element>;
|
|
17
|
+
patch(data: Partial<UpdateElement>): Promise<Element>;
|
|
18
|
+
put(data: UpdateElement): Promise<Element>;
|
|
19
|
+
archive(): Promise<void>;
|
|
20
|
+
reset(): Promise<Element>;
|
|
21
|
+
setup(): Promise<Element>;
|
|
22
|
+
}
|
|
23
|
+
export declare class ConnectionLevelElementsListAccessor<Element, Query> {
|
|
24
|
+
protected client: IntegrationAppApiClient;
|
|
25
|
+
protected connectionSelector: string;
|
|
26
|
+
protected elementKey: string;
|
|
27
|
+
constructor(client: IntegrationAppApiClient, connectionSelector: string, elementKey: string);
|
|
28
|
+
list(query?: Query): Promise<PaginationResponse<Element[]>>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Connection } from '../connections';
|
|
2
|
+
import { ErrorData } from '../errors';
|
|
3
|
+
import { Integration } from '../integrations';
|
|
4
|
+
import { Customer } from '../users';
|
|
5
|
+
export declare enum IntegrationElementLevel {
|
|
6
|
+
UNIVERSAL = "universal",
|
|
7
|
+
CONNECTOR = "connector",
|
|
8
|
+
CONNECTION = "connection"
|
|
9
|
+
}
|
|
10
|
+
export declare enum IntegrationElementType {
|
|
11
|
+
APP_DATA_SCHEMA = "app-data-schema",
|
|
12
|
+
APP_EVENT_TYPE = "app-event-type",
|
|
13
|
+
DATA_SOURCE = "data-source",
|
|
14
|
+
SCHEMA = "schema",
|
|
15
|
+
FIELD_MAPPING = "field-mapping",
|
|
16
|
+
FLOW = "flow",
|
|
17
|
+
INTEGRATION = "integration",
|
|
18
|
+
ACTION = "action",
|
|
19
|
+
DATA_LINK_TABLE = "data-link-table",
|
|
20
|
+
EXTERNAL_EVENT = "external-event"
|
|
21
|
+
}
|
|
22
|
+
export interface ElementTemplateFields {
|
|
23
|
+
id: string;
|
|
24
|
+
key: string;
|
|
25
|
+
name: string;
|
|
26
|
+
revision: string;
|
|
27
|
+
integrationId?: string;
|
|
28
|
+
integration?: Integration;
|
|
29
|
+
parentId?: string;
|
|
30
|
+
parentRevision?: string;
|
|
31
|
+
isCustomized?: boolean;
|
|
32
|
+
createdAt?: string;
|
|
33
|
+
updatedAt?: string;
|
|
34
|
+
archivedAt?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ElementInstanceFields {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
revision: string;
|
|
40
|
+
parentId?: string;
|
|
41
|
+
parentRevision?: string;
|
|
42
|
+
universalParentId?: string;
|
|
43
|
+
userId: string;
|
|
44
|
+
user?: Customer;
|
|
45
|
+
instanceKey?: string;
|
|
46
|
+
isCustomized?: boolean;
|
|
47
|
+
connectionId: string;
|
|
48
|
+
connection?: Connection;
|
|
49
|
+
integrationId?: string;
|
|
50
|
+
integration?: Integration;
|
|
51
|
+
dependencies?: IntegrationElementInstance[];
|
|
52
|
+
errors?: ErrorData[];
|
|
53
|
+
createdAt?: string;
|
|
54
|
+
updatedAt?: string;
|
|
55
|
+
archivedAt?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface IntegrationElement {
|
|
58
|
+
type: IntegrationElementType;
|
|
59
|
+
key?: string;
|
|
60
|
+
id?: string;
|
|
61
|
+
config?: any;
|
|
62
|
+
}
|
|
63
|
+
export interface IntegrationElementInstance {
|
|
64
|
+
type: IntegrationElementType;
|
|
65
|
+
instanceId?: string;
|
|
66
|
+
data?: any;
|
|
67
|
+
}
|
|
68
|
+
export interface IntegrationElementInstanceDependency {
|
|
69
|
+
fromType: IntegrationElementType;
|
|
70
|
+
fromInstanceId: string;
|
|
71
|
+
toType: IntegrationElementType;
|
|
72
|
+
toInstanceId: string;
|
|
73
|
+
data?: any;
|
|
74
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IntegrationAppApiClient } from '../api-client';
|
|
2
|
+
import { PaginationResponse } from '../entity-repository';
|
|
3
|
+
export declare class IntegrationLevelElementAccessor<Element, UpdateElementData> {
|
|
4
|
+
protected client: IntegrationAppApiClient;
|
|
5
|
+
protected integrationSelector: string;
|
|
6
|
+
protected elementSelector: string;
|
|
7
|
+
protected elementKey: string;
|
|
8
|
+
protected endpoint: string;
|
|
9
|
+
constructor(client: IntegrationAppApiClient, integrationSelector: string, elementSelector: string, elementKey: string);
|
|
10
|
+
getUniqueIdentifier(): string;
|
|
11
|
+
get(): Promise<Element>;
|
|
12
|
+
patch(data: Partial<UpdateElementData>): Promise<Element>;
|
|
13
|
+
put(data: UpdateElementData): Promise<Element>;
|
|
14
|
+
archive(): Promise<void>;
|
|
15
|
+
reset(): Promise<Element>;
|
|
16
|
+
}
|
|
17
|
+
export declare class IntegrationLevelElementsListAccessor<Element, Query, CreateElementData> {
|
|
18
|
+
protected client: IntegrationAppApiClient;
|
|
19
|
+
protected integrationSelector: string;
|
|
20
|
+
protected elementKey: string;
|
|
21
|
+
protected endpoint: string;
|
|
22
|
+
constructor(client: IntegrationAppApiClient, integrationSelector: string, elementKey: string);
|
|
23
|
+
list(query?: Query): Promise<PaginationResponse<Element>>;
|
|
24
|
+
create(data: CreateElementData): Promise<Element>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ElementAccessor, ElementListAccessor } from '../accessors';
|
|
2
|
+
import { IntegrationAppApiClient } from '../api-client';
|
|
3
|
+
import { Connection, ConnectionSpec } from '../connections';
|
|
4
|
+
import { DataLocationListItem, DataLocationSpec, OperationListItem, OperationSpec } from '../connectors';
|
|
5
|
+
import { OpenConfigurationOptions } from '../iframe';
|
|
6
|
+
import { CreateIntegrationRequest, UpdateIntegrationRequest } from './api';
|
|
7
|
+
import { IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor } from '../actions';
|
|
8
|
+
import { IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor } from '../data-sources';
|
|
9
|
+
import { IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor } from '../field-mappings';
|
|
10
|
+
import { IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor } from '../flows';
|
|
11
|
+
import { FindIntegrationsQuery, Integration, OpenNewConnectionOptions } from '.';
|
|
12
|
+
interface OpenIntegrationUIIntegrationConfigurationOptions extends OpenConfigurationOptions {
|
|
13
|
+
}
|
|
14
|
+
export declare class IntegrationsAccessor extends ElementListAccessor<Integration, FindIntegrationsQuery, CreateIntegrationRequest> {
|
|
15
|
+
constructor(client: IntegrationAppApiClient);
|
|
16
|
+
}
|
|
17
|
+
export declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateIntegrationRequest> {
|
|
18
|
+
private client;
|
|
19
|
+
private integrationSelector;
|
|
20
|
+
baseUri: string;
|
|
21
|
+
constructor(client: IntegrationAppApiClient, integrationSelector: string);
|
|
22
|
+
get actions(): IntegrationLevelActionsListAccessor;
|
|
23
|
+
action(actionSelector: string): IntegrationLevelActionAccessor;
|
|
24
|
+
get flows(): IntegrationLevelFlowsListAccessor;
|
|
25
|
+
flow(flowSelector: string): IntegrationLevelFlowAccessor;
|
|
26
|
+
get dataSources(): IntegrationLevelDataSourcesListAccessor;
|
|
27
|
+
dataSource(dataSourceSelector: string): IntegrationLevelDataSourceAccessor;
|
|
28
|
+
get fieldMappings(): IntegrationLevelFieldMappingsListAccessor;
|
|
29
|
+
fieldMapping(fieldMappingSelector: string): IntegrationLevelFieldMappingAccessor;
|
|
30
|
+
setup(): Promise<Integration>;
|
|
31
|
+
getConnectorSpec(): Promise<ConnectionSpec>;
|
|
32
|
+
open({ onClose }?: OpenIntegrationUIIntegrationConfigurationOptions): Promise<void>;
|
|
33
|
+
openNewConnection({ allowMultipleConnections, name }?: OpenNewConnectionOptions): Promise<Connection>;
|
|
34
|
+
connect({ name, parameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, }?: {
|
|
35
|
+
name?: string;
|
|
36
|
+
parameters?: any;
|
|
37
|
+
authOptionKey?: string;
|
|
38
|
+
allowMultipleConnections?: boolean;
|
|
39
|
+
} & ({
|
|
40
|
+
sameWindow: true;
|
|
41
|
+
redirectUri: string;
|
|
42
|
+
} | {
|
|
43
|
+
sameWindow?: false;
|
|
44
|
+
redirectUri?: never;
|
|
45
|
+
})): Promise<Connection | undefined>;
|
|
46
|
+
createConnection({ parameters, name }: {
|
|
47
|
+
parameters?: any;
|
|
48
|
+
name?: string;
|
|
49
|
+
}): Promise<Connection | undefined>;
|
|
50
|
+
disconnect(): Promise<void>;
|
|
51
|
+
getOperations(): Promise<OperationListItem[]>;
|
|
52
|
+
getOperation(key: string): Promise<OperationSpec>;
|
|
53
|
+
getDataCollections(): Promise<DataLocationListItem[]>;
|
|
54
|
+
getDataCollection(key: string): Promise<DataLocationSpec>;
|
|
55
|
+
getDataLocations(): Promise<DataLocationListItem[]>;
|
|
56
|
+
getDataLocation(key: string): Promise<DataLocationSpec>;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PaginationQuery, PaginationResponse, SearchQuery } from '../entity-repository';
|
|
2
|
+
import { OpenConfigurationOptions } from '../iframe';
|
|
3
|
+
import { Integration } from './types';
|
|
4
|
+
export interface CreateIntegrationRequest {
|
|
5
|
+
name?: string;
|
|
6
|
+
key: string;
|
|
7
|
+
baseUri: string;
|
|
8
|
+
logoUri: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateIntegrationRequest {
|
|
11
|
+
name?: string;
|
|
12
|
+
key?: string;
|
|
13
|
+
baseUri?: string;
|
|
14
|
+
logoUri?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface FindIntegrationsQuery extends PaginationQuery, SearchQuery {
|
|
17
|
+
}
|
|
18
|
+
export interface FindIntegrationsResponse extends PaginationResponse<Integration> {
|
|
19
|
+
}
|
|
20
|
+
export interface OpenNewConnectionOptions extends OpenConfigurationOptions {
|
|
21
|
+
allowMultipleConnections?: boolean;
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|