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.19 to 0.1.20

app-events/useAppEvents.d.ts

4

app-events/useAppEventSubscription.d.ts

@@ -1,3 +0,2 @@

import { AppEventSubscription } from '@integration-app/sdk/app-events';
import { AppEventSubscriptionSelector } from '@integration-app/sdk/app-events/api';
import { AppEventSubscription, AppEventSubscriptionAccessor, AppEventSubscriptionSelector } from '@integration-app/sdk';
export declare function useAppEventSubscription(selector: AppEventSubscriptionSelector | {

@@ -13,3 +12,4 @@ id: string;

refresh: () => void;
accessor: AppEventSubscriptionAccessor;
appEventSubscription: AppEventSubscription;
};

@@ -1,2 +0,3 @@

import { AppEventType } from '@integration-app/sdk/app-events';
import { AppEventType } from '@integration-app/sdk';
import { AppEventTypeAccessor } from '@integration-app/sdk';
export declare function useAppEventType(idOrKey: string): {

@@ -10,3 +11,4 @@ loading: boolean;

refresh: () => void;
accessor: AppEventTypeAccessor;
appEventType: AppEventType;
};

@@ -0,1 +1,2 @@

import { IntegrationAppClient } from '@integration-app/sdk';
import { ReactNode } from 'react';

@@ -9,3 +10,3 @@ interface IntegrationAppProviderProps {

export declare const IntegrationAppProvider: ({ token, apiUri, uiUri, children, }: IntegrationAppProviderProps) => any;
export declare function useIntegrationApp(): any;
export declare function useIntegrationApp(): IntegrationAppClient;
export {};

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

import { DataSource } from '@integration-app/sdk/data-sources';
export declare function useDataSource(idOrKey: string): {
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;
}): {
loading: boolean;

@@ -10,3 +13,15 @@ error?: Error;

refresh: () => void;
accessor: DataSourceAccessor;
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,7 +5,22 @@ "use strict";

const useElement_1 = require("../hooks/useElement");
function useDataSource(idOrKey) {
const { data: dataSource, ...rest } = (0, useElement_1.useElement)(idOrKey, (integrationApp) => integrationApp.dataSource.bind(integrationApp));
return { dataSource, ...rest };
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,
};
}
exports.useDataSource = useDataSource;
//# sourceMappingURL=useDataSource.js.map

@@ -1,2 +0,2 @@

import { DataSource } from '@integration-app/sdk/data-sources';
import { DataSource } from '@integration-app/sdk';
export declare function useDataSourceCollection(dataSource: DataSource): {

@@ -3,0 +3,0 @@ loading: any;

@@ -1,2 +0,2 @@

import { DataSource } from '@integration-app/sdk/data-sources';
import { DataSource } from '@integration-app/sdk';
export declare function useDataSourceLocations(dataSource: DataSource, args?: {

@@ -3,0 +3,0 @@ path?: string;

@@ -1,2 +0,2 @@

import { FieldMapping } from '@integration-app/sdk/field-mappings';
import { FieldMapping, FieldMappingAccessor } from '@integration-app/sdk';
export declare function useFieldMapping(idOrKey: string): {

@@ -10,3 +10,4 @@ loading: boolean;

refresh: () => void;
accessor: FieldMappingAccessor;
fieldMapping: FieldMapping;
};

@@ -1,3 +0,2 @@

import { IFieldMappingInstance } from '@integration-app/sdk/field-mappings';
import { FieldMappingInstanceSelector } from '@integration-app/sdk/field-mappings/api';
import { FieldMappingInstanceAccessor, FieldMappingInstanceSelector, IFieldMappingInstance, OpenFieldMappingInstanceConfigurationOptions } from '@integration-app/sdk';
export declare function useFieldMappingInstance(selector: FieldMappingInstanceSelector | {

@@ -13,3 +12,7 @@ id: string;

refresh: () => void;
accessor: FieldMappingInstanceAccessor;
fieldMappingInstance: IFieldMappingInstance;
setup: () => Promise<void>;
reset: () => Promise<void>;
openConfiguration: (options?: OpenFieldMappingInstanceConfigurationOptions) => Promise<void>;
};

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

const { data: fieldMappingInstance, ...rest } = (0, useElement_1.useElement)(selector, (integrationApp) => integrationApp.fieldMappingInstance.bind(integrationApp));
return { fieldMappingInstance, ...rest };
const accessor = rest.accessor;
return {
fieldMappingInstance,
setup: () => accessor.setup(),
reset: () => accessor.reset(),
openConfiguration: (options) => accessor.openConfiguration(options),
...rest,
};
}
exports.useFieldMappingInstance = useFieldMappingInstance;
//# sourceMappingURL=useFieldMappingInstance.js.map

@@ -1,3 +0,2 @@

import { IFieldMappingInstance } from '@integration-app/sdk/field-mappings';
import { FindFieldMappingInstancesQuery } from '@integration-app/sdk/field-mappings/api';
import { FindFieldMappingInstancesQuery, IFieldMappingInstance } from '@integration-app/sdk';
export declare function useFieldMappingInstances(query?: FindFieldMappingInstancesQuery): {

@@ -4,0 +3,0 @@ items: IFieldMappingInstance[];

@@ -1,3 +0,2 @@

import { FieldMapping } from '@integration-app/sdk/field-mappings';
import { FindFieldMappingsQuery } from '@integration-app/sdk/field-mappings/api';
import { FieldMapping, FindFieldMappingsQuery } from '@integration-app/sdk';
export declare function useFieldMappings(query?: FindFieldMappingsQuery): {

@@ -4,0 +3,0 @@ items: FieldMapping[];

@@ -1,2 +0,2 @@

import { Flow } from '@integration-app/sdk/flows';
import { Flow, FlowAccessor } from '@integration-app/sdk';
export declare function useFlow(idOrKey: string): {

@@ -10,3 +10,4 @@ loading: boolean;

refresh: () => void;
accessor: FlowAccessor;
flow: Flow;
};

@@ -1,3 +0,2 @@

import { FlowInstance } from '@integration-app/sdk/flows';
import { FlowInstanceSelector } from '@integration-app/sdk/flows/api';
import { FlowInstance, FlowInstanceAccessor, FlowInstanceSelector } from '@integration-app/sdk';
export declare function useFlowInstance(props: FlowInstanceSelector | {

@@ -13,3 +12,4 @@ id: string;

refresh: () => void;
accessor: FlowInstanceAccessor;
flowInstance: FlowInstance;
};

@@ -1,3 +0,2 @@

import { FlowInstance } from '@integration-app/sdk/flows';
import { FindFlowInstancesQuery } from '@integration-app/sdk/flows/api';
import { FindFlowInstancesQuery, FlowInstance } from '@integration-app/sdk';
export declare function useFlowInstances(query?: FindFlowInstancesQuery): {

@@ -4,0 +3,0 @@ items: FlowInstance[];

@@ -1,2 +0,2 @@

import { FlowRun } from '@integration-app/sdk/flow-runs';
import { FlowRun, FlowRunAccessor } from '@integration-app/sdk';
export declare function useFlowRun(id: string): {

@@ -10,3 +10,4 @@ loading: boolean;

refresh: () => void;
accessor: FlowRunAccessor;
flowRun: FlowRun;
};

@@ -1,3 +0,2 @@

import { Flow } from '@integration-app/sdk/flows';
import { FindFlowsRequest } from '@integration-app/sdk/flows/api';
import { FindFlowsRequest, Flow } from '@integration-app/sdk';
export declare function useFlows(query?: FindFlowsRequest): {

@@ -4,0 +3,0 @@ items: Flow[];

import { IntegrationAppClient } from '@integration-app/sdk';
interface ElementHookResult<ElementInterface> {
interface ElementHookResult<ElementInterface, ElementAccessor> {
data: ElementInterface;

@@ -11,15 +11,16 @@ loading: boolean;

refresh: () => void;
accessor: ElementAccessor;
}
interface ElementAccessor<ElementInterface> {
interface BaseElementAccessor<ElementInterface> {
get(): Promise<ElementInterface>;
create: (data: Partial<ElementInterface>) => Promise<ElementInterface>;
patch(data: Partial<ElementInterface>): Promise<ElementInterface>;
put(data: ElementInterface): Promise<ElementInterface>;
archive(): Promise<void>;
create?: (data: Partial<ElementInterface>) => Promise<ElementInterface>;
patch?(data: Partial<ElementInterface>): Promise<ElementInterface>;
put?(data: Partial<ElementInterface>): Promise<ElementInterface>;
archive?(): Promise<void>;
}
declare type ElementAccessorGetter<ElementInterface, SelectorInterface> = (params: SelectorInterface | string) => ElementAccessor<ElementInterface>;
declare type ElementAccessorGenerator<ElementInterface, SelectorInterface> = (integrationApp: IntegrationAppClient) => ElementAccessorGetter<ElementInterface, SelectorInterface>;
export declare function useElement<ElementInterface, SelectorInterface>(props: SelectorInterface | {
declare type ElementAccessorGetter<SelectorInterface, ElementAccessor> = (params: SelectorInterface | string) => ElementAccessor;
declare type ElementAccessorGenerator<SelectorInterface, ElementAccessor> = (integrationApp: IntegrationAppClient) => ElementAccessorGetter<SelectorInterface, ElementAccessor>;
export declare function useElement<ElementInterface, SelectorInterface, ElementAccessor extends BaseElementAccessor<ElementInterface>>(props: SelectorInterface | {
id: string;
}, accessorGenerator: ElementAccessorGenerator<ElementInterface, SelectorInterface>): ElementHookResult<ElementInterface>;
}, accessorGenerator: ElementAccessorGenerator<SelectorInterface, ElementAccessor>): ElementHookResult<ElementInterface, ElementAccessor>;
export {};

@@ -15,2 +15,5 @@ "use strict";

: props;
const accessor = integrationApp
? accessorGenerator(integrationApp)(selector)
: null;
(0, react_1.useEffect)(() => {

@@ -20,3 +23,3 @@ setLoading(true);

if (integrationApp) {
accessorGenerator(integrationApp)(selector)
accessor
.get()

@@ -30,3 +33,3 @@ .then(setData)

}
}, [JSON.stringify(props), refreshCounter]);
}, [integrationApp, JSON.stringify(props), refreshCounter]);
async function create(data) {

@@ -58,5 +61,15 @@ return accessorGenerator(integrationApp)(selector).create(data);

}
return { data, create, patch, put, archive, refresh, loading, error };
return {
data,
create,
patch,
put,
archive,
refresh,
loading,
error,
accessor,
};
}
exports.useElement = useElement;
//# sourceMappingURL=useElement.js.map

@@ -15,2 +15,3 @@ "use strict";

const startingRefreshId = refreshId.current;
const isFirstPage = !nextCursor;
function setStateIfCurrentRefresh(stateSetter, valueGetter) {

@@ -29,3 +30,3 @@ stateSetter((value) => startingRefreshId === refreshId.current ? valueGetter(value) : value);

setStateIfCurrentRefresh(setNextCursor, () => data.cursor);
setStateIfCurrentRefresh(setItems, (items) => [...items, ...data.items]);
setStateIfCurrentRefresh(setItems, (items) => isFirstPage ? data.items : [...items, ...data.items]);
}

@@ -45,6 +46,5 @@ catch (e) {

refresh();
}, [JSON.stringify(initialQuery)]);
}, [integrationApp, JSON.stringify(initialQuery)]);
async function refresh() {
refreshId.current += 1;
setItems([]);
setNextCursor(undefined);

@@ -51,0 +51,0 @@ await loadMore();

@@ -28,3 +28,3 @@ "use strict";

}
}, [key, refreshCounter]);
}, [integrationApp, key, refreshCounter]);
return { data, loading, error, refresh };

@@ -31,0 +31,0 @@ }

