@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,17 @@
|
|
1
|
+
import { Connection } from '../connections';
|
2
|
+
import { FindIntegrationsQuery, FindIntegrationsResponse, Integration } from '.';
|
3
|
+
import { IntegrationAppClient } from '..';
|
4
|
+
import { ElementAccessor } from '../accessors';
|
5
|
+
import { CreateIntegrationRequest, UpdateIntegrationRequest } from './api';
|
6
|
+
export declare class IntegrationsAccessor {
|
7
|
+
private client;
|
8
|
+
constructor(client: IntegrationAppClient);
|
9
|
+
find(query: FindIntegrationsQuery): Promise<FindIntegrationsResponse>;
|
10
|
+
}
|
11
|
+
export declare class IntegrationAccessor extends ElementAccessor<Integration, CreateIntegrationRequest, UpdateIntegrationRequest> {
|
12
|
+
private client;
|
13
|
+
private idOrKey;
|
14
|
+
baseUri: string;
|
15
|
+
constructor(client: IntegrationAppClient, idOrKey: string);
|
16
|
+
connect(): Promise<Connection>;
|
17
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.IntegrationAccessor = exports.IntegrationsAccessor = void 0;
|
4
|
+
const iframe_1 = require("../iframe");
|
5
|
+
const accessors_1 = require("../accessors");
|
6
|
+
class IntegrationsAccessor {
|
7
|
+
constructor(client) {
|
8
|
+
this.client = client;
|
9
|
+
}
|
10
|
+
async find(query) {
|
11
|
+
return this.client.get('/integrations', query);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
exports.IntegrationsAccessor = IntegrationsAccessor;
|
15
|
+
class IntegrationAccessor extends accessors_1.ElementAccessor {
|
16
|
+
constructor(client, idOrKey) {
|
17
|
+
super({
|
18
|
+
client,
|
19
|
+
path: 'integrations',
|
20
|
+
idOrKey,
|
21
|
+
});
|
22
|
+
this.client = client;
|
23
|
+
this.idOrKey = idOrKey;
|
24
|
+
}
|
25
|
+
async connect() {
|
26
|
+
const uri = this.client.getEmbedUri(`/integrations/${this.idOrKey}/connection/connect`);
|
27
|
+
return new Promise((resolve) => {
|
28
|
+
(0, iframe_1.openIframe)(uri, {
|
29
|
+
onClose: () => resolve(null),
|
30
|
+
onSuccess: (connection) => resolve(connection),
|
31
|
+
});
|
32
|
+
});
|
33
|
+
}
|
34
|
+
}
|
35
|
+
exports.IntegrationAccessor = IntegrationAccessor;
|
36
|
+
//# sourceMappingURL=accessors.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"accessors.js","sourceRoot":"","sources":["../src/integrations/accessors.ts"],"names":[],"mappings":";;;AAGA,sCAAsC;AACtC,4CAA8C;AAG9C,MAAa,oBAAoB;IAC/B,YAAoB,MAA4B;QAA5B,WAAM,GAAN,MAAM,CAAsB;IAAG,CAAC;IAEpD,KAAK,CAAC,IAAI,CAAC,KAA4B;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;CACF;AAND,oDAMC;AAED,MAAa,mBAAoB,SAAQ,2BAIxC;IAGC,YAAoB,MAA4B,EAAU,OAAe;QACvE,KAAK,CAAC;YACJ,MAAM;YACN,IAAI,EAAE,cAAc;YACpB,OAAO;SACR,CAAC,CAAA;QALgB,WAAM,GAAN,MAAM,CAAsB;QAAU,YAAO,GAAP,OAAO,CAAQ;IAMzE,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CACjC,iBAAiB,IAAI,CAAC,OAAO,qBAAqB,CACnD,CAAA;QACD,OAAO,IAAI,OAAO,CAAa,CAAC,OAAO,EAAE,EAAE;YACzC,IAAA,mBAAU,EAAC,GAAG,EAAE;gBACd,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;gBAC5B,SAAS,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;aAC/C,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AA1BD,kDA0BC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/integrations/api.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { PaginationQuery, PaginationResponse } from '../entity-repository';
|
2
|
+
import { Connection } from '../connections';
|
3
|
+
export declare enum ConnectionMode {
|
4
|
+
POPUP = "popup",
|
5
|
+
IFRAME = "iframe"
|
6
|
+
}
|
7
|
+
export interface IntegrationAuth {
|
8
|
+
clientId: string;
|
9
|
+
clientSecret: string;
|
10
|
+
authorizeUri: string;
|
11
|
+
tokenUri: string;
|
12
|
+
}
|
13
|
+
export interface Integration {
|
14
|
+
id: string;
|
15
|
+
key: string;
|
16
|
+
name: string;
|
17
|
+
baseUri: string;
|
18
|
+
auth: IntegrationAuth;
|
19
|
+
logoUri: string;
|
20
|
+
connectionMode?: ConnectionMode;
|
21
|
+
connection?: Connection;
|
22
|
+
archivedAt?: Date;
|
23
|
+
}
|
24
|
+
export declare class FindIntegrationsQuery extends PaginationQuery {
|
25
|
+
}
|
26
|
+
export declare class FindIntegrationsResponse extends PaginationResponse<Integration> {
|
27
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FindIntegrationsResponse = exports.FindIntegrationsQuery = exports.ConnectionMode = void 0;
|
4
|
+
const entity_repository_1 = require("../entity-repository");
|
5
|
+
var ConnectionMode;
|
6
|
+
(function (ConnectionMode) {
|
7
|
+
ConnectionMode["POPUP"] = "popup";
|
8
|
+
ConnectionMode["IFRAME"] = "iframe";
|
9
|
+
})(ConnectionMode = exports.ConnectionMode || (exports.ConnectionMode = {}));
|
10
|
+
class FindIntegrationsQuery extends entity_repository_1.PaginationQuery {
|
11
|
+
}
|
12
|
+
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
13
|
+
class FindIntegrationsResponse extends entity_repository_1.PaginationResponse {
|
14
|
+
}
|
15
|
+
exports.FindIntegrationsResponse = FindIntegrationsResponse;
|
16
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/integrations/index.ts"],"names":[],"mappings":";;;AAAA,4DAA0E;AAG1E,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAyCD,MAAa,qBAAsB,SAAQ,mCAAe;CAAG;AAA7D,sDAA6D;AAE7D,MAAa,wBAAyB,SAAQ,sCAA+B;CAAG;AAAhF,4DAAgF"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
export declare enum JSONSchemaType {
|
2
|
+
Null = "null",
|
3
|
+
Boolean = "boolean",
|
4
|
+
Integer = "integer",
|
5
|
+
Number = "number",
|
6
|
+
String = "string",
|
7
|
+
Object = "object",
|
8
|
+
Array = "array"
|
9
|
+
}
|
10
|
+
export declare type JSONSchemaTypeStr = 'null' | 'boolean' | 'integer' | 'number' | 'string' | 'object' | 'array';
|
11
|
+
export declare type JSONSchema = {
|
12
|
+
type?: JSONSchemaTypeStr | JSONSchemaTypeStr[];
|
13
|
+
items?: JSONSchema;
|
14
|
+
maxItems?: number;
|
15
|
+
properties?: Record<string, JSONSchema>;
|
16
|
+
required?: string[];
|
17
|
+
anyOf?: Array<JSONSchema>;
|
18
|
+
examples?: any[];
|
19
|
+
title?: string;
|
20
|
+
enum?: any[];
|
21
|
+
format?: string;
|
22
|
+
$ref?: string;
|
23
|
+
};
|
24
|
+
export declare type SchemaComparisonOptions = {
|
25
|
+
ignoreRequired: boolean;
|
26
|
+
};
|
27
|
+
export declare function schemaDiff(first: JSONSchema, second: JSONSchema): JSONSchema;
|
28
|
+
export declare function isScalar(schema: any): boolean;
|
29
|
+
export declare function schemaTypeFromValue(value: any): "object" | "string" | "number" | "null" | "boolean" | "array";
|
30
|
+
export declare function getUserVisibleSchema(schema: any): any;
|
31
|
+
export declare function getDefaultsFromSchema(schema: any): any;
|
32
|
+
export declare function valueToSchema(value: any, schema: any, field?: string): any;
|
@@ -0,0 +1,207 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.valueToSchema = exports.getDefaultsFromSchema = exports.getUserVisibleSchema = exports.schemaTypeFromValue = exports.isScalar = exports.schemaDiff = exports.JSONSchemaType = void 0;
|
4
|
+
var JSONSchemaType;
|
5
|
+
(function (JSONSchemaType) {
|
6
|
+
JSONSchemaType["Null"] = "null";
|
7
|
+
JSONSchemaType["Boolean"] = "boolean";
|
8
|
+
JSONSchemaType["Integer"] = "integer";
|
9
|
+
JSONSchemaType["Number"] = "number";
|
10
|
+
JSONSchemaType["String"] = "string";
|
11
|
+
JSONSchemaType["Object"] = "object";
|
12
|
+
JSONSchemaType["Array"] = "array";
|
13
|
+
})(JSONSchemaType = exports.JSONSchemaType || (exports.JSONSchemaType = {}));
|
14
|
+
function schemaDiff(first, second) {
|
15
|
+
if (!first) {
|
16
|
+
return null;
|
17
|
+
}
|
18
|
+
else if (first.type == JSONSchemaType.Object && first.properties) {
|
19
|
+
if ((second === null || second === void 0 ? void 0 : second.type) == JSONSchemaType.Object && second.properties) {
|
20
|
+
const diff = {
|
21
|
+
type: JSONSchemaType.Object,
|
22
|
+
properties: {},
|
23
|
+
};
|
24
|
+
Object.keys(first.properties).forEach((key) => {
|
25
|
+
const keyDiff = schemaDiff(first.properties[key], second.properties[key]);
|
26
|
+
if (keyDiff) {
|
27
|
+
diff.properties[key] = keyDiff;
|
28
|
+
}
|
29
|
+
});
|
30
|
+
return Object.keys(diff.properties).length > 0 ? diff : null;
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
return first;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
else if (first.type == JSONSchemaType.Array && first.items) {
|
37
|
+
if ((second === null || second === void 0 ? void 0 : second.type) == JSONSchemaType.Array && second.items) {
|
38
|
+
const itemsDiff = schemaDiff(first.items, second.items);
|
39
|
+
if (itemsDiff) {
|
40
|
+
return {
|
41
|
+
type: JSONSchemaType.Array,
|
42
|
+
items: itemsDiff,
|
43
|
+
};
|
44
|
+
}
|
45
|
+
else {
|
46
|
+
return null;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
else {
|
50
|
+
return first;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
else {
|
54
|
+
if (second) {
|
55
|
+
return null;
|
56
|
+
}
|
57
|
+
else {
|
58
|
+
return first;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
exports.schemaDiff = schemaDiff;
|
63
|
+
function isScalar(schema) {
|
64
|
+
return (schema.type != 'array' && schema.type != 'object' && schema.type != 'null');
|
65
|
+
}
|
66
|
+
exports.isScalar = isScalar;
|
67
|
+
function schemaTypeFromValue(value) {
|
68
|
+
switch (typeof value) {
|
69
|
+
case 'object':
|
70
|
+
if (Array.isArray(value)) {
|
71
|
+
return 'array';
|
72
|
+
}
|
73
|
+
else if (value === null) {
|
74
|
+
return 'null';
|
75
|
+
}
|
76
|
+
else {
|
77
|
+
return 'object';
|
78
|
+
}
|
79
|
+
case 'boolean':
|
80
|
+
return 'boolean';
|
81
|
+
case 'bigint':
|
82
|
+
case 'number':
|
83
|
+
return 'number';
|
84
|
+
default:
|
85
|
+
return 'string';
|
86
|
+
}
|
87
|
+
}
|
88
|
+
exports.schemaTypeFromValue = schemaTypeFromValue;
|
89
|
+
function getUserVisibleSchema(schema) {
|
90
|
+
var _a;
|
91
|
+
if (!schema || typeof schema !== 'object') {
|
92
|
+
return null;
|
93
|
+
}
|
94
|
+
if (schema.userVisible === false) {
|
95
|
+
return null;
|
96
|
+
}
|
97
|
+
if (schema.properties && typeof schema.properties === 'object') {
|
98
|
+
const userVisibleProperties = {};
|
99
|
+
Object.entries(schema.properties).forEach(([key, propertySchema]) => {
|
100
|
+
const userVisiblePropertySchema = getUserVisibleSchema(propertySchema);
|
101
|
+
if (userVisiblePropertySchema) {
|
102
|
+
userVisibleProperties[key] = userVisiblePropertySchema;
|
103
|
+
}
|
104
|
+
});
|
105
|
+
return {
|
106
|
+
...schema,
|
107
|
+
properties: userVisibleProperties,
|
108
|
+
};
|
109
|
+
}
|
110
|
+
if (schema.items) {
|
111
|
+
return {
|
112
|
+
...schema,
|
113
|
+
items: (_a = getUserVisibleSchema(schema.items)) !== null && _a !== void 0 ? _a : {},
|
114
|
+
};
|
115
|
+
}
|
116
|
+
return schema;
|
117
|
+
}
|
118
|
+
exports.getUserVisibleSchema = getUserVisibleSchema;
|
119
|
+
function getDefaultsFromSchema(schema) {
|
120
|
+
if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'object' && schema.properties) {
|
121
|
+
const propDefaults = {};
|
122
|
+
for (const [key, value] of Object.entries(schema.properties)) {
|
123
|
+
const defaults = getDefaultsFromSchema(value);
|
124
|
+
if (defaults !== null && defaults !== undefined) {
|
125
|
+
propDefaults[key] = defaults;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
if (Object.keys(propDefaults).length > 0) {
|
129
|
+
return propDefaults;
|
130
|
+
}
|
131
|
+
else {
|
132
|
+
return undefined;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
else {
|
136
|
+
return schema === null || schema === void 0 ? void 0 : schema.default;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
exports.getDefaultsFromSchema = getDefaultsFromSchema;
|
140
|
+
function valueToSchema(value, schema, field = '') {
|
141
|
+
var _a;
|
142
|
+
function throwError(message) {
|
143
|
+
throw new Error(`${message}${field ? ` for field ${field}` : ''}`);
|
144
|
+
}
|
145
|
+
if (value === null || value === undefined) {
|
146
|
+
return undefined;
|
147
|
+
}
|
148
|
+
switch (schema === null || schema === void 0 ? void 0 : schema.type) {
|
149
|
+
case 'string':
|
150
|
+
return value === null || value === void 0 ? void 0 : value.toString();
|
151
|
+
case 'integer':
|
152
|
+
case 'number':
|
153
|
+
const result = Number(value);
|
154
|
+
if (result === NaN) {
|
155
|
+
throwError(`Cannot convert "${value}" to number`);
|
156
|
+
}
|
157
|
+
if (schema.type === 'integer' && !Number.isInteger(result)) {
|
158
|
+
throwError(`Expected integer but got ${value}`);
|
159
|
+
}
|
160
|
+
return result;
|
161
|
+
case 'boolean':
|
162
|
+
if (typeof value === 'boolean') {
|
163
|
+
return value;
|
164
|
+
}
|
165
|
+
else if (typeof value === 'string') {
|
166
|
+
if (value === 'true') {
|
167
|
+
return true;
|
168
|
+
}
|
169
|
+
else if (value === 'false') {
|
170
|
+
return false;
|
171
|
+
}
|
172
|
+
else {
|
173
|
+
throwError(`Expected true or false but got "${value}"`);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
else if (value) {
|
177
|
+
throwError(`Expected true or false but got "${value}"`);
|
178
|
+
}
|
179
|
+
return undefined;
|
180
|
+
case 'list':
|
181
|
+
if (Array.isArray(value)) {
|
182
|
+
return value.map((item) => valueToSchema(item, schema.items, field));
|
183
|
+
}
|
184
|
+
else {
|
185
|
+
return undefined;
|
186
|
+
}
|
187
|
+
case 'object':
|
188
|
+
if (typeof value === 'object' && value) {
|
189
|
+
const result = {};
|
190
|
+
for (const [key, fieldValue] of Object.entries(value)) {
|
191
|
+
const fieldSchema = (_a = schema === null || schema === void 0 ? void 0 : schema.properties) === null || _a === void 0 ? void 0 : _a[key];
|
192
|
+
if (!fieldSchema && schema && !schema.additionalProperties) {
|
193
|
+
continue;
|
194
|
+
}
|
195
|
+
result[key] = valueToSchema(fieldValue, fieldSchema, field ? `${field}.${key}` : key);
|
196
|
+
}
|
197
|
+
return result;
|
198
|
+
}
|
199
|
+
else {
|
200
|
+
return undefined;
|
201
|
+
}
|
202
|
+
default:
|
203
|
+
return value;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
exports.valueToSchema = valueToSchema;
|
207
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/json-schema/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;AACjB,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB;AAoCD,SAAgB,UAAU,CAAC,KAAiB,EAAE,MAAkB;IAC9D,IAA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I,KAAK,EAAE;gBAChB,UAAU,CAAC,mCAAmC,KAAK,GAAG,CAAC,CAAA;aACxD;YACD,OAAO,SAAS,CAAA;QAClB,KAAK,MAAM;YACT,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACxB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAA;aACrE;iBAAM;gBACL,OAAO,SAAS,CAAA;aACjB;QACH,KAAK,QAAQ;YACX,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,EAAE;gBACtC,MAAM,MAAM,GAAG,EAAE,CAAA;gBACjB,KAAK,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;oBACrD,MAAM,WAAW,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,0CAAG,GAAG,CAAC,CAAA;oBAE7C,IAAI,CAAC,WAAW,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE;wBAE1D,SAAQ;qBACT;oBAED,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CACzB,UAAU,EACV,WAAW,EACX,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAChC,CAAA;iBACF;gBACD,OAAO,MAAM,CAAA;aACd;iBAAM;gBACL,OAAO,SAAS,CAAA;aACjB;QACH;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC;AAnED,sCAmEC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare function unwrapSchema(schema: any): any[];
|
2
|
+
export declare function unwrapSchemas(schemas: any[]): any[];
|
3
|
+
export declare function wrapAnyOfSchema(schema: any): any;
|
4
|
+
export declare function createSchema(value: any): any;
|
5
|
+
export declare function mergeSchemas(schemas: any[]): any;
|
6
|
+
export declare function extendSchema(schema: any, value: any): any;
|
7
|
+
export declare function createCompoundSchema(values: any[]): any;
|
@@ -0,0 +1,232 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createCompoundSchema = exports.extendSchema = exports.mergeSchemas = exports.createSchema = exports.wrapAnyOfSchema = exports.unwrapSchemas = exports.unwrapSchema = void 0;
|
4
|
+
function createSchemaFor(value) {
|
5
|
+
switch (typeof value) {
|
6
|
+
case 'number':
|
7
|
+
if (Number.isInteger(value)) {
|
8
|
+
return { type: 'integer' };
|
9
|
+
}
|
10
|
+
return { type: 'number' };
|
11
|
+
case 'boolean':
|
12
|
+
return { type: 'boolean' };
|
13
|
+
case 'string':
|
14
|
+
return { type: 'string' };
|
15
|
+
case 'object':
|
16
|
+
if (value === null) {
|
17
|
+
return {};
|
18
|
+
}
|
19
|
+
if (Array.isArray(value)) {
|
20
|
+
return createSchemaForArray(value);
|
21
|
+
}
|
22
|
+
return createSchemaForObject(value);
|
23
|
+
default:
|
24
|
+
return null;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
function createSchemaForArray(arr) {
|
28
|
+
if (arr.length === 0) {
|
29
|
+
return { type: 'array' };
|
30
|
+
}
|
31
|
+
const elementSchemas = arr.map((value) => createSchemaFor(value));
|
32
|
+
const items = combineSchemas(elementSchemas);
|
33
|
+
return { type: 'array', items };
|
34
|
+
}
|
35
|
+
function createSchemaForObject(obj) {
|
36
|
+
const keys = Object.keys(obj);
|
37
|
+
if (keys.length === 0) {
|
38
|
+
return {
|
39
|
+
type: 'object',
|
40
|
+
};
|
41
|
+
}
|
42
|
+
const properties = Object.entries(obj).reduce((props, [key, val]) => {
|
43
|
+
props[key] = createSchemaFor(val);
|
44
|
+
return props;
|
45
|
+
}, {});
|
46
|
+
const schema = { type: 'object', properties };
|
47
|
+
return schema;
|
48
|
+
}
|
49
|
+
function combineSchemas(schemas) {
|
50
|
+
const schemasByType = {
|
51
|
+
undefined: [],
|
52
|
+
['null']: [],
|
53
|
+
['boolean']: [],
|
54
|
+
['integer']: [],
|
55
|
+
['number']: [],
|
56
|
+
['string']: [],
|
57
|
+
['array']: [],
|
58
|
+
['object']: [],
|
59
|
+
};
|
60
|
+
const unwrappedSchemas = unwrapSchemas(schemas);
|
61
|
+
for (const unwrappedSchema of unwrappedSchemas) {
|
62
|
+
const type = unwrappedSchema.type;
|
63
|
+
schemasByType[type].push(unwrappedSchema);
|
64
|
+
}
|
65
|
+
if (schemasByType['number'].length > 0) {
|
66
|
+
schemasByType['number'].push(...schemasByType['integer'].map((r) => ({
|
67
|
+
...r,
|
68
|
+
type: 'number',
|
69
|
+
})));
|
70
|
+
delete schemasByType['integer'];
|
71
|
+
}
|
72
|
+
const resultSchemasByType = {
|
73
|
+
['null']: combineSameTypeScalarSchemas(schemasByType['null']),
|
74
|
+
['boolean']: combineSameTypeScalarSchemas(schemasByType['boolean']),
|
75
|
+
['number']: combineSameTypeScalarSchemas(schemasByType['number']),
|
76
|
+
['integer']: combineSameTypeScalarSchemas(schemasByType['integer']),
|
77
|
+
['string']: combineSameTypeScalarSchemas(schemasByType['string']),
|
78
|
+
['array']: combineArraySchemas(schemasByType['array']),
|
79
|
+
['object']: combineObjectSchemas(schemasByType['object']),
|
80
|
+
};
|
81
|
+
const schemasFound = Object.values(resultSchemasByType).filter(Boolean);
|
82
|
+
const multiType = schemasFound.length > 1;
|
83
|
+
if (multiType) {
|
84
|
+
const wrapped = wrapAnyOfSchema({ anyOf: schemasFound });
|
85
|
+
return wrapped;
|
86
|
+
}
|
87
|
+
return schemasFound[0];
|
88
|
+
}
|
89
|
+
function combineSameTypeScalarSchemas(schemas) {
|
90
|
+
if (!schemas || schemas.length === 0) {
|
91
|
+
return undefined;
|
92
|
+
}
|
93
|
+
const schema = {
|
94
|
+
type: schemas[0].type,
|
95
|
+
};
|
96
|
+
addTitleFromSourceSchemas(schema, schemas);
|
97
|
+
return schema;
|
98
|
+
}
|
99
|
+
function combineArraySchemas(schemas) {
|
100
|
+
if (!schemas || schemas.length === 0) {
|
101
|
+
return undefined;
|
102
|
+
}
|
103
|
+
const itemSchemas = [];
|
104
|
+
for (const schema of schemas) {
|
105
|
+
if (!schema.items)
|
106
|
+
continue;
|
107
|
+
const unwrappedSchemas = unwrapSchema(schema.items);
|
108
|
+
itemSchemas.push(...unwrappedSchemas);
|
109
|
+
}
|
110
|
+
const schema = {
|
111
|
+
type: 'array',
|
112
|
+
};
|
113
|
+
addTitleFromSourceSchemas(schema, schemas);
|
114
|
+
if (itemSchemas.length > 0) {
|
115
|
+
schema.items = combineSchemas(itemSchemas);
|
116
|
+
}
|
117
|
+
return schema;
|
118
|
+
}
|
119
|
+
function combineObjectSchemas(schemas) {
|
120
|
+
if (!schemas || schemas.length === 0) {
|
121
|
+
return undefined;
|
122
|
+
}
|
123
|
+
const allPropSchemas = schemas.map((s) => s.properties).filter(Boolean);
|
124
|
+
const schemasByProp = Object.create(null);
|
125
|
+
for (const propSchemas of allPropSchemas) {
|
126
|
+
for (const [prop, schema] of Object.entries(propSchemas)) {
|
127
|
+
if (!schemasByProp[prop]) {
|
128
|
+
schemasByProp[prop] = [];
|
129
|
+
}
|
130
|
+
const unwrappedSchemas = unwrapSchema(schema);
|
131
|
+
schemasByProp[prop].push(...unwrappedSchemas);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
const properties = Object.entries(schemasByProp).reduce((props, [prop, schemas]) => {
|
135
|
+
if (schemas.length === 1) {
|
136
|
+
props[prop] = schemas[0];
|
137
|
+
}
|
138
|
+
else {
|
139
|
+
props[prop] = combineSchemas(schemas);
|
140
|
+
}
|
141
|
+
return props;
|
142
|
+
}, {});
|
143
|
+
const combinedSchema = {
|
144
|
+
type: 'object',
|
145
|
+
};
|
146
|
+
addTitleFromSourceSchemas(combinedSchema, schemas);
|
147
|
+
if (Object.keys(properties).length > 0) {
|
148
|
+
combinedSchema.properties = properties;
|
149
|
+
}
|
150
|
+
return combinedSchema;
|
151
|
+
}
|
152
|
+
function unwrapSchema(schema) {
|
153
|
+
if (!schema)
|
154
|
+
return [];
|
155
|
+
if (schema.anyOf) {
|
156
|
+
return unwrapSchemas(schema.anyOf);
|
157
|
+
}
|
158
|
+
if (Array.isArray(schema.type)) {
|
159
|
+
return schema.type.map((x) => ({ type: x }));
|
160
|
+
}
|
161
|
+
return [schema];
|
162
|
+
}
|
163
|
+
exports.unwrapSchema = unwrapSchema;
|
164
|
+
function unwrapSchemas(schemas) {
|
165
|
+
if (!schemas || schemas.length === 0)
|
166
|
+
return [];
|
167
|
+
const unwrappedSchemas = schemas.flatMap((schema) => unwrapSchema(schema));
|
168
|
+
return unwrappedSchemas;
|
169
|
+
}
|
170
|
+
exports.unwrapSchemas = unwrapSchemas;
|
171
|
+
function wrapAnyOfSchema(schema) {
|
172
|
+
const simpleSchemas = [];
|
173
|
+
const complexSchemas = [];
|
174
|
+
for (const subSchema of schema.anyOf) {
|
175
|
+
if (Array.isArray(subSchema.type)) {
|
176
|
+
simpleSchemas.push(...subSchema.type);
|
177
|
+
}
|
178
|
+
else if (isSimpleSchema(subSchema)) {
|
179
|
+
simpleSchemas.push(subSchema.type);
|
180
|
+
}
|
181
|
+
else {
|
182
|
+
complexSchemas.push(subSchema);
|
183
|
+
}
|
184
|
+
}
|
185
|
+
if (complexSchemas.length === 0) {
|
186
|
+
return { type: simpleSchemas };
|
187
|
+
}
|
188
|
+
const anyOf = [];
|
189
|
+
if (simpleSchemas.length > 0) {
|
190
|
+
anyOf.push({
|
191
|
+
type: simpleSchemas.length > 1 ? simpleSchemas : simpleSchemas[0],
|
192
|
+
});
|
193
|
+
}
|
194
|
+
anyOf.push(...complexSchemas);
|
195
|
+
return { anyOf };
|
196
|
+
}
|
197
|
+
exports.wrapAnyOfSchema = wrapAnyOfSchema;
|
198
|
+
function isSimpleSchema(schema) {
|
199
|
+
const keys = Object.keys(schema);
|
200
|
+
return keys.length === 1 && keys[0] === 'type';
|
201
|
+
}
|
202
|
+
function createSchema(value) {
|
203
|
+
if (typeof value === 'undefined')
|
204
|
+
value = null;
|
205
|
+
const clone = JSON.parse(JSON.stringify(value));
|
206
|
+
return createSchemaFor(clone);
|
207
|
+
}
|
208
|
+
exports.createSchema = createSchema;
|
209
|
+
function mergeSchemas(schemas) {
|
210
|
+
const mergedSchema = combineSchemas(schemas);
|
211
|
+
return mergedSchema;
|
212
|
+
}
|
213
|
+
exports.mergeSchemas = mergeSchemas;
|
214
|
+
function extendSchema(schema, value) {
|
215
|
+
const valueSchema = createSchema(value);
|
216
|
+
const mergedSchema = combineSchemas([schema, valueSchema]);
|
217
|
+
return mergedSchema;
|
218
|
+
}
|
219
|
+
exports.extendSchema = extendSchema;
|
220
|
+
function createCompoundSchema(values) {
|
221
|
+
const schemas = values.map((value) => createSchema(value));
|
222
|
+
return mergeSchemas(schemas);
|
223
|
+
}
|
224
|
+
exports.createCompoundSchema = createCompoundSchema;
|
225
|
+
function addTitleFromSourceSchemas(schema, schemas) {
|
226
|
+
var _a;
|
227
|
+
const title = (_a = schemas.filter((s) => !!s.title)[0]) === null || _a === void 0 ? void 0 : _a.title;
|
228
|
+
if (title) {
|
229
|
+
schema.title = title;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
//# sourceMappingURL=schema-builder.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema-builder.js","sourceRoot":"","sources":["../src/json-schema/schema-builder.ts"],"names":[],"mappings":";;;AAOA,SAAS,eAAe,CAAC,KAAU;IACjC,QAAQ,OAAO,KAAK,EAAE;QACpB,KAAK,QAAQ;YACX,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;gBAC3B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;aAC3B;YACD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;QAC3B,KAAK,SAAS;YACZ,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;QAC5B,KAAK,Q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