@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,44 @@
|
|
|
1
|
+
import { GraphQLApiMapping } from './graphql-api';
|
|
2
|
+
import { OperationMapping } from './operations';
|
|
3
|
+
import { RestApiMapping } from './rest-api';
|
|
4
|
+
import { DataSchema } from '../data-schema';
|
|
5
|
+
export declare enum ConnectorMethodImplementationType {
|
|
6
|
+
mapping = "mapping",
|
|
7
|
+
operationMapping = "operation-mapping",
|
|
8
|
+
restApiMapping = "rest-api-mapping",
|
|
9
|
+
graphqlApiMapping = "graphql-api-mapping",
|
|
10
|
+
javascript = "javascript",
|
|
11
|
+
notSupported = "not-supported"
|
|
12
|
+
}
|
|
13
|
+
export type ConnectorMethodImplementation = ConnectorMethodImplementationBase | ConnectorMethodImplementationMapping | ConnectorMethodImplementationOperationMapping | ConnectorMethodImplementationRestApiMapping | ConnectorMethodImplementationGraphqlApiMapping | ConnectorMethodImplementationJavascript | ConnectorMethodImplementationNotSupported;
|
|
14
|
+
export declare const CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES: Partial<Record<ConnectorMethodImplementationType, string[]>>;
|
|
15
|
+
export interface ConnectorMethodImplementationBase {
|
|
16
|
+
implementationType?: ConnectorMethodImplementationType;
|
|
17
|
+
filePath?: string;
|
|
18
|
+
inheritedFromPath?: string[];
|
|
19
|
+
isIncomplete?: boolean;
|
|
20
|
+
parametersSchema?: DataSchema;
|
|
21
|
+
}
|
|
22
|
+
export interface ConnectorMethodImplementationMapping extends ConnectorMethodImplementationBase {
|
|
23
|
+
implementationType: ConnectorMethodImplementationType.mapping;
|
|
24
|
+
mapping: any;
|
|
25
|
+
}
|
|
26
|
+
export interface ConnectorMethodImplementationOperationMapping extends ConnectorMethodImplementationBase {
|
|
27
|
+
implementationType: ConnectorMethodImplementationType.operationMapping;
|
|
28
|
+
mapping: OperationMapping;
|
|
29
|
+
}
|
|
30
|
+
export interface ConnectorMethodImplementationRestApiMapping extends ConnectorMethodImplementationBase {
|
|
31
|
+
implementationType: ConnectorMethodImplementationType.restApiMapping;
|
|
32
|
+
mapping: RestApiMapping;
|
|
33
|
+
}
|
|
34
|
+
export interface ConnectorMethodImplementationGraphqlApiMapping extends ConnectorMethodImplementationBase {
|
|
35
|
+
implementationType: ConnectorMethodImplementationType.graphqlApiMapping;
|
|
36
|
+
mapping: GraphQLApiMapping;
|
|
37
|
+
}
|
|
38
|
+
export interface ConnectorMethodImplementationJavascript extends ConnectorMethodImplementationBase {
|
|
39
|
+
implementationType: ConnectorMethodImplementationType.javascript;
|
|
40
|
+
code: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ConnectorMethodImplementationNotSupported extends ConnectorMethodImplementationBase {
|
|
43
|
+
implementationType: ConnectorMethodImplementationType.notSupported;
|
|
44
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationType } from '../methods';
|
|
2
|
+
import { OperationSpec } from './types';
|
|
3
|
+
export type ConnectorOperationMethod<ImplementationFields extends ConnectorMethodImplementation | ConnectorMethodImplementationBase = ConnectorMethodImplementationBase> = {
|
|
4
|
+
isIncomplete?: boolean;
|
|
5
|
+
} & ImplementationFields;
|
|
6
|
+
export declare const ConnectorOperationMethodImplementationTypes: ConnectorMethodImplementationType[];
|
|
7
|
+
export interface ConnectorOperationHandler extends OperationSpec {
|
|
8
|
+
methods?: Record<'run', ConnectorOperationMethod>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface OperationBase {
|
|
2
|
+
key: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isReadOnly?: boolean;
|
|
5
|
+
description?: string;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface OperationListItem extends OperationBase {
|
|
9
|
+
}
|
|
10
|
+
export interface OperationSpec extends OperationBase {
|
|
11
|
+
inputSchema?: any;
|
|
12
|
+
outputSchema?: any;
|
|
13
|
+
isReadOnly?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface OperationRunRequest {
|
|
16
|
+
input: any;
|
|
17
|
+
}
|
|
18
|
+
export interface OperationRunResponse {
|
|
19
|
+
output?: any;
|
|
20
|
+
}
|
|
21
|
+
export interface OperationMapping {
|
|
22
|
+
operationKey: string;
|
|
23
|
+
inputMapping?: any;
|
|
24
|
+
outputMapping?: any;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import https from 'https';
|
|
2
|
+
import { HttpRequestMethod } from '../http-requests';
|
|
3
|
+
export interface RestApiClientInput {
|
|
4
|
+
path: string;
|
|
5
|
+
method: HttpRequestMethod;
|
|
6
|
+
query?: Record<string, string>;
|
|
7
|
+
data?: any;
|
|
8
|
+
headers?: Record<string, string>;
|
|
9
|
+
responseType?: 'arraybuffer' | 'stream';
|
|
10
|
+
returnFullResponse?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface RestApiClientOutput {
|
|
13
|
+
status: number;
|
|
14
|
+
headers?: Record<string, string>;
|
|
15
|
+
data?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface RestApiMapping {
|
|
18
|
+
path: string;
|
|
19
|
+
method: string;
|
|
20
|
+
requestMapping: {
|
|
21
|
+
pathParameters?: any;
|
|
22
|
+
query?: any;
|
|
23
|
+
data?: any;
|
|
24
|
+
headers?: any;
|
|
25
|
+
};
|
|
26
|
+
responseMapping?: any;
|
|
27
|
+
}
|
|
28
|
+
export interface RestApiClientResponseHandler {
|
|
29
|
+
match: any;
|
|
30
|
+
isSuccess: boolean;
|
|
31
|
+
error?: any;
|
|
32
|
+
}
|
|
33
|
+
export interface RestApiClientOverride {
|
|
34
|
+
match: {
|
|
35
|
+
path: string;
|
|
36
|
+
method: string;
|
|
37
|
+
};
|
|
38
|
+
patch?: {
|
|
39
|
+
query?: Record<string, string>;
|
|
40
|
+
data?: any;
|
|
41
|
+
headers?: Record<string, string>;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export interface RestApiClientOptions {
|
|
45
|
+
baseUri?: any;
|
|
46
|
+
proxyUri?: any;
|
|
47
|
+
headers?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
auth?: {
|
|
51
|
+
username: any;
|
|
52
|
+
password: any;
|
|
53
|
+
};
|
|
54
|
+
query?: {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
};
|
|
57
|
+
returnFullResponse?: boolean;
|
|
58
|
+
responseHandlers?: Array<RestApiClientResponseHandler>;
|
|
59
|
+
dynamicOptions?: (input: RestApiClientInput) => RestApiClientOptions;
|
|
60
|
+
binary?: boolean;
|
|
61
|
+
stream?: boolean;
|
|
62
|
+
onError?: (error: any) => any;
|
|
63
|
+
}
|
|
64
|
+
export interface RestApiClientConstructorOptions extends RestApiClientOptions {
|
|
65
|
+
overrides?: RestApiClientOverride[];
|
|
66
|
+
httpsAgent?: https.Agent;
|
|
67
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { DataSchema } from '../data-schema';
|
|
2
|
+
import { UDM } from '../udm';
|
|
3
|
+
import { ConnectorAuth } from './auth';
|
|
4
|
+
import { DataLocation, DataLocationSpec } from './data-locations';
|
|
5
|
+
import { ConnectorMethodImplementation } from './methods';
|
|
6
|
+
import { ConnectorOperationHandler } from './operations';
|
|
7
|
+
import { ConnectorUdmSpec } from './udm';
|
|
8
|
+
export declare const CONNECTOR_CATEGORIES: readonly ["Accounting", "Ads", "Analytics", "ATS", "Communication", "CRM", "Customer Success", "Document Management", "E-Commerce", "E-Signature", "ERP", "File Storage", "HRIS", "Legal", "Marketing Automation", "Payments", "Project Management", "Sales", "Ticketing"];
|
|
9
|
+
export type Connector = ConnectorSpec & {
|
|
10
|
+
id: string;
|
|
11
|
+
uuid: string;
|
|
12
|
+
key: string;
|
|
13
|
+
name: string;
|
|
14
|
+
categories: string[];
|
|
15
|
+
logoUri: string;
|
|
16
|
+
baseUri: string;
|
|
17
|
+
revision?: string;
|
|
18
|
+
status: ConnectorStatus;
|
|
19
|
+
hasReadme?: boolean;
|
|
20
|
+
hasTest?: boolean;
|
|
21
|
+
hasOperations?: boolean;
|
|
22
|
+
hasData?: boolean;
|
|
23
|
+
udms?: string[];
|
|
24
|
+
isReadOnly?: boolean;
|
|
25
|
+
workspaceId?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare enum ConnectorStatus {
|
|
28
|
+
production = "production",
|
|
29
|
+
beta = "beta",
|
|
30
|
+
planned = "planned"
|
|
31
|
+
}
|
|
32
|
+
export interface ConnectorUiSpec {
|
|
33
|
+
schema?: DataSchema;
|
|
34
|
+
description?: string;
|
|
35
|
+
helpUri?: string;
|
|
36
|
+
test?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export type ConnectorDataUdmSpec = {
|
|
39
|
+
rootLocation: DataLocation;
|
|
40
|
+
};
|
|
41
|
+
export type ConnectorDataSpec = {
|
|
42
|
+
rootLocation?: DataLocation;
|
|
43
|
+
locations?: DataLocationSpec[];
|
|
44
|
+
udm?: Partial<Record<UDM, ConnectorDataUdmSpec>>;
|
|
45
|
+
root?: DataLocation;
|
|
46
|
+
} & Partial<Record<UDM, DataLocation>>;
|
|
47
|
+
export type ConnectorApiType = 'openapi' | 'graphql';
|
|
48
|
+
export interface ConnectorSpec {
|
|
49
|
+
key?: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
appUri?: string;
|
|
52
|
+
logoUri?: string;
|
|
53
|
+
apiDocsUri?: string;
|
|
54
|
+
api?: {
|
|
55
|
+
type: ConnectorApiType;
|
|
56
|
+
};
|
|
57
|
+
ui?: ConnectorUiSpec;
|
|
58
|
+
auth?: ConnectorAuth;
|
|
59
|
+
parametersSchema?: DataSchema;
|
|
60
|
+
data?: ConnectorDataSpec;
|
|
61
|
+
udms?: string[];
|
|
62
|
+
udm?: Record<string, ConnectorUdmSpec>;
|
|
63
|
+
operations?: ConnectorOperationHandler[];
|
|
64
|
+
test?: ConnectorMethodImplementation;
|
|
65
|
+
hasReadme?: boolean;
|
|
66
|
+
appUuid?: string;
|
|
67
|
+
knowledgeBaseUuid?: string;
|
|
68
|
+
workspaceId?: string;
|
|
69
|
+
}
|
|
70
|
+
export type MinimalConnector = {
|
|
71
|
+
id: string;
|
|
72
|
+
key: string;
|
|
73
|
+
name: string;
|
|
74
|
+
logoUri: string;
|
|
75
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataLocationPointer } from './data-locations';
|
|
2
|
+
export interface ConnectorUdmListLitem {
|
|
3
|
+
key: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ConnectorUdmSpec {
|
|
6
|
+
defaultCollection?: DataLocationPointer;
|
|
7
|
+
rootDirectory?: DataLocationPointer;
|
|
8
|
+
collectionMappings: ConnectorUdmCollectionMapping[];
|
|
9
|
+
}
|
|
10
|
+
export interface ConnectorUdmCollectionMapping extends DataLocationPointer {
|
|
11
|
+
fieldsToCollection?: any;
|
|
12
|
+
fieldsFromCollection?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function findUdmCollectionMapping(udm: ConnectorUdmSpec, collectionKey: string, parameters?: Record<string, any>): ConnectorUdmCollectionMapping | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSchema } from '../data-schema';
|
|
2
|
+
import { ResolveFormulaParams } from './formulas/base';
|
|
3
|
+
import { DataLocator } from './locators';
|
|
4
|
+
export declare function buildData(value: any, variables?: any): any;
|
|
5
|
+
export declare function resolveFormulas<T = unknown>(value: any, params: ResolveFormulaParams): Promise<T>;
|
|
6
|
+
export declare function resolveValue<T = unknown>(value: unknown, params: ResolveFormulaParams): Promise<T>;
|
|
7
|
+
export declare function valueToString(value: any, variablesSchema: any): string;
|
|
8
|
+
export declare function buildValue(value: any, variables: any): any;
|
|
9
|
+
export declare function processCopy(data: any): any;
|
|
10
|
+
export declare function getVariableLocators(data: any): string[];
|
|
11
|
+
export declare function transformVars(value: any, transformations: Record<string, any>): any;
|
|
12
|
+
export declare function removeNonExistentVars(value: any, schema: DataSchema): any;
|
|
13
|
+
export declare function getValueByLocator(variables: any, locator: DataLocator): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class And extends DataBuilderFormulaBase {
|
|
3
|
+
constructor(args: any[]);
|
|
4
|
+
getValue(variables: any): boolean | undefined;
|
|
5
|
+
resolveValue(params: ResolveFormulaParams): Promise<boolean | undefined>;
|
|
6
|
+
getSchema(): {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DataBuilderFormulaType } from './types';
|
|
2
|
+
import { DataCollectionSpec } from '../../connectors';
|
|
3
|
+
import { DataSchema } from '../../data-schema';
|
|
4
|
+
export interface LookupValue {
|
|
5
|
+
query: Record<string, any>;
|
|
6
|
+
createIfNotFound?: boolean;
|
|
7
|
+
create?: {
|
|
8
|
+
fields: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface DataBuilderFormula {
|
|
12
|
+
resolveValue(params: ResolveFormulaParams): Promise<unknown>;
|
|
13
|
+
getValue(variables: any): any;
|
|
14
|
+
getSchema(variablesSchema: any): any;
|
|
15
|
+
toObject(): any;
|
|
16
|
+
toString(variablesSchema?: any): string;
|
|
17
|
+
}
|
|
18
|
+
export interface ResolveFormulaParams {
|
|
19
|
+
variables?: unknown;
|
|
20
|
+
schema?: DataSchema | undefined;
|
|
21
|
+
getDataCollection?: (key: string, parameters?: Record<string, unknown>) => Promise<DataCollectionSpec>;
|
|
22
|
+
getInternalDataSchema?: (key: string) => Promise<DataSchema>;
|
|
23
|
+
resolveImportDataLink?: (options: {
|
|
24
|
+
dataLinkTableKey: string;
|
|
25
|
+
recordId: string;
|
|
26
|
+
}) => Promise<string | undefined>;
|
|
27
|
+
resolveExportDataLink?: (options: {
|
|
28
|
+
dataLinkTableKey: string;
|
|
29
|
+
recordId: string;
|
|
30
|
+
}) => Promise<string | undefined>;
|
|
31
|
+
resolveLookup?: ({ lookup, schema, }: {
|
|
32
|
+
lookup: LookupValue;
|
|
33
|
+
schema: DataSchema | undefined;
|
|
34
|
+
}) => Promise<string | undefined>;
|
|
35
|
+
}
|
|
36
|
+
export declare abstract class DataBuilderFormulaBase<ArgsType = any> implements DataBuilderFormula {
|
|
37
|
+
type: DataBuilderFormulaType;
|
|
38
|
+
args: ArgsType;
|
|
39
|
+
constructor(type: DataBuilderFormulaType, args: ArgsType);
|
|
40
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
41
|
+
abstract getSchema(variablesSchema: any): any;
|
|
42
|
+
toObject(): any;
|
|
43
|
+
toString(_variablesSchema?: any): string;
|
|
44
|
+
getVariableLocators(): string[];
|
|
45
|
+
transformVars(transformations: any): any;
|
|
46
|
+
abstract getValue(variables: any): any;
|
|
47
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export interface CaseFormulaValueItem {
|
|
3
|
+
filter?: any;
|
|
4
|
+
value?: any;
|
|
5
|
+
}
|
|
6
|
+
export type CaseFormulaValue = {
|
|
7
|
+
cases: CaseFormulaValueItem[];
|
|
8
|
+
default?: any;
|
|
9
|
+
};
|
|
10
|
+
export declare class DataBuilderFormulaCase extends DataBuilderFormulaBase {
|
|
11
|
+
value: CaseFormulaValue;
|
|
12
|
+
constructor(value: CaseFormulaValueItem[] | CaseFormulaValue);
|
|
13
|
+
getValue(variables: any): any;
|
|
14
|
+
resolveValue(params: ResolveFormulaParams): Promise<unknown>;
|
|
15
|
+
getSchema(variablesSchema: any): any;
|
|
16
|
+
isValueValid(): boolean;
|
|
17
|
+
transformVars(transformations: any): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
type AnyValue = any;
|
|
3
|
+
type ConcatFormulaOptions = {
|
|
4
|
+
delimiter?: AnyValue;
|
|
5
|
+
values?: AnyValue[];
|
|
6
|
+
};
|
|
7
|
+
export declare class DataBuilderFormulaConcat extends DataBuilderFormulaBase {
|
|
8
|
+
options: ConcatFormulaOptions | null;
|
|
9
|
+
delimiter: AnyValue;
|
|
10
|
+
values: AnyValue[];
|
|
11
|
+
constructor(options: ConcatFormulaOptions | null);
|
|
12
|
+
getValue(variables: any): string | undefined;
|
|
13
|
+
resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
|
|
14
|
+
getSchema(): {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
toString(variablesSchema: any): string;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DataBuilderFormulaCopy extends DataBuilderFormulaBase {
|
|
3
|
+
locator: string;
|
|
4
|
+
constructor(locator: string);
|
|
5
|
+
getValue(variables: any): {
|
|
6
|
+
$copy: any;
|
|
7
|
+
};
|
|
8
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
9
|
+
getSchema(): null;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export interface DataSchemaRegArgsDataCollection {
|
|
3
|
+
type: 'data-collection';
|
|
4
|
+
key: unknown;
|
|
5
|
+
parameters?: unknown;
|
|
6
|
+
}
|
|
7
|
+
export interface DataSchemaRegArgsInternalDataSchema {
|
|
8
|
+
type: 'internal-data-schema';
|
|
9
|
+
key: unknown;
|
|
10
|
+
}
|
|
11
|
+
export type DataSchemaRefArgs = DataSchemaRegArgsDataCollection | DataSchemaRegArgsInternalDataSchema;
|
|
12
|
+
export declare class DataSchemaRef extends DataBuilderFormulaBase<DataSchemaRefArgs> {
|
|
13
|
+
value: any;
|
|
14
|
+
constructor(value: any);
|
|
15
|
+
getValue(): undefined;
|
|
16
|
+
resolveValue(params: ResolveFormulaParams): Promise<import("../..").DataSchema | undefined>;
|
|
17
|
+
resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<import("../..").DataSchema | undefined>;
|
|
18
|
+
resolveInternalDataSchema(args: DataSchemaRegArgsInternalDataSchema, params: ResolveFormulaParams): Promise<import("../..").DataSchema | undefined>;
|
|
19
|
+
getSchema(): {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DomainFromEmail extends DataBuilderFormulaBase {
|
|
3
|
+
value: any;
|
|
4
|
+
constructor(value: any);
|
|
5
|
+
getValue(variables: any): string | undefined;
|
|
6
|
+
resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
|
|
7
|
+
getSchema(): {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DataSchema } from '../../data-schema';
|
|
2
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
3
|
+
export interface EvalOperator {
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
operandSchema: any;
|
|
7
|
+
hasOperand: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class Eval extends DataBuilderFormulaBase {
|
|
10
|
+
value: any;
|
|
11
|
+
operatorKey: string;
|
|
12
|
+
operand: any;
|
|
13
|
+
constructor(args: any, formulaValue: any);
|
|
14
|
+
getAvailableOperators(variablesSchema: DataSchema): EvalOperator[];
|
|
15
|
+
getOperator(variablesSchema: any): EvalOperator;
|
|
16
|
+
getValue(variables: any): boolean;
|
|
17
|
+
resolveValue(params: ResolveFormulaParams): Promise<boolean>;
|
|
18
|
+
getSchema(): {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
toObject(): {
|
|
22
|
+
$eval: any;
|
|
23
|
+
};
|
|
24
|
+
transformVars(transformations: any): {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
$eval: any;
|
|
27
|
+
} | undefined;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DataBuilderFormulaExtractDate extends DataBuilderFormulaBase {
|
|
3
|
+
value: any;
|
|
4
|
+
constructor(value: any);
|
|
5
|
+
getValue(variables: any): string | undefined;
|
|
6
|
+
resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
|
|
7
|
+
getSchema(): {
|
|
8
|
+
type: string;
|
|
9
|
+
format: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DataBuilderFormulaExtractTime extends DataBuilderFormulaBase {
|
|
3
|
+
value: any;
|
|
4
|
+
constructor(value: any);
|
|
5
|
+
getValue(variables: any): string;
|
|
6
|
+
resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
|
|
7
|
+
getSchema(): {
|
|
8
|
+
type: string;
|
|
9
|
+
format: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataLinkTableConfig } from '../../data-links';
|
|
2
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
3
|
+
export interface FindAppRecordIdArgs {
|
|
4
|
+
dataLinkTable: DataLinkTableConfig;
|
|
5
|
+
recordId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class DataBuilderFormulaFindAppRecordId extends DataBuilderFormulaBase {
|
|
8
|
+
args: FindAppRecordIdArgs;
|
|
9
|
+
constructor(args: FindAppRecordIdArgs);
|
|
10
|
+
getValue(variables: any): {
|
|
11
|
+
$findAppRecordId: any;
|
|
12
|
+
};
|
|
13
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
14
|
+
getSchema(): {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataLinkTableConfig } from '../../data-links';
|
|
2
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
3
|
+
export interface FindExternalRecordIdArgs {
|
|
4
|
+
dataLinkTable: DataLinkTableConfig;
|
|
5
|
+
recordId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class DataBuilderFormulaFindExternalRecordId extends DataBuilderFormulaBase {
|
|
8
|
+
args: FindExternalRecordIdArgs;
|
|
9
|
+
constructor(args: FindExternalRecordIdArgs);
|
|
10
|
+
getValue(variables: any): {
|
|
11
|
+
$findExternalRecordId: any;
|
|
12
|
+
};
|
|
13
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
14
|
+
getSchema(): {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DataBuilderFormulaFirstName extends DataBuilderFormulaBase {
|
|
3
|
+
value: any;
|
|
4
|
+
constructor(value: any);
|
|
5
|
+
getValue(variables: any): any;
|
|
6
|
+
resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
|
|
7
|
+
getSchema(): {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class FirstNotEmpty extends DataBuilderFormulaBase {
|
|
3
|
+
constructor(args: any[]);
|
|
4
|
+
getValue(variables: any): any;
|
|
5
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
6
|
+
getSchema(variablesSchema: any): any;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class FormulaFormula extends DataBuilderFormulaBase {
|
|
3
|
+
constructor(args: any);
|
|
4
|
+
getValue(variables: any): any;
|
|
5
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
6
|
+
getSchema(): undefined;
|
|
7
|
+
transformVars(transformations: any): any;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { And } from './and';
|
|
2
|
+
export { DataBuilderFormulaBase as Base } from './base';
|
|
3
|
+
export { DataBuilderFormulaCase as Case } from './case';
|
|
4
|
+
export { DataBuilderFormulaConcat as Concat } from './concat';
|
|
5
|
+
export { DataBuilderFormulaCopy as Copy } from './copy';
|
|
6
|
+
export { DomainFromEmail } from './domainFromEmail';
|
|
7
|
+
export { Eval } from './eval';
|
|
8
|
+
export { DataBuilderFormulaExtractDate as ExtractDate } from './extractDate';
|
|
9
|
+
export { DataBuilderFormulaExtractTime as ExtractTime } from './extractTime';
|
|
10
|
+
export { DataBuilderFormulaFindAppRecordId as FindAppRecordId } from './findAppRecordId';
|
|
11
|
+
export { DataBuilderFormulaFindExternalRecordId as FindExternalRecordId } from './findExternalRecordId';
|
|
12
|
+
export { DataBuilderFormulaFirstName as FirstName } from './first-name';
|
|
13
|
+
export { FirstNotEmpty } from './firstNotEmpty';
|
|
14
|
+
export { FormulaFormula as Formula } from './formula';
|
|
15
|
+
export { DataBuilderFormulaIterate as Iterate } from './iterate';
|
|
16
|
+
export { JsonataFormula as Jsonata } from './jsonata';
|
|
17
|
+
export { DataBuilderFormulaLastName as LastName } from './last-name';
|
|
18
|
+
export { DataBuilderFormulaLookup as Lookup } from './lookup';
|
|
19
|
+
export { DataBuilderFormulaMap as Map } from './map';
|
|
20
|
+
export { MergeObjects } from './mergeObjects';
|
|
21
|
+
export { Or } from './or';
|
|
22
|
+
export { DataBuilderFormulaPlain as Plain } from './plain';
|
|
23
|
+
export { DataBuilderFormulaRecord as Record } from './record';
|
|
24
|
+
export { DataBuilderFormulaTpl as Tpl } from './tpl';
|
|
25
|
+
export { DataBuilderFormulaVar as Var } from './var';
|
|
26
|
+
export { DataSchemaRef } from './dataSchemaRef';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export interface IterateArguments {
|
|
3
|
+
source: any;
|
|
4
|
+
item?: any;
|
|
5
|
+
}
|
|
6
|
+
export declare class DataBuilderFormulaIterate extends DataBuilderFormulaBase {
|
|
7
|
+
args: IterateArguments;
|
|
8
|
+
source: any;
|
|
9
|
+
item: any;
|
|
10
|
+
constructor(args: IterateArguments);
|
|
11
|
+
getValue(variables: any): never[] | undefined;
|
|
12
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
13
|
+
getSchema(variablesSchema: any): {
|
|
14
|
+
type: string;
|
|
15
|
+
items: any;
|
|
16
|
+
};
|
|
17
|
+
getVariableLocators(): string[];
|
|
18
|
+
transformVars(transformations: any): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|