@@ -1,21 +0,23 @@

export { useIntegrationApp, IntegrationAppProvider, } from './contexts/integration-app-context';
export { useConnectorSpec } from './integrations/useConnectionSpec';
export { useIntegration } from './integrations/useIntegration';
export { useIntegrations } from './integrations/useIntegrations';
export { useConnection } from './integrations/useConnection';
export { useConnections } from './integrations/useConnections';
export { useFieldMapping } from './field-mappings/useFieldMapping';
export { useFieldMappings } from './field-mappings/useFieldMappings';
export { useFieldMappingInstance } from './field-mappings/useFieldMappingInstance';
export { useFieldMappingInstances } from './field-mappings/useFieldMappingInstances';
export { useDataSource } from './data-sources/useDataSource';
export { useDataSourceCollection } from './data-sources/useDataSourceCollection';
export { useDataSourceLocations } from './data-sources/useDataSourceLocations';
export { useAppEventType } from './app-events/useAppEventType';
export { useAppEventSubscription } from './app-events/useAppEventSubscription';
export { useFlow } from './flows/useFlow';
export { useFlows } from './flows/useFlows';
export { useFlowInstance } from './flows/useFlowInstance';
export { useFlowInstances } from './flows/useFlowInstances';
export { useFlowRun } from './flows/useFlowRun';
export { DataForm } from '@integration-app/sdk/data-form';
export { useIntegrationApp, IntegrationAppProvider, } from './contexts/integration-app-context.js';
export { useConnectorSpec } from './integrations/useConnectionSpec.js';
export { useIntegration } from './integrations/useIntegration.js';
export { useIntegrations } from './integrations/useIntegrations.js';
export { useConnection } from './integrations/useConnection.js';
export { useConnections } from './integrations/useConnections.js';
export { useFieldMapping } from './field-mappings/useFieldMapping.js';
export { useFieldMappings } from './field-mappings/useFieldMappings.js';
export { useFieldMappingInstance } from './field-mappings/useFieldMappingInstance.js';
export { useFieldMappingInstances } from './field-mappings/useFieldMappingInstances.js';
export { useDataSource } from './data-sources/useDataSource.js';
export { useDataSourceCollection } from './data-sources/useDataSourceCollection.js';
export { useDataSourceLocations } from './data-sources/useDataSourceLocations.js';
export { useDataSourceEvents } from './data-sources/useDataSourceEvents.js';
export { useAppEventType } from './app-events/useAppEventType.js';
export { useAppEventSubscription } from './app-events/useAppEventSubscription.js';
export { useAppEvents } from './app-events/useAppEvents.js';
export { useFlow } from './flows/useFlow.js';
export { useFlows } from './flows/useFlows.js';
export { useFlowInstance } from './flows/useFlowInstance.js';
export { useFlowInstances } from './flows/useFlowInstances.js';
export { useFlowRun } from './flows/useFlowRun.js';
export { DataForm } from '@integration-app/sdk';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataForm = exports.useFlowRun = exports.useFlowInstances = exports.useFlowInstance = exports.useFlows = exports.useFlow = exports.useAppEventSubscription = exports.useAppEventType = 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;
var integration_app_context_1 = require("./contexts/integration-app-context");
Object.defineProperty(exports, "useIntegrationApp", { enumerable: true, get: function () { return integration_app_context_1.useIntegrationApp; } });
Object.defineProperty(exports, "IntegrationAppProvider", { enumerable: true, get: function () { return integration_app_context_1.IntegrationAppProvider; } });
var useConnectionSpec_1 = require("./integrations/useConnectionSpec");
Object.defineProperty(exports, "useConnectorSpec", { enumerable: true, get: function () { return useConnectionSpec_1.useConnectorSpec; } });
var useIntegration_1 = require("./integrations/useIntegration");
Object.defineProperty(exports, "useIntegration", { enumerable: true, get: function () { return useIntegration_1.useIntegration; } });
var useIntegrations_1 = require("./integrations/useIntegrations");
Object.defineProperty(exports, "useIntegrations", { enumerable: true, get: function () { return useIntegrations_1.useIntegrations; } });
var useConnection_1 = require("./integrations/useConnection");
Object.defineProperty(exports, "useConnection", { enumerable: true, get: function () { return useConnection_1.useConnection; } });
var useConnections_1 = require("./integrations/useConnections");
Object.defineProperty(exports, "useConnections", { enumerable: true, get: function () { return useConnections_1.useConnections; } });
var useFieldMapping_1 = require("./field-mappings/useFieldMapping");
Object.defineProperty(exports, "useFieldMapping", { enumerable: true, get: function () { return useFieldMapping_1.useFieldMapping; } });
var useFieldMappings_1 = require("./field-mappings/useFieldMappings");
Object.defineProperty(exports, "useFieldMappings", { enumerable: true, get: function () { return useFieldMappings_1.useFieldMappings; } });
var useFieldMappingInstance_1 = require("./field-mappings/useFieldMappingInstance");
Object.defineProperty(exports, "useFieldMappingInstance", { enumerable: true, get: function () { return useFieldMappingInstance_1.useFieldMappingInstance; } });
var useFieldMappingInstances_1 = require("./field-mappings/useFieldMappingInstances");
Object.defineProperty(exports, "useFieldMappingInstances", { enumerable: true, get: function () { return useFieldMappingInstances_1.useFieldMappingInstances; } });
var useDataSource_1 = require("./data-sources/useDataSource");
Object.defineProperty(exports, "useDataSource", { enumerable: true, get: function () { return useDataSource_1.useDataSource; } });
var useDataSourceCollection_1 = require("./data-sources/useDataSourceCollection");
Object.defineProperty(exports, "useDataSourceCollection", { enumerable: true, get: function () { return useDataSourceCollection_1.useDataSourceCollection; } });
var useDataSourceLocations_1 = require("./data-sources/useDataSourceLocations");
Object.defineProperty(exports, "useDataSourceLocations", { enumerable: true, get: function () { return useDataSourceLocations_1.useDataSourceLocations; } });
var useAppEventType_1 = require("./app-events/useAppEventType");
Object.defineProperty(exports, "useAppEventType", { enumerable: true, get: function () { return useAppEventType_1.useAppEventType; } });
var useAppEventSubscription_1 = require("./app-events/useAppEventSubscription");
Object.defineProperty(exports, "useAppEventSubscription", { enumerable: true, get: function () { return useAppEventSubscription_1.useAppEventSubscription; } });
var useFlow_1 = require("./flows/useFlow");
Object.defineProperty(exports, "useFlow", { enumerable: true, get: function () { return useFlow_1.useFlow; } });
var useFlows_1 = require("./flows/useFlows");
Object.defineProperty(exports, "useFlows", { enumerable: true, get: function () { return useFlows_1.useFlows; } });
var useFlowInstance_1 = require("./flows/useFlowInstance");
Object.defineProperty(exports, "useFlowInstance", { enumerable: true, get: function () { return useFlowInstance_1.useFlowInstance; } });
var useFlowInstances_1 = require("./flows/useFlowInstances");
Object.defineProperty(exports, "useFlowInstances", { enumerable: true, get: function () { return useFlowInstances_1.useFlowInstances; } });
var useFlowRun_1 = require("./flows/useFlowRun");
Object.defineProperty(exports, "useFlowRun", { enumerable: true, get: function () { return useFlowRun_1.useFlowRun; } });
var data_form_1 = require("@integration-app/sdk/data-form");
Object.defineProperty(exports, "DataForm", { enumerable: true, get: function () { return data_form_1.DataForm; } });
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;
var integration_app_context_js_1 = require("./contexts/integration-app-context.js");
Object.defineProperty(exports, "useIntegrationApp", { enumerable: true, get: function () { return integration_app_context_js_1.useIntegrationApp; } });
Object.defineProperty(exports, "IntegrationAppProvider", { enumerable: true, get: function () { return integration_app_context_js_1.IntegrationAppProvider; } });
var useConnectionSpec_js_1 = require("./integrations/useConnectionSpec.js");
Object.defineProperty(exports, "useConnectorSpec", { enumerable: true, get: function () { return useConnectionSpec_js_1.useConnectorSpec; } });
var useIntegration_js_1 = require("./integrations/useIntegration.js");
Object.defineProperty(exports, "useIntegration", { enumerable: true, get: function () { return useIntegration_js_1.useIntegration; } });
var useIntegrations_js_1 = require("./integrations/useIntegrations.js");
Object.defineProperty(exports, "useIntegrations", { enumerable: true, get: function () { return useIntegrations_js_1.useIntegrations; } });
var useConnection_js_1 = require("./integrations/useConnection.js");
Object.defineProperty(exports, "useConnection", { enumerable: true, get: function () { return useConnection_js_1.useConnection; } });
var useConnections_js_1 = require("./integrations/useConnections.js");
Object.defineProperty(exports, "useConnections", { enumerable: true, get: function () { return useConnections_js_1.useConnections; } });
var useFieldMapping_js_1 = require("./field-mappings/useFieldMapping.js");
Object.defineProperty(exports, "useFieldMapping", { enumerable: true, get: function () { return useFieldMapping_js_1.useFieldMapping; } });
var useFieldMappings_js_1 = require("./field-mappings/useFieldMappings.js");
Object.defineProperty(exports, "useFieldMappings", { enumerable: true, get: function () { return useFieldMappings_js_1.useFieldMappings; } });
var useFieldMappingInstance_js_1 = require("./field-mappings/useFieldMappingInstance.js");
Object.defineProperty(exports, "useFieldMappingInstance", { enumerable: true, get: function () { return useFieldMappingInstance_js_1.useFieldMappingInstance; } });
var useFieldMappingInstances_js_1 = require("./field-mappings/useFieldMappingInstances.js");
Object.defineProperty(exports, "useFieldMappingInstances", { enumerable: true, get: function () { return useFieldMappingInstances_js_1.useFieldMappingInstances; } });
var useDataSource_js_1 = require("./data-sources/useDataSource.js");
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 useDataSourceEvents_js_1 = require("./data-sources/useDataSourceEvents.js");
Object.defineProperty(exports, "useDataSourceEvents", { enumerable: true, get: function () { return useDataSourceEvents_js_1.useDataSourceEvents; } });
var useAppEventType_js_1 = require("./app-events/useAppEventType.js");
Object.defineProperty(exports, "useAppEventType", { enumerable: true, get: function () { return useAppEventType_js_1.useAppEventType; } });
var useAppEventSubscription_js_1 = require("./app-events/useAppEventSubscription.js");
Object.defineProperty(exports, "useAppEventSubscription", { enumerable: true, get: function () { return useAppEventSubscription_js_1.useAppEventSubscription; } });
var useAppEvents_js_1 = require("./app-events/useAppEvents.js");
Object.defineProperty(exports, "useAppEvents", { enumerable: true, get: function () { return useAppEvents_js_1.useAppEvents; } });
var useFlow_js_1 = require("./flows/useFlow.js");
Object.defineProperty(exports, "useFlow", { enumerable: true, get: function () { return useFlow_js_1.useFlow; } });
var useFlows_js_1 = require("./flows/useFlows.js");
Object.defineProperty(exports, "useFlows", { enumerable: true, get: function () { return useFlows_js_1.useFlows; } });
var useFlowInstance_js_1 = require("./flows/useFlowInstance.js");
Object.defineProperty(exports, "useFlowInstance", { enumerable: true, get: function () { return useFlowInstance_js_1.useFlowInstance; } });
var useFlowInstances_js_1 = require("./flows/useFlowInstances.js");
Object.defineProperty(exports, "useFlowInstances", { enumerable: true, get: function () { return useFlowInstances_js_1.useFlowInstances; } });
var useFlowRun_js_1 = require("./flows/useFlowRun.js");
Object.defineProperty(exports, "useFlowRun", { enumerable: true, get: function () { return useFlowRun_js_1.useFlowRun; } });
var sdk_1 = require("@integration-app/sdk");
Object.defineProperty(exports, "DataForm", { enumerable: true, get: function () { return sdk_1.DataForm; } });
//# sourceMappingURL=index.js.map

