@integration-app/react 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/contexts/integration-app-context.d.ts +2 -4
- package/integrations/index.d.ts +3 -4
- package/package.json +17 -4
- package/node_modules/@compwright/namecase/LICENSE +0 -26
- package/node_modules/@compwright/namecase/README.md +0 -49
- package/node_modules/@compwright/namecase/bin/namecase +0 -28
- package/node_modules/@compwright/namecase/dist/namecase.min.js +0 -4
- package/node_modules/@compwright/namecase/dist/namecase.min.js.map +0 -1
- package/node_modules/@compwright/namecase/package.json +0 -46
- package/node_modules/@compwright/namecase/src/index.js +0 -146
- package/node_modules/@integration-app/sdk/accessors.d.ts +0 -56
- package/node_modules/@integration-app/sdk/accessors.js +0 -104
- package/node_modules/@integration-app/sdk/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.d.ts +0 -16
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.js +0 -38
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-collections/api.d.ts +0 -18
- package/node_modules/@integration-app/sdk/app-data-collections/api.js +0 -3
- package/node_modules/@integration-app/sdk/app-data-collections/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-collections/index.d.ts +0 -26
- package/node_modules/@integration-app/sdk/app-data-collections/index.js +0 -3
- package/node_modules/@integration-app/sdk/app-data-collections/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.d.ts +0 -16
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js +0 -38
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-schemas/api.d.ts +0 -18
- package/node_modules/@integration-app/sdk/app-data-schemas/api.js +0 -3
- package/node_modules/@integration-app/sdk/app-data-schemas/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-schemas/index.d.ts +0 -21
- package/node_modules/@integration-app/sdk/app-data-schemas/index.js +0 -3
- package/node_modules/@integration-app/sdk/app-data-schemas/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-events/accessors.d.ts +0 -16
- package/node_modules/@integration-app/sdk/app-events/accessors.js +0 -38
- package/node_modules/@integration-app/sdk/app-events/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-events/api.d.ts +0 -18
- package/node_modules/@integration-app/sdk/app-events/api.js +0 -3
- package/node_modules/@integration-app/sdk/app-events/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-events/index.d.ts +0 -46
- package/node_modules/@integration-app/sdk/app-events/index.js +0 -3
- package/node_modules/@integration-app/sdk/app-events/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/auth/accessors.d.ts +0 -7
- package/node_modules/@integration-app/sdk/auth/accessors.js +0 -13
- package/node_modules/@integration-app/sdk/auth/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/auth/index.d.ts +0 -6
- package/node_modules/@integration-app/sdk/auth/index.js +0 -3
- package/node_modules/@integration-app/sdk/auth/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/bundle-index.d.ts +0 -1
- package/node_modules/@integration-app/sdk/bundle-index.js +0 -5
- package/node_modules/@integration-app/sdk/bundle-index.js.map +0 -1
- package/node_modules/@integration-app/sdk/bundle.js +0 -30163
- package/node_modules/@integration-app/sdk/bundle.js.map +0 -1
- package/node_modules/@integration-app/sdk/client.d.ts +0 -108
- package/node_modules/@integration-app/sdk/client.js +0 -248
- package/node_modules/@integration-app/sdk/client.js.map +0 -1
- package/node_modules/@integration-app/sdk/connections/accessors.d.ts +0 -13
- package/node_modules/@integration-app/sdk/connections/accessors.js +0 -39
- package/node_modules/@integration-app/sdk/connections/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/connections/api.d.ts +0 -20
- package/node_modules/@integration-app/sdk/connections/api.js +0 -17
- package/node_modules/@integration-app/sdk/connections/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/connections/index.d.ts +0 -39
- package/node_modules/@integration-app/sdk/connections/index.js +0 -13
- package/node_modules/@integration-app/sdk/connections/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/connector-api/index.d.ts +0 -2
- package/node_modules/@integration-app/sdk/connector-api/index.js +0 -9
- package/node_modules/@integration-app/sdk/connector-api/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/context.d.ts +0 -9
- package/node_modules/@integration-app/sdk/data-builder/context.js +0 -32
- package/node_modules/@integration-app/sdk/data-builder/context.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.d.ts +0 -9
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.js +0 -59
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +0 -14
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +0 -45
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.d.ts +0 -18
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js +0 -36
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js +0 -22
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.d.ts +0 -11
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js +0 -31
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.d.ts +0 -11
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js +0 -31
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.d.ts +0 -17
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js +0 -24
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.d.ts +0 -17
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js +0 -24
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js +0 -25
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.d.ts +0 -28
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.js +0 -177
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.d.ts +0 -15
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js +0 -41
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js +0 -25
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.d.ts +0 -20
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js +0 -24
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.d.ts +0 -17
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.js +0 -34
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.d.ts +0 -7
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js +0 -20
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.js +0 -23
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.d.ts +0 -12
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js +0 -22
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.d.ts +0 -15
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js +0 -31
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.d.ts +0 -8
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.js +0 -21
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.d.ts +0 -2
- package/node_modules/@integration-app/sdk/data-builder/index.js +0 -17
- package/node_modules/@integration-app/sdk/data-builder/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.d.ts +0 -56
- package/node_modules/@integration-app/sdk/data-builder/locators.js +0 -560
- package/node_modules/@integration-app/sdk/data-builder/locators.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-collections.d.ts +0 -36
- package/node_modules/@integration-app/sdk/data-collections.js +0 -16
- package/node_modules/@integration-app/sdk/data-collections.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.d.ts +0 -12
- package/node_modules/@integration-app/sdk/data-filter/index.js +0 -104
- package/node_modules/@integration-app/sdk/data-filter/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.d.ts +0 -13
- package/node_modules/@integration-app/sdk/data-filter/operators.js +0 -140
- package/node_modules/@integration-app/sdk/data-filter/operators.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-links/accessors.d.ts +0 -20
- package/node_modules/@integration-app/sdk/data-links/accessors.js +0 -65
- package/node_modules/@integration-app/sdk/data-links/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-links/api.d.ts +0 -49
- package/node_modules/@integration-app/sdk/data-links/api.js +0 -3
- package/node_modules/@integration-app/sdk/data-links/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-links/index.d.ts +0 -35
- package/node_modules/@integration-app/sdk/data-links/index.js +0 -10
- package/node_modules/@integration-app/sdk/data-links/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-locations/accessors.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-locations/accessors.js +0 -22
- package/node_modules/@integration-app/sdk/data-locations/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-locations/api.d.ts +0 -4
- package/node_modules/@integration-app/sdk/data-locations/api.js +0 -3
- package/node_modules/@integration-app/sdk/data-locations/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-locations/index.d.ts +0 -138
- package/node_modules/@integration-app/sdk/data-locations/index.js +0 -17
- package/node_modules/@integration-app/sdk/data-locations/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.d.ts +0 -49
- package/node_modules/@integration-app/sdk/data-schema/index.js +0 -88
- package/node_modules/@integration-app/sdk/data-schema/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-sources/accessors.d.ts +0 -29
- package/node_modules/@integration-app/sdk/data-sources/accessors.js +0 -71
- package/node_modules/@integration-app/sdk/data-sources/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-sources/api.d.ts +0 -37
- package/node_modules/@integration-app/sdk/data-sources/api.js +0 -3
- package/node_modules/@integration-app/sdk/data-sources/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-sources/index.d.ts +0 -55
- package/node_modules/@integration-app/sdk/data-sources/index.js +0 -3
- package/node_modules/@integration-app/sdk/data-sources/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/datetime.d.ts +0 -1
- package/node_modules/@integration-app/sdk/datetime.js +0 -15
- package/node_modules/@integration-app/sdk/datetime.js.map +0 -1
- package/node_modules/@integration-app/sdk/entity-repository.d.ts +0 -11
- package/node_modules/@integration-app/sdk/entity-repository.js +0 -10
- package/node_modules/@integration-app/sdk/entity-repository.js.map +0 -1
- package/node_modules/@integration-app/sdk/errors.d.ts +0 -64
- package/node_modules/@integration-app/sdk/errors.js +0 -141
- package/node_modules/@integration-app/sdk/errors.js.map +0 -1
- package/node_modules/@integration-app/sdk/field-mappings/accessors.d.ts +0 -25
- package/node_modules/@integration-app/sdk/field-mappings/accessors.js +0 -60
- package/node_modules/@integration-app/sdk/field-mappings/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/field-mappings/api.d.ts +0 -34
- package/node_modules/@integration-app/sdk/field-mappings/api.js +0 -3
- package/node_modules/@integration-app/sdk/field-mappings/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/field-mappings/index.d.ts +0 -90
- package/node_modules/@integration-app/sdk/field-mappings/index.js +0 -195
- package/node_modules/@integration-app/sdk/field-mappings/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.d.ts +0 -30
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js +0 -11
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js.map +0 -1
- package/node_modules/@integration-app/sdk/flow-runs/index.d.ts +0 -59
- package/node_modules/@integration-app/sdk/flow-runs/index.js +0 -44
- package/node_modules/@integration-app/sdk/flow-runs/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/accessors.d.ts +0 -37
- package/node_modules/@integration-app/sdk/flows/accessors.js +0 -167
- package/node_modules/@integration-app/sdk/flows/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/api.d.ts +0 -55
- package/node_modules/@integration-app/sdk/flows/api.js +0 -8
- package/node_modules/@integration-app/sdk/flows/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/index.d.ts +0 -84
- package/node_modules/@integration-app/sdk/flows/index.js +0 -26
- package/node_modules/@integration-app/sdk/flows/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js +0 -9
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js +0 -9
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js +0 -9
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js +0 -9
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js +0 -9
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/filter.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/filter.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/filter.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/index.d.ts +0 -28
- package/node_modules/@integration-app/sdk/flows/nodes/index.js +0 -50
- package/node_modules/@integration-app/sdk/flows/nodes/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js +0 -9
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js +0 -8
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.d.ts +0 -10
- package/node_modules/@integration-app/sdk/flows/utils.js +0 -72
- package/node_modules/@integration-app/sdk/flows/utils.js.map +0 -1
- package/node_modules/@integration-app/sdk/http-requests.d.ts +0 -37
- package/node_modules/@integration-app/sdk/http-requests.js +0 -33
- package/node_modules/@integration-app/sdk/http-requests.js.map +0 -1
- package/node_modules/@integration-app/sdk/iframe.d.ts +0 -9
- package/node_modules/@integration-app/sdk/iframe.js +0 -112
- package/node_modules/@integration-app/sdk/iframe.js.map +0 -1
- package/node_modules/@integration-app/sdk/index.d.ts +0 -4
- package/node_modules/@integration-app/sdk/index.js +0 -8
- package/node_modules/@integration-app/sdk/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/integration-elements/index.d.ts +0 -22
- package/node_modules/@integration-app/sdk/integration-elements/index.js +0 -15
- package/node_modules/@integration-app/sdk/integration-elements/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +0 -17
- package/node_modules/@integration-app/sdk/integrations/accessors.js +0 -36
- package/node_modules/@integration-app/sdk/integrations/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/integrations/api.d.ts +0 -10
- package/node_modules/@integration-app/sdk/integrations/api.js +0 -3
- package/node_modules/@integration-app/sdk/integrations/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/integrations/index.d.ts +0 -27
- package/node_modules/@integration-app/sdk/integrations/index.js +0 -16
- package/node_modules/@integration-app/sdk/integrations/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/index.d.ts +0 -32
- package/node_modules/@integration-app/sdk/json-schema/index.js +0 -207
- package/node_modules/@integration-app/sdk/json-schema/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.d.ts +0 -7
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.js +0 -232
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.js.map +0 -1
- package/node_modules/@integration-app/sdk/jwt.d.ts +0 -1
- package/node_modules/@integration-app/sdk/jwt.js +0 -37
- package/node_modules/@integration-app/sdk/jwt.js.map +0 -1
- package/node_modules/@integration-app/sdk/package.json +0 -63
- package/node_modules/@integration-app/sdk/rollup.config.js +0 -23
- package/node_modules/@integration-app/sdk/src/accessors.ts +0 -150
- package/node_modules/@integration-app/sdk/src/app-data-collections/accessors.ts +0 -69
- package/node_modules/@integration-app/sdk/src/app-data-collections/api.ts +0 -31
- package/node_modules/@integration-app/sdk/src/app-data-collections/index.ts +0 -46
- package/node_modules/@integration-app/sdk/src/app-data-schemas/accessors.ts +0 -69
- package/node_modules/@integration-app/sdk/src/app-data-schemas/api.ts +0 -28
- package/node_modules/@integration-app/sdk/src/app-data-schemas/index.ts +0 -35
- package/node_modules/@integration-app/sdk/src/app-events/accessors.ts +0 -69
- package/node_modules/@integration-app/sdk/src/app-events/api.ts +0 -28
- package/node_modules/@integration-app/sdk/src/app-events/index.ts +0 -75
- package/node_modules/@integration-app/sdk/src/auth/accessors.ts +0 -10
- package/node_modules/@integration-app/sdk/src/auth/index.ts +0 -7
- package/node_modules/@integration-app/sdk/src/bundle-index.ts +0 -6
- package/node_modules/@integration-app/sdk/src/client.ts +0 -417
- package/node_modules/@integration-app/sdk/src/connections/accessors.ts +0 -58
- package/node_modules/@integration-app/sdk/src/connections/api.ts +0 -28
- package/node_modules/@integration-app/sdk/src/connections/index.ts +0 -70
- package/node_modules/@integration-app/sdk/src/connector-api/index.ts +0 -44
- package/node_modules/@integration-app/sdk/src/data-builder/context.ts +0 -40
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.test.ts +0 -26
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.ts +0 -95
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +0 -158
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +0 -53
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.test.ts +0 -117
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.ts +0 -49
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.test.ts +0 -70
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.ts +0 -20
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.test.ts +0 -49
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.ts +0 -28
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.test.ts +0 -49
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.ts +0 -28
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.test.ts +0 -30
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.ts +0 -30
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.test.ts +0 -30
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.ts +0 -30
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/first-name.ts +0 -21
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.test.ts +0 -83
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.ts +0 -190
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.test.ts +0 -154
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.ts +0 -46
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/last-name.ts +0 -21
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.test.ts +0 -20
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.ts +0 -33
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.test.ts +0 -125
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.ts +0 -42
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/plain.ts +0 -17
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/record.ts +0 -20
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/schemaOption.ts +0 -26
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.test.ts +0 -51
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.ts +0 -33
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/var.ts +0 -19
- package/node_modules/@integration-app/sdk/src/data-builder/index.test.ts +0 -372
- package/node_modules/@integration-app/sdk/src/data-builder/index.ts +0 -16
- package/node_modules/@integration-app/sdk/src/data-builder/locators.test.ts +0 -1045
- package/node_modules/@integration-app/sdk/src/data-builder/locators.ts +0 -702
- package/node_modules/@integration-app/sdk/src/data-collections.ts +0 -74
- package/node_modules/@integration-app/sdk/src/data-filter/index.test.ts +0 -48
- package/node_modules/@integration-app/sdk/src/data-filter/index.ts +0 -127
- package/node_modules/@integration-app/sdk/src/data-filter/operators.test.ts +0 -694
- package/node_modules/@integration-app/sdk/src/data-filter/operators.ts +0 -163
- package/node_modules/@integration-app/sdk/src/data-links/accessors.ts +0 -108
- package/node_modules/@integration-app/sdk/src/data-links/api.ts +0 -75
- package/node_modules/@integration-app/sdk/src/data-links/index.ts +0 -55
- package/node_modules/@integration-app/sdk/src/data-locations/accessors.ts +0 -24
- package/node_modules/@integration-app/sdk/src/data-locations/api.ts +0 -5
- package/node_modules/@integration-app/sdk/src/data-locations/index.ts +0 -209
- package/node_modules/@integration-app/sdk/src/data-schema/index.test.ts +0 -90
- package/node_modules/@integration-app/sdk/src/data-schema/index.ts +0 -185
- package/node_modules/@integration-app/sdk/src/data-sources/accessors.ts +0 -133
- package/node_modules/@integration-app/sdk/src/data-sources/api.ts +0 -59
- package/node_modules/@integration-app/sdk/src/data-sources/index.ts +0 -103
- package/node_modules/@integration-app/sdk/src/datetime.ts +0 -16
- package/node_modules/@integration-app/sdk/src/entity-repository.ts +0 -12
- package/node_modules/@integration-app/sdk/src/errors.ts +0 -154
- package/node_modules/@integration-app/sdk/src/field-mappings/accessors.ts +0 -100
- package/node_modules/@integration-app/sdk/src/field-mappings/api.ts +0 -61
- package/node_modules/@integration-app/sdk/src/field-mappings/index.ts +0 -341
- package/node_modules/@integration-app/sdk/src/flow-runs/flow-node-runs.ts +0 -53
- package/node_modules/@integration-app/sdk/src/flow-runs/index.ts +0 -102
- package/node_modules/@integration-app/sdk/src/flows/accessors.ts +0 -246
- package/node_modules/@integration-app/sdk/src/flows/api.ts +0 -71
- package/node_modules/@integration-app/sdk/src/flows/index.ts +0 -233
- package/node_modules/@integration-app/sdk/src/flows/nodes/api-trigger.ts +0 -7
- package/node_modules/@integration-app/sdk/src/flows/nodes/app-event-trigger.ts +0 -7
- package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-link.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-record.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-created-trigger.ts +0 -8
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-deleted-trigger.ts +0 -8
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-updated-trigger.ts +0 -8
- package/node_modules/@integration-app/sdk/src/flows/nodes/delete-data-record.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/nodes/filter.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-link.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-record-by-id.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-records.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/nodes/http-request.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/nodes/index.ts +0 -60
- package/node_modules/@integration-app/sdk/src/flows/nodes/list-data-records.ts +0 -7
- package/node_modules/@integration-app/sdk/src/flows/nodes/schedule-trigger.ts +0 -7
- package/node_modules/@integration-app/sdk/src/flows/nodes/transform-data.ts +0 -7
- package/node_modules/@integration-app/sdk/src/flows/nodes/update-data-record.ts +0 -6
- package/node_modules/@integration-app/sdk/src/flows/utils.test.ts +0 -63
- package/node_modules/@integration-app/sdk/src/flows/utils.ts +0 -110
- package/node_modules/@integration-app/sdk/src/http-requests.ts +0 -41
- package/node_modules/@integration-app/sdk/src/iframe.ts +0 -142
- package/node_modules/@integration-app/sdk/src/index.ts +0 -5
- package/node_modules/@integration-app/sdk/src/integration-elements/index.ts +0 -24
- package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +0 -42
- package/node_modules/@integration-app/sdk/src/integrations/api.ts +0 -13
- package/node_modules/@integration-app/sdk/src/integrations/index.ts +0 -50
- package/node_modules/@integration-app/sdk/src/json-schema/__snapshots__/schema-builder.test.ts.snap +0 -167
- package/node_modules/@integration-app/sdk/src/json-schema/index.ts +0 -251
- package/node_modules/@integration-app/sdk/src/json-schema/json-schema.test.ts +0 -246
- package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.test.ts +0 -396
- package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.ts +0 -258
- package/node_modules/@integration-app/sdk/src/jwt.test.ts +0 -11
- package/node_modules/@integration-app/sdk/src/jwt.ts +0 -40
- package/node_modules/@integration-app/sdk/src/udm/activities.test.ts +0 -43
- package/node_modules/@integration-app/sdk/src/udm/activities.ts +0 -83
- package/node_modules/@integration-app/sdk/src/udm/base.ts +0 -88
- package/node_modules/@integration-app/sdk/src/udm/campaigns.ts +0 -72
- package/node_modules/@integration-app/sdk/src/udm/companies.ts +0 -80
- package/node_modules/@integration-app/sdk/src/udm/contacts.test.ts +0 -147
- package/node_modules/@integration-app/sdk/src/udm/contacts.ts +0 -106
- package/node_modules/@integration-app/sdk/src/udm/deals.ts +0 -90
- package/node_modules/@integration-app/sdk/src/udm/index.ts +0 -28
- package/node_modules/@integration-app/sdk/src/udm/leads.ts +0 -113
- package/node_modules/@integration-app/sdk/src/udm/users.ts +0 -92
- package/node_modules/@integration-app/sdk/src/users/accessors.ts +0 -28
- package/node_modules/@integration-app/sdk/src/users/api.ts +0 -8
- package/node_modules/@integration-app/sdk/src/users/index.ts +0 -5
- package/node_modules/@integration-app/sdk/src/variables.ts +0 -33
- package/node_modules/@integration-app/sdk/src/workspaces/index.ts +0 -5
- package/node_modules/@integration-app/sdk/tsconfig.build.json +0 -10
- package/node_modules/@integration-app/sdk/tsconfig.json +0 -19
- package/node_modules/@integration-app/sdk/udm/activities.d.ts +0 -30
- package/node_modules/@integration-app/sdk/udm/activities.js +0 -70
- package/node_modules/@integration-app/sdk/udm/activities.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/base.d.ts +0 -27
- package/node_modules/@integration-app/sdk/udm/base.js +0 -62
- package/node_modules/@integration-app/sdk/udm/base.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/campaigns.d.ts +0 -25
- package/node_modules/@integration-app/sdk/udm/campaigns.js +0 -66
- package/node_modules/@integration-app/sdk/udm/campaigns.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/companies.d.ts +0 -42
- package/node_modules/@integration-app/sdk/udm/companies.js +0 -69
- package/node_modules/@integration-app/sdk/udm/companies.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.d.ts +0 -49
- package/node_modules/@integration-app/sdk/udm/contacts.js +0 -94
- package/node_modules/@integration-app/sdk/udm/contacts.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/deals.d.ts +0 -26
- package/node_modules/@integration-app/sdk/udm/deals.js +0 -84
- package/node_modules/@integration-app/sdk/udm/deals.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/index.d.ts +0 -11
- package/node_modules/@integration-app/sdk/udm/index.js +0 -31
- package/node_modules/@integration-app/sdk/udm/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/leads.d.ts +0 -52
- package/node_modules/@integration-app/sdk/udm/leads.js +0 -101
- package/node_modules/@integration-app/sdk/udm/leads.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/users.d.ts +0 -31
- package/node_modules/@integration-app/sdk/udm/users.js +0 -81
- package/node_modules/@integration-app/sdk/udm/users.js.map +0 -1
- package/node_modules/@integration-app/sdk/users/accessors.d.ts +0 -10
- package/node_modules/@integration-app/sdk/users/accessors.js +0 -21
- package/node_modules/@integration-app/sdk/users/accessors.js.map +0 -1
- package/node_modules/@integration-app/sdk/users/api.d.ts +0 -6
- package/node_modules/@integration-app/sdk/users/api.js +0 -3
- package/node_modules/@integration-app/sdk/users/api.js.map +0 -1
- package/node_modules/@integration-app/sdk/users/index.d.ts +0 -5
- package/node_modules/@integration-app/sdk/users/index.js +0 -3
- package/node_modules/@integration-app/sdk/users/index.js.map +0 -1
- package/node_modules/@integration-app/sdk/variables.d.ts +0 -3
- package/node_modules/@integration-app/sdk/variables.js +0 -30
- package/node_modules/@integration-app/sdk/variables.js.map +0 -1
- package/node_modules/@integration-app/sdk/workspaces/index.d.ts +0 -5
- package/node_modules/@integration-app/sdk/workspaces/index.js +0 -3
- package/node_modules/@integration-app/sdk/workspaces/index.js.map +0 -1
- package/node_modules/@sinclair/typebox/package.json +0 -40
- package/node_modules/@sinclair/typebox/readme.md +0 -740
- package/node_modules/@sinclair/typebox/typebox.d.ts +0 -351
- package/node_modules/@sinclair/typebox/typebox.js +0 -345
- package/node_modules/@types/node/README.md +0 -16
- package/node_modules/@types/node/assert.d.ts +0 -128
- package/node_modules/@types/node/async_hooks.d.ts +0 -229
- package/node_modules/@types/node/buffer.d.ts +0 -89
- package/node_modules/@types/node/child_process.d.ts +0 -514
- package/node_modules/@types/node/cluster.d.ts +0 -265
- package/node_modules/@types/node/console.d.ts +0 -142
- package/node_modules/@types/node/constants.d.ts +0 -18
- package/node_modules/@types/node/crypto.d.ts +0 -1283
- package/node_modules/@types/node/dgram.d.ts +0 -144
- package/node_modules/@types/node/dns.d.ts +0 -387
- package/node_modules/@types/node/domain.d.ts +0 -27
- package/node_modules/@types/node/events.d.ts +0 -82
- package/node_modules/@types/node/fs/promises.d.ts +0 -572
- package/node_modules/@types/node/fs.d.ts +0 -2281
- package/node_modules/@types/node/globals.d.ts +0 -747
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/node/http.d.ts +0 -580
- package/node_modules/@types/node/http2.d.ts +0 -962
- package/node_modules/@types/node/https.d.ts +0 -271
- package/node_modules/@types/node/index.d.ts +0 -98
- package/node_modules/@types/node/inspector.d.ts +0 -3051
- package/node_modules/@types/node/module.d.ts +0 -56
- package/node_modules/@types/node/net.d.ts +0 -308
- package/node_modules/@types/node/os.d.ts +0 -243
- package/node_modules/@types/node/package.json +0 -232
- package/node_modules/@types/node/path.d.ts +0 -168
- package/node_modules/@types/node/perf_hooks.d.ts +0 -274
- package/node_modules/@types/node/process.d.ts +0 -413
- package/node_modules/@types/node/punycode.d.ts +0 -78
- package/node_modules/@types/node/querystring.d.ts +0 -31
- package/node_modules/@types/node/readline.d.ts +0 -174
- package/node_modules/@types/node/repl.d.ts +0 -398
- package/node_modules/@types/node/stream.d.ts +0 -359
- package/node_modules/@types/node/string_decoder.d.ts +0 -10
- package/node_modules/@types/node/timers.d.ts +0 -19
- package/node_modules/@types/node/tls.d.ts +0 -784
- package/node_modules/@types/node/trace_events.d.ts +0 -64
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -128
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -229
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -514
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -265
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -142
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1283
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -144
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -387
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -82
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -572
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -2281
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -746
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -580
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -962
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -271
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -53
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3051
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -56
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -308
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -243
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -168
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -413
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -31
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -174
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -398
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -359
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -784
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -149
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -216
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -190
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -89
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
- package/node_modules/@types/node/tty.d.ts +0 -69
- package/node_modules/@types/node/url.d.ts +0 -149
- package/node_modules/@types/node/util.d.ts +0 -216
- package/node_modules/@types/node/v8.d.ts +0 -190
- package/node_modules/@types/node/vm.d.ts +0 -155
- package/node_modules/@types/node/wasi.d.ts +0 -89
- package/node_modules/@types/node/worker_threads.d.ts +0 -241
- package/node_modules/@types/node/zlib.d.ts +0 -364
@@ -1,56 +0,0 @@
|
|
1
|
-
export declare enum DataLocatorStepType {
|
2
|
-
OBJECT_PROPERTY = "object_property",
|
3
|
-
ARRAY_ITEM = "array_item",
|
4
|
-
CURRENT_ARRAY_ITEM = "current_array_item",
|
5
|
-
SCHEMA_OPTION = "schema_option"
|
6
|
-
}
|
7
|
-
export declare class DataLocatorStep {
|
8
|
-
type: DataLocatorStepType;
|
9
|
-
}
|
10
|
-
export declare class DataLocatorStepObjectProperty extends DataLocatorStep {
|
11
|
-
propertyName: string;
|
12
|
-
constructor(propertyName: string);
|
13
|
-
}
|
14
|
-
export declare class DataLocatorStepArrayItem extends DataLocatorStep {
|
15
|
-
index: number;
|
16
|
-
constructor(index: number);
|
17
|
-
}
|
18
|
-
export declare class DataLocatorStepCurrentArrayItem extends DataLocatorStep {
|
19
|
-
constructor();
|
20
|
-
}
|
21
|
-
export declare class DataLocatorStepSchemaOption extends DataLocatorStep {
|
22
|
-
key: string;
|
23
|
-
constructor(key: string);
|
24
|
-
}
|
25
|
-
export declare type DataLocator = DataLocatorStep[] | string;
|
26
|
-
export declare class InvalidLocatorError extends Error {
|
27
|
-
}
|
28
|
-
export declare function locatorToField(locator: string): string;
|
29
|
-
export declare function getSchemaByLocator(schema: any, locator: DataLocator): any;
|
30
|
-
export declare function findValueLocators(data: any, value: any): string[];
|
31
|
-
export declare function getValueAtLocator(data: any, locator: DataLocator): any;
|
32
|
-
export declare function setValueAtLocator(obj: any, locator: string, value: any): any;
|
33
|
-
export declare function pickFieldsFromValue(value: any, fields: string[]): any;
|
34
|
-
export declare function excludeFieldsFromValue(value: any, fields: string[]): any;
|
35
|
-
export declare function setSchemaAtLocator(schema: any, locator: DataLocator, schemaAtLocator: any): any;
|
36
|
-
export declare function extractFieldLocator(locator: string): string;
|
37
|
-
export declare function makeSchemaForLocator(locator: DataLocator, locatorSchema: any): any;
|
38
|
-
export declare function getNameForLocator(schema: any, locator: DataLocator): string;
|
39
|
-
export declare function getNameComponentsForLocator(schema: any, locator: DataLocator): string[];
|
40
|
-
export declare function getFullNameForLocator(schema: any, locator: DataLocator): string;
|
41
|
-
export declare function getIconUriForLocator(schema: any, locator: DataLocator): string;
|
42
|
-
export declare function isLocatorUserVisible(schema: any, locator: DataLocator): boolean;
|
43
|
-
export declare function getLocatorsFromData(data: any, parentLocator?: string): any;
|
44
|
-
export declare function getLocatorsFromSchema(schema: any, parentLocator?: string): any;
|
45
|
-
export declare const getFullTitleForLocator: typeof getFullNameForLocator;
|
46
|
-
interface SchemaStep {
|
47
|
-
schema: any;
|
48
|
-
title?: string;
|
49
|
-
iconUri: string;
|
50
|
-
}
|
51
|
-
export declare function walkSchema(schema: any, locator: DataLocator): SchemaStep[];
|
52
|
-
export declare function locatorToSteps(sourceLocator: DataLocator): DataLocatorStep[];
|
53
|
-
export declare function locatorToString(locator: DataLocator): string;
|
54
|
-
export declare function stepsToLocator(steps: DataLocatorStep[]): string;
|
55
|
-
export declare function getFormulaLocators(formulaType: string, data: any): string[];
|
56
|
-
export {};
|
@@ -1,560 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getFormulaLocators = exports.stepsToLocator = exports.locatorToString = exports.locatorToSteps = exports.walkSchema = exports.getFullTitleForLocator = exports.getLocatorsFromSchema = exports.getLocatorsFromData = exports.isLocatorUserVisible = exports.getIconUriForLocator = exports.getFullNameForLocator = exports.getNameComponentsForLocator = exports.getNameForLocator = exports.makeSchemaForLocator = exports.extractFieldLocator = exports.setSchemaAtLocator = exports.excludeFieldsFromValue = exports.pickFieldsFromValue = exports.setValueAtLocator = exports.getValueAtLocator = exports.findValueLocators = exports.getSchemaByLocator = exports.locatorToField = exports.InvalidLocatorError = exports.DataLocatorStepSchemaOption = exports.DataLocatorStepCurrentArrayItem = exports.DataLocatorStepArrayItem = exports.DataLocatorStepObjectProperty = exports.DataLocatorStep = exports.DataLocatorStepType = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const lodash_1 = (0, tslib_1.__importDefault)(require("lodash"));
|
6
|
-
const js_convert_case_1 = require("js-convert-case");
|
7
|
-
const errors_1 = require("../errors");
|
8
|
-
const formulas_1 = require("./formulas");
|
9
|
-
const data_schema_1 = require("../data-schema");
|
10
|
-
var DataLocatorStepType;
|
11
|
-
(function (DataLocatorStepType) {
|
12
|
-
DataLocatorStepType["OBJECT_PROPERTY"] = "object_property";
|
13
|
-
DataLocatorStepType["ARRAY_ITEM"] = "array_item";
|
14
|
-
DataLocatorStepType["CURRENT_ARRAY_ITEM"] = "current_array_item";
|
15
|
-
DataLocatorStepType["SCHEMA_OPTION"] = "schema_option";
|
16
|
-
})(DataLocatorStepType = exports.DataLocatorStepType || (exports.DataLocatorStepType = {}));
|
17
|
-
class DataLocatorStep {
|
18
|
-
}
|
19
|
-
exports.DataLocatorStep = DataLocatorStep;
|
20
|
-
class DataLocatorStepObjectProperty extends DataLocatorStep {
|
21
|
-
constructor(propertyName) {
|
22
|
-
super();
|
23
|
-
this.propertyName = propertyName;
|
24
|
-
this.type = DataLocatorStepType.OBJECT_PROPERTY;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
exports.DataLocatorStepObjectProperty = DataLocatorStepObjectProperty;
|
28
|
-
class DataLocatorStepArrayItem extends DataLocatorStep {
|
29
|
-
constructor(index) {
|
30
|
-
super();
|
31
|
-
this.index = index;
|
32
|
-
this.type = DataLocatorStepType.ARRAY_ITEM;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
exports.DataLocatorStepArrayItem = DataLocatorStepArrayItem;
|
36
|
-
class DataLocatorStepCurrentArrayItem extends DataLocatorStep {
|
37
|
-
constructor() {
|
38
|
-
super();
|
39
|
-
this.type = DataLocatorStepType.CURRENT_ARRAY_ITEM;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
exports.DataLocatorStepCurrentArrayItem = DataLocatorStepCurrentArrayItem;
|
43
|
-
class DataLocatorStepSchemaOption extends DataLocatorStep {
|
44
|
-
constructor(key) {
|
45
|
-
super();
|
46
|
-
this.key = key;
|
47
|
-
this.type = DataLocatorStepType.SCHEMA_OPTION;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
exports.DataLocatorStepSchemaOption = DataLocatorStepSchemaOption;
|
51
|
-
class InvalidLocatorError extends Error {
|
52
|
-
}
|
53
|
-
exports.InvalidLocatorError = InvalidLocatorError;
|
54
|
-
function locatorToField(locator) {
|
55
|
-
if (typeof locator !== 'string')
|
56
|
-
return undefined;
|
57
|
-
return locator.replace(/^\$\./, '');
|
58
|
-
}
|
59
|
-
exports.locatorToField = locatorToField;
|
60
|
-
function getSchemaByLocator(schema, locator) {
|
61
|
-
if (schema) {
|
62
|
-
try {
|
63
|
-
const schemaSteps = walkSchema(schema, locator);
|
64
|
-
if (schemaSteps) {
|
65
|
-
if (schemaSteps.length > 0) {
|
66
|
-
return schemaSteps[schemaSteps.length - 1].schema;
|
67
|
-
}
|
68
|
-
else {
|
69
|
-
return schema;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
else {
|
73
|
-
return null;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
catch (e) {
|
77
|
-
if (e instanceof InvalidLocatorError) {
|
78
|
-
return null;
|
79
|
-
}
|
80
|
-
else {
|
81
|
-
throw e;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
else {
|
86
|
-
return null;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
exports.getSchemaByLocator = getSchemaByLocator;
|
90
|
-
function findValueLocators(data, value) {
|
91
|
-
function doFindValueLocator(data, value, locatorSoFar) {
|
92
|
-
if (JSON.stringify(data) === JSON.stringify(value)) {
|
93
|
-
return [locatorSoFar];
|
94
|
-
}
|
95
|
-
else {
|
96
|
-
if (Array.isArray(data)) {
|
97
|
-
const result = [];
|
98
|
-
for (let i = 0; i < data.length; ++i) {
|
99
|
-
result.push(...doFindValueLocator(data[i], value, `${locatorSoFar}[${i}]`));
|
100
|
-
}
|
101
|
-
return result;
|
102
|
-
}
|
103
|
-
else if (typeof data === 'object' && data) {
|
104
|
-
const result = [];
|
105
|
-
for (const key in data) {
|
106
|
-
result.push(...doFindValueLocator(data[key], value, `${locatorSoFar}.${key}`));
|
107
|
-
}
|
108
|
-
return result;
|
109
|
-
}
|
110
|
-
else {
|
111
|
-
return [];
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
return doFindValueLocator(data, value, '$');
|
116
|
-
}
|
117
|
-
exports.findValueLocators = findValueLocators;
|
118
|
-
function getValueAtLocator(data, locator) {
|
119
|
-
let curValue = data;
|
120
|
-
const locatorSteps = locatorToSteps(locator);
|
121
|
-
for (let i = 0; i < locatorSteps.length; ++i) {
|
122
|
-
const locatorStep = locatorSteps[i];
|
123
|
-
switch (locatorStep.type) {
|
124
|
-
case DataLocatorStepType.OBJECT_PROPERTY:
|
125
|
-
const propStep = locatorStep;
|
126
|
-
if (typeof curValue == 'object' &&
|
127
|
-
curValue &&
|
128
|
-
curValue[propStep.propertyName]) {
|
129
|
-
curValue = curValue[propStep.propertyName];
|
130
|
-
}
|
131
|
-
else {
|
132
|
-
return undefined;
|
133
|
-
}
|
134
|
-
break;
|
135
|
-
case DataLocatorStepType.ARRAY_ITEM:
|
136
|
-
const itemStep = locatorStep;
|
137
|
-
if (Array.isArray(curValue) && curValue[itemStep.index]) {
|
138
|
-
curValue = curValue[itemStep.index];
|
139
|
-
}
|
140
|
-
else {
|
141
|
-
return undefined;
|
142
|
-
}
|
143
|
-
break;
|
144
|
-
case DataLocatorStepType.CURRENT_ARRAY_ITEM:
|
145
|
-
if (Array.isArray(curValue)) {
|
146
|
-
curValue = curValue[0];
|
147
|
-
}
|
148
|
-
else {
|
149
|
-
return undefined;
|
150
|
-
}
|
151
|
-
break;
|
152
|
-
case DataLocatorStepType.SCHEMA_OPTION:
|
153
|
-
break;
|
154
|
-
default:
|
155
|
-
throw new Error(`Unknown locator step type: ${locatorStep.type}`);
|
156
|
-
}
|
157
|
-
}
|
158
|
-
return curValue;
|
159
|
-
}
|
160
|
-
exports.getValueAtLocator = getValueAtLocator;
|
161
|
-
function setValueAtLocator(obj, locator, value) {
|
162
|
-
const locatorSteps = locatorToSteps(locator);
|
163
|
-
let result = obj;
|
164
|
-
if (locatorSteps.length > 0) {
|
165
|
-
let cursor = result;
|
166
|
-
let setValue = (value) => {
|
167
|
-
result = value;
|
168
|
-
};
|
169
|
-
for (let i = 0; i < locatorSteps.length; i++) {
|
170
|
-
const locatorStep = locatorSteps[i];
|
171
|
-
if (locatorStep instanceof DataLocatorStepArrayItem ||
|
172
|
-
locatorStep instanceof DataLocatorStepCurrentArrayItem) {
|
173
|
-
if (!Array.isArray(cursor)) {
|
174
|
-
cursor = [];
|
175
|
-
setValue(cursor);
|
176
|
-
}
|
177
|
-
const index = locatorStep instanceof DataLocatorStepArrayItem
|
178
|
-
? locatorStep.index
|
179
|
-
: 0;
|
180
|
-
setValue = ((cursor) => {
|
181
|
-
return (value) => {
|
182
|
-
if (value !== undefined) {
|
183
|
-
cursor[index] = value;
|
184
|
-
}
|
185
|
-
else {
|
186
|
-
cursor.splice(index, 1);
|
187
|
-
}
|
188
|
-
};
|
189
|
-
})(cursor);
|
190
|
-
cursor = cursor[index];
|
191
|
-
}
|
192
|
-
else if (locatorStep instanceof DataLocatorStepObjectProperty) {
|
193
|
-
if (typeof cursor !== 'object' || cursor === null) {
|
194
|
-
cursor = {};
|
195
|
-
setValue(cursor);
|
196
|
-
}
|
197
|
-
setValue = ((cursor) => {
|
198
|
-
return (value) => {
|
199
|
-
if (value !== undefined) {
|
200
|
-
cursor[locatorStep.propertyName] = value;
|
201
|
-
}
|
202
|
-
else {
|
203
|
-
delete cursor[locatorStep.propertyName];
|
204
|
-
}
|
205
|
-
};
|
206
|
-
})(cursor);
|
207
|
-
cursor = cursor[locatorStep.propertyName];
|
208
|
-
}
|
209
|
-
else {
|
210
|
-
throw new Error(`Unexpected locator step type in "setValueAtLocator": ${locatorStep}`);
|
211
|
-
}
|
212
|
-
}
|
213
|
-
setValue(value);
|
214
|
-
return result;
|
215
|
-
}
|
216
|
-
else {
|
217
|
-
return value;
|
218
|
-
}
|
219
|
-
}
|
220
|
-
exports.setValueAtLocator = setValueAtLocator;
|
221
|
-
function pickFieldsFromValue(value, fields) {
|
222
|
-
let result;
|
223
|
-
for (const field of fields) {
|
224
|
-
const fieldValue = getValueAtLocator(value, field);
|
225
|
-
if (!(0, formulas_1.isEmpty)(fieldValue)) {
|
226
|
-
result = setValueAtLocator(result, field, fieldValue);
|
227
|
-
}
|
228
|
-
}
|
229
|
-
return result;
|
230
|
-
}
|
231
|
-
exports.pickFieldsFromValue = pickFieldsFromValue;
|
232
|
-
function excludeFieldsFromValue(value, fields) {
|
233
|
-
for (const field of fields) {
|
234
|
-
setValueAtLocator(value, field, undefined);
|
235
|
-
}
|
236
|
-
return value;
|
237
|
-
}
|
238
|
-
exports.excludeFieldsFromValue = excludeFieldsFromValue;
|
239
|
-
function setSchemaAtLocator(schema, locator, schemaAtLocator) {
|
240
|
-
var _a, _b, _c, _d;
|
241
|
-
const locatorSteps = locatorToSteps(locator);
|
242
|
-
const result = schema !== null && schema !== void 0 ? schema : {};
|
243
|
-
let curSchema = result;
|
244
|
-
let curSchemaDataLocator = '$';
|
245
|
-
for (const locatorStep of locatorSteps) {
|
246
|
-
if (locatorStep.type == DataLocatorStepType.OBJECT_PROPERTY) {
|
247
|
-
curSchema.type = 'object';
|
248
|
-
const propertyName = locatorStep
|
249
|
-
.propertyName;
|
250
|
-
if (!((_a = curSchema.properties) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(propertyName))) {
|
251
|
-
curSchema.properties = {
|
252
|
-
...((_b = curSchema.properties) !== null && _b !== void 0 ? _b : {}),
|
253
|
-
[propertyName]: {},
|
254
|
-
};
|
255
|
-
}
|
256
|
-
curSchema = curSchema.properties[propertyName];
|
257
|
-
curSchemaDataLocator += `.properties.${propertyName}`;
|
258
|
-
}
|
259
|
-
else if (locatorStep.type == DataLocatorStepType.ARRAY_ITEM ||
|
260
|
-
locatorStep.type == DataLocatorStepType.CURRENT_ARRAY_ITEM) {
|
261
|
-
curSchema.type = 'array';
|
262
|
-
curSchema.items = (_c = curSchema.items) !== null && _c !== void 0 ? _c : {};
|
263
|
-
curSchema = curSchema.items;
|
264
|
-
curSchemaDataLocator = `${curSchemaDataLocator}.items`;
|
265
|
-
}
|
266
|
-
else if (locatorStep.type == DataLocatorStepType.SCHEMA_OPTION) {
|
267
|
-
const schemaOptionStep = locatorStep;
|
268
|
-
let schemaOption = (0, data_schema_1.findSchemaOption)(curSchema, schemaOptionStep.key);
|
269
|
-
if (!schemaOption) {
|
270
|
-
curSchema.anyOf = (_d = curSchema.anyOf) !== null && _d !== void 0 ? _d : [];
|
271
|
-
schemaOption = { key: schemaOptionStep.key };
|
272
|
-
curSchema.anyOf.push(schemaOption);
|
273
|
-
}
|
274
|
-
curSchemaDataLocator = `${curSchemaDataLocator}.anyOf[${curSchema.anyOf.indexOf(schemaOption)}]`;
|
275
|
-
curSchema = schemaOption;
|
276
|
-
}
|
277
|
-
else {
|
278
|
-
throw new Error(`Unexpected locator step type: ${locatorStep.type}`);
|
279
|
-
}
|
280
|
-
}
|
281
|
-
return setValueAtLocator(result, curSchemaDataLocator, schemaAtLocator);
|
282
|
-
}
|
283
|
-
exports.setSchemaAtLocator = setSchemaAtLocator;
|
284
|
-
function extractFieldLocator(locator) {
|
285
|
-
const steps = locatorToSteps(locator);
|
286
|
-
const fieldSteps = [];
|
287
|
-
for (const step of steps) {
|
288
|
-
if (step.type === DataLocatorStepType.OBJECT_PROPERTY &&
|
289
|
-
step.propertyName.startsWith('$')) {
|
290
|
-
break;
|
291
|
-
}
|
292
|
-
fieldSteps.push(step);
|
293
|
-
}
|
294
|
-
return stepsToLocator(fieldSteps);
|
295
|
-
}
|
296
|
-
exports.extractFieldLocator = extractFieldLocator;
|
297
|
-
function makeSchemaForLocator(locator, locatorSchema) {
|
298
|
-
return setSchemaAtLocator(null, locator, locatorSchema);
|
299
|
-
}
|
300
|
-
exports.makeSchemaForLocator = makeSchemaForLocator;
|
301
|
-
function getNameForLocator(schema, locator) {
|
302
|
-
locator = locatorToSteps(locator);
|
303
|
-
const schemaSteps = walkSchema(schema, locator);
|
304
|
-
if (schemaSteps) {
|
305
|
-
const titleParts = schemaSteps.map((s) => s.title).filter((t) => !!t);
|
306
|
-
return titleParts[titleParts.length - 1];
|
307
|
-
}
|
308
|
-
else {
|
309
|
-
return null;
|
310
|
-
}
|
311
|
-
}
|
312
|
-
exports.getNameForLocator = getNameForLocator;
|
313
|
-
function getNameComponentsForLocator(schema, locator) {
|
314
|
-
locator = locatorToSteps(locator);
|
315
|
-
const schemaSteps = walkSchema(schema, locator);
|
316
|
-
return schemaSteps === null || schemaSteps === void 0 ? void 0 : schemaSteps.map((s) => s.title).filter((t) => !!t);
|
317
|
-
}
|
318
|
-
exports.getNameComponentsForLocator = getNameComponentsForLocator;
|
319
|
-
function getFullNameForLocator(schema, locator) {
|
320
|
-
var _a;
|
321
|
-
return (_a = getNameComponentsForLocator(schema, locator)) === null || _a === void 0 ? void 0 : _a.join(' > ');
|
322
|
-
}
|
323
|
-
exports.getFullNameForLocator = getFullNameForLocator;
|
324
|
-
function getIconUriForLocator(schema, locator) {
|
325
|
-
locator = locatorToSteps(locator);
|
326
|
-
const schemaSteps = walkSchema(schema, locator);
|
327
|
-
return schemaSteps && schemaSteps.map((s) => s.iconUri).filter((t) => !!t)[0];
|
328
|
-
}
|
329
|
-
exports.getIconUriForLocator = getIconUriForLocator;
|
330
|
-
function isLocatorUserVisible(schema, locator) {
|
331
|
-
locator = locatorToSteps(locator);
|
332
|
-
const schemaSteps = walkSchema(schema, locator);
|
333
|
-
if (schemaSteps) {
|
334
|
-
return !schemaSteps.some((s) => s.schema.userVisible === false);
|
335
|
-
}
|
336
|
-
else {
|
337
|
-
return false;
|
338
|
-
}
|
339
|
-
}
|
340
|
-
exports.isLocatorUserVisible = isLocatorUserVisible;
|
341
|
-
function getLocatorsFromData(data, parentLocator = '$') {
|
342
|
-
if (data === null || data === undefined) {
|
343
|
-
return [];
|
344
|
-
}
|
345
|
-
if (Array.isArray(data)) {
|
346
|
-
return data.flatMap((item, idx) => getLocatorsFromData(item, `${parentLocator}[${idx}]`));
|
347
|
-
}
|
348
|
-
if (typeof data === 'object') {
|
349
|
-
const locators = [];
|
350
|
-
for (const [key, value] of Object.entries(data)) {
|
351
|
-
locators.push(...getLocatorsFromData(value, `${parentLocator}.${key}`));
|
352
|
-
}
|
353
|
-
return locators;
|
354
|
-
}
|
355
|
-
return [parentLocator];
|
356
|
-
}
|
357
|
-
exports.getLocatorsFromData = getLocatorsFromData;
|
358
|
-
function getLocatorsFromSchema(schema, parentLocator = '$') {
|
359
|
-
var _a;
|
360
|
-
if (!schema || !schema.type) {
|
361
|
-
return [];
|
362
|
-
}
|
363
|
-
if (schema.type === 'object') {
|
364
|
-
const locators = [];
|
365
|
-
for (const [key, value] of Object.entries((_a = schema.properties) !== null && _a !== void 0 ? _a : {})) {
|
366
|
-
locators.push(...getLocatorsFromSchema(value, `${parentLocator}.${key}`));
|
367
|
-
}
|
368
|
-
return locators;
|
369
|
-
}
|
370
|
-
if (schema.type === 'array') {
|
371
|
-
return getLocatorsFromSchema(schema.items, `${parentLocator}[0]`);
|
372
|
-
}
|
373
|
-
return [parentLocator];
|
374
|
-
}
|
375
|
-
exports.getLocatorsFromSchema = getLocatorsFromSchema;
|
376
|
-
exports.getFullTitleForLocator = getFullNameForLocator;
|
377
|
-
function walkSchema(schema, locator) {
|
378
|
-
var _a, _b;
|
379
|
-
locator = locatorToSteps(locator);
|
380
|
-
const schemaSteps = [];
|
381
|
-
let curSchema = schema;
|
382
|
-
for (let idx = 0; idx < locator.length; ++idx) {
|
383
|
-
const schemaStep = {};
|
384
|
-
const step = locator[idx];
|
385
|
-
let defaultTitle;
|
386
|
-
if (!curSchema) {
|
387
|
-
return null;
|
388
|
-
}
|
389
|
-
if (step.type == DataLocatorStepType.OBJECT_PROPERTY) {
|
390
|
-
if (curSchema.type == 'object') {
|
391
|
-
const objectPropertyStep = step;
|
392
|
-
curSchema = (_a = curSchema.properties) === null || _a === void 0 ? void 0 : _a[objectPropertyStep.propertyName];
|
393
|
-
defaultTitle = (0, js_convert_case_1.toHeaderCase)(objectPropertyStep.propertyName);
|
394
|
-
}
|
395
|
-
else {
|
396
|
-
return null;
|
397
|
-
}
|
398
|
-
}
|
399
|
-
else if (step.type == DataLocatorStepType.ARRAY_ITEM) {
|
400
|
-
if (curSchema.type == 'array') {
|
401
|
-
const arrayItemStep = step;
|
402
|
-
curSchema = curSchema.items;
|
403
|
-
defaultTitle = `Item #${arrayItemStep.index + 1}`;
|
404
|
-
}
|
405
|
-
else {
|
406
|
-
return null;
|
407
|
-
}
|
408
|
-
}
|
409
|
-
else if (step.type == DataLocatorStepType.CURRENT_ARRAY_ITEM) {
|
410
|
-
if (curSchema.type == 'array') {
|
411
|
-
curSchema = curSchema.items;
|
412
|
-
defaultTitle = 'Current Item';
|
413
|
-
}
|
414
|
-
else {
|
415
|
-
return null;
|
416
|
-
}
|
417
|
-
}
|
418
|
-
else if (step.type == DataLocatorStepType.SCHEMA_OPTION) {
|
419
|
-
if (curSchema.anyOf) {
|
420
|
-
const schemaOption = (0, data_schema_1.findSchemaOption)(curSchema, step.key);
|
421
|
-
if (schemaOption) {
|
422
|
-
curSchema = schemaOption;
|
423
|
-
}
|
424
|
-
else {
|
425
|
-
return null;
|
426
|
-
}
|
427
|
-
}
|
428
|
-
else {
|
429
|
-
continue;
|
430
|
-
}
|
431
|
-
}
|
432
|
-
if (!curSchema) {
|
433
|
-
return null;
|
434
|
-
}
|
435
|
-
schemaStep.schema = Object.assign({}, curSchema);
|
436
|
-
schemaStep.title = (_b = schemaStep.schema.title) !== null && _b !== void 0 ? _b : defaultTitle;
|
437
|
-
schemaStep.iconUri = schemaStep.schema.iconUri;
|
438
|
-
schemaSteps.push(schemaStep);
|
439
|
-
}
|
440
|
-
return schemaSteps;
|
441
|
-
}
|
442
|
-
exports.walkSchema = walkSchema;
|
443
|
-
function locatorToSteps(sourceLocator) {
|
444
|
-
if (Array.isArray(sourceLocator))
|
445
|
-
return sourceLocator;
|
446
|
-
if (typeof sourceLocator !== 'string')
|
447
|
-
throw new errors_1.BadRequestError(`Unexpected locator value: ${JSON.stringify(sourceLocator)}`);
|
448
|
-
if (sourceLocator === '$')
|
449
|
-
return [];
|
450
|
-
if (!lodash_1.default.startsWith(sourceLocator, '$')) {
|
451
|
-
sourceLocator = `$.${sourceLocator}`;
|
452
|
-
}
|
453
|
-
const locators = [];
|
454
|
-
let cursorPosition = 1;
|
455
|
-
while (cursorPosition < sourceLocator.length) {
|
456
|
-
if (sourceLocator[cursorPosition] === '.') {
|
457
|
-
const closingIndex = lodash_1.default.min(lodash_1.default.filter([
|
458
|
-
sourceLocator.indexOf('[', cursorPosition + 1),
|
459
|
-
sourceLocator.indexOf('<', cursorPosition + 1),
|
460
|
-
sourceLocator.indexOf('.', cursorPosition + 1),
|
461
|
-
sourceLocator.length,
|
462
|
-
], (n) => n > -1));
|
463
|
-
const part = sourceLocator.slice(cursorPosition + 1, closingIndex);
|
464
|
-
if (!part) {
|
465
|
-
throw new errors_1.BadRequestError('There should be a property name after a dot');
|
466
|
-
}
|
467
|
-
locators.push(part === '$current'
|
468
|
-
? new DataLocatorStepCurrentArrayItem()
|
469
|
-
: new DataLocatorStepObjectProperty(part));
|
470
|
-
cursorPosition = closingIndex;
|
471
|
-
}
|
472
|
-
else if (sourceLocator[cursorPosition] === '[') {
|
473
|
-
const closingIndex = sourceLocator.indexOf(']', cursorPosition);
|
474
|
-
if (closingIndex === -1) {
|
475
|
-
throw new errors_1.BadRequestError(`Could not find a closing bracket for the bracket at position ${cursorPosition}. Locator: ${sourceLocator}`);
|
476
|
-
}
|
477
|
-
const arrayIndex = +sourceLocator.slice(cursorPosition + 1, closingIndex);
|
478
|
-
if (isNaN(arrayIndex) || arrayIndex < 0) {
|
479
|
-
throw new errors_1.BadRequestError(`Invalid index [${sourceLocator.slice(cursorPosition + 1, closingIndex)}]. Index should be a positive number`);
|
480
|
-
}
|
481
|
-
locators.push(new DataLocatorStepArrayItem(arrayIndex));
|
482
|
-
cursorPosition = closingIndex + 1;
|
483
|
-
}
|
484
|
-
else if (sourceLocator[cursorPosition] === '<') {
|
485
|
-
const closingIndex = sourceLocator.indexOf('>', cursorPosition);
|
486
|
-
if (closingIndex === -1) {
|
487
|
-
throw new errors_1.BadRequestError(`Could not find a closing bracket for the bracket at position ${cursorPosition}. Locator: ${sourceLocator}`);
|
488
|
-
}
|
489
|
-
const optionKey = sourceLocator.slice(cursorPosition + 1, closingIndex);
|
490
|
-
locators.push(new DataLocatorStepSchemaOption(optionKey));
|
491
|
-
cursorPosition = closingIndex + 1;
|
492
|
-
}
|
493
|
-
else {
|
494
|
-
throw new errors_1.BadRequestError(`Unexpected symbol at position ${cursorPosition}. Locator: ${sourceLocator}`);
|
495
|
-
}
|
496
|
-
}
|
497
|
-
return locators;
|
498
|
-
}
|
499
|
-
exports.locatorToSteps = locatorToSteps;
|
500
|
-
function locatorToString(locator) {
|
501
|
-
if (typeof locator === 'object' && Array.isArray(locator)) {
|
502
|
-
return stepsToLocator(locator);
|
503
|
-
}
|
504
|
-
else {
|
505
|
-
return locator;
|
506
|
-
}
|
507
|
-
}
|
508
|
-
exports.locatorToString = locatorToString;
|
509
|
-
function stepsToLocator(steps) {
|
510
|
-
let locator = '$';
|
511
|
-
(steps !== null && steps !== void 0 ? steps : []).forEach((step) => {
|
512
|
-
switch (step.type) {
|
513
|
-
case DataLocatorStepType.OBJECT_PROPERTY:
|
514
|
-
locator += `.${step.propertyName}`;
|
515
|
-
break;
|
516
|
-
case DataLocatorStepType.ARRAY_ITEM:
|
517
|
-
locator += `[${step.index}]`;
|
518
|
-
break;
|
519
|
-
case DataLocatorStepType.CURRENT_ARRAY_ITEM:
|
520
|
-
locator += '.$current';
|
521
|
-
break;
|
522
|
-
case DataLocatorStepType.SCHEMA_OPTION:
|
523
|
-
locator += `<${step.key}>`;
|
524
|
-
break;
|
525
|
-
default:
|
526
|
-
throw new Error(`Unknown locator step type: ${step.type}`);
|
527
|
-
}
|
528
|
-
});
|
529
|
-
return locator;
|
530
|
-
}
|
531
|
-
exports.stepsToLocator = stepsToLocator;
|
532
|
-
function getFormulaLocators(formulaType, data) {
|
533
|
-
function doGetFormulaLocators(data, locator) {
|
534
|
-
if (data && typeof data === 'object') {
|
535
|
-
if (`$${formulaType}` in data && Object.keys(data).length === 1) {
|
536
|
-
return [locator];
|
537
|
-
}
|
538
|
-
else if (Array.isArray(data)) {
|
539
|
-
const locators = [];
|
540
|
-
data.map((item, idx) => {
|
541
|
-
locators.push(...doGetFormulaLocators(item, `${locator}[${idx}]`));
|
542
|
-
});
|
543
|
-
return locators;
|
544
|
-
}
|
545
|
-
else {
|
546
|
-
const locators = [];
|
547
|
-
for (const [key, value] of Object.entries(data)) {
|
548
|
-
locators.push(...doGetFormulaLocators(value, `${locator}.${key}`));
|
549
|
-
}
|
550
|
-
return locators;
|
551
|
-
}
|
552
|
-
}
|
553
|
-
else {
|
554
|
-
return [];
|
555
|
-
}
|
556
|
-
}
|
557
|
-
return doGetFormulaLocators(data, '$');
|
558
|
-
}
|
559
|
-
exports.getFormulaLocators = getFormulaLocators;
|
560
|
-
//# sourceMappingURL=locators.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"locators.js","sourceRoot":"","sources":["../src/data-builder/locators.ts"],"names":[],"mappings":";;;;AAAA,iEAAsB;AACtB,qDAA8C;AAC9C,sCAA2C;AAC3C,yCAAoC;A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AK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBAC9B,MAAM,QAAQ,GAAG,EAAE,CAAA;gBACnB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;oBACrB,QAAQ,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,IAAI,EAAE,GAAG,OAAO,IAAI,GAAG,GAAG,CAAC,CAAC,CAAA;gBACpE,CAAC,CAAC,CAAA;gBACF,OAAO,QAAQ,CAAA;aAChB;iBAAM;gBACL,MAAM,QAAQ,GAAG,EAAE,CAAA;gBACnB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;oBAC/C,QAAQ,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,KAAK,EAAE,GAAG,OAAO,IAAI,GAAG,EAAE,CAAC,CAAC,CAAA;iBACnE;gBACD,OAAO,QAAQ,CAAA;aAChB;SACF;aAAM;YACL,OAAO,EAAE,CAAA;SACV;IACH,CAAC;IAED,OAAO,oBAAoB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;AACxC,CAAC;AAxBD,gDAwBC"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
export declare enum DataCollectionEventType {
|
2
|
-
CREATED = "created",
|
3
|
-
UPDATED = "updated",
|
4
|
-
DELETED = "deleted"
|
5
|
-
}
|
6
|
-
export interface DataRecord {
|
7
|
-
id?: string;
|
8
|
-
name?: string;
|
9
|
-
uri?: string;
|
10
|
-
iconUri?: string;
|
11
|
-
fields?: Record<string, any>;
|
12
|
-
udm?: string;
|
13
|
-
unifiedFields?: Record<string, any>;
|
14
|
-
rawFields?: Record<string, any>;
|
15
|
-
}
|
16
|
-
export interface DataCollection {
|
17
|
-
id: string;
|
18
|
-
key: string;
|
19
|
-
udm: string;
|
20
|
-
}
|
21
|
-
export interface DataCollectionInstance {
|
22
|
-
id: string;
|
23
|
-
dataCollectionId?: string;
|
24
|
-
connectionId: string;
|
25
|
-
udm?: string;
|
26
|
-
path: string;
|
27
|
-
}
|
28
|
-
export declare enum DataEventType {
|
29
|
-
CREATED = "created",
|
30
|
-
UPDATED = "updated",
|
31
|
-
DELETED = "deleted"
|
32
|
-
}
|
33
|
-
export interface DataCollectionEvent {
|
34
|
-
type: DataCollectionEventType;
|
35
|
-
record: DataRecord;
|
36
|
-
}
|