Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@integration-app/react

Package Overview
Dependencies
Maintainers
4
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@integration-app/react - npm Package Compare versions

Comparing version 0.1.20 to 0.1.21

data-sources/useDataSourceInstance.d.ts

18

data-sources/useDataSource.d.ts

@@ -1,6 +0,3 @@

import { DataCollectionCreateRequest, DataCollectionFindRequest, DataCollectionUpdateRequest, DataSourceAccessor, DataSourceSelector, OpenDataSourceConfigurationOptions } from '@integration-app/sdk';
import { DataSource } from '@integration-app/sdk';
export declare function useDataSource(selector: DataSourceSelector | {
id: string;
}): {
import { DataSource, DataSourceAccessor } from '@integration-app/sdk';
export declare function useDataSource(idOrKey: string): {
loading: boolean;

@@ -15,13 +12,2 @@ error?: Error;

dataSource: DataSource;
setup: () => Promise<void>;
resubscribe: () => Promise<void>;
pullEvents: () => Promise<void>;
reset: () => Promise<void>;
openConfiguration: (options?: OpenDataSourceConfigurationOptions) => Promise<void>;
findRecords: (request?: DataCollectionFindRequest) => Promise<import("@integration-app/sdk").DataCollectionFindResponse>;
findRecordById: (id: string) => Promise<import("@integration-app/sdk").DataCollectionFindByIdResponse>;
createRecord: (request?: DataCollectionCreateRequest) => Promise<import("@integration-app/sdk").DataCollectionCreateResponse>;
updateRecord: (request?: DataCollectionUpdateRequest) => Promise<import("@integration-app/sdk").DataCollectionUpdateResponse>;
deleteRecord: (id?: string) => Promise<import("@integration-app/sdk").DataCollectionDeleteResponse>;
unifiedFieldsToNative: (unifiedFields: any) => Promise<any>;
};

@@ -5,22 +5,7 @@ "use strict";

const useElement_1 = require("../hooks/useElement");
function useDataSource(selector) {
const { data: dataSource, ...rest } = (0, useElement_1.useElement)(selector, (integrationApp) => integrationApp.dataSource.bind(integrationApp));
const accessor = rest.accessor;
return {
dataSource,
setup: () => accessor.setup(),
resubscribe: () => accessor.resubscribe(),
pullEvents: () => accessor.pullEvents(),
reset: () => accessor.reset(),
openConfiguration: (options) => accessor.openConfiguration(options),
findRecords: (request) => accessor.findRecords(request),
findRecordById: (id) => accessor.findRecordById(id),
createRecord: (request) => accessor.createRecord(request),
updateRecord: (request) => accessor.updateRecord(request),
deleteRecord: (id) => accessor.deleteRecord(id),
unifiedFieldsToNative: (unifiedFields) => accessor.unifiedFieldsToNative(unifiedFields),
...rest,
};
function useDataSource(idOrKey) {
const { data: dataSource, ...rest } = (0, useElement_1.useElement)(idOrKey, (integrationApp) => integrationApp.dataSource.bind(integrationApp));
return { dataSource, ...rest };
}
exports.useDataSource = useDataSource;
//# sourceMappingURL=useDataSource.js.map

@@ -12,4 +12,6 @@ export { useIntegrationApp, IntegrationAppProvider, } from './contexts/integration-app-context.js';

export { useDataSource } from './data-sources/useDataSource.js';
export { useDataSourceCollection } from './data-sources/useDataSourceCollection.js';
export { useDataSourceLocations } from './data-sources/useDataSourceLocations.js';
export { useDataSources } from './data-sources/useDataSources.js';
export { useDataSourceInstance } from './data-sources/useDataSourceInstance.js';
export { useDataSourceInstanceCollection as useDataSourceCollection } from './data-sources/useDataSourceInstanceCollection.js';
export { useDataSourceInstanceLocations as useDataSourceLocations } from './data-sources/useDataSourceInstanceLocations.js';
export { useDataSourceEvents } from './data-sources/useDataSourceEvents.js';

@@ -16,0 +18,0 @@ export { useAppEventType } from './app-events/useAppEventType.js';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataForm = exports.useFlowRun = exports.useFlowInstances = exports.useFlowInstance = exports.useFlows = exports.useFlow = exports.useAppEvents = exports.useAppEventSubscription = exports.useAppEventType = exports.useDataSourceEvents = exports.useDataSourceLocations = exports.useDataSourceCollection = exports.useDataSource = exports.useFieldMappingInstances = exports.useFieldMappingInstance = exports.useFieldMappings = exports.useFieldMapping = exports.useConnections = exports.useConnection = exports.useIntegrations = exports.useIntegration = exports.useConnectorSpec = exports.IntegrationAppProvider = exports.useIntegrationApp = void 0;
exports.DataForm = exports.useFlowRun = exports.useFlowInstances = exports.useFlowInstance = exports.useFlows = exports.useFlow = exports.useAppEvents = exports.useAppEventSubscription = exports.useAppEventType = exports.useDataSourceEvents = exports.useDataSourceLocations = exports.useDataSourceCollection = exports.useDataSourceInstance = exports.useDataSources = exports.useDataSource = exports.useFieldMappingInstances = exports.useFieldMappingInstance = exports.useFieldMappings = exports.useFieldMapping = exports.useConnections = exports.useConnection = exports.useIntegrations = exports.useIntegration = exports.useConnectorSpec = exports.IntegrationAppProvider = exports.useIntegrationApp = void 0;
var integration_app_context_js_1 = require("./contexts/integration-app-context.js");

@@ -27,6 +27,10 @@ Object.defineProperty(exports, "useIntegrationApp", { enumerable: true, get: function () { return integration_app_context_js_1.useIntegrationApp; } });

Object.defineProperty(exports, "useDataSource", { enumerable: true, get: function () { return useDataSource_js_1.useDataSource; } });
var useDataSourceCollection_js_1 = require("./data-sources/useDataSourceCollection.js");
Object.defineProperty(exports, "useDataSourceCollection", { enumerable: true, get: function () { return useDataSourceCollection_js_1.useDataSourceCollection; } });
var useDataSourceLocations_js_1 = require("./data-sources/useDataSourceLocations.js");
Object.defineProperty(exports, "useDataSourceLocations", { enumerable: true, get: function () { return useDataSourceLocations_js_1.useDataSourceLocations; } });
var useDataSources_js_1 = require("./data-sources/useDataSources.js");
Object.defineProperty(exports, "useDataSources", { enumerable: true, get: function () { return useDataSources_js_1.useDataSources; } });
var useDataSourceInstance_js_1 = require("./data-sources/useDataSourceInstance.js");
Object.defineProperty(exports, "useDataSourceInstance", { enumerable: true, get: function () { return useDataSourceInstance_js_1.useDataSourceInstance; } });
var useDataSourceInstanceCollection_js_1 = require("./data-sources/useDataSourceInstanceCollection.js");
Object.defineProperty(exports, "useDataSourceCollection", { enumerable: true, get: function () { return useDataSourceInstanceCollection_js_1.useDataSourceInstanceCollection; } });
var useDataSourceInstanceLocations_js_1 = require("./data-sources/useDataSourceInstanceLocations.js");
Object.defineProperty(exports, "useDataSourceLocations", { enumerable: true, get: function () { return useDataSourceInstanceLocations_js_1.useDataSourceInstanceLocations; } });
var useDataSourceEvents_js_1 = require("./data-sources/useDataSourceEvents.js");

@@ -33,0 +37,0 @@ Object.defineProperty(exports, "useDataSourceEvents", { enumerable: true, get: function () { return useDataSourceEvents_js_1.useDataSourceEvents; } });

{
"name": "@integration-app/react",
"version": "0.1.20",
"version": "0.1.21",
"description": "React SDK for building native integrations.",

@@ -22,3 +22,3 @@ "author": "integration.app",

"dependencies": {
"@integration-app/sdk": "^0.16.26"
"@integration-app/sdk": "^0.16.32"
},

@@ -25,0 +25,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc