@integration-app/react 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/{dist/contexts → contexts}/integration-app-context.d.ts +0 -0
- package/{dist/contexts → contexts}/integration-app-context.js +0 -0
- package/{dist/contexts → contexts}/integration-app-context.js.map +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/{dist/index.js.map → index.js.map} +0 -0
- package/{dist/integrations → integrations}/index.d.ts +0 -0
- package/{dist/integrations → integrations}/index.js +0 -0
- package/{dist/integrations → integrations}/index.js.map +0 -0
- package/{dist/node_modules/scheduler → node_modules/@compwright/namecase}/LICENSE +8 -3
- package/node_modules/@compwright/namecase/README.md +49 -0
- package/node_modules/@compwright/namecase/bin/namecase +28 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
- package/node_modules/@compwright/namecase/package.json +46 -0
- package/node_modules/@compwright/namecase/src/index.js +146 -0
- package/node_modules/@integration-app/sdk/accessors.d.ts +56 -0
- package/node_modules/@integration-app/sdk/accessors.js +104 -0
- package/node_modules/@integration-app/sdk/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.d.ts +16 -0
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.js +38 -0
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-collections/api.d.ts +18 -0
- package/node_modules/@integration-app/sdk/app-data-collections/api.js +3 -0
- package/node_modules/@integration-app/sdk/app-data-collections/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-collections/index.d.ts +26 -0
- package/node_modules/@integration-app/sdk/app-data-collections/index.js +3 -0
- package/node_modules/@integration-app/sdk/app-data-collections/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.d.ts +16 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js +38 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/api.d.ts +18 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/api.js +3 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/index.d.ts +21 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/index.js +3 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-events/accessors.d.ts +16 -0
- package/node_modules/@integration-app/sdk/app-events/accessors.js +38 -0
- package/node_modules/@integration-app/sdk/app-events/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-events/api.d.ts +18 -0
- package/node_modules/@integration-app/sdk/app-events/api.js +3 -0
- package/node_modules/@integration-app/sdk/app-events/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-events/index.d.ts +46 -0
- package/node_modules/@integration-app/sdk/app-events/index.js +3 -0
- package/node_modules/@integration-app/sdk/app-events/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/auth/accessors.d.ts +7 -0
- package/node_modules/@integration-app/sdk/auth/accessors.js +13 -0
- package/node_modules/@integration-app/sdk/auth/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/auth/index.d.ts +6 -0
- package/node_modules/@integration-app/sdk/auth/index.js +3 -0
- package/node_modules/@integration-app/sdk/auth/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/bundle-index.d.ts +1 -0
- package/node_modules/@integration-app/sdk/bundle-index.js +5 -0
- package/node_modules/@integration-app/sdk/bundle-index.js.map +1 -0
- package/node_modules/@integration-app/sdk/bundle.js +30163 -0
- package/node_modules/@integration-app/sdk/bundle.js.map +1 -0
- package/node_modules/@integration-app/sdk/client.d.ts +108 -0
- package/node_modules/@integration-app/sdk/client.js +248 -0
- package/node_modules/@integration-app/sdk/client.js.map +1 -0
- package/node_modules/@integration-app/sdk/connections/accessors.d.ts +13 -0
- package/node_modules/@integration-app/sdk/connections/accessors.js +39 -0
- package/node_modules/@integration-app/sdk/connections/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/connections/api.d.ts +20 -0
- package/node_modules/@integration-app/sdk/connections/api.js +17 -0
- package/node_modules/@integration-app/sdk/connections/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/connections/index.d.ts +39 -0
- package/node_modules/@integration-app/sdk/connections/index.js +13 -0
- package/node_modules/@integration-app/sdk/connections/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/connector-api/index.d.ts +2 -0
- package/node_modules/@integration-app/sdk/connector-api/index.js +9 -0
- package/node_modules/@integration-app/sdk/connector-api/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/context.d.ts +9 -0
- package/node_modules/@integration-app/sdk/data-builder/context.js +32 -0
- package/node_modules/@integration-app/sdk/data-builder/context.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.d.ts +9 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.js +59 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +14 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +45 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.d.ts +18 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js +36 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js +22 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.d.ts +11 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js +31 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.d.ts +11 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js +31 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.d.ts +17 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js +24 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.d.ts +17 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js +24 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js +25 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.d.ts +28 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.js +177 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.d.ts +15 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js +41 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js +25 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.d.ts +20 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js +24 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.d.ts +17 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.js +34 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.d.ts +7 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js +20 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.js +23 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.d.ts +12 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js +22 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.d.ts +15 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js +31 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.d.ts +8 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.js +21 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/index.d.ts +2 -0
- package/node_modules/@integration-app/sdk/data-builder/index.js +17 -0
- package/node_modules/@integration-app/sdk/data-builder/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/locators.d.ts +56 -0
- package/node_modules/@integration-app/sdk/data-builder/locators.js +560 -0
- package/node_modules/@integration-app/sdk/data-builder/locators.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-collections.d.ts +36 -0
- package/node_modules/@integration-app/sdk/data-collections.js +16 -0
- package/node_modules/@integration-app/sdk/data-collections.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-filter/index.d.ts +12 -0
- package/node_modules/@integration-app/sdk/data-filter/index.js +104 -0
- package/node_modules/@integration-app/sdk/data-filter/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-filter/operators.d.ts +13 -0
- package/node_modules/@integration-app/sdk/data-filter/operators.js +140 -0
- package/node_modules/@integration-app/sdk/data-filter/operators.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-links/accessors.d.ts +20 -0
- package/node_modules/@integration-app/sdk/data-links/accessors.js +65 -0
- package/node_modules/@integration-app/sdk/data-links/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-links/api.d.ts +49 -0
- package/node_modules/@integration-app/sdk/data-links/api.js +3 -0
- package/node_modules/@integration-app/sdk/data-links/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-links/index.d.ts +35 -0
- package/node_modules/@integration-app/sdk/data-links/index.js +10 -0
- package/node_modules/@integration-app/sdk/data-links/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-locations/accessors.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-locations/accessors.js +22 -0
- package/node_modules/@integration-app/sdk/data-locations/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-locations/api.d.ts +4 -0
- package/node_modules/@integration-app/sdk/data-locations/api.js +3 -0
- package/node_modules/@integration-app/sdk/data-locations/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-locations/index.d.ts +138 -0
- package/node_modules/@integration-app/sdk/data-locations/index.js +17 -0
- package/node_modules/@integration-app/sdk/data-locations/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-schema/index.d.ts +49 -0
- package/node_modules/@integration-app/sdk/data-schema/index.js +88 -0
- package/node_modules/@integration-app/sdk/data-schema/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-sources/accessors.d.ts +29 -0
- package/node_modules/@integration-app/sdk/data-sources/accessors.js +71 -0
- package/node_modules/@integration-app/sdk/data-sources/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-sources/api.d.ts +37 -0
- package/node_modules/@integration-app/sdk/data-sources/api.js +3 -0
- package/node_modules/@integration-app/sdk/data-sources/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-sources/index.d.ts +55 -0
- package/node_modules/@integration-app/sdk/data-sources/index.js +3 -0
- package/node_modules/@integration-app/sdk/data-sources/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/datetime.d.ts +1 -0
- package/node_modules/@integration-app/sdk/datetime.js +15 -0
- package/node_modules/@integration-app/sdk/datetime.js.map +1 -0
- package/node_modules/@integration-app/sdk/entity-repository.d.ts +11 -0
- package/node_modules/@integration-app/sdk/entity-repository.js +10 -0
- package/node_modules/@integration-app/sdk/entity-repository.js.map +1 -0
- package/node_modules/@integration-app/sdk/errors.d.ts +64 -0
- package/node_modules/@integration-app/sdk/errors.js +141 -0
- package/node_modules/@integration-app/sdk/errors.js.map +1 -0
- package/node_modules/@integration-app/sdk/field-mappings/accessors.d.ts +25 -0
- package/node_modules/@integration-app/sdk/field-mappings/accessors.js +60 -0
- package/node_modules/@integration-app/sdk/field-mappings/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/field-mappings/api.d.ts +34 -0
- package/node_modules/@integration-app/sdk/field-mappings/api.js +3 -0
- package/node_modules/@integration-app/sdk/field-mappings/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/field-mappings/index.d.ts +90 -0
- package/node_modules/@integration-app/sdk/field-mappings/index.js +195 -0
- package/node_modules/@integration-app/sdk/field-mappings/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.d.ts +30 -0
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js +11 -0
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js.map +1 -0
- package/node_modules/@integration-app/sdk/flow-runs/index.d.ts +59 -0
- package/node_modules/@integration-app/sdk/flow-runs/index.js +44 -0
- package/node_modules/@integration-app/sdk/flow-runs/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/accessors.d.ts +37 -0
- package/node_modules/@integration-app/sdk/flows/accessors.js +167 -0
- package/node_modules/@integration-app/sdk/flows/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/api.d.ts +55 -0
- package/node_modules/@integration-app/sdk/flows/api.js +8 -0
- package/node_modules/@integration-app/sdk/flows/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/index.d.ts +84 -0
- package/node_modules/@integration-app/sdk/flows/index.js +26 -0
- package/node_modules/@integration-app/sdk/flows/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/filter.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/filter.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/filter.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/index.d.ts +28 -0
- package/node_modules/@integration-app/sdk/flows/nodes/index.js +50 -0
- package/node_modules/@integration-app/sdk/flows/nodes/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/utils.d.ts +10 -0
- package/node_modules/@integration-app/sdk/flows/utils.js +72 -0
- package/node_modules/@integration-app/sdk/flows/utils.js.map +1 -0
- package/node_modules/@integration-app/sdk/http-requests.d.ts +37 -0
- package/node_modules/@integration-app/sdk/http-requests.js +33 -0
- package/node_modules/@integration-app/sdk/http-requests.js.map +1 -0
- package/node_modules/@integration-app/sdk/iframe.d.ts +9 -0
- package/node_modules/@integration-app/sdk/iframe.js +112 -0
- package/node_modules/@integration-app/sdk/iframe.js.map +1 -0
- package/node_modules/@integration-app/sdk/index.d.ts +4 -0
- package/node_modules/@integration-app/sdk/index.js +8 -0
- package/node_modules/@integration-app/sdk/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/integration-elements/index.d.ts +22 -0
- package/node_modules/@integration-app/sdk/integration-elements/index.js +15 -0
- package/node_modules/@integration-app/sdk/integration-elements/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +17 -0
- package/node_modules/@integration-app/sdk/integrations/accessors.js +36 -0
- package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/integrations/api.d.ts +10 -0
- package/node_modules/@integration-app/sdk/integrations/api.js +3 -0
- package/node_modules/@integration-app/sdk/integrations/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/integrations/index.d.ts +27 -0
- package/node_modules/@integration-app/sdk/integrations/index.js +16 -0
- package/node_modules/@integration-app/sdk/integrations/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/json-schema/index.d.ts +32 -0
- package/node_modules/@integration-app/sdk/json-schema/index.js +207 -0
- package/node_modules/@integration-app/sdk/json-schema/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.d.ts +7 -0
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.js +232 -0
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.js.map +1 -0
- package/node_modules/@integration-app/sdk/jwt.d.ts +1 -0
- package/node_modules/@integration-app/sdk/jwt.js +37 -0
- package/node_modules/@integration-app/sdk/jwt.js.map +1 -0
- package/node_modules/@integration-app/sdk/package.json +63 -0
- package/node_modules/@integration-app/sdk/rollup.config.js +23 -0
- package/node_modules/@integration-app/sdk/src/accessors.ts +150 -0
- package/node_modules/@integration-app/sdk/src/app-data-collections/accessors.ts +69 -0
- package/node_modules/@integration-app/sdk/src/app-data-collections/api.ts +31 -0
- package/node_modules/@integration-app/sdk/src/app-data-collections/index.ts +46 -0
- package/node_modules/@integration-app/sdk/src/app-data-schemas/accessors.ts +69 -0
- package/node_modules/@integration-app/sdk/src/app-data-schemas/api.ts +28 -0
- package/node_modules/@integration-app/sdk/src/app-data-schemas/index.ts +35 -0
- package/node_modules/@integration-app/sdk/src/app-events/accessors.ts +69 -0
- package/node_modules/@integration-app/sdk/src/app-events/api.ts +28 -0
- package/node_modules/@integration-app/sdk/src/app-events/index.ts +75 -0
- package/node_modules/@integration-app/sdk/src/auth/accessors.ts +10 -0
- package/node_modules/@integration-app/sdk/src/auth/index.ts +7 -0
- package/node_modules/@integration-app/sdk/src/bundle-index.ts +6 -0
- package/node_modules/@integration-app/sdk/src/client.ts +417 -0
- package/node_modules/@integration-app/sdk/src/connections/accessors.ts +58 -0
- package/node_modules/@integration-app/sdk/src/connections/api.ts +28 -0
- package/node_modules/@integration-app/sdk/src/connections/index.ts +70 -0
- package/node_modules/@integration-app/sdk/src/connector-api/index.ts +44 -0
- package/node_modules/@integration-app/sdk/src/data-builder/context.ts +40 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.test.ts +26 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.ts +95 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +158 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +53 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.test.ts +117 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.ts +49 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.test.ts +70 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.ts +20 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.test.ts +49 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.ts +28 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.test.ts +49 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.ts +28 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.test.ts +30 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.ts +30 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.test.ts +30 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.ts +30 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/first-name.ts +21 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.test.ts +83 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.ts +190 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.test.ts +154 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.ts +46 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/last-name.ts +21 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.test.ts +20 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.ts +33 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.test.ts +125 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.ts +42 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/plain.ts +17 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/record.ts +20 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/schemaOption.ts +26 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.test.ts +51 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.ts +33 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/var.ts +19 -0
- package/node_modules/@integration-app/sdk/src/data-builder/index.test.ts +372 -0
- package/node_modules/@integration-app/sdk/src/data-builder/index.ts +16 -0
- package/node_modules/@integration-app/sdk/src/data-builder/locators.test.ts +1045 -0
- package/node_modules/@integration-app/sdk/src/data-builder/locators.ts +702 -0
- package/node_modules/@integration-app/sdk/src/data-collections.ts +74 -0
- package/node_modules/@integration-app/sdk/src/data-filter/index.test.ts +48 -0
- package/node_modules/@integration-app/sdk/src/data-filter/index.ts +127 -0
- package/node_modules/@integration-app/sdk/src/data-filter/operators.test.ts +694 -0
- package/node_modules/@integration-app/sdk/src/data-filter/operators.ts +163 -0
- package/node_modules/@integration-app/sdk/src/data-links/accessors.ts +108 -0
- package/node_modules/@integration-app/sdk/src/data-links/api.ts +75 -0
- package/node_modules/@integration-app/sdk/src/data-links/index.ts +55 -0
- package/node_modules/@integration-app/sdk/src/data-locations/accessors.ts +24 -0
- package/node_modules/@integration-app/sdk/src/data-locations/api.ts +5 -0
- package/node_modules/@integration-app/sdk/src/data-locations/index.ts +209 -0
- package/node_modules/@integration-app/sdk/src/data-schema/index.test.ts +90 -0
- package/node_modules/@integration-app/sdk/src/data-schema/index.ts +185 -0
- package/node_modules/@integration-app/sdk/src/data-sources/accessors.ts +133 -0
- package/node_modules/@integration-app/sdk/src/data-sources/api.ts +59 -0
- package/node_modules/@integration-app/sdk/src/data-sources/index.ts +103 -0
- package/node_modules/@integration-app/sdk/src/datetime.ts +16 -0
- package/node_modules/@integration-app/sdk/src/entity-repository.ts +12 -0
- package/node_modules/@integration-app/sdk/src/errors.ts +154 -0
- package/node_modules/@integration-app/sdk/src/field-mappings/accessors.ts +100 -0
- package/node_modules/@integration-app/sdk/src/field-mappings/api.ts +61 -0
- package/node_modules/@integration-app/sdk/src/field-mappings/index.ts +341 -0
- package/node_modules/@integration-app/sdk/src/flow-runs/flow-node-runs.ts +53 -0
- package/node_modules/@integration-app/sdk/src/flow-runs/index.ts +102 -0
- package/node_modules/@integration-app/sdk/src/flows/accessors.ts +246 -0
- package/node_modules/@integration-app/sdk/src/flows/api.ts +71 -0
- package/node_modules/@integration-app/sdk/src/flows/index.ts +233 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/api-trigger.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/app-event-trigger.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-link.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-record.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-created-trigger.ts +8 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-deleted-trigger.ts +8 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-updated-trigger.ts +8 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/delete-data-record.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/filter.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-link.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-record-by-id.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-records.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/http-request.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/index.ts +60 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/list-data-records.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/schedule-trigger.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/transform-data.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/update-data-record.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/utils.test.ts +63 -0
- package/node_modules/@integration-app/sdk/src/flows/utils.ts +110 -0
- package/node_modules/@integration-app/sdk/src/http-requests.ts +41 -0
- package/node_modules/@integration-app/sdk/src/iframe.ts +142 -0
- package/node_modules/@integration-app/sdk/src/index.ts +5 -0
- package/node_modules/@integration-app/sdk/src/integration-elements/index.ts +24 -0
- package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +42 -0
- package/node_modules/@integration-app/sdk/src/integrations/api.ts +13 -0
- package/node_modules/@integration-app/sdk/src/integrations/index.ts +50 -0
- package/node_modules/@integration-app/sdk/src/json-schema/__snapshots__/schema-builder.test.ts.snap +167 -0
- package/node_modules/@integration-app/sdk/src/json-schema/index.ts +251 -0
- package/node_modules/@integration-app/sdk/src/json-schema/json-schema.test.ts +246 -0
- package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.test.ts +396 -0
- package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.ts +258 -0
- package/node_modules/@integration-app/sdk/src/jwt.test.ts +11 -0
- package/node_modules/@integration-app/sdk/src/jwt.ts +40 -0
- package/node_modules/@integration-app/sdk/src/udm/activities.test.ts +43 -0
- package/node_modules/@integration-app/sdk/src/udm/activities.ts +83 -0
- package/node_modules/@integration-app/sdk/src/udm/base.ts +88 -0
- package/node_modules/@integration-app/sdk/src/udm/campaigns.ts +72 -0
- package/node_modules/@integration-app/sdk/src/udm/companies.ts +80 -0
- package/node_modules/@integration-app/sdk/src/udm/contacts.test.ts +147 -0
- package/node_modules/@integration-app/sdk/src/udm/contacts.ts +106 -0
- package/node_modules/@integration-app/sdk/src/udm/deals.ts +90 -0
- package/node_modules/@integration-app/sdk/src/udm/index.ts +28 -0
- package/node_modules/@integration-app/sdk/src/udm/leads.ts +113 -0
- package/node_modules/@integration-app/sdk/src/udm/users.ts +92 -0
- package/node_modules/@integration-app/sdk/src/users/accessors.ts +28 -0
- package/node_modules/@integration-app/sdk/src/users/api.ts +8 -0
- package/node_modules/@integration-app/sdk/src/users/index.ts +5 -0
- package/node_modules/@integration-app/sdk/src/variables.ts +33 -0
- package/node_modules/@integration-app/sdk/src/workspaces/index.ts +5 -0
- package/node_modules/@integration-app/sdk/tsconfig.build.json +10 -0
- package/node_modules/@integration-app/sdk/tsconfig.json +19 -0
- package/node_modules/@integration-app/sdk/udm/activities.d.ts +30 -0
- package/node_modules/@integration-app/sdk/udm/activities.js +70 -0
- package/node_modules/@integration-app/sdk/udm/activities.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/base.d.ts +27 -0
- package/node_modules/@integration-app/sdk/udm/base.js +62 -0
- package/node_modules/@integration-app/sdk/udm/base.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/campaigns.d.ts +25 -0
- package/node_modules/@integration-app/sdk/udm/campaigns.js +66 -0
- package/node_modules/@integration-app/sdk/udm/campaigns.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/companies.d.ts +42 -0
- package/node_modules/@integration-app/sdk/udm/companies.js +69 -0
- package/node_modules/@integration-app/sdk/udm/companies.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/contacts.d.ts +49 -0
- package/node_modules/@integration-app/sdk/udm/contacts.js +94 -0
- package/node_modules/@integration-app/sdk/udm/contacts.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/deals.d.ts +26 -0
- package/node_modules/@integration-app/sdk/udm/deals.js +84 -0
- package/node_modules/@integration-app/sdk/udm/deals.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/index.d.ts +11 -0
- package/node_modules/@integration-app/sdk/udm/index.js +31 -0
- package/node_modules/@integration-app/sdk/udm/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/leads.d.ts +52 -0
- package/node_modules/@integration-app/sdk/udm/leads.js +101 -0
- package/node_modules/@integration-app/sdk/udm/leads.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/users.d.ts +31 -0
- package/node_modules/@integration-app/sdk/udm/users.js +81 -0
- package/node_modules/@integration-app/sdk/udm/users.js.map +1 -0
- package/node_modules/@integration-app/sdk/users/accessors.d.ts +10 -0
- package/node_modules/@integration-app/sdk/users/accessors.js +21 -0
- package/node_modules/@integration-app/sdk/users/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/users/api.d.ts +6 -0
- package/node_modules/@integration-app/sdk/users/api.js +3 -0
- package/node_modules/@integration-app/sdk/users/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/users/index.d.ts +5 -0
- package/node_modules/@integration-app/sdk/users/index.js +3 -0
- package/node_modules/@integration-app/sdk/users/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/variables.d.ts +3 -0
- package/node_modules/@integration-app/sdk/variables.js +30 -0
- package/node_modules/@integration-app/sdk/variables.js.map +1 -0
- package/node_modules/@integration-app/sdk/workspaces/index.d.ts +5 -0
- package/node_modules/@integration-app/sdk/workspaces/index.js +3 -0
- package/node_modules/@integration-app/sdk/workspaces/index.js.map +1 -0
- package/node_modules/@sinclair/typebox/package.json +40 -0
- package/node_modules/@sinclair/typebox/readme.md +740 -0
- package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
- package/node_modules/@sinclair/typebox/typebox.js +345 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +128 -0
- package/node_modules/@types/node/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/buffer.d.ts +89 -0
- package/node_modules/@types/node/child_process.d.ts +514 -0
- package/node_modules/@types/node/cluster.d.ts +265 -0
- package/node_modules/@types/node/console.d.ts +142 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +1283 -0
- package/node_modules/@types/node/dgram.d.ts +144 -0
- package/node_modules/@types/node/dns.d.ts +387 -0
- package/node_modules/@types/node/domain.d.ts +27 -0
- package/node_modules/@types/node/events.d.ts +82 -0
- package/node_modules/@types/node/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/fs.d.ts +2281 -0
- package/node_modules/@types/node/globals.d.ts +747 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +580 -0
- package/node_modules/@types/node/http2.d.ts +962 -0
- package/node_modules/@types/node/https.d.ts +271 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/@types/node/inspector.d.ts +3051 -0
- package/node_modules/@types/node/module.d.ts +56 -0
- package/node_modules/@types/node/net.d.ts +308 -0
- package/node_modules/@types/node/os.d.ts +243 -0
- package/node_modules/@types/node/package.json +232 -0
- package/node_modules/@types/node/path.d.ts +168 -0
- package/node_modules/@types/node/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/process.d.ts +413 -0
- package/node_modules/@types/node/punycode.d.ts +78 -0
- package/node_modules/@types/node/querystring.d.ts +31 -0
- package/node_modules/@types/node/readline.d.ts +174 -0
- package/node_modules/@types/node/repl.d.ts +398 -0
- package/node_modules/@types/node/stream.d.ts +359 -0
- package/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/timers.d.ts +19 -0
- package/node_modules/@types/node/tls.d.ts +784 -0
- package/node_modules/@types/node/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/node_modules/@types/node/tty.d.ts +69 -0
- package/node_modules/@types/node/url.d.ts +149 -0
- package/node_modules/@types/node/util.d.ts +216 -0
- package/node_modules/@types/node/v8.d.ts +190 -0
- package/node_modules/@types/node/vm.d.ts +155 -0
- package/node_modules/@types/node/wasi.d.ts +89 -0
- package/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/zlib.d.ts +364 -0
- package/package.json +14 -38
- package/dist/node_modules/.package-lock.json +0 -111
- package/dist/node_modules/js-tokens/CHANGELOG.md +0 -151
- package/dist/node_modules/js-tokens/LICENSE +0 -21
- package/dist/node_modules/js-tokens/README.md +0 -240
- package/dist/node_modules/js-tokens/index.js +0 -23
- package/dist/node_modules/js-tokens/package.json +0 -30
- package/dist/node_modules/loose-envify/LICENSE +0 -21
- package/dist/node_modules/loose-envify/README.md +0 -45
- package/dist/node_modules/loose-envify/cli.js +0 -16
- package/dist/node_modules/loose-envify/custom.js +0 -4
- package/dist/node_modules/loose-envify/index.js +0 -3
- package/dist/node_modules/loose-envify/loose-envify.js +0 -36
- package/dist/node_modules/loose-envify/package.json +0 -36
- package/dist/node_modules/loose-envify/replace.js +0 -65
- package/dist/node_modules/object-assign/index.js +0 -90
- package/dist/node_modules/object-assign/license +0 -21
- package/dist/node_modules/object-assign/package.json +0 -42
- package/dist/node_modules/object-assign/readme.md +0 -61
- package/dist/node_modules/scheduler/README.md +0 -9
- package/dist/node_modules/scheduler/build-info.json +0 -8
- package/dist/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -347
- package/dist/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -9
- package/dist/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -16
- package/dist/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -665
- package/dist/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -19
- package/dist/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -206
- package/dist/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +0 -13
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -646
- package/dist/node_modules/scheduler/cjs/scheduler.production.min.js +0 -20
- package/dist/node_modules/scheduler/index.js +0 -7
- package/dist/node_modules/scheduler/package.json +0 -40
- package/dist/node_modules/scheduler/tracing-profiling.js +0 -7
- package/dist/node_modules/scheduler/tracing.js +0 -7
- package/dist/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
- package/dist/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
- package/dist/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
- package/dist/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -664
- package/dist/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -18
- package/dist/node_modules/scheduler/umd/scheduler.development.js +0 -152
- package/dist/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
- package/dist/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
- package/dist/node_modules/scheduler/unstable_mock.js +0 -7
- package/dist/node_modules/scheduler/unstable_post_task.js +0 -7
- package/dist/package.json +0 -26
@@ -0,0 +1,1045 @@
|
|
1
|
+
import { BadRequestError } from '../errors'
|
2
|
+
import { DataBuilderFormulaType } from './formulas'
|
3
|
+
import {
|
4
|
+
DataLocatorStepSchemaOption,
|
5
|
+
DataLocatorStepArrayItem,
|
6
|
+
DataLocatorStepCurrentArrayItem,
|
7
|
+
DataLocatorStepObjectProperty,
|
8
|
+
findValueLocators,
|
9
|
+
getIconUriForLocator,
|
10
|
+
getNameComponentsForLocator,
|
11
|
+
getNameForLocator,
|
12
|
+
getSchemaByLocator,
|
13
|
+
getFormulaLocators,
|
14
|
+
getValueAtLocator,
|
15
|
+
isLocatorUserVisible,
|
16
|
+
locatorToSteps,
|
17
|
+
locatorToString,
|
18
|
+
makeSchemaForLocator,
|
19
|
+
setSchemaAtLocator,
|
20
|
+
setValueAtLocator,
|
21
|
+
stepsToLocator,
|
22
|
+
pickFieldsFromValue,
|
23
|
+
extractFieldLocator,
|
24
|
+
getLocatorsFromData,
|
25
|
+
getLocatorsFromSchema,
|
26
|
+
excludeFieldsFromValue,
|
27
|
+
} from './locators'
|
28
|
+
|
29
|
+
describe('Data Composer', () => {
|
30
|
+
const PROPERTY_NAME = 'testProperty'
|
31
|
+
const TEST_SIMPLE_SCHEMA = { type: 'string' }
|
32
|
+
const TEST_COMPLEX_SCHEMA = {
|
33
|
+
type: 'object',
|
34
|
+
properties: {
|
35
|
+
[PROPERTY_NAME]: {
|
36
|
+
anyOf: [
|
37
|
+
{
|
38
|
+
type: 'array',
|
39
|
+
key: 'keyValue',
|
40
|
+
items: {
|
41
|
+
type: 'object',
|
42
|
+
properties: {
|
43
|
+
[PROPERTY_NAME]: {
|
44
|
+
type: 'array',
|
45
|
+
items: TEST_SIMPLE_SCHEMA,
|
46
|
+
},
|
47
|
+
},
|
48
|
+
},
|
49
|
+
},
|
50
|
+
],
|
51
|
+
},
|
52
|
+
},
|
53
|
+
}
|
54
|
+
const OBJECT_PROPERTY_LOCATOR = new DataLocatorStepObjectProperty(
|
55
|
+
PROPERTY_NAME,
|
56
|
+
)
|
57
|
+
const ARRAY_ITEM_LOCATOR = new DataLocatorStepArrayItem(2)
|
58
|
+
const CURRENT_ITEM_LOCATOR = new DataLocatorStepCurrentArrayItem()
|
59
|
+
const SCHEMA_OPTION_LOCATOR = new DataLocatorStepSchemaOption('keyValue')
|
60
|
+
|
61
|
+
describe('getSchemaByLocator', () => {
|
62
|
+
it('should return schema by empty locator', () => {
|
63
|
+
expect(getSchemaByLocator(TEST_COMPLEX_SCHEMA, [])).toEqual(
|
64
|
+
TEST_COMPLEX_SCHEMA,
|
65
|
+
)
|
66
|
+
})
|
67
|
+
|
68
|
+
it('should return schema for object property locator', () => {
|
69
|
+
expect(
|
70
|
+
getSchemaByLocator(TEST_COMPLEX_SCHEMA, [OBJECT_PROPERTY_LOCATOR]),
|
71
|
+
).toEqual(TEST_COMPLEX_SCHEMA.properties[PROPERTY_NAME])
|
72
|
+
})
|
73
|
+
|
74
|
+
it('should return schema for any of locator', () => {
|
75
|
+
expect(
|
76
|
+
getSchemaByLocator(TEST_COMPLEX_SCHEMA, [
|
77
|
+
OBJECT_PROPERTY_LOCATOR,
|
78
|
+
SCHEMA_OPTION_LOCATOR,
|
79
|
+
]),
|
80
|
+
).toEqual(TEST_COMPLEX_SCHEMA.properties[PROPERTY_NAME].anyOf[0])
|
81
|
+
})
|
82
|
+
|
83
|
+
it('should return schema for array item locator', () => {
|
84
|
+
expect(
|
85
|
+
getSchemaByLocator(TEST_COMPLEX_SCHEMA, [
|
86
|
+
OBJECT_PROPERTY_LOCATOR,
|
87
|
+
SCHEMA_OPTION_LOCATOR,
|
88
|
+
ARRAY_ITEM_LOCATOR,
|
89
|
+
]),
|
90
|
+
).toEqual(TEST_COMPLEX_SCHEMA.properties[PROPERTY_NAME].anyOf[0].items)
|
91
|
+
})
|
92
|
+
|
93
|
+
it('should return schema for current array item locator', () => {
|
94
|
+
expect(
|
95
|
+
getSchemaByLocator(TEST_COMPLEX_SCHEMA, [
|
96
|
+
OBJECT_PROPERTY_LOCATOR,
|
97
|
+
SCHEMA_OPTION_LOCATOR,
|
98
|
+
ARRAY_ITEM_LOCATOR,
|
99
|
+
OBJECT_PROPERTY_LOCATOR,
|
100
|
+
CURRENT_ITEM_LOCATOR,
|
101
|
+
]),
|
102
|
+
).toEqual(
|
103
|
+
TEST_COMPLEX_SCHEMA.properties[PROPERTY_NAME].anyOf[0].items.properties[
|
104
|
+
PROPERTY_NAME
|
105
|
+
].items,
|
106
|
+
)
|
107
|
+
})
|
108
|
+
|
109
|
+
it('should return null if object property does not exist', () => {
|
110
|
+
expect(
|
111
|
+
getSchemaByLocator(TEST_COMPLEX_SCHEMA, '$.nonExistentProperty'),
|
112
|
+
).toBeNull()
|
113
|
+
})
|
114
|
+
|
115
|
+
it('should return null if used $current without an array', () => {
|
116
|
+
expect(getSchemaByLocator(TEST_COMPLEX_SCHEMA, '$.$current')).toBeNull()
|
117
|
+
})
|
118
|
+
|
119
|
+
it('should return null if used array index not on array', () => {
|
120
|
+
expect(
|
121
|
+
getSchemaByLocator(TEST_COMPLEX_SCHEMA, `$.${PROPERTY_NAME}[1]`),
|
122
|
+
).toBeNull()
|
123
|
+
})
|
124
|
+
|
125
|
+
it('should return null if used non-existed any of option', () => {
|
126
|
+
expect(
|
127
|
+
getSchemaByLocator(
|
128
|
+
TEST_COMPLEX_SCHEMA,
|
129
|
+
`$.${PROPERTY_NAME}<nonExistingKey>`,
|
130
|
+
),
|
131
|
+
).toBeNull()
|
132
|
+
})
|
133
|
+
})
|
134
|
+
|
135
|
+
describe('setSchemaAtLocator', () => {
|
136
|
+
it('should set schema at root', () => {
|
137
|
+
expect(
|
138
|
+
setSchemaAtLocator({ type: 'string' }, '$', TEST_COMPLEX_SCHEMA),
|
139
|
+
).toEqual(TEST_COMPLEX_SCHEMA)
|
140
|
+
})
|
141
|
+
|
142
|
+
it('should set schema for object key and keep other keys', () => {
|
143
|
+
expect(
|
144
|
+
setSchemaAtLocator(
|
145
|
+
{ type: 'object', properties: { existingKey: TEST_SIMPLE_SCHEMA } },
|
146
|
+
'$.key',
|
147
|
+
TEST_COMPLEX_SCHEMA,
|
148
|
+
),
|
149
|
+
).toEqual({
|
150
|
+
type: 'object',
|
151
|
+
properties: {
|
152
|
+
key: TEST_COMPLEX_SCHEMA,
|
153
|
+
existingKey: TEST_SIMPLE_SCHEMA,
|
154
|
+
},
|
155
|
+
})
|
156
|
+
})
|
157
|
+
|
158
|
+
it('should set schema for array items but keey existing schema as well', () => {
|
159
|
+
expect(
|
160
|
+
setSchemaAtLocator(
|
161
|
+
{
|
162
|
+
type: 'array',
|
163
|
+
items: {
|
164
|
+
type: 'object',
|
165
|
+
properties: { existingKey: TEST_SIMPLE_SCHEMA },
|
166
|
+
},
|
167
|
+
},
|
168
|
+
'$.$current.key',
|
169
|
+
TEST_COMPLEX_SCHEMA,
|
170
|
+
),
|
171
|
+
).toEqual({
|
172
|
+
type: 'array',
|
173
|
+
items: {
|
174
|
+
type: 'object',
|
175
|
+
properties: {
|
176
|
+
key: TEST_COMPLEX_SCHEMA,
|
177
|
+
existingKey: TEST_SIMPLE_SCHEMA,
|
178
|
+
},
|
179
|
+
},
|
180
|
+
})
|
181
|
+
})
|
182
|
+
})
|
183
|
+
|
184
|
+
describe('makeSchemaForLocator', () => {
|
185
|
+
it('should make schema for empty locator', () => {
|
186
|
+
expect(makeSchemaForLocator([], TEST_SIMPLE_SCHEMA)).toEqual(
|
187
|
+
TEST_SIMPLE_SCHEMA,
|
188
|
+
)
|
189
|
+
})
|
190
|
+
|
191
|
+
it('should make schema for object property locator', () => {
|
192
|
+
expect(
|
193
|
+
makeSchemaForLocator([OBJECT_PROPERTY_LOCATOR], TEST_SIMPLE_SCHEMA),
|
194
|
+
).toEqual({
|
195
|
+
type: 'object',
|
196
|
+
properties: {
|
197
|
+
[PROPERTY_NAME]: TEST_SIMPLE_SCHEMA,
|
198
|
+
},
|
199
|
+
})
|
200
|
+
})
|
201
|
+
|
202
|
+
it('should make schema for array item locator', () => {
|
203
|
+
expect(
|
204
|
+
makeSchemaForLocator([ARRAY_ITEM_LOCATOR], TEST_SIMPLE_SCHEMA),
|
205
|
+
).toEqual({
|
206
|
+
type: 'array',
|
207
|
+
items: TEST_SIMPLE_SCHEMA,
|
208
|
+
})
|
209
|
+
})
|
210
|
+
|
211
|
+
it('should make schema for current item locator', () => {
|
212
|
+
expect(
|
213
|
+
makeSchemaForLocator([CURRENT_ITEM_LOCATOR], TEST_SIMPLE_SCHEMA),
|
214
|
+
).toEqual({
|
215
|
+
type: 'array',
|
216
|
+
items: TEST_SIMPLE_SCHEMA,
|
217
|
+
})
|
218
|
+
})
|
219
|
+
|
220
|
+
it('should make schema for schemaOption locator', () => {
|
221
|
+
const schemaOption = {
|
222
|
+
...TEST_SIMPLE_SCHEMA,
|
223
|
+
key: SCHEMA_OPTION_LOCATOR.key,
|
224
|
+
}
|
225
|
+
expect(
|
226
|
+
makeSchemaForLocator([SCHEMA_OPTION_LOCATOR], schemaOption),
|
227
|
+
).toEqual({
|
228
|
+
anyOf: [
|
229
|
+
{
|
230
|
+
...TEST_SIMPLE_SCHEMA,
|
231
|
+
key: SCHEMA_OPTION_LOCATOR.key,
|
232
|
+
},
|
233
|
+
],
|
234
|
+
})
|
235
|
+
})
|
236
|
+
|
237
|
+
it('should make schema for a composite locator', () => {
|
238
|
+
expect(
|
239
|
+
makeSchemaForLocator(
|
240
|
+
[
|
241
|
+
OBJECT_PROPERTY_LOCATOR,
|
242
|
+
SCHEMA_OPTION_LOCATOR,
|
243
|
+
CURRENT_ITEM_LOCATOR,
|
244
|
+
OBJECT_PROPERTY_LOCATOR,
|
245
|
+
ARRAY_ITEM_LOCATOR,
|
246
|
+
],
|
247
|
+
TEST_SIMPLE_SCHEMA,
|
248
|
+
),
|
249
|
+
).toEqual({
|
250
|
+
type: 'object',
|
251
|
+
properties: {
|
252
|
+
[PROPERTY_NAME]: {
|
253
|
+
anyOf: [
|
254
|
+
{
|
255
|
+
type: 'array',
|
256
|
+
key: SCHEMA_OPTION_LOCATOR.key,
|
257
|
+
items: {
|
258
|
+
type: 'object',
|
259
|
+
properties: {
|
260
|
+
[PROPERTY_NAME]: {
|
261
|
+
type: 'array',
|
262
|
+
items: TEST_SIMPLE_SCHEMA,
|
263
|
+
},
|
264
|
+
},
|
265
|
+
},
|
266
|
+
},
|
267
|
+
],
|
268
|
+
},
|
269
|
+
},
|
270
|
+
})
|
271
|
+
})
|
272
|
+
})
|
273
|
+
|
274
|
+
describe('locatorToSteps', () => {
|
275
|
+
it('should throw on incorrect value', () => {
|
276
|
+
expect(() => locatorToSteps(null)).toThrow(BadRequestError)
|
277
|
+
expect(() => locatorToSteps('')).toThrow(BadRequestError)
|
278
|
+
expect(() => locatorToSteps({ key: 'value' } as any)).toThrow(
|
279
|
+
BadRequestError,
|
280
|
+
)
|
281
|
+
})
|
282
|
+
it('should throw error for two dots ..', () => {
|
283
|
+
expect(() => locatorToSteps('$..')).toThrow(BadRequestError)
|
284
|
+
expect(() => locatorToSteps('$..')).toThrow(
|
285
|
+
'There should be a property name after a dot',
|
286
|
+
)
|
287
|
+
})
|
288
|
+
|
289
|
+
it('should throw error for not closed [ bracket', () => {
|
290
|
+
expect(() => locatorToSteps('$.prop[1')).toThrow(BadRequestError)
|
291
|
+
expect(() => locatorToSteps('$.prop[1')).toThrow(
|
292
|
+
'Could not find a closing bracket for the bracket at position 6. Locator: $.prop[1',
|
293
|
+
)
|
294
|
+
})
|
295
|
+
|
296
|
+
it('should throw error for not closed < bracket', () => {
|
297
|
+
expect(() => locatorToSteps('$.prop<1')).toThrow(BadRequestError)
|
298
|
+
expect(() => locatorToSteps('$.prop<1')).toThrow(
|
299
|
+
'Could not find a closing bracket for the bracket at position 6. Locator: $.prop<1',
|
300
|
+
)
|
301
|
+
})
|
302
|
+
|
303
|
+
it('should throw error for redundant ] bracket', () => {
|
304
|
+
expect(() => locatorToSteps('$.prop[1]]')).toThrow(BadRequestError)
|
305
|
+
expect(() => locatorToSteps('$.prop[1]]')).toThrow(
|
306
|
+
'Unexpected symbol at position 9. Locator: $.prop[1]]',
|
307
|
+
)
|
308
|
+
})
|
309
|
+
|
310
|
+
it('should throw error for redundant > bracket', () => {
|
311
|
+
expect(() => locatorToSteps('$.prop<1>>')).toThrow(BadRequestError)
|
312
|
+
expect(() => locatorToSteps('$.prop<1>>')).toThrow(
|
313
|
+
'Unexpected symbol at position 9. Locator: $.prop<1>>',
|
314
|
+
)
|
315
|
+
})
|
316
|
+
|
317
|
+
it('should throw error if [index] is not a number', () => {
|
318
|
+
expect(() => locatorToSteps('$.prop[aa]')).toThrow(BadRequestError)
|
319
|
+
expect(() => locatorToSteps('$.prop[aa]')).toThrow(
|
320
|
+
'Invalid index [aa]. Index should be a positive numbe',
|
321
|
+
)
|
322
|
+
})
|
323
|
+
|
324
|
+
it('should accept locators without $.', () => {
|
325
|
+
expect(locatorToSteps('prop[0]')).toEqual([
|
326
|
+
new DataLocatorStepObjectProperty('prop'),
|
327
|
+
new DataLocatorStepArrayItem(0),
|
328
|
+
])
|
329
|
+
})
|
330
|
+
|
331
|
+
it('should extract locators from simple string locator', () => {
|
332
|
+
expect(locatorToSteps('$.name')).toEqual([
|
333
|
+
new DataLocatorStepObjectProperty('name'),
|
334
|
+
])
|
335
|
+
})
|
336
|
+
|
337
|
+
it('should extract locators from nested object string locator', () => {
|
338
|
+
expect(locatorToSteps('$.name.firstName')).toEqual([
|
339
|
+
new DataLocatorStepObjectProperty('name'),
|
340
|
+
new DataLocatorStepObjectProperty('firstName'),
|
341
|
+
])
|
342
|
+
})
|
343
|
+
|
344
|
+
it('should extract locators if root is array', () => {
|
345
|
+
expect(locatorToSteps('$[5]')).toEqual([new DataLocatorStepArrayItem(5)])
|
346
|
+
})
|
347
|
+
|
348
|
+
it('should extract locators from string locator with $current', () => {
|
349
|
+
expect(locatorToSteps('$.$current.name')).toEqual([
|
350
|
+
new DataLocatorStepCurrentArrayItem(),
|
351
|
+
new DataLocatorStepObjectProperty('name'),
|
352
|
+
])
|
353
|
+
})
|
354
|
+
|
355
|
+
it('should extract locators from string locator with array item index: prop[N]', () => {
|
356
|
+
expect(locatorToSteps('$.users[52].name')).toEqual([
|
357
|
+
new DataLocatorStepObjectProperty('users'),
|
358
|
+
new DataLocatorStepArrayItem(52),
|
359
|
+
new DataLocatorStepObjectProperty('name'),
|
360
|
+
])
|
361
|
+
})
|
362
|
+
|
363
|
+
it('should extract locators from string locator with nested arrays: prop[N][N]', () => {
|
364
|
+
expect(locatorToSteps('$.users[52][10].name')).toEqual([
|
365
|
+
new DataLocatorStepObjectProperty('users'),
|
366
|
+
new DataLocatorStepArrayItem(52),
|
367
|
+
new DataLocatorStepArrayItem(10),
|
368
|
+
new DataLocatorStepObjectProperty('name'),
|
369
|
+
])
|
370
|
+
})
|
371
|
+
|
372
|
+
it('should extract locators from string locator with anyOf', () => {
|
373
|
+
expect(locatorToSteps('$.users<key>.name')).toEqual([
|
374
|
+
new DataLocatorStepObjectProperty('users'),
|
375
|
+
new DataLocatorStepSchemaOption('key'),
|
376
|
+
new DataLocatorStepObjectProperty('name'),
|
377
|
+
])
|
378
|
+
})
|
379
|
+
|
380
|
+
it('should extract locators from complex string locator', () => {
|
381
|
+
expect(locatorToSteps('$.field<key>[0].subfield')).toEqual([
|
382
|
+
new DataLocatorStepObjectProperty('field'),
|
383
|
+
new DataLocatorStepSchemaOption('key'),
|
384
|
+
new DataLocatorStepArrayItem(0),
|
385
|
+
new DataLocatorStepObjectProperty('subfield'),
|
386
|
+
])
|
387
|
+
})
|
388
|
+
|
389
|
+
it('should extract locators from nested arrays with nested anyOf locator', () => {
|
390
|
+
expect(locatorToSteps('$.field<key>[0]<key2>[3].subfield')).toEqual([
|
391
|
+
new DataLocatorStepObjectProperty('field'),
|
392
|
+
new DataLocatorStepSchemaOption('key'),
|
393
|
+
new DataLocatorStepArrayItem(0),
|
394
|
+
new DataLocatorStepSchemaOption('key2'),
|
395
|
+
new DataLocatorStepArrayItem(3),
|
396
|
+
new DataLocatorStepObjectProperty('subfield'),
|
397
|
+
])
|
398
|
+
})
|
399
|
+
})
|
400
|
+
|
401
|
+
describe('setValueAtLocator', () => {
|
402
|
+
const TEST_OBJECT = {
|
403
|
+
name: 'John',
|
404
|
+
lastName: 'Doe',
|
405
|
+
friends: [
|
406
|
+
{
|
407
|
+
name: 'Jane',
|
408
|
+
lastName: 'Doe',
|
409
|
+
},
|
410
|
+
{
|
411
|
+
name: 'Jack',
|
412
|
+
lastName: 'Doe',
|
413
|
+
},
|
414
|
+
],
|
415
|
+
}
|
416
|
+
|
417
|
+
it('should set value to empty object', () => {
|
418
|
+
const result = setValueAtLocator(null, '$.name', 'John')
|
419
|
+
expect(result).toEqual({ name: 'John' })
|
420
|
+
})
|
421
|
+
|
422
|
+
it('should return the value if locator is empty', () => {
|
423
|
+
expect(setValueAtLocator(TEST_OBJECT, '$', 'value')).toEqual('value')
|
424
|
+
})
|
425
|
+
|
426
|
+
it('should override a simple property', () => {
|
427
|
+
expect(setValueAtLocator(TEST_OBJECT, '$.name', 'Sarah')).toEqual({
|
428
|
+
...TEST_OBJECT,
|
429
|
+
name: 'Sarah',
|
430
|
+
})
|
431
|
+
})
|
432
|
+
|
433
|
+
it('should delete property if undefined is provided', () => {
|
434
|
+
expect(
|
435
|
+
setValueAtLocator(
|
436
|
+
{
|
437
|
+
name: 'John',
|
438
|
+
lastName: 'Doe',
|
439
|
+
},
|
440
|
+
'$.name',
|
441
|
+
undefined,
|
442
|
+
),
|
443
|
+
).toEqual({
|
444
|
+
lastName: 'Doe',
|
445
|
+
})
|
446
|
+
})
|
447
|
+
|
448
|
+
it('should override a property inside an array', () => {
|
449
|
+
expect(
|
450
|
+
setValueAtLocator(TEST_OBJECT, '$.friends[1].lastName', 'Brown'),
|
451
|
+
).toEqual({
|
452
|
+
...TEST_OBJECT,
|
453
|
+
friends: [
|
454
|
+
TEST_OBJECT.friends[0],
|
455
|
+
{
|
456
|
+
...TEST_OBJECT.friends[1],
|
457
|
+
lastName: 'Brown',
|
458
|
+
},
|
459
|
+
],
|
460
|
+
})
|
461
|
+
})
|
462
|
+
|
463
|
+
it('should set value at index 0 when used with $current', () => {
|
464
|
+
expect(
|
465
|
+
setValueAtLocator(TEST_OBJECT, '$.friends.$current.name', 'Sarah'),
|
466
|
+
).toEqual({
|
467
|
+
...TEST_OBJECT,
|
468
|
+
friends: [
|
469
|
+
{
|
470
|
+
...TEST_OBJECT.friends[0],
|
471
|
+
name: 'Sarah',
|
472
|
+
},
|
473
|
+
TEST_OBJECT.friends[1],
|
474
|
+
],
|
475
|
+
})
|
476
|
+
})
|
477
|
+
|
478
|
+
it('should create a property if does not exist', () => {
|
479
|
+
expect(setValueAtLocator(TEST_OBJECT, '$.email', 'john@doe.com')).toEqual(
|
480
|
+
{
|
481
|
+
...TEST_OBJECT,
|
482
|
+
email: 'john@doe.com',
|
483
|
+
},
|
484
|
+
)
|
485
|
+
})
|
486
|
+
|
487
|
+
it('should create nested arrays and properties if do not exist', () => {
|
488
|
+
expect(
|
489
|
+
setValueAtLocator(
|
490
|
+
TEST_OBJECT,
|
491
|
+
'$.enemies[2].emails[0].value',
|
492
|
+
'john@doe.com',
|
493
|
+
),
|
494
|
+
).toEqual({
|
495
|
+
...TEST_OBJECT,
|
496
|
+
enemies: [
|
497
|
+
undefined,
|
498
|
+
undefined,
|
499
|
+
{
|
500
|
+
emails: [
|
501
|
+
{
|
502
|
+
value: 'john@doe.com',
|
503
|
+
},
|
504
|
+
],
|
505
|
+
},
|
506
|
+
],
|
507
|
+
})
|
508
|
+
})
|
509
|
+
})
|
510
|
+
|
511
|
+
describe('stepsToLocator', () => {
|
512
|
+
it('should convert undefined, null, and empty array values to a root locator', () => {
|
513
|
+
expect(stepsToLocator(undefined)).toEqual('$')
|
514
|
+
expect(stepsToLocator(null)).toEqual('$')
|
515
|
+
expect(stepsToLocator([])).toEqual('$')
|
516
|
+
})
|
517
|
+
it('should convert steps to corresponding locator parts', () => {
|
518
|
+
expect(
|
519
|
+
stepsToLocator([
|
520
|
+
new DataLocatorStepObjectProperty('friends'),
|
521
|
+
new DataLocatorStepCurrentArrayItem(),
|
522
|
+
new DataLocatorStepObjectProperty('names'),
|
523
|
+
new DataLocatorStepArrayItem(2),
|
524
|
+
new DataLocatorStepSchemaOption('key'),
|
525
|
+
new DataLocatorStepObjectProperty('firstName'),
|
526
|
+
]),
|
527
|
+
).toEqual('$.friends.$current.names[2]<key>.firstName')
|
528
|
+
})
|
529
|
+
})
|
530
|
+
|
531
|
+
describe('locatorToString', () => {
|
532
|
+
it('should keep empty values empty', () => {
|
533
|
+
expect(locatorToString(undefined)).toBeUndefined()
|
534
|
+
expect(locatorToString(null)).toEqual(null)
|
535
|
+
})
|
536
|
+
it('should keep string values string', () => {
|
537
|
+
expect(locatorToString('')).toEqual('')
|
538
|
+
expect(locatorToString('$')).toEqual('$')
|
539
|
+
expect(locatorToString('$.name')).toEqual('$.name')
|
540
|
+
})
|
541
|
+
it('should convert locator steps to string', () => {
|
542
|
+
expect(
|
543
|
+
locatorToString([
|
544
|
+
new DataLocatorStepObjectProperty('posts'),
|
545
|
+
new DataLocatorStepCurrentArrayItem(),
|
546
|
+
]),
|
547
|
+
).toEqual('$.posts.$current')
|
548
|
+
})
|
549
|
+
})
|
550
|
+
|
551
|
+
describe('getIconUriForLocator', () => {
|
552
|
+
it('should return the latest uri encountered along locator steps', () => {
|
553
|
+
const schema = {
|
554
|
+
type: 'object',
|
555
|
+
iconUri: 'uri1',
|
556
|
+
properties: {
|
557
|
+
prop1: {
|
558
|
+
type: 'object',
|
559
|
+
iconUri: 'uri2',
|
560
|
+
properties: {
|
561
|
+
prop2: { type: 'string' },
|
562
|
+
},
|
563
|
+
},
|
564
|
+
},
|
565
|
+
}
|
566
|
+
expect(getIconUriForLocator(schema, '$.prop1.prop2')).toEqual('uri2')
|
567
|
+
})
|
568
|
+
|
569
|
+
it('should return undefined if schema does not have an icon URI', () => {
|
570
|
+
const schema = {
|
571
|
+
type: 'object',
|
572
|
+
properties: {
|
573
|
+
prop1: {
|
574
|
+
type: 'object',
|
575
|
+
properties: {
|
576
|
+
prop2: { type: 'string' },
|
577
|
+
},
|
578
|
+
},
|
579
|
+
},
|
580
|
+
}
|
581
|
+
expect(getIconUriForLocator(schema, '$.prop1.prop2')).toBeUndefined()
|
582
|
+
})
|
583
|
+
|
584
|
+
it('should return null for non-existent locator', () => {
|
585
|
+
const schema = {
|
586
|
+
type: 'string',
|
587
|
+
}
|
588
|
+
expect(getIconUriForLocator(schema, '$.prop1.prop2')).toBeNull()
|
589
|
+
})
|
590
|
+
})
|
591
|
+
|
592
|
+
describe('getNameForLocator', () => {
|
593
|
+
it('should return title if present', () => {
|
594
|
+
const schema = {
|
595
|
+
type: 'object',
|
596
|
+
properties: {
|
597
|
+
prop1: {
|
598
|
+
type: 'string',
|
599
|
+
title: 'Prop Name',
|
600
|
+
},
|
601
|
+
},
|
602
|
+
}
|
603
|
+
expect(getNameForLocator(schema, '$.prop1')).toEqual('Prop Name')
|
604
|
+
})
|
605
|
+
|
606
|
+
it('should return key if title is not present', () => {
|
607
|
+
const schema = {
|
608
|
+
type: 'object',
|
609
|
+
properties: {
|
610
|
+
prop1: {
|
611
|
+
type: 'string',
|
612
|
+
},
|
613
|
+
},
|
614
|
+
}
|
615
|
+
expect(getNameForLocator(schema, '$.prop1')).toEqual('Prop1')
|
616
|
+
})
|
617
|
+
|
618
|
+
describe('getNameComponentsForLocator', () => {
|
619
|
+
it('should ignore schemas with title set to empty string', () => {
|
620
|
+
const schema = {
|
621
|
+
type: 'object',
|
622
|
+
properties: {
|
623
|
+
ignore: {
|
624
|
+
type: 'object',
|
625
|
+
title: '',
|
626
|
+
properties: {
|
627
|
+
prop1: {
|
628
|
+
title: 'Prop 1',
|
629
|
+
},
|
630
|
+
},
|
631
|
+
},
|
632
|
+
},
|
633
|
+
}
|
634
|
+
|
635
|
+
expect(getNameComponentsForLocator(schema, '$.ignore.prop1')).toEqual([
|
636
|
+
'Prop 1',
|
637
|
+
])
|
638
|
+
})
|
639
|
+
})
|
640
|
+
|
641
|
+
it('should return undefined if locator does not exist', () => {
|
642
|
+
const schema = {
|
643
|
+
type: 'object',
|
644
|
+
}
|
645
|
+
expect(getNameForLocator(schema, '$.prop1')).toBeNull()
|
646
|
+
})
|
647
|
+
})
|
648
|
+
|
649
|
+
describe('getValueAtLocator', () => {
|
650
|
+
const variables = {
|
651
|
+
obj: {
|
652
|
+
prop: 'objPropValue',
|
653
|
+
},
|
654
|
+
arr: [
|
655
|
+
{
|
656
|
+
arrProp: 'aprPropValue',
|
657
|
+
},
|
658
|
+
{
|
659
|
+
arrProp: 'aprPropValue2',
|
660
|
+
},
|
661
|
+
],
|
662
|
+
}
|
663
|
+
it('should return original variable with empty locator', () => {
|
664
|
+
expect(getValueAtLocator(variables, '$')).toEqual(variables)
|
665
|
+
})
|
666
|
+
|
667
|
+
it('should return value from object property locator', () => {
|
668
|
+
expect(getValueAtLocator(variables, '$.obj.prop')).toEqual(
|
669
|
+
variables.obj.prop,
|
670
|
+
)
|
671
|
+
})
|
672
|
+
|
673
|
+
it('should return value from array item locator', () => {
|
674
|
+
expect(getValueAtLocator(variables, '$.arr[1].arrProp')).toEqual(
|
675
|
+
variables.arr[1].arrProp,
|
676
|
+
)
|
677
|
+
})
|
678
|
+
|
679
|
+
it('should return value from currentItem locator', () => {
|
680
|
+
expect(getValueAtLocator(variables, '$.arr.$current.arrProp')).toEqual(
|
681
|
+
variables.arr[0].arrProp,
|
682
|
+
)
|
683
|
+
})
|
684
|
+
|
685
|
+
it('should ignore anyOf locator', () => {
|
686
|
+
expect(
|
687
|
+
getValueAtLocator(variables, '$.arr<0>.$current<1>.arrProp'),
|
688
|
+
).toEqual(variables.arr[0].arrProp)
|
689
|
+
})
|
690
|
+
})
|
691
|
+
|
692
|
+
describe('isLocatorUserVisible', () => {
|
693
|
+
const schema = {
|
694
|
+
type: 'object',
|
695
|
+
properties: {
|
696
|
+
visibleObject: {
|
697
|
+
type: 'object',
|
698
|
+
properties: {
|
699
|
+
visibleProperty: {
|
700
|
+
type: 'string',
|
701
|
+
},
|
702
|
+
invisibleProperty: {
|
703
|
+
type: 'string',
|
704
|
+
userVisible: false,
|
705
|
+
},
|
706
|
+
},
|
707
|
+
},
|
708
|
+
invisibleObject: {
|
709
|
+
type: 'object',
|
710
|
+
userVisible: false,
|
711
|
+
properties: {
|
712
|
+
visibleProperty: {
|
713
|
+
type: 'string',
|
714
|
+
},
|
715
|
+
invisibleProperty: {
|
716
|
+
type: 'string',
|
717
|
+
userVisible: false,
|
718
|
+
},
|
719
|
+
},
|
720
|
+
},
|
721
|
+
visibleProperty: {
|
722
|
+
type: 'string',
|
723
|
+
},
|
724
|
+
invisibleProperty: {
|
725
|
+
type: 'string',
|
726
|
+
userVisible: false,
|
727
|
+
},
|
728
|
+
},
|
729
|
+
}
|
730
|
+
|
731
|
+
expect(isLocatorUserVisible(schema, '$')).toBe(true)
|
732
|
+
expect(isLocatorUserVisible(schema, '$.visibleProperty')).toBe(true)
|
733
|
+
expect(isLocatorUserVisible(schema, '$.invisibleProperty')).toBe(false)
|
734
|
+
expect(
|
735
|
+
isLocatorUserVisible(schema, '$.visibleObject.visibleProperty'),
|
736
|
+
).toBe(true)
|
737
|
+
expect(
|
738
|
+
isLocatorUserVisible(schema, '$.visibleObject.invisibleProperty'),
|
739
|
+
).toBe(false)
|
740
|
+
expect(
|
741
|
+
isLocatorUserVisible(schema, '$.invisibleObject.visibleProperty'),
|
742
|
+
).toBe(false)
|
743
|
+
expect(
|
744
|
+
isLocatorUserVisible(schema, '$.invisibleObject.invisibleProperty'),
|
745
|
+
).toBe(false)
|
746
|
+
})
|
747
|
+
|
748
|
+
describe('getFormulaLocators', () => {
|
749
|
+
it('should return empty list for an empty value', () => {
|
750
|
+
expect(getFormulaLocators(DataBuilderFormulaType.VAR, null)).toEqual([])
|
751
|
+
expect(getFormulaLocators(DataBuilderFormulaType.VAR, undefined)).toEqual(
|
752
|
+
[],
|
753
|
+
)
|
754
|
+
})
|
755
|
+
|
756
|
+
it('should return empty list for a scalar value', () => {
|
757
|
+
expect(getFormulaLocators(DataBuilderFormulaType.VAR, 'value')).toEqual(
|
758
|
+
[],
|
759
|
+
)
|
760
|
+
expect(getFormulaLocators(DataBuilderFormulaType.VAR, 5)).toEqual([])
|
761
|
+
expect(getFormulaLocators(DataBuilderFormulaType.VAR, false)).toEqual([])
|
762
|
+
})
|
763
|
+
|
764
|
+
it('should return empty list for an object without $ui', () => {
|
765
|
+
expect(
|
766
|
+
getFormulaLocators(DataBuilderFormulaType.VAR, { key: 'value' }),
|
767
|
+
).toEqual([])
|
768
|
+
})
|
769
|
+
|
770
|
+
it('should return root locator', () => {
|
771
|
+
expect(
|
772
|
+
getFormulaLocators(DataBuilderFormulaType.VAR, { $var: '$.abc' }),
|
773
|
+
).toEqual(['$'])
|
774
|
+
expect(
|
775
|
+
getFormulaLocators(DataBuilderFormulaType.ITERATE, {
|
776
|
+
$iterate: { locator: '$.abc' },
|
777
|
+
}),
|
778
|
+
).toEqual(['$'])
|
779
|
+
})
|
780
|
+
|
781
|
+
it('should return locators inside nested objects', () => {
|
782
|
+
expect(
|
783
|
+
getFormulaLocators(DataBuilderFormulaType.VAR, {
|
784
|
+
obj: {
|
785
|
+
key1: {
|
786
|
+
$var: true,
|
787
|
+
},
|
788
|
+
key2: {
|
789
|
+
$var: {
|
790
|
+
uiConfig: 'value',
|
791
|
+
},
|
792
|
+
},
|
793
|
+
},
|
794
|
+
key: {
|
795
|
+
$var: true,
|
796
|
+
},
|
797
|
+
}),
|
798
|
+
).toEqual(['$.obj.key1', '$.obj.key2', '$.key'])
|
799
|
+
})
|
800
|
+
|
801
|
+
it('should return locators inside nested lists', () => {
|
802
|
+
expect(
|
803
|
+
getFormulaLocators(DataBuilderFormulaType.VAR, {
|
804
|
+
obj: {
|
805
|
+
list: [
|
806
|
+
{
|
807
|
+
$var: true,
|
808
|
+
},
|
809
|
+
{
|
810
|
+
listKey: {
|
811
|
+
$var: true,
|
812
|
+
},
|
813
|
+
},
|
814
|
+
],
|
815
|
+
},
|
816
|
+
}),
|
817
|
+
).toEqual(['$.obj.list[0]', '$.obj.list[1].listKey'])
|
818
|
+
})
|
819
|
+
|
820
|
+
it('should not return locator if $ui is not the only key', () => {
|
821
|
+
expect(
|
822
|
+
getFormulaLocators(DataBuilderFormulaType.VAR, {
|
823
|
+
$var: true,
|
824
|
+
anotherKey: true,
|
825
|
+
}),
|
826
|
+
).toEqual([])
|
827
|
+
})
|
828
|
+
})
|
829
|
+
|
830
|
+
describe('findValueLocator', () => {
|
831
|
+
it('should work correctly with empty data', () => {
|
832
|
+
expect(findValueLocators(null, 'value')).toEqual([])
|
833
|
+
expect(findValueLocators(undefined, 'value')).toEqual([])
|
834
|
+
})
|
835
|
+
|
836
|
+
it('should find value if it equals data', () => {
|
837
|
+
expect(findValueLocators('value', 'value')).toEqual(['$'])
|
838
|
+
expect(findValueLocators(5, 5)).toEqual(['$'])
|
839
|
+
expect(findValueLocators(false, false)).toEqual(['$'])
|
840
|
+
expect(findValueLocators({ key: 'value' }, { key: 'value' })).toEqual([
|
841
|
+
'$',
|
842
|
+
])
|
843
|
+
})
|
844
|
+
|
845
|
+
it('should find value in object', () => {
|
846
|
+
expect(findValueLocators({ key: 'value' }, 'value')).toEqual(['$.key'])
|
847
|
+
expect(
|
848
|
+
findValueLocators({ key: { subkey: 'value' } }, { subkey: 'value' }),
|
849
|
+
).toEqual(['$.key'])
|
850
|
+
})
|
851
|
+
|
852
|
+
it('sholud find value in array', () => {
|
853
|
+
expect(findValueLocators([1, 2, 3], 1)).toEqual(['$[0]'])
|
854
|
+
expect(
|
855
|
+
findValueLocators(
|
856
|
+
[{ key: 'not value' }, { key: 'value' }, { key: 'value' }],
|
857
|
+
{ key: 'value' },
|
858
|
+
),
|
859
|
+
).toEqual(['$[1]', '$[2]'])
|
860
|
+
})
|
861
|
+
|
862
|
+
it('sholud find value in nested object', () => {
|
863
|
+
expect(
|
864
|
+
findValueLocators(
|
865
|
+
[
|
866
|
+
1,
|
867
|
+
2,
|
868
|
+
{
|
869
|
+
key: 1,
|
870
|
+
},
|
871
|
+
],
|
872
|
+
1,
|
873
|
+
),
|
874
|
+
).toEqual(['$[0]', '$[2].key'])
|
875
|
+
})
|
876
|
+
})
|
877
|
+
})
|
878
|
+
|
879
|
+
describe('pickFieldsFromValue', () => {
|
880
|
+
const value = {
|
881
|
+
key: 'value',
|
882
|
+
objKey: {
|
883
|
+
subKey: 'subKeyValue',
|
884
|
+
},
|
885
|
+
listKey: [
|
886
|
+
{
|
887
|
+
listSubKey: 'listSubKeyValue',
|
888
|
+
},
|
889
|
+
],
|
890
|
+
}
|
891
|
+
|
892
|
+
it('should pick empty list of fields', () => {
|
893
|
+
expect(pickFieldsFromValue(value, [])).toBeUndefined()
|
894
|
+
})
|
895
|
+
|
896
|
+
it('should pick non-existent values correctly', () => {
|
897
|
+
expect(pickFieldsFromValue(value, ['$.nonexistent'])).toBeUndefined()
|
898
|
+
})
|
899
|
+
|
900
|
+
it('should pick values correctly', () => {
|
901
|
+
expect(pickFieldsFromValue(value, ['$.key'])).toEqual({ key: 'value' })
|
902
|
+
expect(pickFieldsFromValue(value, ['$.objKey.subKey'])).toEqual({
|
903
|
+
objKey: { subKey: 'subKeyValue' },
|
904
|
+
})
|
905
|
+
expect(pickFieldsFromValue(value, ['$.listKey[0].listSubKey'])).toEqual({
|
906
|
+
listKey: [{ listSubKey: 'listSubKeyValue' }],
|
907
|
+
})
|
908
|
+
})
|
909
|
+
})
|
910
|
+
|
911
|
+
describe('extractFieldLocator', () => {
|
912
|
+
it('should return original locator for locators without formula', () => {
|
913
|
+
expect(extractFieldLocator('$')).toEqual('$')
|
914
|
+
expect(extractFieldLocator('$.key')).toEqual('$.key')
|
915
|
+
expect(extractFieldLocator('$.objKey.subKey')).toEqual('$.objKey.subKey')
|
916
|
+
expect(extractFieldLocator('$.listKey[0].listSubKey')).toEqual(
|
917
|
+
'$.listKey[0].listSubKey',
|
918
|
+
)
|
919
|
+
})
|
920
|
+
|
921
|
+
it('should return field part of the locator if it encounters formula', () => {
|
922
|
+
expect(extractFieldLocator('$.$map.value')).toEqual('$')
|
923
|
+
expect(extractFieldLocator('field.$firstName.value')).toEqual('$.field')
|
924
|
+
expect(extractFieldLocator('field.$firstName')).toEqual('$.field')
|
925
|
+
})
|
926
|
+
})
|
927
|
+
|
928
|
+
describe('getLocatorsFromData', () => {
|
929
|
+
it('should return no locators for empty data', () => {
|
930
|
+
expect(getLocatorsFromData(null)).toEqual([])
|
931
|
+
expect(getLocatorsFromData(undefined)).toEqual([])
|
932
|
+
})
|
933
|
+
|
934
|
+
it('should return parent locator if data is not an object or array', () => {
|
935
|
+
expect(getLocatorsFromData('value', '$')).toEqual(['$'])
|
936
|
+
expect(getLocatorsFromData(5, '$')).toEqual(['$'])
|
937
|
+
expect(getLocatorsFromData(false, '$')).toEqual(['$'])
|
938
|
+
})
|
939
|
+
|
940
|
+
it('should return object keys if data is object', () => {
|
941
|
+
expect(getLocatorsFromData({ key: 'value', key2: 'value2' }, '$')).toEqual([
|
942
|
+
'$.key',
|
943
|
+
'$.key2',
|
944
|
+
])
|
945
|
+
})
|
946
|
+
|
947
|
+
it('should return array items if data is array', () => {
|
948
|
+
expect(getLocatorsFromData([{ key: 'value' }, 0], '$')).toEqual([
|
949
|
+
'$[0].key',
|
950
|
+
'$[1]',
|
951
|
+
])
|
952
|
+
})
|
953
|
+
})
|
954
|
+
|
955
|
+
describe('getLocatorsFromSchema', () => {
|
956
|
+
it('should return no locators if schema is empty', () => {
|
957
|
+
expect(getLocatorsFromSchema(null)).toEqual([])
|
958
|
+
expect(getLocatorsFromSchema(undefined)).toEqual([])
|
959
|
+
expect(getLocatorsFromSchema({})).toEqual([])
|
960
|
+
})
|
961
|
+
|
962
|
+
it('should return parent locator for scalar schema', () => {
|
963
|
+
expect(getLocatorsFromSchema({ type: 'string' }, '$')).toEqual(['$'])
|
964
|
+
expect(getLocatorsFromSchema({ type: 'number' }, '$')).toEqual(['$'])
|
965
|
+
expect(getLocatorsFromSchema({ type: 'boolean' }, '$')).toEqual(['$'])
|
966
|
+
})
|
967
|
+
|
968
|
+
it('should return object keys for object schema', () => {
|
969
|
+
expect(
|
970
|
+
getLocatorsFromSchema(
|
971
|
+
{
|
972
|
+
type: 'object',
|
973
|
+
properties: {
|
974
|
+
key: { type: 'string' },
|
975
|
+
key2: { type: 'number' },
|
976
|
+
},
|
977
|
+
},
|
978
|
+
'$',
|
979
|
+
),
|
980
|
+
).toEqual(['$.key', '$.key2'])
|
981
|
+
})
|
982
|
+
|
983
|
+
it('should return first array item for array schema', () => {
|
984
|
+
expect(
|
985
|
+
getLocatorsFromSchema(
|
986
|
+
{
|
987
|
+
type: 'array',
|
988
|
+
items: {
|
989
|
+
type: 'object',
|
990
|
+
properties: {
|
991
|
+
key: { type: 'string' },
|
992
|
+
},
|
993
|
+
},
|
994
|
+
},
|
995
|
+
'$',
|
996
|
+
),
|
997
|
+
).toEqual(['$[0].key'])
|
998
|
+
})
|
999
|
+
})
|
1000
|
+
|
1001
|
+
describe('excludeFieldsFromValue', () => {
|
1002
|
+
it('should exclude simple field', () => {
|
1003
|
+
expect(
|
1004
|
+
excludeFieldsFromValue({ key: 'value', key2: 'value2' }, ['key']),
|
1005
|
+
).toEqual({
|
1006
|
+
key2: 'value2',
|
1007
|
+
})
|
1008
|
+
})
|
1009
|
+
|
1010
|
+
it('should exclude object key', () => {
|
1011
|
+
expect(
|
1012
|
+
excludeFieldsFromValue(
|
1013
|
+
{
|
1014
|
+
key: 'value',
|
1015
|
+
objKey: {
|
1016
|
+
subKey: 'subKeyValue',
|
1017
|
+
},
|
1018
|
+
},
|
1019
|
+
['objKey.subKey'],
|
1020
|
+
),
|
1021
|
+
).toEqual({
|
1022
|
+
key: 'value',
|
1023
|
+
objKey: {},
|
1024
|
+
})
|
1025
|
+
})
|
1026
|
+
|
1027
|
+
it('should exclude whole array item', () => {
|
1028
|
+
expect(excludeFieldsFromValue([1, 2], ['$[0]'])).toEqual([2])
|
1029
|
+
})
|
1030
|
+
|
1031
|
+
it('should exclude property from array item', () => {
|
1032
|
+
expect(
|
1033
|
+
excludeFieldsFromValue(
|
1034
|
+
{
|
1035
|
+
key: 'value',
|
1036
|
+
listKey: [{ listSubKey: 'listSubKeyValue' }],
|
1037
|
+
},
|
1038
|
+
['listKey[0].listSubKey'],
|
1039
|
+
),
|
1040
|
+
).toEqual({
|
1041
|
+
key: 'value',
|
1042
|
+
listKey: [{}],
|
1043
|
+
})
|
1044
|
+
})
|
1045
|
+
})
|