@integration-app/react 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/contexts/integration-app-context.d.ts +9 -0
- package/contexts/integration-app-context.js +17 -0
- package/contexts/integration-app-context.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/index.js.map +1 -0
- package/integrations/index.d.ts +6 -0
- package/integrations/index.js +21 -0
- package/integrations/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/.DS_Store +0 -0
- package/node_modules/@integration-app/sdk/.gitignore +11 -0
- package/node_modules/@integration-app/sdk/.npmignore +0 -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/app-data-collections.d.ts +23 -0
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.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/app-data-schemas.d.ts +20 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.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/app-events.d.ts +44 -0
- package/node_modules/@integration-app/sdk/app-events/app-events.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 +30021 -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/connection-client.d.ts +12 -0
- package/node_modules/@integration-app/sdk/connection-client.js +31 -0
- package/node_modules/@integration-app/sdk/connection-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/connections.d.ts +46 -0
- package/node_modules/@integration-app/sdk/connections/connections.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/connector-api.d.ts +157 -0
- package/node_modules/@integration-app/sdk/connector-api/connector-api.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/findExternalRecordId.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +2 -0
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.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/base.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +26 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +18 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +61 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +246 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.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/concat.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +85 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.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/copy.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +64 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.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/extractDate.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +44 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.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/extractTime.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +44 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.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/findAppRecordId.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +26 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.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/findExternalRecordId.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +26 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.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/first-name.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +14 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.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/index.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +63 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.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/iterate.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +112 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.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/lookup.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +18 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.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/map.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +114 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.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/tpl.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +49 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.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/index.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/index.test.js +295 -0
- package/node_modules/@integration-app/sdk/data-builder/index.test.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-builder/locators.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js +775 -0
- package/node_modules/@integration-app/sdk/data-builder/locators.test.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/conditions.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.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/index.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-filter/index.test.js +43 -0
- package/node_modules/@integration-app/sdk/data-filter/index.test.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-filter/operators.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js +490 -0
- package/node_modules/@integration-app/sdk/data-filter/operators.test.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/data-links.d.ts +58 -0
- package/node_modules/@integration-app/sdk/data-links/data-links.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-schema/index.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/data-schema/index.test.js +86 -0
- package/node_modules/@integration-app/sdk/data-schema/index.test.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/data-sources.d.ts +41 -0
- package/node_modules/@integration-app/sdk/data-sources/data-sources.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/endpoints/endpoint-spec.d.ts +30 -0
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.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/field-mappings.d.ts +29 -0
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.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/flow-runs.d.ts +51 -0
- package/node_modules/@integration-app/sdk/flow-runs/flow-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/flows.d.ts +156 -0
- package/node_modules/@integration-app/sdk/flows/flows.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-delete-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-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/nodes.d.ts +25 -0
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.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/flows/utils.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/flows/utils.test.js +62 -0
- package/node_modules/@integration-app/sdk/flows/utils.test.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/integration-elements/integration-elements.d.ts +21 -0
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +1 -0
- package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +23 -0
- package/node_modules/@integration-app/sdk/integrations/accessors.js +122 -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/integrations/integrations.d.ts +48 -0
- package/node_modules/@integration-app/sdk/integrations/integrations.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/json-schema.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +194 -0
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.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/json-schema/schema-builder.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +352 -0
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.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/jwt.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/jwt.test.js +9 -0
- package/node_modules/@integration-app/sdk/jwt.test.js.map +1 -0
- package/node_modules/@integration-app/sdk/package-lock.json +3834 -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 +260 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +77 -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 +162 -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/activities.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/udm/activities.test.js +40 -0
- package/node_modules/@integration-app/sdk/udm/activities.test.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/campaign-members.d.ts +45 -0
- package/node_modules/@integration-app/sdk/udm/campaign-members.js +99 -0
- package/node_modules/@integration-app/sdk/udm/campaign-members.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/contacts.test.d.ts +1 -0
- package/node_modules/@integration-app/sdk/udm/contacts.test.js +136 -0
- package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +17 -0
- package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +11 -0
- package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +14 -0
- package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +10 -0
- package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +16 -0
- package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +15 -0
- package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +16 -0
- package/node_modules/@integration-app/sdk/udm/crm-leads.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/members.d.ts +45 -0
- package/node_modules/@integration-app/sdk/udm/members.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/users/users.d.ts +5 -0
- package/node_modules/@integration-app/sdk/users/users.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/package.json +26 -0
@@ -0,0 +1,163 @@
|
|
1
|
+
import {
|
2
|
+
schemaAllowsCustomValue,
|
3
|
+
schemaIsNumber,
|
4
|
+
schemaIsScalar,
|
5
|
+
} from '../data-schema'
|
6
|
+
|
7
|
+
export const DEFAULT_CONDITION_TYPE_KEY = 'equals'
|
8
|
+
|
9
|
+
export interface DataFilterOperator {
|
10
|
+
type: string
|
11
|
+
name: string
|
12
|
+
operandSchema: any
|
13
|
+
}
|
14
|
+
|
15
|
+
export interface DataFilterOperatorSpec {
|
16
|
+
name: string
|
17
|
+
handler: (fieldValue: any, operand: any) => boolean
|
18
|
+
applicableToSchema: (schema: any) => boolean
|
19
|
+
getOperandSchema: (schema: any) => any
|
20
|
+
}
|
21
|
+
|
22
|
+
export const OPERATORS: Record<string, DataFilterOperatorSpec> = {
|
23
|
+
is: {
|
24
|
+
name: 'is',
|
25
|
+
handler: (value, operand) => value == operand,
|
26
|
+
applicableToSchema: (schema) =>
|
27
|
+
schemaIsScalar(schema) && schema.type !== 'boolean',
|
28
|
+
getOperandSchema: (schema) => schema,
|
29
|
+
},
|
30
|
+
is_not: {
|
31
|
+
name: 'is not',
|
32
|
+
handler: (value, operand) => value != operand,
|
33
|
+
applicableToSchema: (schema) =>
|
34
|
+
schemaIsScalar(schema) && schema.type !== 'boolean',
|
35
|
+
getOperandSchema: (schema) => schema,
|
36
|
+
},
|
37
|
+
is_one_of: {
|
38
|
+
name: 'is one of',
|
39
|
+
handler: (value, operand) =>
|
40
|
+
Array.isArray(operand) && operand.includes(value),
|
41
|
+
applicableToSchema: (schema) =>
|
42
|
+
schemaIsScalar(schema) && schema.type !== 'boolean',
|
43
|
+
getOperandSchema: (schema) => ({ type: 'array', items: schema }),
|
44
|
+
},
|
45
|
+
is_not_one_of: {
|
46
|
+
name: 'is not one of',
|
47
|
+
handler: (value, operand) =>
|
48
|
+
!Array.isArray(operand) || !operand.includes(value),
|
49
|
+
applicableToSchema: (schema) =>
|
50
|
+
schemaIsScalar(schema) && schema.type !== 'boolean',
|
51
|
+
getOperandSchema: (schema) => ({ type: 'array', items: schema }),
|
52
|
+
},
|
53
|
+
is_true: {
|
54
|
+
name: 'is true',
|
55
|
+
handler: (value) => !!value,
|
56
|
+
applicableToSchema: (schema) => schema.type === 'boolean',
|
57
|
+
getOperandSchema: () => null,
|
58
|
+
},
|
59
|
+
is_false: {
|
60
|
+
name: 'is false',
|
61
|
+
handler: (value) => value === false,
|
62
|
+
applicableToSchema: (schema) => schema.type === 'boolean',
|
63
|
+
getOperandSchema: () => null,
|
64
|
+
},
|
65
|
+
contains: {
|
66
|
+
name: 'contains',
|
67
|
+
handler: (value, operand) =>
|
68
|
+
value ? value.toString().includes(operand) : false,
|
69
|
+
applicableToSchema: (schema) =>
|
70
|
+
schema?.type === 'string' && schemaAllowsCustomValue(schema),
|
71
|
+
getOperandSchema: () => ({ type: 'string' }),
|
72
|
+
},
|
73
|
+
does_not_contain: {
|
74
|
+
name: 'does not contain',
|
75
|
+
handler: (value, operand) =>
|
76
|
+
value ? !value.toString().includes(operand) : false,
|
77
|
+
applicableToSchema: (schema) =>
|
78
|
+
schema?.type === 'string' && schemaAllowsCustomValue(schema),
|
79
|
+
getOperandSchema: () => ({ type: 'string' }),
|
80
|
+
},
|
81
|
+
array_includes: {
|
82
|
+
name: 'includes',
|
83
|
+
handler: (value, operand) =>
|
84
|
+
Array.isArray(value) && value.indexOf(operand) !== -1,
|
85
|
+
applicableToSchema: (schema) => schema?.type === 'array' && schema.items,
|
86
|
+
getOperandSchema: (schema) => schema.items,
|
87
|
+
},
|
88
|
+
array_does_not_include: {
|
89
|
+
name: 'does not include',
|
90
|
+
handler: (value, operand) =>
|
91
|
+
!Array.isArray(value) || value.indexOf(operand) === -1,
|
92
|
+
applicableToSchema: (schema) => schema?.type === 'array' && schema.items,
|
93
|
+
getOperandSchema: (schema) => schema.items,
|
94
|
+
},
|
95
|
+
less_than: {
|
96
|
+
name: 'less than',
|
97
|
+
handler: (value, operand) => {
|
98
|
+
return parseFloat(value) === NaN || parseFloat(operand) === NaN
|
99
|
+
? false
|
100
|
+
: parseFloat(value) < parseFloat(operand)
|
101
|
+
},
|
102
|
+
applicableToSchema: (schema) => schemaIsNumber(schema),
|
103
|
+
getOperandSchema: () => ({ type: 'number' }),
|
104
|
+
},
|
105
|
+
less_than_or_equal: {
|
106
|
+
name: 'less than or equal',
|
107
|
+
handler: (value, operand) => {
|
108
|
+
return parseFloat(value) === NaN || parseFloat(operand) === NaN
|
109
|
+
? false
|
110
|
+
: parseFloat(value) <= parseFloat(operand)
|
111
|
+
},
|
112
|
+
applicableToSchema: (schema) => schemaIsNumber(schema),
|
113
|
+
getOperandSchema: () => ({ type: 'number' }),
|
114
|
+
},
|
115
|
+
more_than: {
|
116
|
+
name: 'more than',
|
117
|
+
handler: (value, operand) => {
|
118
|
+
return parseFloat(value) === NaN || parseFloat(operand) === NaN
|
119
|
+
? false
|
120
|
+
: parseFloat(value) > parseFloat(operand)
|
121
|
+
},
|
122
|
+
applicableToSchema: (schema) => schemaIsNumber(schema),
|
123
|
+
getOperandSchema: () => ({ type: 'number' }),
|
124
|
+
},
|
125
|
+
more_than_or_equal: {
|
126
|
+
name: 'more than or equal',
|
127
|
+
handler: (value, operand) => {
|
128
|
+
return parseFloat(value) === NaN || parseFloat(operand) === NaN
|
129
|
+
? false
|
130
|
+
: parseFloat(value) >= parseFloat(operand)
|
131
|
+
},
|
132
|
+
applicableToSchema: (schema) => schemaIsNumber(schema),
|
133
|
+
getOperandSchema: () => ({ type: 'number' }),
|
134
|
+
},
|
135
|
+
is_not_empty: {
|
136
|
+
name: 'is not empty',
|
137
|
+
handler: (value) => {
|
138
|
+
if (Array.isArray(value)) {
|
139
|
+
return value.length > 0
|
140
|
+
} else if (typeof value === 'object') {
|
141
|
+
return value !== null && Object.keys(value).length > 0
|
142
|
+
} else {
|
143
|
+
return value !== undefined && value !== ''
|
144
|
+
}
|
145
|
+
},
|
146
|
+
applicableToSchema: () => true,
|
147
|
+
getOperandSchema: () => null,
|
148
|
+
},
|
149
|
+
is_empty: {
|
150
|
+
name: 'is empty',
|
151
|
+
handler: (value) => {
|
152
|
+
if (Array.isArray(value)) {
|
153
|
+
return value.length === 0
|
154
|
+
} else if (typeof value === 'object') {
|
155
|
+
return value === null || Object.keys(value).length === 0
|
156
|
+
} else {
|
157
|
+
return value === undefined || value === ''
|
158
|
+
}
|
159
|
+
},
|
160
|
+
applicableToSchema: () => true,
|
161
|
+
getOperandSchema: () => null,
|
162
|
+
},
|
163
|
+
}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import { IntegrationAppClient } from '..'
|
2
|
+
import { DataLink, DataLinkTable, DataLinkTableInstance } from '.'
|
3
|
+
import {
|
4
|
+
CreateDataLinkTableInstanceRequest,
|
5
|
+
CreateDataLinkTableRequest,
|
6
|
+
DataLinkInTableSelector,
|
7
|
+
DataLinkTableInstanceSelector,
|
8
|
+
FindDataLinksInTableQuery,
|
9
|
+
FindDataLinksResponse,
|
10
|
+
FindDataLinkTableInstancesQuery,
|
11
|
+
FindDataLinkTablesQuery,
|
12
|
+
UpdateDataLinkTableInstanceRequest,
|
13
|
+
UpdateDataLinkTableRequest,
|
14
|
+
} from './api'
|
15
|
+
import qs from 'query-string'
|
16
|
+
import {
|
17
|
+
ElementAccessor,
|
18
|
+
ElementInstanceAccessor,
|
19
|
+
ElementInstanceListAccessor,
|
20
|
+
ElementListAccessor,
|
21
|
+
} from '../accessors'
|
22
|
+
|
23
|
+
export class DataLinkTablesAccessor extends ElementListAccessor<
|
24
|
+
DataLinkTable,
|
25
|
+
FindDataLinkTablesQuery,
|
26
|
+
CreateDataLinkTableRequest
|
27
|
+
> {
|
28
|
+
constructor(client: IntegrationAppClient) {
|
29
|
+
super(client, 'data-link-tables')
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
export class DataLinkTableAccessor extends ElementAccessor<
|
34
|
+
DataLinkTable,
|
35
|
+
CreateDataLinkTableRequest,
|
36
|
+
UpdateDataLinkTableRequest
|
37
|
+
> {
|
38
|
+
constructor(client: IntegrationAppClient, idOrKey: string) {
|
39
|
+
super({
|
40
|
+
client,
|
41
|
+
path: 'data-link-tables',
|
42
|
+
idOrKey,
|
43
|
+
})
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
export class DataLinkTableInstancesAccessor extends ElementInstanceListAccessor<
|
48
|
+
DataLinkTableInstance,
|
49
|
+
FindDataLinkTableInstancesQuery
|
50
|
+
> {
|
51
|
+
constructor(client: IntegrationAppClient) {
|
52
|
+
super(client, 'data-link-table-instances')
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
export class DataLinkTableInstanceAccessor extends ElementInstanceAccessor<
|
57
|
+
DataLinkTableInstance,
|
58
|
+
DataLinkTableInstanceSelector,
|
59
|
+
CreateDataLinkTableInstanceRequest,
|
60
|
+
UpdateDataLinkTableInstanceRequest
|
61
|
+
> {
|
62
|
+
constructor(
|
63
|
+
private client: IntegrationAppClient,
|
64
|
+
selector: string | DataLinkTableInstanceSelector,
|
65
|
+
) {
|
66
|
+
super({
|
67
|
+
client,
|
68
|
+
listPath: 'data-link-table-instances',
|
69
|
+
selectorPath: 'data-link-table-instance',
|
70
|
+
selector,
|
71
|
+
})
|
72
|
+
}
|
73
|
+
|
74
|
+
async findLinks(
|
75
|
+
query: FindDataLinksInTableQuery,
|
76
|
+
): Promise<FindDataLinksResponse> {
|
77
|
+
const id = await this.getId()
|
78
|
+
return this.client.get(
|
79
|
+
'/data-links?' +
|
80
|
+
qs.stringify({
|
81
|
+
...query,
|
82
|
+
dataLinkTableInstanceId: id,
|
83
|
+
}),
|
84
|
+
)
|
85
|
+
}
|
86
|
+
|
87
|
+
async addLink(selector: DataLinkInTableSelector): Promise<DataLink> {
|
88
|
+
const id = await this.getId()
|
89
|
+
return this.client.post(
|
90
|
+
'/data-links?' +
|
91
|
+
qs.stringify({
|
92
|
+
...selector,
|
93
|
+
dataLinkTableInstanceId: id,
|
94
|
+
}),
|
95
|
+
)
|
96
|
+
}
|
97
|
+
|
98
|
+
async removeLink(selector: DataLinkInTableSelector): Promise<DataLink> {
|
99
|
+
const id = await this.getId()
|
100
|
+
return this.client.delete(
|
101
|
+
'/data-links?' +
|
102
|
+
qs.stringify({
|
103
|
+
...selector,
|
104
|
+
dataLinkTableInstanceId: id,
|
105
|
+
}),
|
106
|
+
)
|
107
|
+
}
|
108
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import {
|
2
|
+
DataLink,
|
3
|
+
DataLinkDirection,
|
4
|
+
DataLinkTable,
|
5
|
+
DataLinkTableInstance,
|
6
|
+
} from '.'
|
7
|
+
import { ConnectionSelector } from '../connections/api'
|
8
|
+
import { PaginationQuery, PaginationResponse } from '../entity-repository'
|
9
|
+
|
10
|
+
export type CreateDataLinkTableRequest = Omit<DataLink, 'id' | 'userId'>
|
11
|
+
|
12
|
+
export type UpdateDataLinkTableRequest = CreateDataLinkTableRequest
|
13
|
+
|
14
|
+
export interface FindDataLinkTablesQuery extends PaginationQuery {}
|
15
|
+
|
16
|
+
export type FindDataLinkTablesResponse = PaginationResponse<DataLinkTable>
|
17
|
+
|
18
|
+
export interface FindDataLinkTableInstancesQuery extends PaginationQuery {
|
19
|
+
connectionId?: string
|
20
|
+
integrationId?: string
|
21
|
+
dataLinkTableId?: string
|
22
|
+
}
|
23
|
+
|
24
|
+
export interface FindDataLinkTableInstancesResponse
|
25
|
+
extends PaginationResponse<DataLinkTableInstance> {}
|
26
|
+
|
27
|
+
export interface DataLinkTableInstanceSelector extends ConnectionSelector {
|
28
|
+
dataLinkTableId?: string
|
29
|
+
dataLinkTableKey?: string
|
30
|
+
|
31
|
+
autoCreate?: boolean
|
32
|
+
}
|
33
|
+
|
34
|
+
export interface CreateDataLinkTableInstanceRequest {
|
35
|
+
name?: string
|
36
|
+
}
|
37
|
+
|
38
|
+
export interface UpdateDataLinkTableInstanceRequest
|
39
|
+
extends CreateDataLinkTableInstanceRequest {}
|
40
|
+
|
41
|
+
export interface FindDataLinksInTableQuery extends PaginationQuery {
|
42
|
+
direction?: DataLinkDirection
|
43
|
+
|
44
|
+
appRecordId?: string
|
45
|
+
|
46
|
+
externalRecordId?: string
|
47
|
+
}
|
48
|
+
|
49
|
+
export interface FindDataLinksQuery
|
50
|
+
extends PaginationQuery,
|
51
|
+
FindDataLinksInTableQuery {
|
52
|
+
dataLinkTableInstanceId?: string
|
53
|
+
}
|
54
|
+
|
55
|
+
export interface FindDataLinksResponse extends PaginationResponse<DataLink> {}
|
56
|
+
|
57
|
+
export interface FindDataLinkQuery extends PaginationQuery {
|
58
|
+
dataLinkTableInstanceId: string
|
59
|
+
|
60
|
+
externalRecordId: string
|
61
|
+
|
62
|
+
appRecordId: string
|
63
|
+
|
64
|
+
direction: DataLinkDirection
|
65
|
+
}
|
66
|
+
|
67
|
+
export interface DataLinkInTableSelector {
|
68
|
+
appRecordId: string
|
69
|
+
externalRecordId: string
|
70
|
+
direction: DataLinkDirection
|
71
|
+
}
|
72
|
+
|
73
|
+
export interface DataLinkSelector extends DataLinkInTableSelector {
|
74
|
+
dataLinkTableInstanceId: string
|
75
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { User } from '../users'
|
2
|
+
import { Connection } from '../connections'
|
3
|
+
import { Integration } from '../integrations'
|
4
|
+
|
5
|
+
export enum DataLinkDirection {
|
6
|
+
IMPORT = 'import',
|
7
|
+
EXPORT = 'export',
|
8
|
+
BOTH = 'both',
|
9
|
+
}
|
10
|
+
|
11
|
+
export interface DataLinkTable {
|
12
|
+
id: string
|
13
|
+
|
14
|
+
key: string
|
15
|
+
|
16
|
+
name: string
|
17
|
+
}
|
18
|
+
|
19
|
+
export interface DataLinkTableInstance {
|
20
|
+
id: string
|
21
|
+
|
22
|
+
dataLinkTableId?: string
|
23
|
+
|
24
|
+
dataLinkTable?: DataLinkTable
|
25
|
+
|
26
|
+
connectionId?: string
|
27
|
+
|
28
|
+
connection?: Connection
|
29
|
+
|
30
|
+
integrationId: string
|
31
|
+
|
32
|
+
integration?: Integration
|
33
|
+
|
34
|
+
userId: string
|
35
|
+
|
36
|
+
user?: User
|
37
|
+
|
38
|
+
name: string
|
39
|
+
}
|
40
|
+
|
41
|
+
export interface DataLink {
|
42
|
+
id: string
|
43
|
+
|
44
|
+
dataLinkTableInstanceId: string
|
45
|
+
|
46
|
+
externalRecordId: string
|
47
|
+
|
48
|
+
appRecordId: string
|
49
|
+
|
50
|
+
direction: DataLinkDirection
|
51
|
+
}
|
52
|
+
|
53
|
+
export interface DataLinkTableConfig {
|
54
|
+
key: string
|
55
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { IntegrationAppClient } from '../client'
|
2
|
+
import { DataLocationSelector } from './api'
|
3
|
+
import qs from 'query-string'
|
4
|
+
|
5
|
+
export class DataLocationAccessor {
|
6
|
+
constructor(
|
7
|
+
private client: IntegrationAppClient,
|
8
|
+
private selector: DataLocationSelector,
|
9
|
+
) {}
|
10
|
+
|
11
|
+
async get() {
|
12
|
+
return this.client.get(this.getPath())
|
13
|
+
}
|
14
|
+
|
15
|
+
async list() {
|
16
|
+
return this.client.get(this.getPath('list'))
|
17
|
+
}
|
18
|
+
|
19
|
+
private getPath(subpath = '') {
|
20
|
+
return `/data-location${subpath ? `/${subpath}` : ''}?${qs.stringify(
|
21
|
+
this.selector,
|
22
|
+
)}`
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,209 @@
|
|
1
|
+
import urljoin from 'url-join'
|
2
|
+
import { DataCollectionEvent, DataRecord } from '../data-collections'
|
3
|
+
|
4
|
+
export { DataLocationSelector } from './api'
|
5
|
+
|
6
|
+
export enum DataLocationType {
|
7
|
+
directory = 'directory',
|
8
|
+
collection = 'collection',
|
9
|
+
}
|
10
|
+
|
11
|
+
export interface DataLocation {
|
12
|
+
path?: string
|
13
|
+
|
14
|
+
name?: string
|
15
|
+
|
16
|
+
type?: DataLocationType
|
17
|
+
|
18
|
+
isDefault?: boolean
|
19
|
+
|
20
|
+
read?: boolean
|
21
|
+
|
22
|
+
write?: boolean
|
23
|
+
}
|
24
|
+
|
25
|
+
export type DataLocationSpec = DataCollectionSpec | DataDirectorySpec
|
26
|
+
|
27
|
+
export interface DataCollectionSpec {
|
28
|
+
type: DataLocationType.collection
|
29
|
+
|
30
|
+
name: string
|
31
|
+
|
32
|
+
fieldsSchema?: any
|
33
|
+
|
34
|
+
find?: DataCollectionFindSpec
|
35
|
+
|
36
|
+
findById?: DataCollectionFindByIdSpec
|
37
|
+
|
38
|
+
create?: DataCollectionCreateSpec
|
39
|
+
|
40
|
+
update?: DataCollectionUpdateSpec
|
41
|
+
|
42
|
+
delete?: DataCollectionDeleteSpec
|
43
|
+
|
44
|
+
udm?: DataCollectionUdmSpec
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* @deprecated
|
49
|
+
*/
|
50
|
+
export type DataCollection = DataCollectionSpec
|
51
|
+
|
52
|
+
export interface DataDirectorySpec {
|
53
|
+
type: DataLocationType.directory
|
54
|
+
name?: string
|
55
|
+
}
|
56
|
+
|
57
|
+
interface DataCollectionOperationResponse {
|
58
|
+
logs?: any[]
|
59
|
+
}
|
60
|
+
|
61
|
+
export interface DataCollectionFindSpec {
|
62
|
+
queryFields?: string[]
|
63
|
+
}
|
64
|
+
|
65
|
+
export interface DataCollectionFindByIdSpec {}
|
66
|
+
|
67
|
+
export interface DataCollectionCreateSpec {
|
68
|
+
fields?: string[]
|
69
|
+
requiredFields?: string[]
|
70
|
+
excludedFields?: string[]
|
71
|
+
/**
|
72
|
+
* @deprecated
|
73
|
+
*/
|
74
|
+
excludeFields?: string[]
|
75
|
+
}
|
76
|
+
|
77
|
+
export interface DataCollectionUpdateSpec {
|
78
|
+
fields?: string[]
|
79
|
+
excludedFields?: string[]
|
80
|
+
/**
|
81
|
+
* @deprecated
|
82
|
+
*/
|
83
|
+
excludeFields?: string[]
|
84
|
+
}
|
85
|
+
|
86
|
+
export interface DataCollectionDeleteSpec {}
|
87
|
+
|
88
|
+
export type DataCollectionUdmSpec = Record<string, Record<string, any>>
|
89
|
+
|
90
|
+
export interface DataCollectionFindRequest {
|
91
|
+
query?: any
|
92
|
+
cursor?: string
|
93
|
+
udm?: string
|
94
|
+
}
|
95
|
+
|
96
|
+
export interface DataCollectionFindResponse
|
97
|
+
extends DataCollectionOperationResponse {
|
98
|
+
records: DataRecord[]
|
99
|
+
cursor?: string
|
100
|
+
}
|
101
|
+
|
102
|
+
export interface DataCollectionFindByIdRequest {
|
103
|
+
id: string
|
104
|
+
udm?: string
|
105
|
+
}
|
106
|
+
|
107
|
+
export interface DataCollectionFindByIdResponse
|
108
|
+
extends DataCollectionOperationResponse {
|
109
|
+
record: DataRecord
|
110
|
+
}
|
111
|
+
|
112
|
+
export interface DataCollectionCreateRequest {
|
113
|
+
fields: Record<string, any>
|
114
|
+
}
|
115
|
+
|
116
|
+
export interface DataCollectionCreateResponse
|
117
|
+
extends DataCollectionOperationResponse,
|
118
|
+
DataRecord {}
|
119
|
+
|
120
|
+
export interface DataCollectionUpdateRequest {
|
121
|
+
id: string
|
122
|
+
fields: Record<string, any>
|
123
|
+
}
|
124
|
+
|
125
|
+
export interface DataCollectionUpdateResponse
|
126
|
+
extends DataCollectionOperationResponse,
|
127
|
+
DataRecord {}
|
128
|
+
|
129
|
+
export interface DataCollectionDeleteRequest {
|
130
|
+
id: string
|
131
|
+
}
|
132
|
+
|
133
|
+
export interface DataCollectionDeleteResponse
|
134
|
+
extends DataCollectionOperationResponse {}
|
135
|
+
|
136
|
+
export interface DataCollectionSubscribeRequest {
|
137
|
+
events?: {
|
138
|
+
created?: boolean
|
139
|
+
updated?: boolean
|
140
|
+
deleted?: boolean
|
141
|
+
}
|
142
|
+
udm?: string
|
143
|
+
webhookUri: string
|
144
|
+
}
|
145
|
+
|
146
|
+
export interface DataCollectionSubscribeResponse {
|
147
|
+
subscriptionId: string
|
148
|
+
pullIntervalSeconds?: number
|
149
|
+
cursor?: string
|
150
|
+
}
|
151
|
+
|
152
|
+
export interface DataCollectionUpdateSubscriptionRequest
|
153
|
+
extends DataCollectionSubscribeRequest {
|
154
|
+
subscriptionId: string
|
155
|
+
cursor?: string
|
156
|
+
}
|
157
|
+
|
158
|
+
export interface DataCollectionUpdateSubscriptionResponse
|
159
|
+
extends Omit<DataCollectionSubscribeResponse, 'subscriptionId'> {}
|
160
|
+
|
161
|
+
export interface DataCollectionUnsubscribeRequest {
|
162
|
+
subscriptionId: string
|
163
|
+
}
|
164
|
+
|
165
|
+
export interface DataCollectionUnsubscribeResponse {}
|
166
|
+
|
167
|
+
export interface DataCollectionEventsRequest {
|
168
|
+
subscriptionId: string
|
169
|
+
cursor: string
|
170
|
+
}
|
171
|
+
|
172
|
+
export interface DataCollectionEventsResponse {
|
173
|
+
events: DataCollectionEvent[]
|
174
|
+
cursor: string
|
175
|
+
}
|
176
|
+
|
177
|
+
export interface DataEventWebhookPayload {
|
178
|
+
subscriptionId: string
|
179
|
+
events: DataCollectionEvent[]
|
180
|
+
}
|
181
|
+
|
182
|
+
export interface DataCollectionParseUnifiedFieldsRequest {
|
183
|
+
udm: string
|
184
|
+
unifiedFields: Record<string, any>
|
185
|
+
}
|
186
|
+
|
187
|
+
export interface DataCollectionParseUnifiedFieldsResponse {
|
188
|
+
fields: any
|
189
|
+
}
|
190
|
+
|
191
|
+
export interface DataDirectoryListRequest {
|
192
|
+
cursor?: string
|
193
|
+
}
|
194
|
+
|
195
|
+
export interface DataDirectoryListResponse {
|
196
|
+
locations: DataLocationSpec[]
|
197
|
+
cursor?: string
|
198
|
+
}
|
199
|
+
|
200
|
+
export function makeDataLocationOperationPath(
|
201
|
+
collectionPath: string,
|
202
|
+
operation: string,
|
203
|
+
) {
|
204
|
+
const [path, query] = (collectionPath ?? '').split('?')
|
205
|
+
return urljoin(path, operation, query ? `?${query}` : '')
|
206
|
+
}
|
207
|
+
|
208
|
+
// Backward compatibility
|
209
|
+
export const makeCollectionOperationPath = makeDataLocationOperationPath
|