@@ -1,3 +0,2 @@

import { Connection } from '@integration-app/sdk/connections';
import { ConnectionSelector } from '@integration-app/sdk/connections/api';
import { Connection, ConnectionAccessor, ConnectionSelector } from '@integration-app/sdk';
export declare function useConnection(selector: ConnectionSelector | {

@@ -13,3 +12,4 @@ id: string;

refresh: () => void;
accessor: ConnectionAccessor;
connection: Connection;
};

@@ -1,3 +0,2 @@

import { Connection } from '@integration-app/sdk/connections';
import { FindConnectionsQuery } from '@integration-app/sdk/connections/api';
import { Connection, FindConnectionsQuery } from '@integration-app/sdk';
export declare function useConnections(query?: FindConnectionsQuery): {

@@ -4,0 +3,0 @@ items: Connection[];

@@ -1,2 +0,2 @@

import { Integration } from '@integration-app/sdk/integrations';
import { Integration, IntegrationAccessor } from '@integration-app/sdk';
export declare function useIntegration(idOrKey: string): {

@@ -10,3 +10,4 @@ loading: boolean;

refresh: () => void;
accessor: IntegrationAccessor;
integration: Integration;
};

@@ -1,3 +0,2 @@

import { Integration } from '@integration-app/sdk/integrations';
import { FindIntegrationsQuery } from '@integration-app/sdk/integrations/api';
import { FindIntegrationsQuery, Integration } from '@integration-app/sdk';
export declare function useIntegrations(query?: FindIntegrationsQuery): {

@@ -4,0 +3,0 @@ items: Integration[];

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

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

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

@@ -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

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

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

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

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

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

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