@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,8 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class JsonataFormula extends DataBuilderFormulaBase {
|
|
3
|
+
expression: any;
|
|
4
|
+
constructor(expression: any);
|
|
5
|
+
getValue(variables: any): any;
|
|
6
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
7
|
+
getSchema(): any;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DataBuilderFormulaLastName 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
|
+
toString(variablesSchema: any): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, LookupValue, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DataBuilderFormulaLookup extends DataBuilderFormulaBase {
|
|
3
|
+
value: LookupValue;
|
|
4
|
+
constructor(value: LookupValue);
|
|
5
|
+
getValue(variables: any): {
|
|
6
|
+
$lookup: any;
|
|
7
|
+
};
|
|
8
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
9
|
+
getSchema(): {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export interface MappingItem {
|
|
3
|
+
from: any;
|
|
4
|
+
to?: any;
|
|
5
|
+
}
|
|
6
|
+
export interface MapFormulaValue {
|
|
7
|
+
value: any;
|
|
8
|
+
mapping: MappingItem[];
|
|
9
|
+
default?: any;
|
|
10
|
+
}
|
|
11
|
+
export declare class DataBuilderFormulaMap extends DataBuilderFormulaBase {
|
|
12
|
+
args: MapFormulaValue;
|
|
13
|
+
constructor(args: MapFormulaValue);
|
|
14
|
+
getValue(variables: any): any;
|
|
15
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
16
|
+
getSchema(variablesSchema: any): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class MergeObjects extends DataBuilderFormulaBase {
|
|
3
|
+
constructor(args: any[]);
|
|
4
|
+
getValue(variables: any): {} | undefined;
|
|
5
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
6
|
+
getSchema(variablesSchema: any): {
|
|
7
|
+
type: string;
|
|
8
|
+
properties: {};
|
|
9
|
+
} | {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class Or 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,8 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DataBuilderFormulaPlain extends DataBuilderFormulaBase {
|
|
3
|
+
value: any;
|
|
4
|
+
constructor(value: any);
|
|
5
|
+
getValue(): any;
|
|
6
|
+
resolveValue(_params: ResolveFormulaParams): Promise<any>;
|
|
7
|
+
getSchema(): any;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
import { DataRecord } from '../../data-collections';
|
|
3
|
+
export declare class DataBuilderFormulaRecord extends DataBuilderFormulaBase {
|
|
4
|
+
record: DataRecord;
|
|
5
|
+
constructor(record: DataRecord);
|
|
6
|
+
getValue(): string;
|
|
7
|
+
resolveValue(_params: ResolveFormulaParams): Promise<string | undefined>;
|
|
8
|
+
getSchema(): {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
type TplFormulaArgs = {
|
|
3
|
+
template: string;
|
|
4
|
+
values: Record<string, any>;
|
|
5
|
+
};
|
|
6
|
+
export declare class DataBuilderFormulaTpl extends DataBuilderFormulaBase {
|
|
7
|
+
args: TplFormulaArgs;
|
|
8
|
+
constructor(args: TplFormulaArgs);
|
|
9
|
+
getValue(variables: any): string;
|
|
10
|
+
resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
|
|
11
|
+
getSchema(): {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum DataBuilderFormulaType {
|
|
2
|
+
VAR = "var",
|
|
3
|
+
COPY = "copy",
|
|
4
|
+
TPL = "tpl",
|
|
5
|
+
RECORD = "record",
|
|
6
|
+
LOOKUP = "lookup",
|
|
7
|
+
PLAIN = "plain",
|
|
8
|
+
MAP = "map",
|
|
9
|
+
CONCAT = "concat",
|
|
10
|
+
FIRST_NAME = "firstName",
|
|
11
|
+
LAST_NAME = "lastName",
|
|
12
|
+
ITERATE = "iterate",
|
|
13
|
+
CASE = "case",
|
|
14
|
+
EXTRACT_DATE = "extractDate",
|
|
15
|
+
EXTRACT_TIME = "extractTime",
|
|
16
|
+
FIND_EXTERNAL_RECORD_ID = "findExternalRecordId",
|
|
17
|
+
FIND_APP_RECORD_ID = "findAppRecordId",
|
|
18
|
+
EVAL = "eval",
|
|
19
|
+
AND = "and",
|
|
20
|
+
OR = "or",
|
|
21
|
+
MERGE_OBJECTS = "mergeObjects",
|
|
22
|
+
FIRST_NOT_EMPTY = "firstNotEmpty",
|
|
23
|
+
DOMAIN_FROM_EMAIL = "domainFromEmail",
|
|
24
|
+
FORMULA = "formula",
|
|
25
|
+
JSONATA = "jsonata",
|
|
26
|
+
DATA_SCHEMA_REF = "dataSchemaRef"
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataBuilderFormulaBase, ResolveFormulaParams } from './base';
|
|
2
|
+
export declare class DataBuilderFormulaVar extends DataBuilderFormulaBase {
|
|
3
|
+
locator: string;
|
|
4
|
+
constructor(locator: string);
|
|
5
|
+
getValue(variables: any): any;
|
|
6
|
+
resolveValue(params: ResolveFormulaParams): Promise<any>;
|
|
7
|
+
getSchema(variablesSchema: any): any;
|
|
8
|
+
toString(variablesSchema: any): string;
|
|
9
|
+
getVariableLocators(): string[];
|
|
10
|
+
transformVars(transformations: any): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './formula-processors';
|
|
2
|
+
export * from './formula-types';
|
|
3
|
+
export * as Formula from './formulas';
|
|
4
|
+
export { CaseFormulaValue, CaseFormulaValueItem } from './formulas/case';
|
|
5
|
+
export { EvalOperator } from './formulas/eval';
|
|
6
|
+
export { LookupValue } from './formulas/base';
|
|
7
|
+
export { MappingItem } from './formulas/map';
|
|
8
|
+
export { DataBuilderFormulaType } from './formulas/types';
|
|
9
|
+
export * from './locators';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DataSchema } from '../data-schema';
|
|
2
|
+
export declare enum DataLocatorStepType {
|
|
3
|
+
OBJECT_PROPERTY = "object_property",
|
|
4
|
+
ARRAY_ITEM = "array_item"
|
|
5
|
+
}
|
|
6
|
+
export declare class DataLocatorStep {
|
|
7
|
+
type: DataLocatorStepType;
|
|
8
|
+
}
|
|
9
|
+
export declare class DataLocatorStepObjectProperty extends DataLocatorStep {
|
|
10
|
+
propertyName: string;
|
|
11
|
+
constructor(propertyName: string);
|
|
12
|
+
}
|
|
13
|
+
export declare class DataLocatorStepArrayItem extends DataLocatorStep {
|
|
14
|
+
index: number;
|
|
15
|
+
constructor(index: number);
|
|
16
|
+
}
|
|
17
|
+
export type DataLocator = DataLocatorStep[] | string;
|
|
18
|
+
export declare class InvalidLocatorError extends Error {
|
|
19
|
+
}
|
|
20
|
+
export declare function locatorToField(locator: string): string;
|
|
21
|
+
export declare function makeObjectPropertyLocator(objectLocator: string | undefined, propertyName: string): string;
|
|
22
|
+
export declare function getLocatorsFromSchema(schema?: DataSchema, rootLocator?: string): string[];
|
|
23
|
+
export declare function getSchemaByLocator(schema: any, locator: DataLocator): any;
|
|
24
|
+
export declare function findValueLocators(data: any, value: any): string[];
|
|
25
|
+
export declare function getValueAtLocator(data: any, locator: DataLocator): any;
|
|
26
|
+
export declare function setValueAtLocator(obj: any, locator: string, value: any): any;
|
|
27
|
+
export declare function pickFieldsFromValue(value: any, fields: string[]): any;
|
|
28
|
+
export declare function excludeFieldsFromValue(value: any, fields: string[]): any;
|
|
29
|
+
export declare function setSchemaAtLocator(schema: any, locator: DataLocator, schemaAtLocator: any): any;
|
|
30
|
+
export declare function extractFieldLocator(locator: string): string;
|
|
31
|
+
export declare function makeSchemaForLocator(locator: DataLocator, locatorSchema: any): any;
|
|
32
|
+
export declare function getNameForLocator(schema: any, locator: DataLocator): string | null | undefined;
|
|
33
|
+
export declare function getNameComponentsForLocator(schema: any, locator: DataLocator): string[] | undefined;
|
|
34
|
+
export declare function getFullNameForLocator(schema: any, locator: DataLocator): string | undefined;
|
|
35
|
+
export declare function getIconUriForLocator(schema: any, locator: DataLocator): string;
|
|
36
|
+
export declare function getLocatorsFromData(data: any, parentLocator?: string): any;
|
|
37
|
+
export declare const getFullTitleForLocator: typeof getFullNameForLocator;
|
|
38
|
+
export declare function isValidLocator(locator: DataLocator): boolean;
|
|
39
|
+
export declare function locatorToSteps(sourceLocator: DataLocator): DataLocatorStep[];
|
|
40
|
+
export declare function locatorToString(locator: DataLocator): string;
|
|
41
|
+
export declare function stepsToLocator(steps: DataLocatorStep[]): string;
|
|
42
|
+
export declare function createObjectFromLocators(locators?: string[], placeholderValue?: string): {};
|
|
43
|
+
export declare function getFormulaLocators(formulaType: string, data: any): string[];
|
|
44
|
+
export declare function transformVariablesWith(data: any, transformFunction: (locator: string) => string): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface DataRecord {
|
|
2
|
+
id: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
uri?: string;
|
|
5
|
+
iconUri?: string;
|
|
6
|
+
fields?: Record<string, any>;
|
|
7
|
+
udm?: string;
|
|
8
|
+
unifiedFields?: Record<string, any>;
|
|
9
|
+
rawFields?: Record<string, any>;
|
|
10
|
+
createdTime?: string;
|
|
11
|
+
updatedTime?: string;
|
|
12
|
+
deletedTime?: string;
|
|
13
|
+
createdById?: string;
|
|
14
|
+
updatedById?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare enum DataCollectionEventType {
|
|
17
|
+
CREATED = "created",
|
|
18
|
+
UPDATED = "updated",
|
|
19
|
+
DELETED = "deleted"
|
|
20
|
+
}
|
|
21
|
+
export interface DataCollectionEvent {
|
|
22
|
+
type: DataCollectionEventType;
|
|
23
|
+
record: DataRecord;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataFilterOperator } from './operators';
|
|
2
|
+
import { DataLocator } from '../data-builder/locators';
|
|
3
|
+
export declare function backwardCompatibleFilterMatch(filter: any, variables: any): any;
|
|
4
|
+
export declare function doesMatchFilter(data: any, filter: DataFilter): boolean;
|
|
5
|
+
export declare class DataFilterCondition {
|
|
6
|
+
field: string;
|
|
7
|
+
operator: string;
|
|
8
|
+
value?: any | undefined;
|
|
9
|
+
constructor(field: string, operator: string, value?: any | undefined);
|
|
10
|
+
}
|
|
11
|
+
export type DataFilter = DataFilterCondition[];
|
|
12
|
+
export declare function getOperatorsBySchema(schema: any): DataFilterOperator[];
|
|
13
|
+
export declare function getFilterFieldValuesByLocator(data: any, locator: DataLocator): any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const DEFAULT_CONDITION_TYPE_KEY = "equals";
|
|
2
|
+
export interface DataFilterOperator {
|
|
3
|
+
type: string;
|
|
4
|
+
name: string;
|
|
5
|
+
operandSchema: any;
|
|
6
|
+
}
|
|
7
|
+
export interface DataFilterOperatorSpec {
|
|
8
|
+
name: string;
|
|
9
|
+
handler: (fieldValue: any, operand: any) => boolean;
|
|
10
|
+
applicableToSchema: (schema: any) => boolean;
|
|
11
|
+
getOperandSchema: (schema: any) => any;
|
|
12
|
+
}
|
|
13
|
+
export declare const OPERATORS: Record<string, DataFilterOperatorSpec>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DataSchema } from '../data-schema';
|
|
2
|
+
import { DataField } from './data-field';
|
|
3
|
+
export interface DataFormArgs {
|
|
4
|
+
schema: DataSchema;
|
|
5
|
+
value: any;
|
|
6
|
+
variablesSchema?: DataSchema;
|
|
7
|
+
}
|
|
8
|
+
export interface FieldValueOption {
|
|
9
|
+
name: string;
|
|
10
|
+
value: any;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface DataForm extends DataFormArgs {
|
|
14
|
+
}
|
|
15
|
+
export declare class DataForm {
|
|
16
|
+
constructor(args: DataFormArgs);
|
|
17
|
+
getFields(): DataField[];
|
|
18
|
+
getFieldValueOptions(field: DataField): FieldValueOption[];
|
|
19
|
+
setFieldValue(field: DataField, value: any): any;
|
|
20
|
+
private makeDataField;
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor } from '../accessors';
|
|
2
|
+
import { IntegrationAppApiClient } from '../api-client';
|
|
3
|
+
import { CreateDataLinkRequest, CreateDataLinkTableRequest, DataLinkTableInstanceSelector, DeleteDataLinkRequest, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksResponse, UpdateDataLinkTableInstanceRequest, UpdateDataLinkTableRequest } from './api';
|
|
4
|
+
import { DataLinkTable, DataLinkTableInstance } from '.';
|
|
5
|
+
export declare class DataLinkTablesAccessor extends ElementListAccessor<DataLinkTable, FindDataLinkTablesQuery, CreateDataLinkTableRequest> {
|
|
6
|
+
constructor(client: IntegrationAppApiClient);
|
|
7
|
+
}
|
|
8
|
+
export declare class DataLinkTableAccessor extends ElementAccessor<DataLinkTable, UpdateDataLinkTableRequest> {
|
|
9
|
+
constructor(client: IntegrationAppApiClient, idOrKey: string);
|
|
10
|
+
}
|
|
11
|
+
export declare class DataLinkTableInstancesAccessor extends ElementInstanceListAccessor<DataLinkTableInstance, FindDataLinkTableInstancesQuery> {
|
|
12
|
+
constructor(client: IntegrationAppApiClient);
|
|
13
|
+
}
|
|
14
|
+
export declare class DataLinkTableInstanceAccessor extends ElementInstanceAccessor<DataLinkTableInstance, DataLinkTableInstanceSelector, UpdateDataLinkTableInstanceRequest, UpdateDataLinkTableInstanceRequest> {
|
|
15
|
+
private client;
|
|
16
|
+
constructor(client: IntegrationAppApiClient, selector: string | DataLinkTableInstanceSelector);
|
|
17
|
+
findLinks(query?: FindDataLinksInTableQuery): Promise<FindDataLinksResponse>;
|
|
18
|
+
createLink(data: CreateDataLinkRequest): Promise<void>;
|
|
19
|
+
deleteLink(data: DeleteDataLinkRequest): Promise<void>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ElementInstanceSelector } from '../accessors';
|
|
2
|
+
import { ConnectionSelector } from '../connections/api';
|
|
3
|
+
import { PaginationQuery, PaginationResponse } from '../entity-repository';
|
|
4
|
+
import { DataLink, DataLinkDirection, DataLinkTable } from '.';
|
|
5
|
+
export type CreateDataLinkTableRequest = Omit<DataLinkTable, 'id' | 'userId'>;
|
|
6
|
+
export type UpdateDataLinkTableRequest = CreateDataLinkTableRequest;
|
|
7
|
+
export interface FindDataLinkTablesQuery extends PaginationQuery {
|
|
8
|
+
}
|
|
9
|
+
export interface FindDataLinkTableInstancesQuery extends PaginationQuery {
|
|
10
|
+
connectionId?: string;
|
|
11
|
+
integrationId?: string;
|
|
12
|
+
dataLinkTableId?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DataLinkTableInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
|
|
15
|
+
dataLinkTableId?: string;
|
|
16
|
+
dataLinkTableKey?: string;
|
|
17
|
+
instanceKey?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface UpdateDataLinkTableInstanceRequest {
|
|
20
|
+
}
|
|
21
|
+
export interface CreateDataLinkTableInstanceRequest {
|
|
22
|
+
}
|
|
23
|
+
export interface FindDataLinksInTableQuery extends PaginationQuery {
|
|
24
|
+
direction?: DataLinkDirection;
|
|
25
|
+
appRecordId?: string;
|
|
26
|
+
externalRecordId?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface CreateDataLinkRequest {
|
|
29
|
+
direction?: DataLinkDirection;
|
|
30
|
+
appRecordId: string;
|
|
31
|
+
externalRecordId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface DeleteDataLinkRequest {
|
|
34
|
+
direction?: DataLinkDirection;
|
|
35
|
+
appRecordId: string;
|
|
36
|
+
externalRecordId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface FindDataLinksQuery extends PaginationQuery, FindDataLinksInTableQuery {
|
|
39
|
+
dataLinkTableInstanceId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface FindDataLinksResponse extends PaginationResponse<DataLink> {
|
|
42
|
+
}
|
|
43
|
+
export interface FindDataLinkQuery extends PaginationQuery {
|
|
44
|
+
dataLinkTableInstanceId: string;
|
|
45
|
+
externalRecordId: string;
|
|
46
|
+
appRecordId: string;
|
|
47
|
+
direction: DataLinkDirection;
|
|
48
|
+
}
|
|
49
|
+
export interface DataLinkInTableSelector {
|
|
50
|
+
appRecordId: string;
|
|
51
|
+
externalRecordId: string;
|
|
52
|
+
direction: DataLinkDirection;
|
|
53
|
+
}
|
|
54
|
+
export interface DataLinkSelector extends DataLinkInTableSelector {
|
|
55
|
+
dataLinkTableInstanceId: string;
|
|
56
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Connection } from '../connections';
|
|
2
|
+
import { Integration } from '../integrations';
|
|
3
|
+
import { User } from '../users';
|
|
4
|
+
import { WorkspaceElement } from '../workspace-elements';
|
|
5
|
+
export * from './accessors';
|
|
6
|
+
export * from './api';
|
|
7
|
+
export declare enum DataLinkDirection {
|
|
8
|
+
IMPORT = "import",
|
|
9
|
+
EXPORT = "export",
|
|
10
|
+
BOTH = "both"
|
|
11
|
+
}
|
|
12
|
+
export interface DataLinkTable extends WorkspaceElement {
|
|
13
|
+
archivedAt?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DataLinkTableInstance extends WorkspaceElement {
|
|
16
|
+
dataLinkTableId?: string;
|
|
17
|
+
dataLinkTable?: DataLinkTable;
|
|
18
|
+
connectionId?: string;
|
|
19
|
+
connection?: Connection;
|
|
20
|
+
integrationId: string;
|
|
21
|
+
integration?: Integration;
|
|
22
|
+
instanceKey?: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
user?: User;
|
|
25
|
+
archivedAt?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface DataLink {
|
|
28
|
+
id: string;
|
|
29
|
+
dataLinkTableInstanceId: string;
|
|
30
|
+
externalRecordId: string;
|
|
31
|
+
appRecordId: string;
|
|
32
|
+
direction: DataLinkDirection;
|
|
33
|
+
}
|
|
34
|
+
export interface DataLinkTableConfig {
|
|
35
|
+
key: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataSchema } from './types';
|
|
2
|
+
export declare class IDataField {
|
|
3
|
+
key?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
schema?: DataSchema;
|
|
6
|
+
value?: any;
|
|
7
|
+
isRequired?: boolean;
|
|
8
|
+
subFields?: IDataField[];
|
|
9
|
+
}
|
|
10
|
+
export interface DataField extends IDataField {
|
|
11
|
+
}
|
|
12
|
+
export declare class DataField {
|
|
13
|
+
constructor(data: IDataField);
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataSchema } from './types';
|
|
2
|
+
export interface PatchSchemaOption {
|
|
3
|
+
readOnly?: boolean;
|
|
4
|
+
writeOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function mergeSchemas(schemas: any[]): any;
|
|
7
|
+
export declare function patchSchema(source: DataSchema, patch: DataSchema, options?: PatchSchemaOption): any;
|
|
8
|
+
export declare function unwrapSchema(schema: any): any[];
|
|
9
|
+
export declare function unwrapSchemas(schemas: any[]): any[];
|
|
10
|
+
export declare function wrapAnyOfSchema(schema: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DataRecord } from '../data-collections';
|
|
2
|
+
export interface DataSchema {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
type?: string | string[];
|
|
6
|
+
format?: string;
|
|
7
|
+
properties?: {
|
|
8
|
+
[key: string]: DataSchema;
|
|
9
|
+
};
|
|
10
|
+
items?: DataSchema;
|
|
11
|
+
additionalProperties?: boolean | DataSchema;
|
|
12
|
+
enum?: string[];
|
|
13
|
+
referenceRecords?: DataRecord[];
|
|
14
|
+
referenceCollection?: {
|
|
15
|
+
key: any;
|
|
16
|
+
parameters?: Record<string, any>;
|
|
17
|
+
};
|
|
18
|
+
referenceUdm?: string;
|
|
19
|
+
default?: any;
|
|
20
|
+
allowCustom?: boolean;
|
|
21
|
+
$ref?: string;
|
|
22
|
+
required?: string[];
|
|
23
|
+
minLength?: number;
|
|
24
|
+
maxLength?: number;
|
|
25
|
+
minimum?: number;
|
|
26
|
+
maximum?: number;
|
|
27
|
+
maxItems?: number;
|
|
28
|
+
readOnly?: boolean;
|
|
29
|
+
writeOnly?: boolean;
|
|
30
|
+
examples?: any[];
|
|
31
|
+
anyOf?: DataSchema[];
|
|
32
|
+
isImplied?: boolean;
|
|
33
|
+
referenceCollectionPath?: string;
|
|
34
|
+
referenceCollectionUri?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DataLocationPointer } from '../connectors';
|
|
2
|
+
import { DataSchema } from './types';
|
|
3
|
+
export declare function buildDataSchema(value: any, variablesSchema?: any): any;
|
|
4
|
+
export declare function updateImpliedSchema({ schema, value, variablesSchema, }: {
|
|
5
|
+
schema: DataSchema | undefined;
|
|
6
|
+
value: any;
|
|
7
|
+
variablesSchema?: DataSchema;
|
|
8
|
+
}): DataSchema | undefined;
|
|
9
|
+
export declare function updateImpliedSchema({ schema, value, variablesSchema, }: {
|
|
10
|
+
schema: DataSchema;
|
|
11
|
+
value: any;
|
|
12
|
+
variablesSchema?: DataSchema | undefined;
|
|
13
|
+
}): DataSchema;
|
|
14
|
+
export declare function schemaHasProperties(schema?: DataSchema): boolean;
|
|
15
|
+
export declare function nonEmptyObjectProperties(properties: Record<string, DataSchema | undefined | null>): Record<string, DataSchema>;
|
|
16
|
+
export declare function getSchemaFromValue(value: any, variablesSchema: any, ignoreFormulas?: boolean): any;
|
|
17
|
+
export declare function schemaTypeFromValue(value: any): "object" | "boolean" | "number" | "string" | "array" | undefined;
|
|
18
|
+
export interface ValueToSchemaOptions {
|
|
19
|
+
addDefaults?: boolean;
|
|
20
|
+
skipUnknownFields?: boolean;
|
|
21
|
+
skipReadOnlyFields?: boolean;
|
|
22
|
+
normalizeValues?: boolean;
|
|
23
|
+
valueHasFormulas?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function valueToSchema(value: any, schema: DataSchema | undefined, options?: ValueToSchemaOptions, field?: string): any;
|
|
26
|
+
export declare function schemaIsScalar(schema: DataSchema): boolean;
|
|
27
|
+
export declare function schemaHasFixedValues(schema: DataSchema): boolean;
|
|
28
|
+
export declare function schemaAllowsCustomValue(schema: DataSchema): boolean | undefined;
|
|
29
|
+
export declare function schemaIsNumber(schema: DataSchema): boolean;
|
|
30
|
+
export declare function schemaWithTitle(schema: DataSchema, title: string): DataSchema;
|
|
31
|
+
export declare function schemaWithTitle(schema: DataSchema | undefined, title: string): DataSchema | undefined;
|
|
32
|
+
export declare function pickFieldsFromSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
|
|
33
|
+
export declare function excludeReadOnlyFieldsFromSchema(schema?: DataSchema): DataSchema | undefined;
|
|
34
|
+
export declare function excludeWriteOnlyFieldsFromSchema(schema?: DataSchema): DataSchema | undefined;
|
|
35
|
+
export declare function excludeFieldsFromSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
|
|
36
|
+
export declare function getRequiredFieldsFromSchema(schema: DataSchema): string[];
|
|
37
|
+
export declare function addRequiredFieldsToSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
|
|
38
|
+
export declare function removeRequiredFieldsFromSchema(schema: DataSchema): any;
|
|
39
|
+
export declare function getMissingRequiredFields(schema: DataSchema | undefined, value: any): string[];
|
|
40
|
+
export declare function populateSchemaTitles(schema: DataSchema | undefined): DataSchema | undefined;
|
|
41
|
+
export declare function populateSchemaTitles(schema: DataSchema): DataSchema;
|
|
42
|
+
export declare function generateExampleFromSchema(schema: DataSchema | undefined): any;
|
|
43
|
+
export declare function isSchemaEmpty(schema: DataSchema): boolean;
|
|
44
|
+
export declare function compressDataSchema(schema: DataSchema): DataSchema;
|
|
45
|
+
export declare function getReferenceCollectionPointerForSchema(schema: DataSchema | undefined): DataLocationPointer | undefined;
|
|
46
|
+
export declare function getReferenceCollectionPathForSchema(schema: DataSchema | undefined): string | undefined;
|
|
47
|
+
export declare function walkSchema(schema: DataSchema | undefined, callback: (schema: DataSchema, locator: string) => DataSchema | undefined, locator?: string): DataSchema | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|